(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2711],{130:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaAdminBlock:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(56692),i=l(68842),n=l(68858);let s=()=>{let[e]=(0,r.kV6)(),t=(0,i.r)(e,!0);return(0,a.jsx)(n.default,{name:"Taboola",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Placement Name:"}),(null==t?void 0:t.placementName)||"No Placement Name"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Taboola ID:"})," ",(null==t?void 0:t.taboolaId)||"No Taboola ID"]}),(null==t?void 0:t.title)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Block Title:"})," ",t.title]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Display Mode:"}),(null==t?void 0:t.taboolaUiMode)||"No Display Mode"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Page Type:"})," ",(null==t?void 0:t.pageType)||"No Page Type"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Taboola Type:"})," ",(null==t?void 0:t.taboolaType)||"Generic"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Loader URL:"})," ",(null==t?void 0:t.loaderUrl)||"No Loader URL"]})]})})},o=s},226:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CallToActionAdminBlock:()=>o,default:()=>d});var a=l(21102);l(42494);var r=l(68858),i=l(68842),n=l(56692),s=l(11926);let o=()=>{var e;let[t]=(0,n.kV6)(),l=(0,i.r)(t,!0),o=null;[{data:o}]=(0,n.Q0O)(l.media?"/api/payload/images/".concat(l.media):"");let d=(null==o?void 0:o.url)?null==o?void 0:o.url:"";return(0,a.jsx)(r.default,{name:null!=(e=null==l?void 0:l.title)?e:"Empty CTA Block",children:(null==l?void 0:l.title)?(0,a.jsxs)("div",{className:"space-y-4 rounded-lg p-4 shadow-sm",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-black-800",children:"Title:"}),(0,a.jsx)("div",{className:"text-gray-600",children:l.title})]}),l.subTitle&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Subtitle:"}),(0,a.jsx)("div",{className:"text-gray-700",children:l.subTitle})]}),l.subText&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("span",{className:"font-semibold",children:"Sub Text:"}),(0,a.jsx)("div",{className:"text-gray-700",children:l.subText})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"CTA Style:"}),(0,a.jsx)("div",{className:"text-gray-700",children:l.ctaStyle})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Background:"}),(0,a.jsx)("div",{className:"text-gray-700",children:l.backgroundColor||"white"})]}),l.buttonText&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Button Text:"}),(0,a.jsx)("div",{className:"text-gray-700",children:l.buttonText})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Link URL:"}),(0,a.jsx)("div",{className:"truncate text-gray-700",children:l.linkUrl})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold",children:"Opens in:"}),(0,a.jsx)("div",{className:"text-gray-700",children:l.openInNewTab?"New Tab":"Same Tab"})]})]}),d&&(0,a.jsx)(s.default,{src:d,alt:"",className:"max-h-[240px] max-w-[240px]"})]}):(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"CTA is empty."})})})},d=o},2101:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PrecipIntensityBlock:()=>s,default:()=>o});var a=l(21102),r=l(59432),i=l(71458),n=l(76589);let s=e=>{let{locationEntry:t,locationProvider:l}=e,s="specified"===l,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,r.v)(t),u=s&&o&&t?(0,i.I)(o):void 0;return(0,a.jsx)(n.A,{location:u,initializing:s&&c,initialError:s?d:void 0})},o=s},3552:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HealthAndActivitiesBlock:()=>_,default:()=>P});var a=l(21102),r=l(42494),i=l(83037),n=l(73017),s=l(64566),o=l(20423),d=l(81078),c=l(52849),u=l(71535);let m=e=>{let{value:t,maxValue:l,strokeColor:r,heading:i,description:s,icon:m,href:h}=e,v=(0,n.c)("HealthAndActivities");return(0,a.jsxs)(o.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:v(i)}),(0,a.jsx)("div",{className:"text-sm leading-[1.25] text-[#6f7585]",children:v(s)})]}),(0,a.jsx)(c.c,{className:"ml-2.5 w-4 shrink-0"})]})},h=e=>{let{data:t=[]}=e,l=(0,n.c)("HealthAndActivities");return t.length?(0,a.jsxs)(s.Zp,{"data-testid":"HealthAndActivitiesModule","aria-label":l("healthAndActivities"),children:[(0,a.jsx)(s.aR,{text:l("healthActivities")}),(0,a.jsx)(s.Wu,{children:t.map(e=>(0,a.jsx)(m,{...e},e.heading))})]}):null};var v=l(89131),p=l(59946),x=l(32123),g=l(66188);let f=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(g.h,{ref:t,icon:f,...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:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),k=r.forwardRef((e,t)=>(0,a.jsx)(g.h,{ref:t,icon:A,...e}));k.displayName="Flu";var S=l(17577);let I=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:r,locationError:n}=(0,i.s)({location:t}),{data:s,isLoading:o,error:d}=(e=>{let t=(0,b.useParams)(),l=null==t?void 0:t.locale,{data:a,error:r,isLoading:i}=(0,p.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:n,error:s,isLoading:o}=(0,p.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,S.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,i]=t;return i-a})[0][0],r=l["".concat(a,"PollenIndex")][0]||0,i=w[r],n="".concat(a,"Pollen").concat(i);return{value:r,maxValue:4,heading:"allergy",description:0!==r?n:"noPollenDetected",strokeColor:N[r],icon:y,href:t}}(a,c):void 0,m=(0,S.n)({key:"coldFlu",interpolationArgs:d});return{data:[u,n?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:k,href:t}}(n,m):void 0].filter(Boolean),isLoading:i||o,error:r||s}})(l),c=o||r,u=d||n;return s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.DebugCollector,{componentName:"HealthAndActivities",data:{props:{location:t},state:{effectiveLocation:l,isLocationLoading:r,isLoading:c,data:s,error:u,componentState:u&&"error"||c&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(h,{data:s})]}):null};var M=l(59432),R=l(71458);let _=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:i,specifiedLocationError:n,isSpecifiedLocationLoading:s}=(0,M.v)(r?l:null);return r&&s?(0,a.jsx)("div",{children:"Loading location data..."}):r&&n?(0,a.jsxs)("div",{children:["Error loading location data: ",n.message]}):r&&i&&l?(0,a.jsx)(I,{location:(0,R.I)(i)}):r?null:(0,a.jsx)(I,{})},P=_},3578:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdAdminBlock:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(56692),i=l(68842),n=l(68858);let s=()=>{let[e]=(0,r.kV6)(),t=(0,i.r)(e,!0);return(0,a.jsx)(n.default,{name:"Ad",children:(0,a.jsxs)("span",{children:["Ad ID: ",(()=>{var e;return"object"==typeof(null==t?void 0:t.adSlot)&&(null==(e=t.adSlot)?void 0:e.slotTarget)?t.adSlot.slotTarget:"No ad slot selected"})()]})})},o=s},4385:(e,t)=>{"use strict";var l,a,r,i;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"}(i||(t.PollutantType=i={}))},4499:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>n,default:()=>s});var a=l(21102),r=l(42494);let i="twitter-script-loaded",n=e=>{let{entryMethod:t,tweetURL:l,tweetId:n,showThread:s}=e,o=(0,r.useRef)(null),d=(0,r.useCallback)(()=>"id"===t&&n?"https://twitter.com/i/status/".concat(n):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,n,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(i);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let r=()=>t(!0);return window.addEventListener(i,r),()=>{window.removeEventListener(i,r)}},[e,l]),{isLoaded:e}}();return(0,r.useEffect)(()=>{let e=d();e&&(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(o.current))},[d,n,l,t,s,c]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},s=n},5216:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>G,default:()=>Z});var a=l(21102),r=l(42494),i=l(52748),n=l(93426),s=l(8900),o=l(34961),d=l(67058),c=l(59946),u=l(92105),m=l(56716),h=l(30068),v=l(1396),p=l(71535);function x(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,p.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...l})}function g(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)(v.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,p.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 f(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,p.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,p.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,p.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:i,className:s,location:h,onChangeLocation:v}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,A]=(0,r.useState)(!1),[k,S]=(0,r.useState)(""),{isLoading:I,data:M}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:r,error:i}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:r,error:i}}((0,u.A)(k,300),C);return(0,a.jsxs)(m.AM,{open:T,onOpenChange:A,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,p.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",s),children:[(0,a.jsx)("div",{children:I?(0,a.jsx)(n.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)(g,{placeholder:i,value:k,onValueChange:S}),(0,a.jsx)(f,{children:(0,a.jsx)(y,{children:null==M?void 0:M.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==v||v(e),A(!1)},children:e.address},e.locId))})})]})})]})}var C=l(22793);function T(e){let{label:t,error:l,className:r,...i}=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,{...i,className:l?"".concat(r," border-red-500"):r})]})}var A=l(20423);let k={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},S=/\{\{(.*?)\}\}/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(S).map((e,t)=>{let l=k["{{".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 M={src:"/_next/static/media/morning-brief-logo.73126316.svg"},R={src:"/_next/static/media/ellipse.b0c8befa.png"};var _=l(17851),P=l(52166),E=l(61300),L=l(59103),D=l(11776),F=l(57809),B=l(90728);let V=(0,l(51107).tG)("emailPreferences",null,void 0,{getOnInit:!0});var z=l(66172),H=l(78639);let W=()=>{let[e,t]=(0,F.fp)(V),{user:l}=(0,z.J)(),a=(null==l?void 0:l.userID)||null,i=(null==l?void 0:l.isUserLoggedIn)||!1,n=(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:H.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]),s=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&i&&!s?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,B.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&n(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:n}};async function U(e,t){let{arg:l}=t,{email:a,location:r,locale:i,isAnonymous:n}=l,{location:s}=await (0,D.$M)(r.placeId,i).catch(()=>({location:null})),o={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:r.placeId,latitude:r.latitude,longitude:r.longitude,dmaCode:(null==s?void 0:s.dmaCd)||null,adminDistrict:r.adminDistrict,adminDistrictCode:r.adminDistrictCode||null,postalCode:r.postalCode}}]};return n&&(o.email=a),await (0,P.p_)(o).then(e=>({...e,sentSubscriptions:o.subscriptions}))}var O=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,z.J)(),[m,h]=(0,r.useState)(null!=(e=null==u?void 0:u.email)?e:""),[v,p]=(0,r.useState)(null),[x,g]=(0,r.useState)(!1),{data:f,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:i}=a,n={...l,name:r,status:i?"enabled":"disabled"};if(!t)return void console.warn("MParticle is not initialized");try{var s,o,d,c;null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,e,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,n),console.debug('MParticle: Event "'.concat(e,'" tracked'),n)}catch(t){console.error('MParticle: Event "'.concat(e,'" failed'),t)}},[l,t])})(),{isMutating:l,trigger:a,data:i,error:n,reset:s}=(0,_.A)("newsletter/signup/daily-newsletters-1",(e,t)=>U("daily-newsletters-1",t));return{loading:l,error:n,data:i,onSubmit:(0,r.useCallback)(async l=>{let r=await a(l);if(r.sentSubscriptions&&e(r.sentSubscriptions),"success"===r.status){var i,n;t({name:"newsletter",status:(null==(n=r.sentSubscriptions)||null==(i=n[0])?void 0:i.isSubscribed)||!1})}return r},[t,a,e]),onReset:s}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:k}=W(),S=(0,O.c)(),P=(0,r.useMemo)(()=>(0,q.C)(k,H.rn),[k]),D=(0,r.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&v&&(g(!0),S({interactionElement:"morningbrief signup",interactionType:"click",moduleId:"morning-brief-block"}),await b({email:m,location:v,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[y,m,v,S,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(R.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:M.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==f?void 0:f.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.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:D,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==f?void 0:f.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:v,onChangeLocation:p}),(0,a.jsx)("div",{children:(0,a.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:y||!(m&&v),children:[(0,a.jsx)("span",{children:"Sign Up"}),y&&(0,a.jsx)(n.A,{className:"animate-spin"})]})})]}),w&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==f?void 0:f.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=f.emailError)?t:f.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"),i=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 i=await n(a,r);i?t.playAd(i):t.play()},n=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=o(e,l),i=s({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var n,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(n=u.update)||n.call(u,{page:i,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},s=(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]=s(l[e]||{},t[e]):l[e]=t[e];return l},o=(e,t)=>{var l,a,r,i,n,s;let o=null==(a=window)||null==(l=a.__HeliosConfig)?void 0:l.generalConfig,d=null!=(n=null==o||null==(r=o.targeting)?void 0:r.networkCode)?n:"/7646",c=null!=(s=null==o||null==(i=o.targeting)?void 0:i.adUnits)?s: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 v=l(37811);let p=(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,{...g(t,"meta.")})}catch(e){p.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}v.env.NEW_RELIC_RUM_ACCOUNT_ID,v.env.NEW_RELIC_RUM_APP_ID,v.env.NEW_RELIC_RUM_LICENSE_KEY;let g=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]}))},f=(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:n,isMobile:s}=e;if(!(null==r?void 0:r.current))return;let o=a.getPlaylistItem(),d=null==o||null==(t=o.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),x("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await i({player:a,user:n,ctx:d,isMobile:s}),r.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem(),i=null==r||null==(t=r.custom)?void 0:t.ctx,n={},s=m(i);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)&&(n["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){f.error("Error parsing cust_params",e)}x("videoAdRequest",{...s,isViewable:!!l.viewable,roll:l.adposition,...n})}},{eventName:"adStarted",callback:e=>{var t,l,a,r,i,n;let{event:s,player:o}=e,d=o.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:v}=s,p=m(c),g="";try{let e=null==(n=s.ima)||null==(i=n.ad)?void 0:i.data;e&&(g=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:r}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let i=a.findIndex(h);return i>=0&&i{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:n,isMobile:s}=e;if(null==r?void 0:r.current)return;let{item:o}=l,d=null==o||null==(t=o.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await i({player:a,user:n,ctx:d,isMobile:s})}},{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}),f.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}),f.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),i=l(49820),n=l(87403),s=l(90267);let o=e=>{let{pressureTendencyCode:t,iconClassName:l}=e;return 1===t?(0,a.jsx)(i.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)(n.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:i,pressureMeanSeaLevel:n,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,s.Bu)(c):null,h=null==m?void 0:m.pressure,v=(()=>{let e=i&&i>0||n&&n>0?i||n: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:v?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:v}),"\xa0",(0,a.jsx)("span",{className:(0,r.cn)(l),children:h})]}):"--"})}},7222:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaAdminBlock:()=>c,GridLayoutBuilder:()=>d,default:()=>u});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858),o=l(23394);let d=e=>{let{path:t}=e,{value:l,setValue:n}=(0,i.MtT)({path:t}),s=t.split(".").slice(0,-1).join("."),{value:d}=(0,i.MtT)({path:"".concat(s,".limit")}),c=Number(d)||4,u=Number(l)||2,m=(0,o.RK)(c);(0,r.useEffect)(()=>{m.includes(u)||n(String(m.includes(2)?2:m[0]))},[c,m,u,n]);let h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=Array.from({length:Math.min(c,10)},(e,t)=>t+1),r=t?60:40;return(0,a.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(e,", 1fr)"),gap:"".concat(t?8:4,"px"),width:"100%"},children:l.map(e=>(0,a.jsx)("div",{style:{border:"2px dashed #555",borderRadius:"4px",height:"".concat(r,"px"),display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#1a1a1a",fontSize:t?"12px":"10px",fontWeight:"500",color:"#999"},children:t?"Item ".concat(e):e},e))})};return(0,a.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,a.jsx)("label",{style:{display:"block",marginBottom:"8px",fontSize:"13px",fontWeight:"600",color:"#fff"},children:"Grid Columns"}),(0,a.jsxs)("div",{style:{padding:"16px",backgroundColor:"#1a1a1a",borderRadius:"4px",border:"1px solid #333"},children:[(0,a.jsxs)("p",{style:{marginBottom:"12px",fontSize:"12px",color:"#ccc"},children:["Select how many columns to display (",c," item",1!==c?"s":"","):"]}),(0,a.jsx)("div",{style:{display:"flex",gap:"12px",marginBottom:"16px",flexWrap:"wrap"},children:m.map(e=>{let t=e===u;return(0,a.jsxs)("button",{type:"button",onClick:()=>n(String(e)),style:{flex:"1",minWidth:"120px",padding:"12px",border:t?"2px solid #0066cc":"2px solid #444",borderRadius:"6px",backgroundColor:t?"#1a3a52":"#2a2a2a",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},onMouseEnter:e=>{t||(e.currentTarget.style.borderColor="#666",e.currentTarget.style.backgroundColor="#333")},onMouseLeave:e=>{t||(e.currentTarget.style.borderColor="#444",e.currentTarget.style.backgroundColor="#2a2a2a")},children:[(0,a.jsxs)("span",{style:{fontSize:"14px",fontWeight:"600",color:t?"#66b3ff":"#fff"},children:[e," Column",1!==e?"s":""]}),(0,a.jsx)("div",{style:{width:"100%"},children:h(e,!1)})]},e)})})]})]})},c=()=>{let[e,t]=(0,i.kV6)(),l=(0,n.r)(e,!0),r=(null==l?void 0:l.limit)||"4",o=(null==l?void 0:l.title)||"",d=(null==l?void 0:l.ctaText)||"",c=(null==l?void 0:l.template)||"",u=(null==l?void 0:l.gridColumns)||2,m=(null==l?void 0:l.customItems)||[];return(0,a.jsx)(s.default,{name:"Content Media Block",children:(0,a.jsxs)("div",{style:{fontSize:"14px"},children:[(0,a.jsxs)("div",{style:{marginBottom:"12px"},children:[(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Template:"})," ",c?"list"===c?"List View":"grid"===c?"Grid View":c:"Not selected"]}),(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Items to Display:"})," ",(()=>{if("custom"===r){let e=Array.isArray(m)?m.length:0;return"Custom (".concat(e," item").concat(1!==e?"s":""," selected)")}return"1"===r?"1 (Hero)":"".concat(r)})()]}),o&&(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"Title:"})," ",o]}),d&&(0,a.jsxs)("p",{style:{marginBottom:"4px"},children:[(0,a.jsx)("strong",{children:"CTA Button:"})," ",d]})]}),(0,a.jsxs)("div",{style:{marginTop:"16px",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:[(0,a.jsx)("p",{style:{marginBottom:"8px",fontWeight:"600",fontSize:"13px"},children:"Layout Preview:"}),(()=>{if("custom"===r){if(!Array.isArray(m)||0===m.length)return(0,a.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666",fontStyle:"italic"},children:"Add items to see preview. Select up to 12 items from the content query results."});let e=m.map((e,t)=>t+1),t={border:"2px dashed #ccc",borderRadius:"4px",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60px",backgroundColor:"#f9f9f9",fontSize:"12px",fontWeight:"500",color:"#666"};if("list"===c)return(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map(e=>(0,a.jsxs)("div",{style:t,children:["Custom Item ",e]},e))});if("grid"===c)return(0,a.jsx)("div",{style:{display:"grid",gap:"8px",gridTemplateColumns:"repeat(".concat(u,", 1fr)")},children:e.map(e=>(0,a.jsxs)("div",{style:t,children:["Custom Item ",e]},e))})}let e=Array.from({length:Number(r)},(e,t)=>t+1);if(!c)return(0,a.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666",fontStyle:"italic"},children:"Please select a template to see the layout preview"});let t={border:"2px dashed #ccc",borderRadius:"4px",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"60px",backgroundColor:"#f9f9f9",fontSize:"12px",fontWeight:"500",color:"#666"};return"list"===c?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map(e=>(0,a.jsxs)("div",{style:t,children:["Item ",e]},e))}):"grid"===c?(0,a.jsx)("div",{style:{display:"grid",gap:"8px",gridTemplateColumns:"repeat(".concat(u,", 1fr)")},children:e.map(e=>(0,a.jsxs)("div",{style:t,children:["Item ",e]},e))}):null})()]})]})})},u=c},8501:(e,t,l)=>{"use strict";l.d(t,{A:()=>f});var a=l(21102);l(42494);var r=l(75919),i=l(30684),n=l(36070),s=l(97889),o=l(59946),d=l(34961),c=l(34679),u=l(71535),m=l(80387),h=l(13206);let v=e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return null;let{cDate:r,cTimeZone:i}=(0,h.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",timeZone:i}).format(r)};var p=l(73017),x=l(26464),g=l(26763);let f=e=>{let{location:t,className:l,headlineClassName:h,showSubheadline:f=!1}=e,y=(0,c.useParams)(),b=null==y?void 0:y.locale,w=(0,p.c)("AlertHeadlines"),{data:j,error:N,isLoading:C}=(0,o.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,i.F)({productIdentifier:e,phenomena:t,significance:l}),r=(0,n.t)({productIdentifier:e||"",phenomena:t,significance:l}),s={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 s[r?"severe":a]||s[4]})():null,k=T?(0,i.F)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null,S=T?(0,n.t)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null;if(C||N||!T)return null;let I=T.effectiveTimeLocalTimeZone||T.endTimeLocalTimeZone||"",M=(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}),R=(0,g.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:R,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)(s.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})]}),f&&(0,a.jsx)(x.Ay,{className:"mt-1 uppercase",variant:"Caption.S.Bold",color:"inverse",children:w(M,{[(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,i=v({date:t,locale:a,timeZone:r}),n=v({date:l,locale:a,timeZone:r});return(0,m.P)({date:l,locale:a,weekday:i!==n&&"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===k||S?{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:()=>n});var a=l(21102);l(42494);var r=l(71535),i=l(90267);let n=e=>{let t,l,{precipType:n="rain",rain:s,snow:o,qpf:d=0,qpfSnow:c=0,units:u,unitOverride:m,className:h,unitClass:v}=e,p=null!=s?s:d,x=null!=o?o:c,g=u?(0,i.Bu)(u):null;if("snow"===n)t=x,l="accumulation";else if("rain"===n)t=p,l="precip";else if("precip"===n){let e=Number(p)>=Number(x);t=e?p:x,l=e?"precip":"accumulation"}else t=p,l="precip";let f=null==g?void 0:g[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)(v),children:m||f})]})}},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=v;let a=l(19318),r=l(56438),i=l(40919),n=l(31082),s=l(14527),o=l(78217),d=l(14527),c=l(20015),u=l(59488),m=l(4385);async function h(e){let l=(0,a.getHourlyForecastUrlConfig)(e),n=(0,r.urlFrom)(l),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,i.handleFetchResponse)(s);return(0,t.lh)(o)}async function v(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 s.HourlyForecastDuration.SIX_HOUR:case s.HourlyForecastDuration.TWELVE_HOUR:return m.AirQualityForecastDuration.TWELVE_HOUR;case s.HourlyForecastDuration.ONE_DAY:return m.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case s.HourlyForecastDuration.TWO_DAY:return m.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case s.HourlyForecastDuration.THREE_DAY:case s.HourlyForecastDuration.TEN_DAY:case s.HourlyForecastDuration.FIFTEEN_DAY:default:return m.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);var a=t,r=l;if(!r)return a;let i=new Map(r.forecast.map(e=>[e.validTimeGmt,e]));return a.map(e=>{let t=i.get(e.validTimeUtc);return t?{...e,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory}:e})}t.lh=(0,n.createTransformer)(e=>{var t,l,a,r,i,n,s,u,m,h,v,p,x,g,f,y,b,w,j,N,C,T,A,k,S,I,M,R,_;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!=(i=e.iconCode)?i:0,iconCodeExtend:null!=(n=e.iconCodeExtend)?n:0,precipChance:null!=(s=e.precipChance)?s:0,precipType:null!=(u=e.precipType)?u:o.PrecipType.RAIN,pressureMeanSeaLevel:null!=(m=e.pressureMeanSeaLevel)?m:0,qpf:null!=(h=e.qpf)?h:0,qpfSnow:null!=(v=e.qpfSnow)?v:0,relativeHumidity:null!=(p=e.relativeHumidity)?p:0,temperature:null!=(x=e.temperature)?x:0,temperatureDewPoint:null!=(g=e.temperatureDewPoint)?g:0,temperatureFeelsLike:null!=(f=e.temperatureFeelsLike)?f: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!=(k=e.windDirectionCardinal)?k:d.WindDirectionCardinal.NORTH),windGust:null!=(S=e.windGust)?S:null,windSpeed:null!=(I=e.windSpeed)?I:0,wxPhraseLong:null!=(M=e.wxPhraseLong)?M:"",wxPhraseShort:null!=(R=e.wxPhraseShort)?R:"",wxSeverity:null!=(_=e.wxSeverity)?_:0}})},10501:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>j,default:()=>N});var a=l(21102),r=l(42494),i=l(59946),n=l(60476),s=l(58761),o=l(57245),d=l(6548),c=l(91743),u=l(20116),m=l(89131),h=l(13501),v=l(71535),p=l(66172),x=l(59809),g=l(57809),f=l(77201);let y={src:"/_next/static/media/placeholder.6858ca75.jpg"},b=(0,l(44182).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:j,title:N,description:C,tracks:T=[],playlist:A,custom:k={},playerSettings:S,descriptionAttributes:I,videoReference:M,playlistsReference:R=[]}=e,_="video-player-".concat((0,r.useId)()),P=(0,r.useRef)(!0),E=(0,r.useRef)(null),L=(null==(t=(0,p.J)())?void 0:t.user)||{},D=(0,g.md)(f.a),F=L.isUserPremium||D,B=(0,x.z)(),V=null;M&&("string"==typeof M?V="/api/payload/videos/".concat(M):"object"==typeof M&&(V=(null==M?void 0:M.id)?"/api/payload/videos/".concat(M.id):null));let{data:z,error:H}=(0,i.Ay)(V,w,{revalidateOnFocus:!1,dedupingInterval:3e5}),W=(0,u.c)(),U=(0,r.useMemo)(()=>{let e=[];return!Array.isArray(T)&&(null==T?void 0:T.file)?e.push(T):Array.isArray(T)&&e.push(...T),e},[T]),O=(0,r.useMemo)(()=>z&&Object.keys(z).length>0||M&&"string"!=typeof M,[z,M]),Q=(0,r.useMemo)(()=>z&&Object.keys(z).length>0?z:M&&"string"!=typeof M?M:null,[z,M]),q=(0,r.useMemo)(()=>{var e,t,a,r,i,n,s,o,d;return O&&(null==Q||null==(t=Q.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==Q||null==(r=Q.content)||null==(a=r.defaultFormat)?void 0:a.url)?null==Q||null==(d=Q.content)||null==(o=d.defaultFormat)?void 0:o.url:null==Q||null==(s=Q.content)||null==(n=s.videoFormatUrls)||null==(i=n[0])?void 0:i.url:l},[O,Q,l]),G=(0,r.useMemo)(()=>{if(O){var e,t,l;return(null==Q||null==(e=Q.content)?void 0:e.keyFrameImage)||(null==Q||null==(l=Q.seo)||null==(t=l.image)?void 0:t.url)||j}return j},[O,Q,j]),Z=(0,r.useMemo)(()=>O&&(null==Q?void 0:Q.title)||N,[O,Q,N]),Y=(0,r.useMemo)(()=>{if(O&&(null==Q?void 0:Q.description)){var e,t,l;return(null==(l=Q.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||C}return C},[O,Q,C]),$=(0,r.useMemo)(()=>{if(E.current&&JSON.stringify({file:q,image:G,title:Z,description:Y,tracks:U,playlist:A,custom:k})===JSON.stringify(E.current))return E.current;let e=G||(q?(0,s.e)(q):null)||y.src,t={file:q,image:e,title:Z,description:Y,tracks:U,custom:k};return E.current=t,t},[q,G,Z,Y,U,A,k]),X=(0,r.useMemo)(()=>{var e,t,l,a;let r=[];return A&&(r=(0,o.K)(A,$)||[]),R&&R.length,O&&(null==Q||null==(e=Q.content)?void 0:e.playlists)&&Array.isArray(null==Q||null==(t=Q.content)?void 0:t.playlists)&&(null==Q||null==(a=Q.content)||null==(l=a.playlists)||l.length),r.length>0?r:[$]},[A,$,R,Q,O]);if((0,r.useEffect)(()=>{P.current=!0},[X]),M&&"string"==typeof M&&!z&&!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 K=[...d.v,...c.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:P,user:L,trackVideoEvent:W,isMobile:B})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:j,title:N,description:C,tracksCount:(0,h.J)(U),hasPlaylist:!!A&&A.length>0,custom:k},state:{videoObject:$,playlistItems:X.length,isFirstPlay:P.current,events:K.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(n.h,{playlist:X,events:K,setupParams:{ads:!F}},_)}),(null==S?void 0:S.showDescriptions)&&(0,a.jsx)("p",{...I,className:(0,v.cn)("my-2 text-sm",null==I?void 0:I.className),children:$.title})]})},N=j},11289:(e,t,l)=>{"use strict";l.r(t),l.d(t,{InstagramAdminBlock:()=>c,default:()=>u});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858);let o=/instagram\.com\/(p|reel)\/([^/?#]+)/;var d=l(71535);let c=()=>{let[e]=(0,i.kV6)(),t=(0,n.r)(e,!0),[l,c]=(0,r.useMemo)(()=>(e=>{let t=e.match(o);return[(null==t?void 0:t[1])||null,(null==t?void 0:t[2])||null]})(t.url||""),[t.url]);return(0,a.jsxs)(s.default,{name:"Instagram",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Post URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:t.url||"Not provided"})]}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Embed Size:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"hero"===t.size?"Hero (Full Width)":"Article (Small)"})]}),l&&c?(0,a.jsx)("div",{className:"mb-2 flex justify-center",children:(0,a.jsx)("iframe",{className:(0,d.cn)("h-60 w-full rounded-lg shadow-lg","hero"===t.size?"max-w-full":"max-w-[320px]"),src:"https://www.instagram.com/".concat(l,"/").concat(c,"/embed"),title:"Instagram Preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"text-red-600",children:"Invalid Instagram URL"})]})},u=c},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})},13741:(e,t,l)=>{"use strict";l.d(t,{$n:()=>d});var a=l(21102),r=l(42494),i=l(91731),n=l(85422),s=l(71535);let o=(0,n.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:n,inline:d=!1,asChild:c=!1,...u}=e,m=c?i.DX:"button";return(0,a.jsx)(m,{className:(0,s.cn)(o({variant:r,display:d?"inline":n,className:l})),ref:t,...u})});d.displayName="Button"},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"}}}},14778:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaBlock:()=>g,default:()=>f});var a=l(21102),r=l(13501),i=l(64566),n=l(71535),s=l(24415),o=l(23394);let d=e=>{let{items:t,aspectRatio:l,gridColumns:r=3,isFetchPriority:i=!1}=e;if(0===t.length)return null;let d=Math.min(t.length,10),c=1===r,u=[3,5,9].includes(d);return(0,a.jsxs)("div",{className:"@container/grid",children:[!c&&(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col gap-4",u?"@lg/grid:hidden":"@md/grid:hidden"),children:t.map(e=>(0,a.jsx)(s.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:i},e.id))}),(0,a.jsx)("div",{className:(0,n.cn)(c?"grid":u?"hidden @lg/grid:grid":"hidden @md/grid:grid","gap-4",(0,o.X0)({columns:r,items:d})),children:t.map(e=>(0,a.jsx)(s.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:i},e.id))})]})},c=e=>{let{items:t,title:l,hideTitle:r=!1,gridColumns:s=2,aspectRatio:o="square",cardVariant:c="default",border:u="default",className:m}=e;return(0,a.jsxs)(i.Zp,{"aria-label":l,variant:c,border:u,className:(0,n.cn)(m),children:[!r&&(0,a.jsx)(i.aR,{text:l}),(0,a.jsx)(i.Wu,{children:(0,a.jsx)(d,{items:t,aspectRatio:o,gridColumns:s})})]})},u=e=>{let{items:t,title:l,hideTitle:r=!1,aspectRatio:o="square",cardVariant:d="default",border:c="default",className:u}=e;return(0,a.jsxs)(i.Zp,{"aria-label":l,variant:d,border:c,className:(0,n.cn)(u),children:[!r&&(0,a.jsx)(i.aR,{text:l}),(0,a.jsx)(i.Wu,{className:"flex flex-col gap-4",children:t.map(e=>(0,a.jsx)(s.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:o,textSize:"md",responsive:!0},e.id))})]})};var m=l(45226);let h=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)(m.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"})})},v=e=>{var t;let{heroItem:l,secondaryItems:r=[],aspectRatio:i="square",gridColumns:o=3}=e,c=r.length>0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.S,{url:l.url,className:(0,n.cn)("@container/hero-item",c&&"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)(s.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)(s.S.Content,{className:(0,n.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,n.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)(s.S.Title,{title:l.title,textSize:"xl",responsive:!0,className:"@xl/hero-item:text-white"}),l.description&&(0,a.jsx)(s.S.Description,{description:l.description,textSize:"xl",responsive:!0,className:"@xl/hero-item:text-white"}),(0,a.jsx)(s.S.Button,{text:l.duration?"Watch":"Read more",duration:l.duration,variant:"secondary",size:"lg",className:"hidden @xl/hero-item:block",inverse:!0})]})]})}),c&&(0,a.jsx)(d,{items:r,aspectRatio:i,gridColumns:o,isFetchPriority:!0})]})},p=e=>{var t;let{heroItem:l,secondaryItems:r=[],aspectRatio:i="square",gridColumns:o=3}=e,c=r.length>0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.S,{url:l.url,className:(0,n.cn)("@container/hero-item",c&&"mb-4"),children:(0,a.jsxs)("div",{className:(0,n.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,n.cn)("relative w-full","@xl/hero-item:col-span-2"),children:(0,a.jsx)(s.S.Image,{src:l.thumbnail,alt:l.altText,aspectRatio:"8/5",hoverEffect:"scaled",isFetchPriority:!0})}),(0,a.jsxs)(s.S.Content,{className:(0,n.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)(s.S.Title,{title:l.title,textSize:"xl",responsive:!0,lineClamp:4}),l.description&&(0,a.jsx)(s.S.Description,{description:l.description,textSize:"xl",responsive:!0,lineClamp:3}),(0,a.jsx)(s.S.Button,{text:l.duration?"Watch":"Read more",duration:l.duration,size:"lg",className:"hidden @xl/hero-item:block"})]})]})}),c&&(0,a.jsx)(d,{items:r,aspectRatio:i,gridColumns:o,isFetchPriority:!0})]})},x=e=>{let{contentQuery:t,limit:l="4",title:n,showDescription:s,template:d="grid",gridColumns:m=3,aspectRatio:x="square",hideTitle:g=!1,cardVariant:f="default",border:y="default",displayPartnerLogo:b="enable"}=e,w="travel-hero"===d?3:function(e){let t="string"==typeof e?parseInt(e,10):e;if(t&&o.VJ.includes(t))return t}(m),j=(null==t?void 0:t.mergedContent)||[];if(!(0,r.J)(j))return null;let N="travel-hero"===d?"hero-overlay":d,C="travel-hero"===d?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)(h,{items:T,showDescription:s});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,i=(()=>{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:i?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:s,displayPartnerLogo:b}),k={title:null!=n?n:"",hideTitle:null!=g&&g,aspectRatio:null!=x?x:"square",cardVariant:null!=f?f:"default",border:null!=y?y:"default"};switch(N){case"list":return(0,a.jsx)(u,{items:A,...k});case"hero-overlay":case"hero-sidebar":{let e=A[0],t=A.slice(1,C+1);if(!e)return null;return(0,a.jsxs)(i.Zp,{variant:k.cardVariant,border:k.border,"aria-label":k.title,children:[!k.hideTitle&&(0,a.jsx)(i.aR,{text:k.title}),(0,a.jsx)(i.Wu,{children:(0,a.jsx)("hero-overlay"===N?v:p,{heroItem:e,secondaryItems:t,aspectRatio:k.aspectRatio,gridColumns:w})})]})}default:return(0,a.jsx)(c,{items:A,gridColumns:w,...k})}},g=e=>(0,a.jsx)(x,{...e}),f=g},15065:(e,t,l)=>{"use strict";l.d(t,{Y:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.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),i=l.n(r),n=l(81078),s=l(34961),o=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:v,className:p}=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",p),"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)(n.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]})]})]}),v&&(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(s.$n,{asChild:!0,className:"m-4 mb-0",children:(0,a.jsx)(i(),{href:v,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)(o.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),v=l(34679),p=l(59946),x=l(59488),g=l(4385);let f=e=>{var t,l,r,i;let{location:n,initializing:s,initialError:o}=e,{effectiveLocation:d,isLocationLoading:c}=(0,h.s)({location:n}),u=null==(t=(0,v.useParams)())?void 0:t.locale,{airQualityData:f,error:y,isLoading:b}=(e=>{let{effectiveLocation:t,locale:l}=e,{data:a,error:r,isLoading:i}=(0,p.Ay)(t?["get-air-quality-forecast",t.geocode,g.AirQualityForecastDuration.TWENTY_FOUR_HOUR,g.AirQualityScale.EPA,l]:null,e=>{let[t,l,a,r,i]=e;return(0,x.getHourlyAirQualityForecast)({geocode:l,duration:a,scale:r,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4});return{airQualityData:a,error:r,isLoading:i}})({effectiveLocation:d,locale:u});if(s||b||c||!f)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(o||y||!(null==f||null==(l=f.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=f.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==(i=w.messages)||null==(r=i.general)?void 0:r.text,source:f.source,disclaimer:f.disclaimer,detailsUrl:j})};var y=l(59432),b=l(71458);let w=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:i,specifiedLocationError:n,isSpecifiedLocationLoading:s}=(0,y.v)(r?l:null),o=r&&i&&l?(0,b.I)(i):void 0;return(0,a.jsx)(f,{location:o,initializing:r&&s,initialError:r?n:void 0})},j=w},17081:(e,t,l)=>{"use strict";t.I=n;let a=l(56286),r=l(56438),i=l(40919);async function n(e){let t=(0,a.getSunV3WeatherInsightsUrlConfig)(e),l=(0,r.urlFrom)(t),n=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,i.handleFetchResponse)(n)}},18365:(e,t,l)=>{"use strict";l.d(t,{W:()=>c});var a=l(21102),r=l(33940),i=l(47460),n=l(15065),s=l(71535),o=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:v,progressClassName:p,progressBarClassName:x}=e;if((0,r.g)(t))return"--";let g=l===d.PrecipType.SNOW?i.D:n.Y;return(0,a.jsxs)(a.Fragment,{children:[("text"===u||"both"===u)&&(0,a.jsxs)("span",{className:(0,s.cn)(m,v),children:[c&&(0,a.jsx)(g,{className:(0,s.cn)("size-4",h)}),(0,a.jsx)(o.N,{value:t,className:"align-middle"})]}),("progress"===u||"both"===u)&&(0,a.jsxs)("div",{className:(0,s.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",m,p),children:[(0,a.jsx)("div",{className:(0,s.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)(g,{className:(0,s.cn)("size-3.25",h)}),(0,a.jsx)(o.N,{value:t,className:"text-sm"})]})]})]})}},18637:(e,t,l)=>{"use strict";l.d(t,{A:()=>ee});var a=l(21102),r=l(42494),i=l(57809),n=l(85422),s=l(73017),o=l(80381),d=l(26464),c=l(2092),u=l(99721),m=l(9225),h=l(33940),v=l(35943),p=l(66188);let x=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),g=r.forwardRef((e,t)=>(0,a.jsx)(p.h,{ref:t,icon:x,...e}));g.displayName="RainSnowWinteryMix";var f=l(47460),y=l(15065);let b=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(p.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:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),k=r.forwardRef((e,t)=>(0,a.jsx)(p.h,{ref:t,icon:A,...e}));k.displayName="CloudCover";var S=l(22150);let I=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),M=r.forwardRef((e,t)=>(0,a.jsx)(p.h,{ref:t,icon:I,...e}));M.displayName="WindGust";var R=l(49709),_=l(43874);let P=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(p.h,{ref:t,icon:P,...e}));E.displayName="Moonrise";let L=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),D=r.forwardRef((e,t)=>(0,a.jsx)(p.h,{ref:t,icon:L,...e}));D.displayName="Foggy";var F=l(70825),B=l(80387),V=l(59781),z=l(90267),H=l(85409),W=l(43673),U=l(48015),O=l(6685),Q=l(75603),q=l(43637),G=l(8765),Z=l(78117),Y=l(91851);let $=e=>!(0,h.g)(e)||null,X={derive:e=>{let{precipType:t}=e;return"precip"===t?g:"snow"===t?f.D:y.Y}},K={temperatureFeelsLike:{label:(e,t)=>{let{t:l}=t;return l("feelsLike")},icon:w,value:e=>{let{temperatureFeelsLike:t}=e;return $(t)&&(0,a.jsx)(H.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:i}=t,n=(0,z.xP)(i);return $(l)&&(0,a.jsx)(W.Z,{className:"whitespace-nowrap",windSpeed:l,windDirectionCardinal:r,units:n.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("chanceOf".concat((0,v.Z)(null!=l?l:"")))},icon:X,value:e=>{let{precipChance:t}=e;return $(t)&&(0,a.jsx)(U.N,{value:t})}},relativeHumidity:{label:(e,t)=>{let{t:l}=t;return l("humidity")},icon:N.K,value:e=>{let{relativeHumidity:t}=e;return $(t)&&(0,a.jsx)(U.N,{value:t})}},pressureMeanSeaLevel:{label:(e,t)=>{let{t:l}=t;return l("pressure")},icon:C.S,value:e=>{let{pressureMeanSeaLevel:t}=e;return $(t)&&(0,a.jsx)(O.S,{pressureMeanSeaLevel:t})}},visibility:{label:(e,t)=>{let{t:l}=t;return l("visibility")},icon:F.S,value:(e,t)=>{let{visibility:l}=e,{unitName:r}=t;return $(l)&&(0,a.jsx)(Q.b,{visibility:l,units:(0,z.xP)(r).code})}},uvIndex:{label:(e,t)=>{let{t:l}=t;return l("uvIndex")},icon:T.o,value:e=>{let{uvIndex:t}=e;return $(t)&&(0,a.jsx)(q.M,{uvIndex:t})}},cloudCover:{label:(e,t)=>{let{t:l}=t;return l("cloudCover")},icon:k,value:e=>{let{cloudCover:t}=e;return $(t)&&(0,a.jsx)(U.N,{value:t})}},accumulation:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("".concat(l,"Amount"))},icon:X,value:(e,t)=>{let{qpf:l,qpfSnow:r,precipType:i}=e,{unitName:n}=t;return $(l)||$(r)?(0,a.jsx)(G.e,{precipType:i,qpf:l,qpfSnow:r,units:(0,z.xP)(n).code}):null}},temperatureDewPoint:{label:(e,t)=>{let{t:l}=t;return l("dewPoint")},icon:S.$,value:e=>{let{temperatureDewPoint:t}=e;return $(t)&&(0,a.jsx)(H.B,{value:t})}},windGust:{label:(e,t)=>{let{t:l}=t;return l("windGust")},icon:M,value:(e,t)=>{let{windGust:l}=e,{unitName:r}=t;return(0,a.jsx)(W.Z,{windSpeed:null!=l?l:void 0,units:(0,z.xP)(r).code})}},sunrise:{label:(e,t)=>{let{t:l}=t;return l("sunrise")},icon:R.m,value:(e,t)=>{let{sunriseTimeLocal:l}=e,{locale:a}=t;return l?(0,B.P)({date:(0,V.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,B.P)({date:(0,V.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,B.P)({date:(0,V.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,B.P)({date:(0,V.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 $(t)&&t}},airQuality:{label:(e,t)=>{let{t:l}=t;return l("airQuality")},icon:D,value:e=>{let{airQualityIndex:t,airQualityCategory:l}=e;return $(t)&&(0,a.jsx)(Z.y,{airQualityIndex:t,airQualityCategory:l})}}},J=(0,n.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:n,columns:h,children:v}=e,{small:p=2,medium:x=3,large:g=4}="object"==typeof h?h||{}:{small:h,medium:h,large:h},[f,y]=(0,u.r)(e=>e>=m.c["@xl"]?g:e>=m.c["@xs"]?x:p),b=f||x,w=(0,s.c)("DetailsTable"),j={unitName:(0,i.md)(c.Yt),t:w,locale:n},N=0;return(0,a.jsx)(o.Zp,{ref:y,className:"border-2xl @container/detailsTable h-full bg-gray-100 p-0",children:(0,a.jsxs)(o.Wu,{className:"px-4 py-4 @xl/detailsTable:px-6",children:[v&&(0,a.jsx)("div",{children:v}),(0,a.jsx)("ul",{className:J({cols:b}),children:l.map((e,i)=>{let n,s=K[e],o=null==s?void 0:s.value(t,j);if(!s||!o)return N++,null;let c="derive"in s.icon?s.icon.derive(t,j):s.icon,u="function"==typeof s.label?s.label(t,j):s.label,m=l.length-N,h=i-N,v=m%b;if(h===m-1&&0!==v){let e=b-v+1;n={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:n,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 o?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:o})]})]})]},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:i=a.ForecastDuration.FIVE_DAY,cscCountryCode:n}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(i),query:{geocode:t,units:l,language:r,cscCountryCode:n||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getDailyCognitiveHealthForecastUrlConfig=function(e){let{geocode:t,language:l,conditionType:r,duration:i=a.ForecastDuration.FIVE_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(i,"/cognitiveHealth"),query:{geocode:t,language:l,conditionType:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:r,duration:i=a.HourlyForecastDuration.TWO_DAY,cscCountryCode:n}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(i),query:{geocode:t,units:l,language:r,cscCountryCode:n||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:()=>i});var a=l(21102);l(42494);let r=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=r},20116:(e,t,l)=>{"use strict";l.d(t,{c:()=>o});var a=l(42494),r=l(59103),i=l(34679),n=l(14296),s=l(12474);let o=()=>{let e=(0,r.N)(),t=(0,s.A)(),l=(0,i.usePathname)();return(0,a.useCallback)(a=>{var r,i,s,o,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(i=window.mParticle)||null==(r=i.isInitialized)?void 0:r.call(i)))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,n.EY)(l):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.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])}},20212:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefAdminBlock:()=>i,default:()=>n});var a=l(21102);l(42494);var r=l(68858);let i=()=>(0,a.jsx)(r.default,{name:"MorningBrief"}),n=i},22150:(e,t,l)=>{"use strict";l.d(t,{$:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="DewPoint"},23141:(e,t,l)=>{"use strict";t.m=i;let a=l(56438),r=l(40919);async function i(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}}),i=await fetch(l,{headers:{"Accept-Encoding":"gzip","Accept-Language":t},next:{revalidate:300,tags:["content-by-asset-".concat(e)]}});return await (0,r.handleFetchResponse)(i)||[]}},23394:(e,t,l)=>{"use strict";l.d(t,{RK:()=>n,VJ:()=>r,X0:()=>s});var a=l(85422);let r=[1,2,3,4,5],i={1:"1 Column",2:"2 Columns",3:"3 Columns",4:"4 Columns",5:"5 Columns"};r.map(e=>({label:i[e],value:String(e)}));let n=e=>({1:[1],2:[1,2],3:[1,3],4:[1,2,4],5:[1,5],6:[1,2,3],7:[1,2,4],8:[1,2,4],9:[1,3],10:[1,2,5]})[e]||[1,2],s=(0,a.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"}]})},24415:(e,t,l)=>{"use strict";l.d(t,{S:()=>P});var a=l(21102),r=l(94456),i=l(34961),n=l(42494),s=l(66188);let o=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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=n.forwardRef((e,t)=>(0,a.jsx)(s.h,{ref:t,icon:o,...e}));d.displayName="VideoPlayer";let c=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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=n.forwardRef((e,t)=>(0,a.jsx)(s.h,{ref:t,icon:c,...e}));u.displayName="PlayFilledAlt";var m=l(20423),h=l(71535),v=l(26464);let p=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 g=(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"}}),f=(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:i="square",overlayGradient:n,partnerLogo:s,className:o,layout:d,hoverEffect:c,isFetchPriority:u}=e;return(0,a.jsxs)("div",{className:(0,h.cn)("relative overflow-hidden",f({hoverEffect:c}),"overlay"===d&&"w-full","row"===d&&"w-[50%] max-w-[320px] min-w-30",o),children:[(0,a.jsx)(r.Ay,{src:t,alt:l,aspectRatio:i,className:(0,h.cn)("scale-[1.01]",y({hoverEffect:c})),sizes:"auto",isFetchPriority:u}),(s||n)&&(0,a.jsx)("div",{className:C({overlayGradient:n})}),s&&(0,a.jsx)(r.Ay,{src:s.src,alt:s.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",s.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 k=e=>{let{title:t,className:l,responsive:r,textSize:i="md",inverse:n=!1,lineClamp:s}=e;return(0,a.jsx)(v.EY,{elementType:"h2",variant:b[i],color:n?"inverse":void 0,responsive:r,className:(0,h.cn)(N({textSize:i}),l),lineClamp:s,children:t})};k.displayName="MediaObject.Title";let S=e=>{let{description:t,className:l,responsive:r,textSize:i="md",inverse:n=!1,lineClamp:s}=e;return(0,a.jsx)(v.EY,{elementType:"p",variant:w[i],color:n?"inverse":"secondary",responsive:r,className:(0,h.cn)("mb-2",l),lineClamp:s,children:t})};S.displayName="MediaObject.Description";let I={sm:"md",md:"md",lg:"lg",xl:"lg"},M=e=>{let{duration:t,className:l,responsive:r,textSize:i="md",iconSize:n,inverse:s=!1}=e;return(0,a.jsxs)("div",{className:(0,h.cn)("flex items-center gap-1",l),children:[(0,a.jsx)(d,{size:n||I[i],className:(0,h.cn)(s&&"text-white")}),(0,a.jsx)(v.EY,{variant:j[i],color:s?"inverse":void 0,responsive:r,children:p(t)})]})};M.displayName="MediaObject.Duration";let R=e=>{let{text:t,variant:l,duration:r,className:n,inverse:s=!1,size:o="sm"}=e;return(0,a.jsxs)("div",{className:(0,h.cn)("@container/button flex items-center gap-3",n),children:[(0,a.jsx)(i.$n,{asChild:!0,variant:l,size:o,children:(0,a.jsxs)("span",{children:[r&&(0,a.jsx)(u,{className:"mr-2",size:"sm",color:s?void 0:"inverse"}),t]})}),r&&(0,a.jsx)(v.EY,{className:"ml-2 hidden @[180px]/button:inline",elementType:"span",variant:"Body.M",color:s?"inverse":void 0,children:p(r)})]})};R.displayName="MediaObject.Button";let _=e=>{let t,{children:l,url:r,target:i,onClick:n,className:s,thumbnail:o,altText:d,aspectRatio:c="square",partnerLogo:u,overlayGradient:v,title:p,description:x,duration:f,button:y,responsive:b,isFetchPriority:w,lineClamp:j,textSize:N,layout:C="column",hoverEffect:I,padding:_}=e,P=(0,h.cn)(g({layout:C,hoverEffect:I,padding:_}),s);if(l)t=l;else{let e=!!(p||x||f||y),l="overlay"===C;t=(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)(T,{src:o,alt:d,aspectRatio:c,overlayGradient:l?"full":v,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:[p&&(0,a.jsx)(k,{title:p,textSize:N,responsive:b,inverse:l,lineClamp:j}),x&&(0,a.jsx)(S,{description:x,textSize:N,responsive:b,inverse:l,lineClamp:j}),y?(0,a.jsx)(R,{text:y.text,duration:f,inverse:l,variant:y.variant||(l?"secondary":void 0)}):f?(0,a.jsx)(M,{duration:f,textSize:N,responsive:b,inverse:l}):null]})]})}return r?(0,a.jsx)(m.default,{className:P,href:r,target:i,children:t}):(0,a.jsx)("button",{className:(0,h.cn)("cursor-pointer text-left",P),onClick:n,children:t})};_.displayName="MediaObject";let P=Object.assign(_,{Image:T,Content:A,Title:k,Description:S,Duration:M,Button:R})},24505:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>x,default:()=>f});var a=l(21102),r=l(42494),i=l(89131),n=l(71535),s=l(88737),o=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"]),v=e=>h.has(e),p=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(v(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,o.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)(g,{...e,adId:r})},g=e=>{let{adId:t,variant:l="banner",title:o=null,titleAlignment:d="right",height:c="120px",className:u="",sticky:m=!1}=e,[h,x]=(0,r.useState)({loaded:!1,height:c,displayAd:!1}),[g,f]=(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&&!g,C=(0,r.useMemo)(()=>p(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}))}},[]),k=(0,r.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);x(e=>({...e,displayAd:t}))},[]),S=(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(k),l=new MutationObserver(S);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()}},[k,t,c,A,S]),(0,r.useEffect)(()=>{v(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 i=r.find(e=>{var t;return(null==e||null==(t=e.config)?void 0:t.pos)==="mw_adhd1"});if(!(null==i?void 0:i.slot))return!1;let n=null==(t=(l=i.slot).getHtml)?void 0:t.call(l);return null!=(a=null==n?void 0:n.includes('
'))&&a}catch(e){return!1}})()&&(f(!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)(i.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:o,titleAlignment:d,height:c,className:u},state:{loaded:h.loaded,height:h.height,displayAd:h.displayAd,isIMAdDetected:g},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,n.cn)(C,u),children:[o&&h.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(d),children:o}),"WX_PromoDriver1"===t&&!o&&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)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},f=x},24682:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesAdminBlock:()=>r,default:()=>i});var a=l(21102);l(42494);let r=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),i=r},25090:(e,t,l)=>{"use strict";l.d(t,{j:()=>r,w:()=>i});var a=l(37811);let r=e=>{var t,l,r,i;let n,s=null==(t=null!=(l=a.env.VERCEL_TARGET_ENV)?l:"production")?void 0:t.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==s&&a.env.VERCEL_TARGET_ENV_URL;let o=null!=(r=a.env.VERCEL_BRANCH_URL)?r:"wx-next-web-git-main.vercel.weather.com",d=null!=(i=a.env.VERCEL_TARGET_ENV_URL)?i:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":n="https://".concat(o);break;case"development":n=c?"http://".concat(d):"https://".concat(d);break;default:n="https://".concat(d)}return e?new URL(e,n).toString():n},i=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",i=null!=(l=a.env.VERCEL_PROJECT_PRODUCTION_URL)?l:"wxnext.weather.com",n="https://".concat(null!=r?r:i);return e?new URL(e,n).toString():n}},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";l.r(t),l.d(t,{AirQualityIndexAdminBlock:()=>i,default:()=>n});var a=l(21102);l(42494);var r=l(68858);let i=()=>(0,a.jsx)(r.default,{name:"AirQualityIndex"}),n=i},25430:(e,t)=>{"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:i,locId:n}=e;return"".concat("/weather/alerts/localalerts/l/".concat(n),"?phenomena=").concat(t,"&significance=").concat(l,"&areaid=").concat(a,"&office=").concat(r,"&etn=").concat(i)}},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})},27558:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlueskyAdminBlock:()=>o,default:()=>d});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858);let o=()=>{let[e,t]=(0,i.kV6)(),l=(0,n.r)(e,!0),[o,d]=(0,r.useState)({blueskyURL:null==l?void 0:l.blueskyURL,postId:null==l?void 0:l.postId});return(0,r.useEffect)(()=>{d({blueskyURL:null==l?void 0:l.blueskyURL,postId:null==l?void 0:l.postId})},[null==l?void 0:l.blueskyURL,null==l?void 0:l.postId]),(0,a.jsxs)(s.default,{name:"Bluesky",children:[(0,a.jsx)("h4",{children:(()=>{switch(null==l?void 0:l.entryMethod){case"url":return o.blueskyURL;case"id":return"Post ID: ".concat(o.postId);default:return"No Bluesky post specified"}})()}),(0,a.jsx)("div",{style:{paddingTop:".3rem"},children:(0,a.jsx)(i.OcR,{label:"Show Thread",name:"showThread",checked:null==l?void 0:l.showThread,readOnly:!0,onToggle:e=>{t({type:"UPDATE",path:"showThread",value:!e})}})})]})},d=o},29445:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HourlyForecastBlock:()=>ec,default:()=>eu});var a=l(21102),r=l(42494),i=l(73017),n=l(59946),s=l(10229),o=l(14527),d=l(83037),c=l(57809),u=l(2092),m=l(90267),h=l(34679),v=l(26464),p=l(34961),x=l(20423),g=l(64566),f=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),k=l(38915);let S=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","airQuality","relativeHumidity","windGust"],I=e=>{let{text:t}=e;return(0,a.jsx)(v.Ay,{variant:"Caption.M",color:"secondary",className:"mb-1 font-bold @max-md/hourItem:hidden",children:t})},M=e=>{let{forecast:t,timeZone:l,locale:r,itemIndex:n,longPhraseInSet:s}=e,o=(0,i.c)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),p=0===n;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)(v.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)(v.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)(k.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)(v.Ay,{variant:"Body.M",className:(0,C.cn)("pl-1.5 @max-2xl/hourItem:hidden",s?"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:[p&&(0,a.jsx)(I,{text:o("humidity")}),(0,a.jsx)(v.Ay,{children:(0,a.jsx)(j.N,{value:t.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[p&&(0,a.jsx)(I,{text:o("wind")}),(0,a.jsx)(v.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:[p&&(0,a.jsx)(I,{text:o("precipitation")}),(0,a.jsx)(v.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)(f.A,{dataPoints:t,fields:S,locale:r})})]})};var R=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)(R.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),D=l(49820),F=l(87403),B=l(66188);let V=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),z=r.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:V,...e}));z.displayName="SunnyDay";let H=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(B.h,{ref:t,icon:H,...e}));W.displayName="Cloudy";let U=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),O=r.forwardRef((e,t)=>(0,a.jsx)(B.h,{ref:t,icon:U,...e}));O.displayName="RainHeavy";let Q=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(B.h,{ref:t,icon:Q,...e}));q.displayName="ClearNight";let G=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(B.h,{ref:t,icon:G,...e}));Z.displayName="FairMostlyClearDay";var Y=l(97889);let $=e=>{let{insightHeadline:t,insightTextLong:l,className:r,headlineClass:i,textClass:n,background:s,weatherMode:o}=e;if(!t&&!l)return null;let d="";return o&&(d="severe"===o?"warning":"watch"),(0,a.jsxs)("div",{className:(0,C.cn)("nowrap flex items-center px-6.5 py-4",r,s&&"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)(v.Ay,{elementType:"h2",variant:"Body.M",className:(0,C.cn)("mb-2.5 text-base font-medium text-gray-500",i),children:t}):null,l?(0,a.jsx)(v.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]",n),children:l}):null]})]})};var X=l(76589),K=l(42013);let J={up:D.D,down:F.y,sun:z,cloud:W,rain:O,clear:z,"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)($,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:r}):null},et=e=>{let{location:t,hourlyForecast:l,isLoading:n,error:s,locale:o,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:f,insightIcon:y,showPrecipIntensity:b,simplifiedVersion:w}=e,j=(0,i.c)("HourlyForecast"),[C,T]=(0,r.useState)(!1),A=y&&J[y];return(0,a.jsxs)(g.Zp,{"aria-label":j("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,a.jsx)(g.aR,{text:j("hourlyWeather")}),(0,a.jsxs)(g.Wu,{className:"p-0",children:[n?(0,a.jsx)(R.A,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):f?(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)(v.Ay,{variant:"Body.S.Bold",color:"brandLight",children:f})]}):"",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:o}),(0,a.jsx)("div",{className:"px-4 py-2",children:(0,a.jsx)(X.A,{location:t,onlyChart:!0})})]}),(()=>{var e,i;if(s)return(0,a.jsx)(v.Ay,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:(null==s?void 0:s.message)||j("errorMsg")});let h=null!=(i=null==(e=l[0])?void 0:e.validTimeLocal)?i: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:n?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(_,{skeletonColumns:w?4:76})}):l.map((e,i)=>{var n;return!C&&e.wxPhraseLong.length>15&&T(!0),(0,a.jsxs)(r.Fragment,{children:[d&&(0===i||e.dayOfWeek!==((null==(n=l[i-1])?void 0:n.dayOfWeek)||""))&&(0,a.jsx)(v.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:i}=(0,P.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",day:"numeric",month:"long",timeZone:i}).format(r)})({date:e.validTimeLocal,locale:o,timeZone:(null==t?void 0:t.ianaTimeZone)||""})}),(0,a.jsx)(M,{itemIndex:i,forecast:e,timeZone:(null==t?void 0:t.ianaTimeZone)||"",locale:o,longPhraseInSet:C})]},e.validTimeLocal)})},h),u&&m&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(p.$n,{asChild:!0,children:(0,a.jsx)(x.default,{href:u,children:m})})})]})})()]})]})};var el=l(21125),ea=l(66757),er=l(82915);let ei=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],en=Math.floor(Math.random()*ei.length),es=e=>{var t,l;let{location:v,simplifiedVersion:p,initializing:x,initialError:g}=e,f=(0,h.useParams)(),y=(0,i.c)("HourlyForecast"),{effectiveLocation:b,isLocationLoading:w}=(0,d.s)({location:v}),j=(0,c.md)(u.Yt),N=null==(t=(0,m.xP)(j))?void 0:t.code,C=p?o.HourlyForecastDuration.ONE_DAY:o.HourlyForecastDuration.THREE_DAY,T=null==(l=(0,h.useParams)())?void 0:l.locale,{data:A=[],error:k,isLoading:S}=(0,n.Ay)(b?["get-hourly-forecast",b.geocode,N,C,T]:null,e=>{let[t,l,a,r,i]=e;return(0,s.eH)({geocode:l,units:a,duration:r,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),I=(0,r.useMemo)(()=>p?A.slice(0,4):A,[A,p]),{insight:M,insightIcon:R}=((e,t)=>{var l;let a=(0,c.md)(u.Yt),i=null==(l=(0,m.xP)(a))?void 0:l.code,{data:s,isLoading:d}=(0,er.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:L.InsightType.ALL,locale:t}),h=(0,r.useMemo)(()=>null==s?void 0:s.reduce((e,t)=>(e[t.insightType]=t,e),{}),[s]),{data:v=[],isLoading:p}=(0,n.Ay)(e?["get-daily-forecast",e.geocode,o.ForecastDuration.THREE_DAY,i,t]:null,e=>{let[t,l,a,r,i]=e;return(0,ea.v1)({geocode:l,units:r,duration:a,language:i})},{revalidateOnFocus:!1,dedupingInterval:6e5}),x=d||p,g=v[0],f=(0,r.useMemo)(()=>{var e,t,l,a,r,i;if(x)return"";let n=null==h||null==(t=h.significantWeatherTodayInsight)||null==(e=t.insightText)?void 0:e[0];if(n)return n;let s=null==g||null==(a=g.daypart)||null==(l=a[0])?void 0:l.narrative;if(s)return s.split(".")[0];let o=ei[en]||ei[0];return(null==h||null==(i=h[o])||null==(r=i.insightText)?void 0:r[0])||""},[x,h,null==g?void 0:g.daypart]);return(0,r.useMemo)(()=>{let e=(0,el.B)(f,[" ","."]),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}},[f])})(b,T),_=x||S||w||!(null==I?void 0:I.length),P=p?"/weather/hourbyhour/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId)):"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==f?void 0:f.locId));return(0,a.jsx)(et,{location:b,hourlyForecast:I,locale:T,isLoading:_,error:g||k,showDayLabel:!p,canToggleMultipleItems:!p,ctaLink:P,ctaText:y(p?"next48":"10DayWeather"),enableAlertHeadlines:!p,insight:M,insightIcon:R,showPrecipIntensity:!p,simplifiedVersion:p})};var eo=l(71458),ed=l(59432);let ec=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:r}=e,i="specified"===t,{specifiedLocationData:n,specifiedLocationError:s,isSpecifiedLocationLoading:o}=(0,ed.v)(i?l:null),d=i&&n&&l?(0,eo.I)(n):void 0;return(0,a.jsx)(es,{location:d,simplifiedVersion:null!=r&&r,initializing:i&&o,initialError:i?s:void 0})},eu=ec},29900:(e,t,l)=>{"use strict";l.d(t,{A:()=>c,L:()=>o});var a=l(21102),r=l(42494),i=l(71535);let n={"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"},s={blue:"fill-brand-300",white:"fill-white"},o=e=>{let{position:t="bottom-right",color:l="blue",className:o="",linksClassName:c="",stack:u=!1}=e,[m,h]=(0,r.useState)(!1);return(0,a.jsxs)("div",{className:(0,i.cn)("absolute flex items-start gap-1",n[t],o),children:[(0,a.jsx)("div",{className:"flex items-center","data-testid":"MapboxAttribution",children:(0,a.jsx)("button",{type:"button",className:(0,i.cn)("cursor-pointer p-0",s[l]),onClick:()=>{h(e=>!e)},"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,a.jsx)(d,{})})},"logo"),(0,a.jsxs)("div",{className:(0,i.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)(o)},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)},31458:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterAdminBlock:()=>o,default:()=>d});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858);let o=()=>{let[e,t]=(0,i.kV6)(),l=(0,n.r)(e,!0),[o,d]=(0,r.useState)({tweetURL:null==l?void 0:l.tweetURL,tweetId:null==l?void 0:l.tweetId});return(0,r.useEffect)(()=>{d({tweetURL:null==l?void 0:l.tweetURL,tweetId:null==l?void 0:l.tweetId})},[null==l?void 0:l.tweetURL,null==l?void 0:l.tweetId]),(0,a.jsxs)(s.default,{name:"Twitter",children:[(0,a.jsx)("h4",{children:(()=>{switch(null==l?void 0:l.entryMethod){case"url":return o.tweetURL;case"id":return"Tweet ID: ".concat(o.tweetId);default:return"No tweet specified"}})()}),(0,a.jsx)("div",{style:{paddingTop:".3rem"},children:(0,a.jsx)(i.OcR,{label:"Show Thread",name:"showThread",checked:null==l?void 0:l.showThread,readOnly:!0,onToggle:e=>{t({type:"UPDATE",path:"showThread",value:!e})}})})]})},d=o},31501:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>em,default:()=>eh});var a=l(21102),r=l(42494),i=l(59946),n=l(83037),s=l(51135),o=l(66757),d=l(14527),c=l(89131),u=l(57809),m=l(2092),h=l(90267),v=l(34679),p=l(9959),x=l(59488),g=l(89575),f=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:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),k=r.forwardRef((e,t)=>(0,a.jsx)(T.h,{ref:t,icon:A,...e}));k.displayName="AirQuality";var S=l(22150),I=l(41593),M=l(58239),R=l(49709),_=l(43874),P=l(43673),E=l(48015),L=l(78117),D=l(6685),F=l(85409),B=l(43637),V=l(75603),z=l(80387),H=l(59781);let W=e=>{let{sunLocalTime:t,locale:l}=e;return(0,a.jsx)("span",{children:t?(0,z.P)({date:(0,H.r)(t),timeZone:"Etc/GMT",locale:l,minutes:!0}):"--"})};var U=l(91851);let O={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:i}=e,n=(0,y.c)("CurrentDetails"),s=(0,y.c)("DetailsTable"),o=(0,v.useParams)(),d=null==o?void 0:o.locale,c=(0,u.md)(m.Yt),p=null==(t=(0,h.xP)(c))?void 0:t.code,x=(0,r.useMemo)(()=>(e=>{let{data:t,t:l,unitCode:r,locale:i}=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:k,label:l("airQuality"),content:(0,a.jsx)(L.y,{airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory})},{Icon:S.$,label:l("dewPoint"),content:(0,a.jsx)(F.B,{value:t.temperatureDewPoint})},{Icon:I.S,label:l("pressure"),content:(0,a.jsx)(D.S,{pressureAltimeter:t.pressureAltimeter,pressureTendencyCode:t.pressureTendencyCode,units:r})},{Icon:M.o,label:l("uvIndex"),content:(0,a.jsx)(B.M,{uvIndex:t.uvIndex})},{Icon:j.S,label:l("visibility"),content:(0,a.jsx)(V.b,{visibility:t.visibility,units:r})},{Icon:e=>(0,a.jsx)(U.r,{...e,moonPhaseCode:t.moonPhaseCode}),label:l("moonPhase"),content:t.moonPhase},{Icon:R.m,label:l("sunrise"),content:(0,a.jsx)(W,{sunLocalTime:t.sunriseTimeLocal,locale:i})},{Icon:_.d,label:l("sunset"),content:(0,a.jsx)(W,{sunLocalTime:t.sunsetTimeLocal,locale:i})}]})({data:i||!l?O:l,t:s,unitCode:p,locale:d}),[i,l,s,d,p]),g=(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:n}=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:i||!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:n})]},r)})})});return(0,a.jsx)(w.Zp,{"aria-label":n("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:g})})};var q=l(8501),G=l(71535);let Z=e=>{let{children:t,direction:l="horizontal",height:i,width:n,textVariant:s="Display.L",textColor:o="inverse",translateDistance:d,transitionDuration:c="500ms",className:u,transitionClassName:m,isLoading:h,skeletonClassName:v}=e,[p,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{p||h||setTimeout(()=>{x(!0)},0)},[p,h]);let g="horizontal"===l?"translateX":"translateY";return(0,a.jsx)(b.Ay,{isLoading:h,skeletonClassName:v,elementType:"div",className:(0,G.cn)("w-max overflow-hidden",u),variant:s,color:o,style:{height:i,width:n},children:(0,a.jsx)("span",{className:(0,G.cn)("transform: flex transition-transform",m),style:{transitionDuration:c,flexDirection:"horizontal"===l?"row":"column",transform:p?"".concat(g,"(-").concat(d,")"):"".concat(g,"(0px)")},children:t})})};var Y=l(38915);let $="https://s.w-x.co/WeatherImages_Web/WeatherImage_",X=[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 X.reduce((t,l)=>Math.abs(l-e){let{location:t,weatherData:l,forecastData:r,isLoading:i,error:n}=e;return n?(0,a.jsx)(ei,{error:n}):(0,a.jsx)(er,{isLoading:i,location:t,weatherData:l,forecastData:r})},er=e=>{let{isLoading:t,location:l,weatherData:r,forecastData:i}=e,n=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]:{},i={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($).concat(a.name,".jpg");let i=!!r&&0===l&&((e,t)=>{let l=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(t)-l+1)+l)})(1,r),n="";return i?n="_".concat(i):l&&(n="_".concat(l)),"".concat($).concat(a.name,"-").concat(t).concat(n,".jpg")}({iconCode:e,dayPart:t,variant:l}),width:el({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return r&&(i.saturation=-100),(0,ee.default)(i)}({iconCode:null==r?void 0:r.iconCode,dayPart:(null==r?void 0:r.dayOrNight)==="D"?"day":"night"}),s=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")(n),o=(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(s,")"),backgroundImage:t?"":"url(".concat(n,")")},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:o("now")}),(0,a.jsx)(F.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+2:null}),(0,a.jsx)(F.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)(F.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:[o("feelsLike")," ",(0,a.jsx)(F.B,{value:null==r?void 0:r.temperatureFeelsLike})," \xb7"," ",o("dayTempLabel")," ",(0,a.jsx)(F.B,{value:null==i?void 0:i.temperatureMax})," \xb7"," ",o("nightTempLabel")," ",(0,a.jsx)(F.B,{value:null==i?void 0:i.temperatureMin})]}),(0,a.jsx)(q.A,{location:l,showSubheadline:!0,className:"mt-4",headlineClassName:"normal-case"})]})})})})})},ei=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 en=l(59809);let es=e=>{let{location:t}=e,l=(0,y.c)("CurrentConditions"),r=(0,en.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)||""})})},eo=e=>{let{location:t,weatherData:l,forecastData:r,isCurrentConditionsLoading:i,currentConditionsError:n,currentDetails:s,isCurrentDetailsLoading:o}=e;return(0,a.jsxs)("div",{"aria-label":"CurrentConditionsDetailsView",children:[(0,a.jsx)(es,{location:t}),(0,a.jsx)(ea,{location:t,weatherData:l,forecastData:r,isLoading:i,error:n}),(0,a.jsx)(Q,{currentDetails:s,isLoading:o})]})},ed=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:y,locationError:b}=(0,n.s)({location:t}),{weatherData:w,forecastData:j,isLoading:N,error:C}=function(e){var t,l,a,r,n;let c=(0,v.useParams)(),p=null==c?void 0:c.locale,x=(0,u.md)(m.Yt),g=null==(t=(0,h.xP)(x))?void 0:t.code,{data:f,error:y,isLoading:b}=(0,i.Ay)(e?["observations",e.geocode,g]:null,e=>{let[t,l,a]=e;return(0,s.z)({geocode:l,units:a,language:p})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:w,error:j,isLoading:N}=(0,i.Ay)(e?["daily-forecast",e.geocode,g]:null,t=>{let[l,a,r]=t;return e?(0,o.v1)({geocode:a,units:r,language:p}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),C=f?{temperature:f.temperature,temperatureFeelsLike:f.temperatureFeelsLike,wxPhraseLong:f.wxPhraseLong,iconName:d.ICON_CODE_MAP[f.iconCode]||"na",iconCode:f.iconCode,validTimeLocal:f.validTimeLocal,relativeHumidity:f.relativeHumidity,windSpeed:f.windSpeed,windDirectionCardinal:f.windDirectionCardinal,dayOrNight:f.dayOrNight}:void 0,T=w&&w.length>0?{temperatureMax:null!=(r=null==(l=w[0])?void 0:l.calendarDayTemperatureMax)?r:0,temperatureMin:null!=(n=null==(a=w[0])?void 0:a.calendarDayTemperatureMin)?n:0}:void 0;return{weatherData:C,forecastData:T,isLoading:b||!f||N||!w,error:y||j}}(l),T=N||y,A=C||b,{currentDetails:k,loading:S}=(e=>{var t,l,a,n;let c=(0,u.md)(m.Yt),y=null==(t=(0,h.xP)(c))?void 0:t.code,b=null==(l=(0,v.useParams)())?void 0:l.locale,w=(0,p.A)(),{data:j,error:N,isLoading:C}=(0,i.Ay)(e?["get-current-observations",e.geocode,y,b]:null,e=>{let[t,l,a,r]=e;return(0,s.z)({geocode:l,units:a,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:T,error:A,isLoading:k}=(0,i.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,i,n]=e;return(0,o.v1)({geocode:l,units:r,language:i,duration:a,cscCountryCode:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),S=(null==b||null==(n=b.split)||null==(a=n.call(b,"-"))?void 0:a[1])||"US",{data:I,error:M,isLoading:R}=(0,i.Ay)(e?["getHourlyAirQualityForecast",e.geocode]:null,t=>{let[l,a]=t;return e?(0,x.getHourlyAirQualityForecast)({geocode:a,language:b,scale:(0,g.o)({countryCode:S}),duration:f.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||k||R,error:N||A||M}})(l),I=y||S||!k||!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)(eo,{location:l,isCurrentConditionsLoading:T,currentConditionsError:A,weatherData:w,forecastData:j,isCurrentDetailsLoading:I,currentDetails:k})]})};var ec=l(59432),eu=l(71458);let em=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:i,specifiedLocationError:n,isSpecifiedLocationLoading:s}=(0,ec.v)(r?l:null);return r&&s?(0,a.jsx)("div",{children:"Loading location data..."}):r&&n?(0,a.jsxs)("div",{children:["Error loading location data: ",n.message]}):r&&i&&l?(0,a.jsx)(ed,{location:(0,eu.I)(i)}):r?null:(0,a.jsx)(ed,{})},eh=ed},31639:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TikTokAdminBlock:()=>d,default:()=>c});var a=l(21102);l(42494);var r=l(56692),i=l(68842),n=l(68858),s=l(2346);let o=e=>{let{url:t=""}=e,l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";for(let t of[/tiktok\.com\/@[\w.-]+\/video\/(\d+)/,/tiktok\.com\/v\/(\d+)/,/vm\.tiktok\.com\/([\w-]+)/,/m\.tiktok\.com\/v\/(\d+)/]){let l=null==e?void 0:e.match(t);if(l&&l[1])return l[1]}return null}(t);return l||t.includes("tiktok.com")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,a.jsx)("div",{className:"flex w-full max-w-[605px] items-center justify-center",children:(0,a.jsx)("blockquote",{className:"tiktok-embed",cite:t,"data-video-id":l||void 0,style:{maxWidth:"605px",minWidth:"325px"},children:(0,a.jsx)("section",{children:(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",title:"TikTok Video",href:t,children:"View on TikTok"})})})})]}):null},d=()=>{let[e]=(0,r.kV6)(),t=(0,i.r)(e,!0);return(0,a.jsxs)(n.default,{name:"TikTok",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Video URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:(null==t?void 0:t.url)||"Not provided"})]}),(0,a.jsx)(o,{url:null==t?void 0:t.url})]})},c=d},32123:(e,t,l)=>{"use strict";t.K=n;let a=l(95383),r=l(56438),i=l(40919);async function n(e){let t=(0,a.getPollenDaypartUrlConfig)(e),l=(0,r.urlFrom)(t),n=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,i.handleFetchResponse)(n)}},32201:(e,t,l)=>{"use strict";t.U=n;let a=l(19318),r=l(56438),i=l(40919);async function n(e){let t=(0,a.getWWIRForecastUrlConfig)(e),l=(0,r.urlFrom)(t),n=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,i.handleFetchResponse)(n)}},33176:(e,t,l)=>{"use strict";t.M=n;let a=l(56438),r=l(40919),i=l(14340);async function n(){let e=(0,i.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},35506:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonAdminBlock:()=>c,default:()=>u});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(13741),o=l(68858),d=l(20423);let c=()=>{let[e]=(0,i.kV6)(),t=(0,n.r)(e,!0),[l,c]=(0,r.useState)({label:(null==t?void 0:t.label)||"Button Label",url:(null==t?void 0:t.url)||"#",variant:(null==t?void 0:t.variant)||"bg-gray-900",inline:(null==t?void 0:t.inline)||!1,isAffiliate:(null==t?void 0:t.isAffiliate)!==!1});(0,r.useEffect)(()=>{c({label:(null==t?void 0:t.label)||"Button Label",url:(null==t?void 0:t.url)||"#",variant:(null==t?void 0:t.variant)||"bg-gray-900",inline:(null==t?void 0:t.inline)||!1,isAffiliate:(null==t?void 0:t.isAffiliate)!==!1})},[null==t?void 0:t.label,null==t?void 0:t.url,null==t?void 0:t.variant,null==t?void 0:t.inline,null==t?void 0:t.isAffiliate]);let u=l.isAffiliate?"nofollow noopener noreferrer":"noopener";return(0,a.jsxs)(o.default,{name:"Buy Button",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("span",{className:"mb-1 block text-xs",style:{color:"var(--theme-elevation-500)"},children:"Preview:"}),(0,a.jsx)("div",{className:l.inline?"inline-block":"block",children:(0,a.jsx)(d.default,{href:l.url,target:"_blank",rel:u,onClick:e=>e.preventDefault(),children:(0,a.jsx)(s.$n,{variant:(e=>"string"==typeof e&&e&&["bg-brand-200","bg-brand-300","bg-yellow-400","bg-green-600","bg-violet-500","bg-gray-900"].includes(e)?e:"bg-gray-900")(l.variant),inline:!0,className:"cursor-pointer whitespace-nowrap",children:l.label||"Button Label"})})})]}),(0,a.jsxs)("div",{className:"mt-3 text-xs",style:{color:"var(--theme-elevation-500)"},children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,a.jsx)("span",{children:"Display:"}),(0,a.jsx)("span",{className:"font-medium",children:l.inline?"Inline":"Block"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{children:"Link type:"}),(0,a.jsx)("span",{className:"font-medium",children:l.isAffiliate?"Affiliate (nofollow)":"Standard"})]})]})]})},u=c},36985:(e,t,l)=>{"use strict";t.$t=void 0,t.FA=c;let a=l(19318),r=l(56438),i=l(40919),n=l(31082),s=l(78217),o=l(14527),d=l(20015);async function c(e){let l=(0,a.getFifteenMinuteForecastUrlConfig)(e),n=(0,r.urlFrom)(l),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,i.handleFetchResponse)(s);return(0,t.$t)(o)}t.$t=(0,n.createTransformer)(e=>{var t,l,a,r,i,n,c,u,m,h,v,p,x,g,f,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!=(i=e.precipRate)?i:0,precipType:null!=(n=e.precipType)?n:s.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!=(v=e.validTimeLocal)?v:"",windDirection:null!=(p=e.windDirection)?p:0,windDirectionCardinal:(0,d.normalizeCardinal)(null!=(x=e.windDirectionCardinal)?x:o.WindDirectionCardinal.NORTH),windSpeed:null!=(g=e.windSpeed)?g:0,wxPhraseLong:null!=(f=e.wxPhraseLong)?f:"",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:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(45226),i=l(13247),n=l(13501);let s=e=>{let{slides:t=[],settings:l={},id:s}=e;if(!(0,n.J)(t))return null;let o=[];for(let e of t){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,i.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}};o.push(l)}return 0===o.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:s||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},o=s},41334:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HealthAndActivitiesAdminBlock:()=>i,default:()=>n});var a=l(21102);l(42494);var r=l(68858);let i=()=>(0,a.jsx)(r.default,{name:"HealthAndActivities"}),n=i},41593:(e,t,l)=>{"use strict";l.d(t,{S:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="Pressure"},42013:(e,t,l)=>{"use strict";l.d(t,{p:()=>n});var a=l(94977),r=l(42494),i=l(82915);let n=(e,t)=>{var l;let{data:n,isLoading:s}=(0,i.r)({geoCode:null!=(l=null==e?void 0:e.geocode)?l:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:t}),o=(0,r.useMemo)(()=>null==n?void 0:n.find(e=>{var t;return(null==e||null==(t=e.supplement)?void 0:t.precipSource)==="wwir"}),[n]);return{loadingInsight:s,insightHeadline:(null==o?void 0:o.insightHeadline[0])||"",insightTextLong:(null==o?void 0:o.insightTextLong[0])||""}}},43637:(e,t,l)=>{"use strict";l.d(t,{M:()=>n});var a=l(21102),r=l(71535),i=l(73017);let n=e=>{let t,{uvIndex:l,uvDescription:n,className:s,descriptionClassName:o}=e,d=(0,i.c)("DetailsTable");return t=!Number.isFinite(l)||l10?d("extreme"):n?l:t=d("uvIndexVal",{val:l,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,r.cn)(s),children:[t,n&&l{"use strict";l.d(t,{Z:()=>h});var a=l(21102),r=l(42494),i=l(71535),n=l(87403),s=l(49422),o=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:o,displayWindDirectionIcon:c,displayMode:u,afterSpeed:m,useWindIcon:h}=e;if(!t&&!l)return null;let v=((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(v))return null;let p=h?s.Z:n.y;return(0,a.jsx)(p,{className:(0,i.cn)("inline-block size-4 align-middle",m?"ml-0.5":"mr-0.5",r),color:o,style:h?void 0:{transform:"rotate(".concat(v,"deg)")},"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=e=>{let{windDirection:t,windDirectionCardinal:l,cardinalClassName:r,displayWindDirectionIcon:i,displayMode:n,beforeSpeed:s}=e;return(t||l)&&("cardinal"===n||"directionalAndCardinal"===n||void 0===n&&!i)&&l?(0,a.jsxs)("span",{className:r,children:[!s&&" ",l,s&&" "]}):null},m=e=>{let{units:t,windUnitClass:l}=e,r=t?(0,o.Bu)(t):null,n=null==r?void 0:r.speed;return(0,a.jsx)("span",{className:(0,i.cn)(l),children:n})},h=(0,r.memo)(e=>{let{windSpeed:t,units:l,className:r,windDirection:n,windDirectionCardinal:s,windSpeedClass:o,windUnitClass:d,iconClassName:h,iconColor:v,cardinalClassName:p,iconAfterSpeed:x,cardinalBeforeSpeed:g,spaceWindSpeedAndUnit:f=!0,displayWindDirectionIcon:y=!1,displayMode:b,useWindIcon:w}=e,j=(0,a.jsx)(c,{windDirection:n,windDirectionCardinal:s,iconClassName:h,iconColor:v,displayWindDirectionIcon:y,displayMode:b,afterSpeed:x,useWindIcon:w}),N=(0,a.jsx)(u,{windDirection:n,windDirectionCardinal:s,displayWindDirectionIcon:y,displayMode:b,beforeSpeed:g,cardinalClassName:p});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,i.cn)(r),children:[!x&&j,g&&N,Number.isFinite(t)&&l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,i.cn)(o),children:t}),f&&" ",(0,a.jsx)(m,{units:l,windUnitClass:d})]}):"--",!g&&N,x&&j]})})},43786:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsAdminBlock:()=>i,default:()=>n});var a=l(21102);l(42494);var r=l(68858);let i=()=>(0,a.jsx)(r.default,{name:"CurrentConditions"}),n=i},43874:(e,t,l)=>{"use strict";l.d(t,{d:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="Sunset"},44966:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageAdminBlock:()=>d,default:()=>c});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858),o=l(94456);let d=()=>{var e,t,l,d,c,u,m,h,v,p,x,g;let[f]=(0,i.kV6)(),y=(0,n.r)(f,!0),[b,w]=(0,r.useState)({imageType:null==y?void 0:y.imageType,internalImageId:null==y?void 0:y.internalImageId,externalImageUrl:null==y?void 0:y.externalImageUrl,altText:null==y?void 0:y.altText,showCaption:null==y||null==(e=y.controls)?void 0:e.showCaption,useImageCaption:null==y||null==(t=y.controls)?void 0:t.useImageCaption,caption:null==y||null==(l=y.controls)?void 0:l.caption,credit:null==y||null==(d=y.controls)?void 0:d.credit,alignment:null==y||null==(c=y.controls)?void 0:c.alignment,width:null==y||null==(u=y.controls)?void 0:u.width});(0,r.useEffect)(()=>{var e,t,l,a,r,i;w({imageType:null==y?void 0:y.imageType,internalImageId:null==y?void 0:y.internalImageId,externalImageUrl:null==y?void 0:y.externalImageUrl,altText:null==y?void 0:y.altText,showCaption:null==y||null==(e=y.controls)?void 0:e.showCaption,useImageCaption:null==y||null==(t=y.controls)?void 0:t.useImageCaption,caption:null==y||null==(l=y.controls)?void 0:l.caption,credit:null==y||null==(a=y.controls)?void 0:a.credit,alignment:null==y||null==(r=y.controls)?void 0:r.alignment,width:null==y||null==(i=y.controls)?void 0:i.width})},[null==y?void 0:y.imageType,null==y?void 0:y.internalImageId,null==y?void 0:y.externalImageUrl,null==y?void 0:y.altText,null==y||null==(m=y.controls)?void 0:m.showCaption,null==y||null==(h=y.controls)?void 0:h.useImageCaption,null==y||null==(v=y.controls)?void 0:v.caption,null==y||null==(p=y.controls)?void 0:p.credit,null==y||null==(x=y.controls)?void 0:x.alignment,null==y||null==(g=y.controls)?void 0:g.width]);let j=null;[{data:j}]=(0,i.Q0O)("internal"===b.imageType&&b.internalImageId?"/api/payload/images/".concat(b.internalImageId):"");let N="external"===b.imageType?b.externalImageUrl:null==j?void 0:j.url;return(0,a.jsxs)(s.default,{name:"Image",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Image Type:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.imageType||"Not selected"})]}),(()=>{switch(b.imageType){case"internal":return(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Internal Image ID:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.internalImageId||"Not selected"})]});case"external":return(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"External Image URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.externalImageUrl||"Not provided"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Alt Text:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.altText||"Not provided"})]})]});default:return(0,a.jsx)("div",{className:"text-red-500",children:"Image type is undecided."})}})(),(()=>{if(b.showCaption){var e;return(0,a.jsxs)("div",{className:"mb-2",children:["internal"===b.imageType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Use Image Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.useImageCaption?"Yes":"No"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"internal"===b.imageType&&b.useImageCaption?(null==j?void 0:j.caption)||"":b.caption||"No caption provided"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Credit:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"internal"===b.imageType&&b.useImageCaption?(null==j||null==(e=j.seo)?void 0:e.credit)||"":b.credit||"No credit provided"})]})]})}return null})(),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Alignment:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.alignment||"Center"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Width:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:b.width||"Full"})]})]}),N&&(0,a.jsx)(o.Ay,{src:N,alt:"",className:"max-h-[240px] max-w-[240px]"})]})},c=d},45226:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var a=l(21102),r=l(42494);let i={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var n=l(94456),s=l(26464),o=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:v,sendTrackString:p,rounded:x=!1}=e;if(!r.length||u=r.length)return null;let g=r[u],f="".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)(n.Ay,{className:"absolute top-0 left-0 h-full w-full object-cover",src:g.url||"",alt:(null==(t=g.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)(n.Ay,{src:i.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)(s.EY,{variant:"Body.S",color:"primary",children:f})}),(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:()=>{p("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)(o.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:()=>{p("wxnode_slideshow_link-next"),v()},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")})})})})]})}),g.filename&&!c(g.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:g.filename}),g.caption&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(g.filename&&!c(g.filename)?"":"mt-0 pt-0"),children:g.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:i=[],totalAssets:n=i.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,r.useId)(),m=t||"slideshow-".concat(c),h=i.length>0,[v,p]=(0,r.useState)(0),[x,g]=(0,r.useState)(1),[f,y]=(0,r.useState)(1),[b,w]=(0,r.useState)(h?i.slice(0,20):l),j=(0,r.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(v-1>=0){let e=v-1?Math.ceil((v-1)/20):1;p(v-1),g(e)}},[v]),C=(0,r.useCallback)(()=>{if(v+1=f){let e=20*x;if(e-3l.length&&x>=f){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(i.slice(0,20))},[h,i,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:l,currentSlideIndex:v,totalAssets:n,previous:N,next:C,sendTrackString:o,rounded:d})}},47460:(e,t,l)=>{"use strict";l.d(t,{D:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="Snowflake"},48015:(e,t,l)=>{"use strict";l.d(t,{N:()=>n});var a=l(21102),r=l(42494),i=l(71535);let n=(0,r.memo)(e=>{let{value:t,className:l,roundValue:r}=e,n=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,i.cn)(l),children:Number.isFinite(n)&&n>=0?"".concat(n,"%"):"--"})})},48443:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>x,TaboolaBlockView:()=>g,default:()=>f});var a=l(21102),r=l(42494),i=l(34679),n=l(25090),s=l(89131),o=l(71535),d=l(80381),c=l(66172),u=l(57809),m=l(77201),h=l(15007);let v=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)},p=(()=>{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)(),i=(0,u.md)(m.a),n=v();return r.isUserPremium||i||!n||!t?null:(0,a.jsx)(g,{...l})},g=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:c,title:u="",pageType:m,taboolaType:h,loaderUrl:v}=e,x=(0,r.useRef)(null),[g,f]=(0,r.useState)("pending"),y=(0,i.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}})(v),{pushTaboolaCommand:w}=p(),j=(0,r.useMemo)(()=>{let e=(0,n.j)();return"".concat(e).concat(y||"")},[y]),N="empty"!==g,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"===g&&w({mode:l,container:t,placement:c,target_type:"mix"},j,m)},[b,g,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()?(f("populated"),l.disconnect()):"pending"!==g&&(f("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(f("populated"),t.disconnect()),()=>t.disconnect()},[b,g]),b)?"invisible"===h?(0,a.jsx)("div",{id:t,ref:x}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:c,title:u,taboolaType:h,pageType:m,pageUrl:j,taboolaContentState:g,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,o.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},f=x},49422:(e,t,l)=>{"use strict";l.d(t,{Z:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="Wind"},49709:(e,t,l)=>{"use strict";l.d(t,{m:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="Sunrise"},49820:(e,t,l)=>{"use strict";l.d(t,{D:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="ArrowUp"},50143:(e,t,l)=>{"use strict";l.d(t,{K:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="Humidity"},51554:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DynamicMapBlock:()=>V,default:()=>z});var a=l(21102),r=l(59432),i=l(71458),n=l(34679),s=l(83037),o=l(42494),d=l(59946),c=l(73017),u=l(57809),m=l(32201),h=l(33176),v=l(90267),p=l(2092),x=l(94977),g=l(9959);let f={width:568,height:320},y={sm:f,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,i)=>{var n,s,o,d;let c;return"fts"===e&&0===l||"ts"===e&&l===t.ts.length-1?i:("fts"===e&&(c=(null!=(o=null==(n=t.fts)?void 0:n[l])?o:0)*1e3),"ts"===e&&(c=(null!=(d=null==(s=t.ts)?void 0:s[l])?d:0)*1e3),(0,w.P)({date:c,locale:a,timeZone:r,minutes:!0}))};var A=l(82915);let k={revalidateOnFocus:!1,dedupingInterval:6e4},S=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sm",a=(0,c.c)("DynamicMap"),r=(0,u.md)(p.Yt),i=((0,v.xP)(r)||v.AF).code,n=(0,g.A)(),{ianaTimeZone:s,countryCode:w,geocode:N}=e||{},{data:C,isLoading:S,error:I}=(0,d.Ay)(N?["get-wwir-forecaset",N,i,t]:null,e=>{let[t,l,a,r]=e;return(0,m.U)({geocode:l,units:a,language:r})},k),{data:M,isLoading:R,error:_}=(0,d.Ay)(N?"get-dynamic-maps-tile-series":null,()=>(0,h.M)(),k),P=null==C?void 0:C.forecast,E=(0,o.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:D}=(0,A.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:x.InsightType.PRECIP_INSIGHT,locale:t,par:"twc",cscCountryCode:n}),F=(null==L?void 0:L.length)?6:9,B=a("now"),V=(0,o.useMemo)(()=>N?((e,t,l)=>{if(!e)return[];let{mapImageSize:a,geocode:r,lod:i,locale:n,timeZone:s,countryCode:o,samsungMA:d,nowText:c}=l,u=t.product,{width:m,height:h}=y[a]||f,[v="",p=""]=r.split(",")||[],x=(0,j.S)(v,i),g=(0,j.S)(p,i),b=((e,t)=>{var l,a;let{layer:r,frameRatio:i,frames:n}=t,s=e[r],o=(null==(a=s.series)||null==(l=a[0])?void 0:l.fts)||null,d=s.series||[];if(o){let e=o.slice().reverse(),t=n>1?e.slice(0,2*n):e.slice(0,1);return i&&(t=((e,t)=>{let l=[];for(let a=0;a{let{geocode:t,lod:l}=e,r=(0,o.useMemo)(()=>{if(!(t&&l))return;let e=function(e,t){let[l="",a=""]=e.split(",")||[],r=parseFloat(l),i=parseFloat(a),n=C(r,t),s=C(i,t),o=r-n;return{dx:Math.abs(111.11*Math.cos((r-o/2)*Math.PI/180)*(i-s))/320*100,dy:Math.abs(111.11*o)/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 D=l(93848);let F=e=>{let{mapImages:t,geocode:l,lod:r=7,wwir:i,ctaLink:n,isLoading:s,enableAnimation:d=!0,enableLocationPin:u=!0,enableWWIRPhrase:m=!0,showMapBoxAttribution:h=!0,title:v,animationTiming:p=500}=e,[x,g]=(0,o.useState)(0),f=(0,c.c)("DynamicMap"),{frames:y}=i.product,b=(0,o.useMemo)(()=>t.length{let e;if(!(d&&b.length>1))return void g(0);let t=setTimeout(()=>{e=setInterval(()=>{g(e=>(e+1)%b.length)},p)},1500);return()=>{clearTimeout(t),clearInterval(e)}},[b.length,d,p]);let j=i.product.attributionColor,N=n?R.default:"div";return(0,a.jsx)(M.Zp,{className:"@container/dynamicMap","aria-label":"".concat(v||f("radar")," - ").concat(i.phrase),"data-testid":"DynamicMap",children:(0,a.jsxs)(N,{href:n||"",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}),s&&(0,a.jsx)(D.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&&i.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:i.phrase})]})]})})},B=e=>{var t;let{location:l,initializing:r,initialError:i,enableLocationPin:o,enableWWIRPhrase:d,enableAnimation:c,mapImageSize:u,showMapBoxAttribution:m,title:h}=e,v=null==(t=(0,n.useParams)())?void 0:t.locale,{effectiveLocation:p,isLocationLoading:x}=(0,s.s)({location:l}),{loadingData:g,error:f,wwir:y,geocode:b,lod:w,ctaUrl:j,mapImages:N,ctaText:C,isDashboard:T}=S(p,v,null!=u?u:"sm");return i||f?null:(0,a.jsx)(F,{isLoading:r||x||g,enableLocationPin:null!=o?o: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})},V=e=>{let{enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:n,locationEntry:s,locationProvider:o,mapImageSize:d,showMapBoxAttribution:c,title:u}=e,m="specified"===o,{specifiedLocationData:h,specifiedLocationError:v,isSpecifiedLocationLoading:p}=(0,r.v)(s),x=m&&h&&s?(0,i.I)(h):void 0;return(0,a.jsx)(B,{location:x,initializing:m&&p,initialError:m?v:void 0,enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:n,mapImageSize:d,showMapBoxAttribution:c,title:u})},z=V},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_=n;let a=l(56438),r=l(40919),i=l(67330);async function n(e){let t=(0,i.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),n=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)),s=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:n});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,r.handleFetchResponse)(s)}},53194:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoAdminBlock:()=>u,default:()=>m});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858),o=l(60476),d=l(58761),c=l(57245);let u=()=>{let e="video-player-".concat((0,r.useId)()),[t]=(0,i.kV6)(),l=(0,r.useRef)(null),{file:u,image:m,title:h,description:v,tracks:p,playlist:x,videoReference:g,playlistsReference:f}=(0,r.useMemo)(()=>{let e=(0,n.r)(t,!0);return l.current&&JSON.stringify(e)===JSON.stringify(l.current)?l.current:(l.current=e,e)},[t]),y=null;[{data:y}]=(0,i.Q0O)(g&&"string"==typeof g?"/api/payload/videos/".concat(g):"");let b=(0,r.useMemo)(()=>y&&Object.keys(y).length>0||g&&"string"!=typeof g,[y,g]),w=(0,r.useMemo)(()=>y&&Object.keys(y).length>0?y:g&&"string"!=typeof g?g:null,[y,g]),j=(0,r.useMemo)(()=>{var e,t,l,a,r,i,n,s,o;return b&&(null==w||null==(t=w.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==w||null==(a=w.content)||null==(l=a.defaultFormat)?void 0:l.url)?null==w||null==(o=w.content)||null==(s=o.defaultFormat)?void 0:s.url:null==w||null==(n=w.content)||null==(i=n.videoFormatUrls)||null==(r=i[0])?void 0:r.url:u},[b,w,u]),N=(0,r.useMemo)(()=>{if(b){var e;return(null==w||null==(e=w.content)?void 0:e.keyFrameImage)||m}return m},[b,w,m]),C=(0,r.useMemo)(()=>b&&(null==w?void 0:w.title)||h,[b,w,h]),T=(0,r.useMemo)(()=>(b&&(null==w||w.description),v),[b,w,v]),A=(0,r.useMemo)(()=>{let e=[];return(null==p?void 0:p.file)&&e.push(p),{file:j,image:N||(j?(0,d.e)(j):null)||"",title:C,description:T,tracks:e}},[j,N,C,T,p]),k=(0,r.useMemo)(()=>{var e,t,l,a;let r=[];return x&&(r=(0,c.K)(x||[],A)||[]),f&&Array.isArray(f)&&f.length,b&&(null==w||null==(e=w.content)?void 0:e.playlists)&&Array.isArray(null==w||null==(t=w.content)?void 0:t.playlists)&&(null==w||null==(a=w.content)||null==(l=a.playlists)||l.length),r.length>0?r:[A]},[x,A,f,w,b]);return g&&"string"==typeof g&&!y?(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"Loading video data..."})})}):j?(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)(o.h,{playlist:k,options:{autostart:!1}},e)}):(0,a.jsx)(s.default,{name:"Video",children:(0,a.jsx)("div",{className:"flex h-32 items-center justify-center border border-dashed border-gray-300",children:(0,a.jsx)("span",{children:"No video file provided"})})})},m=u},54634:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlockRowAdminBlock:()=>o,default:()=>d});var a=l(21102);l(42494);var r=l(56692),i=l(68842),n=l(68858),s=l(26464);let o=()=>{let[e]=(0,r.kV6)(),{columns:t="2",blocks:l=[]}=(0,i.r)(e),o=parseInt(t,10);return(0,a.jsx)(n.default,{name:"BlockRow",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)(s.Ay,{variant:"Body.S.Bold",children:[o," Column Layout"]}),(0,a.jsxs)(s.Ay,{variant:"Body.S",className:"text-gray-500",children:[l.length,"/",o," blocks"]})]}),(0,a.jsx)("div",{className:"grid gap-2 rounded border-2 border-dashed border-gray-300 bg-gray-50 p-3",style:{gridTemplateColumns:"repeat(".concat(o,", 1fr)")},children:0===l.length?(0,a.jsxs)("div",{className:"col-span-full py-4 text-center text-sm text-gray-400",children:["Add blocks below to see them arranged in ",o," columns"]}):l.map((e,t)=>(0,a.jsxs)("div",{className:"rounded border border-gray-400 bg-white p-3 text-center",children:[(0,a.jsx)(s.Ay,{variant:"Body.S.Bold",children:e.blockType}),e.blockName&&(0,a.jsx)(s.Ay,{variant:"Body.S",className:"mt-1 text-gray-600",children:e.blockName})]},t))}),l.length>o&&(0,a.jsxs)("div",{className:"rounded bg-yellow-50 p-2 text-sm text-yellow-800",children:["⚠️ You have ",l.length," blocks but only ",o," columns. Extra blocks will wrap to new rows."]}),(0,a.jsxs)("div",{className:"rounded bg-blue-50 p-2 text-xs text-blue-800",children:["\uD83D\uDCF1 Responsive: Stacks vertically on mobile, shows ",o," ","columns on desktop"]})]})})},d=o},56286:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function(e){let{geocode:t,placeId:l,postalKey:r,insightType:i=a.InsightType.ALL,units:n,language:s,par:o,cscCountryCode:d}=e,c={format:"json",units:n,language:s,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:i,par:o,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)},57245:(e,t,l)=>{"use strict";l.d(t,{K:()=>a});let a=(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}},58164:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HourlyForecastAdminBlock:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(68858),i=l(56692),n=l(68842);let s=()=>{let[e,t]=(0,i.kV6)(),l=(0,n.r)(e,!0);return(0,a.jsxs)(r.default,{name:"HourlyForecast",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",l.locationProvider]}),"specified"===l.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",l.locationEntry]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(i.OcR,{label:"Simplified Version",name:"simplifiedVersion",checked:(null==l?void 0:l.simplifiedVersion)||!1,onToggle:e=>{t({type:"UPDATE",path:"simplifiedVersion",value:e.target.checked})}})})]})},o=s},58239:(e,t,l)=>{"use strict";l.d(t,{o:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.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:()=>n});var a=l(59946),r=l(11776),i=l(34679);let n=e=>{let t=(0,i.useParams)(),l=null==t?void 0:t.locale,{data:n,error:s,isLoading:o}=(0,a.Ay)(e?["/v3/location/point",e,l]:null,()=>e?(0,r.PT)(e,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:n,specifiedLocationError:s,isSpecifiedLocationLoading:o}}},59488:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecast=s,t.transformHourlyAirQualityForecast=o;let a=l(51870),r=l(56438),i=l(40919),n=l(31082);async function s(e){let t=(0,a.getHourlyAirQualityForecastUrlConfig)(e),l=(0,r.urlFrom)(t),n=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return o(await (0,i.handleFetchResponse)(n))}function o(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,n.createTransformer)((e,l)=>{var a,r;let i=e=>{var a,r,i,n;let s=t.pollutants[e];if(s)return{name:s.name,phrase:s.phrase,amount:null!=(a=s.amount[l])?a:0,unit:s.unit,category:null!=(r=s.category[l])?r:"",categoryIndex:null!=(i=s.categoryIndex[l])?i:0,index:null!=(n=s.index[l])?n:0}};return{...e,pollutants:{CO:i("CO"),NO2:i("NO2"),O3:i("O3"),PM10:i("PM10"),PM2_5:i("PM2.5"),SO2:i("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),i=l(71535),n=l(2346);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var o=l(44182),d=l(98132),c=l.n(d),u=l(94456);let m=(0,o.h)("JWPlayer"),h=e=>{var t,l;let{playlist:o,options:d={},setupParams:h={},events:v=[],className:p="",placeHolder:x}=e,g="player-".concat((0,r.useId)()),{playerId:f="IdNDrRWQ"}=h,y=(0,r.useMemo)(()=>({playlist:o,...(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:s}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...h}),...d}),[o,h,d]),b=(0,r.useRef)(null),w=(0,r.useRef)(!1),j=null==o||null==(t=o[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(g);b.current=e,w.current=!0,m.info("initialized player"),e.setup(y),v.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,v,j,g,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==o||null==(l=o[0])?void 0:l.image:"";return(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(n.default,{src:"https://cdn.jwplayer.com/libraries/".concat(f,".js"),onLoad:()=>C("ready"),onReady:()=>C("ready"),onError:()=>C("error")}),(0,a.jsxs)("div",{className:(0,i.cn)("relative overflow-hidden",c().jwplayerContainer,p),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:g,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 i=(0,l(44182).h)("payload:Bluesky:OEmbed");function n(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 s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let l=n(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),i.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 s=await r.json();if("rich"!==s.type||!s.html)return{error:"invalid_response",message:"Invalid oEmbed response from Bluesky"};return s}catch(e){return{error:"fetch_error",message:e instanceof Error?e.message:"Unknown error occurred"}}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=n(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:i,showThread:n=!1}=e,d=(0,r.useRef)(null),[c,u]=(0,r.useState)(!0),[m,h]=(0,r.useState)(null),v=(0,r.useCallback)(()=>"id"===t&&i?null:"url"===t&&l?l:null,[t,i,l]);return((0,r.useEffect)(()=>{(async()=>{let e=v();if(!e){h("No valid Bluesky URL provided"),u(!1);return}if(d.current){u(!0),h(null);try{let t=await s(e,{maxWidth:550,showThread:n});"error"in t?(console.warn("Bluesky oEmbed error:",t),d.current.innerHTML=o(e,n)):d.current.innerHTML=t.html}catch(t){console.error("Failed to load Bluesky embed:",t),d.current.innerHTML=o(e,n)}finally{u(!1)}}})()},[v,n]),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:()=>p,Zp:()=>h,aR:()=>v});var a=l(21102),r=l(42494),i=l(91731),n=l(85422),s=l(71535),o=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,n.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:n,radius:o,border:d,asChild:c=!1,children:u,testId:h,...v}=e,p=c?i.DX:"section";return(0,a.jsx)(p,{className:(0,s.cn)(m({variant:r,padding:n,radius:o,border:d,interactive:c}),l),ref:t,...v,children:u})});h.displayName="Card";let v=r.forwardRef((e,t)=>{let{className:l,textVariant:r="Title.S",text:i,children:n}=e;return(0,a.jsx)(a.Fragment,{children:i?(0,a.jsx)(o.EY,{ref:t,className:(0,s.cn)("flex pb-4",l),variant:r,children:i}):n})});v.displayName="CardHeader";let p=r.forwardRef((e,t)=>{let{className:l,children:r,...i}=e;return(0,a.jsx)("div",{className:(0,s.cn)("flex-1",l),ref:t,...i,children:r})});p.displayName="CardContent",r.forwardRef((e,t)=>{let{className:l,ctaText:r,ctaHref:i,ctaTarget:n="_self",children:o,...c}=e;return(0,a.jsx)("footer",{className:(0,s.cn)("flex items-center pt-4",l),ref:t,...c,children:o||(r&&i?(0,a.jsx)(d.$n,{variant:"default",size:"sm",asChild:!0,children:(0,a.jsx)("a",{href:i,target:n,children:r})}):null)})}).displayName="CardFooter"},66046:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastAdminBlock:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(68858),i=l(56692),n=l(68842);let s=()=>{let[e,t]=(0,i.kV6)(),l=(0,n.r)(e,!0);return(0,a.jsxs)(r.default,{name:"DailyForecast",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",l.locationProvider]}),"specified"===l.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",l.locationEntry]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(i.OcR,{label:"Simplified Version",name:"simplifiedVersion",checked:(null==l?void 0:l.simplifiedVersion)||!1,onToggle:e=>{t({type:"UPDATE",path:"simplifiedVersion",value:e.target.checked})}})})]})},o=s},66757:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=o,t.Jh=d;let a=l(19318),r=l(56438),i=l(40919),n=l(31082),s=l(20015);async function o(e){let l=(0,a.getDailyForecastUrlConfig)(e),n=(0,r.urlFrom)(l),s=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,i.handleFetchResponse)(s);return(0,t.vt)(o)}async function d(e){let t=(0,a.getDailyCognitiveHealthForecastUrlConfig)(e),l=(0,r.urlFrom)(t),n=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,i.handleFetchResponse)(n)}t.vt=(0,n.createTransformer)((e,t,l)=>{var a,r,i,n,o,d,c,u,m,h,v,p,x,g,f,y,b,w,j,N,C,T;let A=2*t,k=A+1,{daypart:S}=l||{};return{calendarDayTemperatureMax:null!=(a=e.calendarDayTemperatureMax)?a:void 0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:void 0,dayOfWeek:null!=(i=e.dayOfWeek)?i:void 0,expirationTimeUtc:null!=(n=e.expirationTimeUtc)?n:void 0,moonPhase:null!=(o=e.moonPhase)?o: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!=(v=e.moonsetTimeUtc)?v:void 0,narrative:null!=(p=e.narrative)?p:void 0,qpf:null!=(x=e.qpf)?x:void 0,qpfSnow:null!=(g=e.qpfSnow)?g:void 0,sunriseTimeLocal:null!=(f=e.sunriseTimeLocal)?f: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,k].map((t,l)=>{var a,r,i,n,o,d,c,u,m,h,v,p,x,g,f,y,b,w,j,N,C,T,A,k,I,M,R,_,P,E,L,D,F,B,V,z,H,W,U,O,Q,q,G,Z,Y,$,X,K,J,ee,et,el,ea,er,ei,en,es,eo,ed;return(null==S||null==(r=S[0])||null==(a=r.daypartName)?void 0:a[t])?{cloudCover:null!=(E=null==(i=S[0].cloudCover)?void 0:i[t])?E:void 0,dayOrNight:null!=(L=null==(n=S[0].dayOrNight)?void 0:n[t])?L:void 0,daypartName:null!=(D=null==(o=S[0].daypartName)?void 0:o[t])?D:void 0,iconCode:null!=(F=null==(d=S[0].iconCode)?void 0:d[t])?F:void 0,iconCodeExtend:null!=(B=null==(c=S[0].iconCodeExtend)?void 0:c[t])?B:void 0,narrative:null!=(V=null==(u=S[0].narrative)?void 0:u[t])?V:void 0,precipChance:null!=(z=null==(m=S[0].precipChance)?void 0:m[t])?z:void 0,precipType:null!=(H=null==(h=S[0].precipType)?void 0:h[t])?H:void 0,qpf:null!=(W=null==(v=S[0].qpf)?void 0:v[t])?W:void 0,qpfSnow:null!=(U=null==(p=S[0].qpfSnow)?void 0:p[t])?U:void 0,qualifierCode:null!=(O=null==(x=S[0].qualifierCode)?void 0:x[t])?O:void 0,qualifierPhrase:null!=(Q=null==(g=S[0].qualifierPhrase)?void 0:g[t])?Q:void 0,relativeHumidity:null!=(q=null==(f=S[0].relativeHumidity)?void 0:f[t])?q:void 0,snowRange:null!=(G=null==(y=S[0].snowRange)?void 0:y[t])?G:void 0,temperature:null!=(Z=null==(b=S[0].temperature)?void 0:b[t])?Z:void 0,temperatureHeatIndex:(null==(w=S[0].temperatureHeatIndex)?void 0:w[t])||void 0,temperatureWindChill:(null==(j=S[0].temperatureWindChill)?void 0:j[t])||void 0,thunderCategory:null!=(Y=null==(N=S[0].thunderCategory)?void 0:N[t])?Y:void 0,thunderIndex:null!=($=null==(C=S[0].thunderIndex)?void 0:C[t])?$:void 0,uvDescription:null!=(X=null==(T=S[0].uvDescription)?void 0:T[t])?X:void 0,uvIndex:null!=(K=null==(A=S[0].uvIndex)?void 0:A[t])?K:void 0,windDirection:null!=(J=null==(k=S[0].windDirection)?void 0:k[t])?J:void 0,windDirectionCardinal:(null==(I=S[0].windDirectionCardinal)?void 0:I[t])?(0,s.normalizeCardinal)(S[0].windDirectionCardinal[t]):void 0,windPhrase:null!=(ee=null==(M=S[0].windPhrase)?void 0:M[t])?ee:void 0,windSpeed:null!=(et=null==(R=S[0].windSpeed)?void 0:R[t])?et:void 0,wxPhraseLong:null!=(el=null==(_=S[0].wxPhraseLong)?void 0:_[t])?el:void 0,wxPhraseShort:null!=(ea=null==(P=S[0].wxPhraseShort)?void 0:P[t])?ea:void 0,...0===l?{sunriseTimeLocal:null!=(er=e.sunriseTimeLocal)?er:void 0,sunsetTimeLocal:null!=(ei=e.sunsetTimeLocal)?ei:void 0}:{moonPhase:null!=(en=e.moonPhase)?en:void 0,moonPhaseCode:null!=(es=e.moonPhaseCode)?es:void 0,moonriseTimeLocal:null!=(eo=e.moonriseTimeLocal)?eo: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"}}},68858:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>i});var a=l(21102);l(42494);var r=l(25279);let i=e=>{let{name:t,children:l}=e;return(0,a.jsxs)("div",{className:"mb-1 flex w-full min-w-xl flex-col p-3",style:{border:"2px solid var(--theme-elevation-200)",borderRadius:"5px",background:"var(--theme-input-bg)",color:"var(--theme-elevation-800)",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.05)"},children:[(0,a.jsxs)("h4",{className:"flex items-center gap-2 pb-3",style:{borderBottom:"1px solid var(--theme-elevation-200)",marginBottom:"8px"},children:[(0,a.jsx)("span",{className:"flex-grow truncate text-left text-sm font-medium",children:t}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(r.s8,{}),(0,a.jsx)(r.ON,{})]})]}),(0,a.jsx)("div",{className:"text-sm",children:(0,a.jsx)("div",{className:"pt-1",children:l})})]})}},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:i}=e,n={format:"json",language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(n.geocode=t),l&&(n.countryCode=l),a&&(n.areaId=a),r&&(n.adminDistrictCode=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:n}},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:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="View"},71377:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(11926),i=l(20423),n=l(13247);let s=e=>{let{title:t,image:l,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,n.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||s||o||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,(s||o||d)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),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)(i.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},o=s},71458:(e,t,l)=>{"use strict";l.d(t,{I:()=>i});var a=l(46844),r=l(59299);function i(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}}},72574:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>ei,default:()=>en});var a=l(21102),r=l(71458),i=l(59432),n=l(42494),s=l(73017),o=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),v=l(57809),p=l(2092),x=l(90267),g=l(26464),f=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),k=l(60476),S=l(6548),I=l(91743),M=l(20116),R=l(66172),_=l(59809),P=l(77201),E=l(58761),L=l(44182),D=l(66188);let F=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})]})}),B=n.forwardRef((e,t)=>(0,a.jsx)(D.h,{ref:t,icon:F,...e}));B.displayName="PlayOutline";let V=(0,L.h)("DailyForecast:EmbeddedContent"),z=e=>{let{playlist:t,events:l,disableAds:r,className:i}=e;return(0,a.jsx)("div",{className:i,children:(0,a.jsx)(k.h,{playlist:t,events:l,setupParams:{ads:!r}})})},H=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]"})}),U=e=>{let{contentQueryId:t}=e,[l,r]=(0,n.useState)(!1),i=(0,n.useRef)(!0),s=(0,R.J)(),o=(0,n.useMemo)(()=>(null==s?void 0:s.user)||{},[null==s?void 0:s.user]),d=(0,v.md)(P.a),c=!!(o.isUserPremium||d),u=(0,_.z)(),m=(0,M.c)(),h="string"==typeof t?t:null==t?void 0:t.id,{data:p,error:x}=(0,T.Ay)(h?["content-by-asset",h]:null,()=>(0,A.m)(h,"en-US"),{revalidateOnFocus:!1,dedupingInterval:3e5}),g=(0,n.useMemo)(()=>{var e,t;if(!(null==p?void 0:p.length))return null;let l=p.find(e=>"video"===e.contentType);if(!l)return null;let a=(null==(e=l.webVideoData)?void 0:e.web)||(null==(t=l.webVideoData)?void 0:t.mweb)||l.url;if(!a)return null;let r=l.overrideThumbnail||l.thumbnail||(0,E.e)(a),i=l.overrideTitle||l.title;return{file:a,image:r,title:i,description:l.overrideDescription||l.description||"",custom:{jwplayer:"",adzone:"",pcollid:""}}},[p]),f=(0,n.useMemo)(()=>g?[g]:[],[g]),y=(0,n.useMemo)(()=>[{eventName:"play",callback:()=>{r(!0)}},...[...S.v,...I.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:r}=e;"time"!==t&&V.info("[".concat(t,"]:"),a),l({event:a,player:r,isFirstPlayRef:i,user:o,trackVideoEvent:m,isMobile:u})}}})],[o,m,u]);return p||x?x?(V.error("Failed to load content:",x),null):g&&0!==f.length?l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(z,{playlist:f,events:y,disableAds:c,className:"overflow-hidden rounded-lg"}),(0,a.jsx)("div",{className:"pt-3",children:(0,a.jsx)(H,{title:null==g?void 0:g.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)(z,{playlist:f,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)(B,{className:"size-4"}),(0,a.jsx)("span",{children:"Heads-up"})]}),(0,a.jsx)(H,{title:null==g?void 0:g.title,className:"text-sm leading-tight font-semibold text-gray-900"})]})]}),(0,a.jsx)(W,{})]}):(V.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"})})},O=["relativeHumidity","uvIndex","sunrise","sunset"],Q=["relativeHumidity","uvIndex","moonrise","moonset","moonPhase"],q=e=>{let{data:t,locale:l,validTime:r,embedContent:i,embeddedContentQuery:n}=e,o=(0,s.c)("DailyForecast"),d=(0,v.md)(p.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)(g.Ay,{children:[(0,a.jsx)("span",{className:"font-bold",children:r})," | ",o(u?"day":"night")]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(g.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)(f.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:c.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,a.jsx)(g.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?O:Q,locale:l,columns:2,children:i&&n&&(0,a.jsx)(U,{contentQueryId:n})})})]})};var G=l(75865);let Z=(e,t,l)=>{var a,r;if(!e)return"";let i=(0,G.V)(e,t,l),n=null==(a=i.find(e=>"day"===e.type))?void 0:a.value,s=null==(r=i.find(e=>"weekday"===e.type))?void 0:r.value;return"".concat(s," ").concat(n)},Y=e=>{let{dailyForecast:t,locale:l,timeZone:r,itemIndex:i,isKoreaCscLocation:o,locationDayDate:d,embedContent:c,embeddedContentQuery:u}=e,m=(0,v.md)(p.Yt),h=(0,x.xP)(m),N=(0,s.c)("DailyForecast"),C=t.daypart[0],T=t.daypart[1],A=null!=C?C:T,k=null==A?void 0:A.wxPhraseLong,S=(null==t?void 0:t.validTimeLocal)&&Z(t.validTimeLocal,l,r),I=(0,n.useMemo)(()=>o?d===S?N("today"):S:0===i&&(null==A?void 0:A.daypartName)?null==A?void 0:A.daypartName:S,[o,i,d,null==A?void 0:A.daypartName,S,N]);return S?(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)(g.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)(g.Ay,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,a.jsx)(g.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":k||"Weather condition ".concat(null==A?void 0:A.iconCode)}),(0,a.jsx)(g.Ay,{variant:"Body.M",className:"min-w-[200px] pl-1.5 @max-xl/dailyItem:hidden",children:k})]}),(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)(g.Ay,{elementType:"div",children:(0,a.jsx)(f.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:S,embedContent:c,embeddedContentQuery:u}),T&&(0,a.jsx)(q,{data:T,locale:l,validTime:S})]})]}):null};var $=l(35369);let X=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)($.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=e=>{var t;let{location:l,isLoading:r,error:i,dailyForecasts:o,locale:d,isKoreaCscLocation:c,locationTime:u,canToggleMultipleItems:v,ctaText:p,ctaLink:x,reorderModule:f,simplifiedVersion:y,embedContent:w,embeddedContentQuery:j}=e,N=(0,s.c)("DailyForecast"),C=(null==l?void 0:l.ianaTimeZone)||"America/New_York",T=(0,n.useMemo)(()=>C?Z(u,d,C):"",[d,C,u]),A=null==o||null==(t=o[0])?void 0:t.validTimeLocal;return(0,a.jsxs)(K.Zp,{className:(0,h.cn)("not-prose @container/daily",f?"-order-1":"order-0"),"aria-label":N("dailyForecast"),"data-testid":"daily-forecast",children:[(0,a.jsx)(K.aR,{text:N("dailyForecast")}),(0,a.jsx)(K.Wu,{className:"p-0",children:i?(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)(g.Ay,{variant:"Display.S",children:(null==i?void 0:i.message)||N("unableToLoadData")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.nD,{...v?{type:"multiple",defaultValue:A?[A]:void 0}:{type:"single",defaultValue:A},children:r?(0,a.jsx)(X,{skeletonColumns:y?4:15}):null==o?void 0:o.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&&p&&(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:p})})})]})})]})};var et=l(66757),el=l(27335),ea=l(9959);let er=e=>{let{location:t,simplifiedVersion:l,initializing:r,initialError:i,embedContent:c,embeddedContentQuery:m}=e,h=(0,o.useParams)(),g=null==h?void 0:h.locale,f=(0,s.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:k,locationTime:S}=((e,t)=>{var l;let a=(0,o.useParams)(),r=null==a?void 0:a.locale,i=(0,v.md)(p.Yt),s=null==(l=(0,x.xP)(i))?void 0:l.code,d=(0,ea.A)(),c="KR"===d,u=c&&(null==e?void 0:e.countryCode)==="KR",m=null==e?void 0:e.ianaTimeZone,h=(0,n.useMemo)(()=>{let e;return m?(e=new Date,(0,el.$)(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:g,error:f,isLoading:y}=(0,T.Ay)(e?["get-daily-forecast",e.geocode,t?C.ForecastDuration.THREE_DAY:C.ForecastDuration.FIFTEEN_DAY,s,r,c?d:void 0]:null,e=>{let[t,l,a,r,i,n]=e;return(0,et.v1)({geocode:l,units:r,duration:a,language:i,cscCountryCode:n})},{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,n.useMemo)(()=>t?null==g?void 0:g.slice(0,4):g,[g,t]),error:f,isLoading:y,isKoreaCscLocation:u,locationTime:h}})(b,l);return(0,a.jsx)(ee,{location:b,isLoading:r||A||w||!(null==j?void 0:j.length),error:i||N,dailyForecasts:j,locale:g,isKoreaCscLocation:k,locationTime:S,canToggleMultipleItems:!l,ctaText:l?f("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})},ei=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:n,embedContent:s,embeddedContentQuery:o}=e,d="specified"===t,{specifiedLocationData:c,specifiedLocationError:u,isSpecifiedLocationLoading:m}=(0,i.v)(d?l:null),h=d&&c&&l?(0,r.I)(c):void 0;return(0,a.jsx)(er,{location:h,simplifiedVersion:null!=n&&n,initializing:d&&m,initialError:d?u:void 0,embedContent:null!=s?s:void 0,embeddedContentQuery:null!=o?o:void 0})},en=ei},73146:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowAdminBlock:()=>c,default:()=>u});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858),o=l(11926);let d=e=>e&&""!==e.trim()?(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)))(e)?"":e:"",c=()=>{var e,t,l,c;let[u]=(0,i.kV6)(),m=(0,n.r)(u,!0),[h,v]=(0,r.useState)({slides:(null==m?void 0:m.slides)||[],settings:(null==m?void 0:m.settings)||{}});(0,r.useEffect)(()=>{v({slides:(null==m?void 0:m.slides)||[],settings:(null==m?void 0:m.settings)||{}})},[null==m?void 0:m.slides,null==m?void 0:m.settings]);let p=null==(e=h.slides)?void 0:e[0],x=null==p?void 0:p.imageAsset;return(0,a.jsxs)(s.default,{name:"Slideshow",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Slideshow Images:"})," ",(0,a.jsxs)("span",{className:"text-gray-600",children:[(null==(t=h.slides)?void 0:t.length)||0," images"]})]}),(null==(l=h.slides)?void 0:l.length)>0&&(0,a.jsxs)("div",{className:"mb-4",children:[d(null==p?void 0:p.imageTitle)?(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"First Image:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:d(null==p?void 0:p.imageTitle)})]}):(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("strong",{className:"text-black-800",children:"First Image"})}),(null==x?void 0:x.url)&&(0,a.jsx)(o.default,{src:x.url,alt:d(null==p?void 0:p.imageTitle),className:"mb-2 max-h-[240px] max-w-[240px]"}),(null==p?void 0:p.description)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Description:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:p.description})]}),(null==p?void 0:p.imageCaption)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Caption:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:p.imageCaption})]}),(null==p?void 0:p.imageByline)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Byline:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:p.imageByline})]}),(null==p?void 0:p.provider)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Provider:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:p.provider})]}),(null==p?void 0:p.property)&&(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Property:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:p.property})]})]}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("strong",{className:"text-black-800",children:"Settings:"})}),(0,a.jsxs)("div",{className:"mb-1",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Rounded Corners:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:(null==(c=h.settings)?void 0:c.rounded)?"Yes":"No"})]})]})},u=c},75603:(e,t,l)=>{"use strict";l.d(t,{b:()=>n});var a=l(21102);l(42494);var r=l(71535),i=l(90267);let n=e=>{let{className:t,units:l,visibility:n,unitsClassName:s}=e,o=l?(0,i.Bu)(l):null,d=null==o?void 0:o.distance,c="";return c=0===n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,r.cn)(s),children:[" ",d]})]}):!n||n10||"m"===l&&n>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:n}),(0,a.jsxs)("span",{className:(0,r.cn)(s),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:()=>n,w:()=>i});var a=l(13206);let r=(e,t,l,r)=>{let{cDate:i,cTimeZone:n}=(0,a.r)({date:e,locale:t,timeZone:l}),s=null!=r?r:{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return s.timeZone=n,{cDate:i,cTimeZone:n,formatOptions:s}},i=(e,t,l,a)=>{if(!e)return"";let{cDate:i,formatOptions:n}=r(e,t,l,a);return new Intl.DateTimeFormat(t,n).format(i)},n=(e,t,l,a)=>{if(!e)return[];let{cDate:i,formatOptions:n}=r(e,t,l,a);return new Intl.DateTimeFormat(t,n).formatToParts(i)}},75919:(e,t,l)=>{"use strict";t.Sn=s;let a=l(70716),r=l(56438),i=l(40919),n=l(25430);async function s(e){let{geocode:t,language:l="en-US"}=e,s=(0,r.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,i.handleFetchResponse)(o);return{...d,alerts:(0,n.getSortedAlerts)(d.alerts)}}},76370:(e,t,l)=>{"use strict";l.r(t),l.d(t,{YouTubeAdminBlock:()=>o,default:()=>d});var a=l(21102),r=l(42494),i=l(56692),n=l(68842),s=l(68858);let o=()=>{let[e]=(0,i.kV6)(),t=(0,n.r)(e,!0),[l,o]=(0,r.useState)({url:null==t?void 0:t.url,size:null==t?void 0:t.size});return(0,r.useEffect)(()=>{o({url:null==t?void 0:t.url,size:null==t?void 0:t.size})},[null==t?void 0:t.url,null==t?void 0:t.size]),(0,a.jsxs)(s.default,{name:"YouTube",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Video URL:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:l.url||"Not provided"})]}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("strong",{className:"text-black-800",children:"Embed Size:"})," ",(0,a.jsx)("span",{className:"text-gray-600",children:"hero"===l.size?"Hero (Full Width)":"Article (Small)"})]}),(()=>{let e=(e=>{let t=null==e?void 0:e.match(/(?:youtube\.com\/(?:[^\\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\\/\s]{11})/);return t?t[1]:null})(l.url);return e?(0,a.jsx)("div",{className:"mb-2 flex justify-center",children:(0,a.jsx)("iframe",{className:"w-full rounded-lg shadow-lg",style:{height:"hero"===l.size?"300px":"180px",maxWidth:"hero"===l.size?"100%":"320px"},src:"https://www.youtube.com/embed/".concat(e),title:"YouTube Video Preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"text-red-500",children:"Invalid YouTube URL"})})()]})},d=o},76589:(e,t,l)=>{"use strict";l.d(t,{A:()=>O});var a=l(21102),r=l(34679),i=l(83037),n=l(42494),s=l(57809),o=l(2092),d=l(90267),c=l(14527),u=l(59946),m=l(10229),h=l(36985),v=l(9959),p=l(27335);let x=["rain","freezing_rain"],g=["snow","sleet"],f="#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),k=l(64566),S=l(26464),I=l(20423),M=l(71535),R=l(80387),_=l(99721),P=l(9225),E=l(78217),L=l(65353);let D={id:"barBackground",beforeDatasetsDraw(e,t,l){let{ctx:a,chartArea:{top:r},scales:{y:i}}=e;if(!i)return;let n=e.getDatasetMeta(0),s=l.floatPoint||0;n.data.forEach(e=>{var t;let{x:n,width:o}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=l.color||"transparent",function(e,t,l,a,r,i){let n=Math.min(i,a/2,r/2);e.beginPath(),e.moveTo(t+n,l),e.lineTo(t+a-n,l),e.quadraticCurveTo(t+a,l,t+a,l+n),e.lineTo(t+a,l+r-n),e.quadraticCurveTo(t+a,l+r,t+a-n,l+r),e.lineTo(t+n,l+r),e.quadraticCurveTo(t,l+r,t,l+r-n),e.lineTo(t,l+n),e.quadraticCurveTo(t,l,t+n,l),e.closePath(),e.fill()}(a,n-o/2,r,o,i.getPixelForValue(i.min+s)-r,null!=(t=l.borderRadius)?t:8),a.restore()})}},F={id:"extendXAxisLine",afterDraw(e,t,l){var a,r,i,n,s;let{ctx:o,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;o.save(),o.beginPath(),o.strokeStyle=l.color||"black",o.lineWidth=null!=(i=l.lineWidth)?i:1,o.moveTo((null!=(n=null==c?void 0:c.left)?n:0)-200,h),o.lineTo((null!=(s=null==c?void 0:c.right)?s:0)+200,h),o.stroke(),o.restore()}},B={id:"transitionLines",afterDatasetsDraw(e,t,l){let{ctx:a,scales:{x:r,y:i}}=e;i&&(a.save(),a.lineWidth=1,a.setLineDash([2,2]),(0,L.v)(l.transitionPoints,(t,r)=>{var n;let s=+r,o=e.getDatasetMeta(0),d=o.data[s],c=o.data[s-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,i.top),a.lineTo(h,i.getPixelForValue(i.min+(null!=(n=l.floatPoint)?n:0))),a.stroke()}),a.restore())}},V=e=>{let{data:t,ianaTimeZone:l,locale:r}=e,i=(0,A.c)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:i("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:i("time")}),(0,a.jsx)("th",{children:i("precipType")}),(0,a.jsx)("th",{children:i("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,R.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)})]})},z=e=>{let{rtl:t,isSamsungTheme:l,radius:r=4,legendTypes:i}=e,s=(0,A.c)("PrecipIntensity"),o=(0,n.useMemo)(()=>{let e=[{label:s("legendRain"),type:E.PrecipType.RAIN,color:f},{label:s("legendSnow"),type:E.PrecipType.SNOW,color:y},{label:s(l?"samsungLegendMix":"legendMix"),type:E.PrecipType.PRECIP,color:b}];return t?e.reverse():e},[l,t,s]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:o.map(e=>{let{label:t,type:l,color:n}=e;return(!i||i[l])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*r,height:2*r,backgroundColor:n},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:t})]},l)})})},H=async()=>{let{Chart:e,CategoryScale:t,LinearScale:a,BarController:r,BarElement:i}=await Promise.all([l.e(9645),l.e(9731)]).then(l.bind(l,41911));return e.register(t,a,r,i),e},W=(0,n.memo)(e=>{let{chartData:t,hasChartData:l,ianaTimeZone:r,locale:i,rootClass:s,rtl:o=!1,removeTransitionLines:d}=e,c=(0,A.c)("PrecipIntensity"),u=(0,n.useRef)(null),m=(0,n.useRef)(null),[h,v]=(0,_.r)(e=>eo?[...t].reverse():t,[t,o]),w=(0,n.useMemo)(()=>t.reduce((e,t)=>{let{precipType:l}=t;return e[l]=!0,e},{}),[t]),j=(0,n.useMemo)(()=>{let e=Object.values(E.PrecipType),t=0;for(let l of e)w[l]&&t++;return t>1},[w]),N=(0,n.useMemo)(()=>{let e=p.map(e=>e.level),t=p.map(e=>{let{validTimeLocal:t}=e;return t}),l=p.map(e=>{let{precipType:t}=e;return t===E.PrecipType.RAIN?f: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,p,c]),C=(0,n.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:d?void 0:p.reduce((e,t,l)=>{var a;if(l>0&&t.level>0&&p[l-1]&&t.precipType!==(null==(a=p[l-1])?void 0:a.precipType)){let a=b;x.includes(t.precipType)?a=f:g.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,R.P)({date:a,locale:i,timeZone:r,showShortDayperiod:!0}):h?null:""}}},y:{stacked:!0,min:-.5,max:9,position:o?"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,p,h,o,c,i,r]);return((0,n.useEffect)(()=>{let e=!1;return!async function(){var t;let l=await H(),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:[D,F,B]}))}(),()=>{var t;e=!0,null==(t=m.current)||t.destroy()}},[N,C]),l)?(0,a.jsxs)("div",{ref:v,className:(0,M.cn)("@container/precipChart",s),dir:o?"rtl":void 0,children:[(0,a.jsx)(V,{data:t,ianaTimeZone:r,locale:i}),(0,a.jsx)("div",{className:(0,M.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",o?"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)(z,{rtl:o,legendTypes:w,isSamsungTheme:!1})]}):null}),U=e=>{let{location:t,locale:l,onlyChart:r,isLoading:i,chartData:n,hasChartData:s,rtl:o,removeTransitionLines:d,insightTextLong:c}=e,u=(0,A.c)("PrecipIntensity");if(i||!i&&!s)return null;let m=()=>(0,a.jsx)(W,{chartData:n,hasChartData:s,ianaTimeZone:null==t?void 0:t.ianaTimeZone,locale:l,rtl:o,removeTransitionLines:d});return r?m():s&&(0,a.jsxs)(k.Zp,{className:"relative min-h-[100px] overflow-hidden","aria-label":u("chartTitle"),children:[(0,a.jsxs)(k.Wu,{className:"p-0",children:[c&&(0,a.jsxs)(S.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"})]})},O=e=>{var t;let{location:l,onlyChart:f,initializing:y,initialError:b}=e,A=null==(t=(0,r.useParams)())?void 0:t.locale,{effectiveLocation:k,isLocationLoading:S}=(0,i.s)({location:l}),{loadingForecast:I,chartData:M,hasChartData:R,insightTextLong:_}=((e,t)=>{let l=(0,s.md)(o.Yt),a=(0,d.xP)(l)||d.AF,r=a.code,i=(0,v.A)(),f="KR"===i,y=f&&(null==e?void 0:e.countryCode)==="KR",{data:b,isLoading:A}=(0,u.Ay)(e&&y?["get-hourly-forecast",e.geocode,r,t,f?i:void 0]:null,e=>{let[t,l,a,r,i]=e;return(0,m.$c)({geocode:l,units:a,language:r,cscCountryCode:i,duration:c.HourlyForecastDuration.TWO_DAY})},T),{data:k,isLoading:S}=(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:k,M=(0,n.useMemo)(()=>((e,t)=>{if(!(null==e?void 0:e.length))return[];let l=e.map(e=>(0,p.$)(e.validTimeLocal));return t?l.slice(0,7):l})(I,y),[I,y]),R=(0,n.useMemo)(()=>((e,t,l,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,r)=>{let i=e.iconCodeExtend,n=e.precipType,s=(e=>{let{precipRate:t,iconCodeExtend:l,precipType:a,unitsSystem:r}=e,i=(null==r?void 0:r.precip)!=="in"?Number((t/25.4).toFixed(2)):t,n="precip"===a||0===t?w[l]:a;switch(!0){case x.includes(n):return j(i);case g.includes(n):return N(i);default:return 0}})({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:i,precipType:n,unitsSystem:t});return{precipType:n,validTimeLocal:l[r],level:s}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))(I,a,M,y)||[],[I,y,M,a]),_=(0,n.useMemo)(()=>(e=>!!(null==e?void 0:e.find(e=>{let{level:t}=e;return t>0})))(R),[R]),{loadingInsight:P,insightHeadline:E,insightTextLong:L}=(0,C.p)(e,t);return{loadingForecast:A||S,chartData:R,hasChartData:_,loadingInsight:P,insightHeadline:E,insightTextLong:L}})(k,A);return b?null:(0,a.jsx)(U,{location:k,locale:A,onlyChart:f,isLoading:y||S||I,chartData:M,hasChartData:R,insightTextLong:_})}},78117:(e,t,l)=>{"use strict";l.d(t,{y:()=>n});var a=l(21102),r=l(42494),i=l(33940);let n=(0,r.memo)(e=>{let t,{airQualityIndex:l,airQualityCategory:r,className:n}=e,s=!(0,i.g)(l)&&!Number.isNaN(l),o=!(0,i.g)(r)&&""!==r.trim();return t=s&&o?"".concat(l," - ").concat(r):s?"".concat(l):o?r:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:n,children:t})})},78217:(e,t)=>{"use strict";var l,a,r,i,n;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"}(i||(t.PrecipTypeCode=i={})),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"}(n||(t.PrecipIntensityCode=n={}))},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:()=>s,default:()=>o});var a=l(21102),r=l(71458),i=l(59432);let n=()=>null,s=e=>{let{locationProvider:t,locationEntry:l}=e,s="specified"===t,{specifiedLocationData:o,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,i.v)(s?l:null),u=s&&o&&l?(0,r.I)(o):void 0;return(0,a.jsx)(n,{location:u,initializing:s&&c,initialError:s?d:void 0})},o=s},80381:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>s,Zp:()=>i,aR:()=>n});var a=l(21102);l(42494);var r=l(71535);function i(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 n(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 s(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,i,n,s,o,d,c;let{date:u,locale:m="en-US",timeZone:h,minutes:v,showTimeZone:p,showShortDayperiod:x,weekday:g}=e;if(!u)return"";let{cDate:f,cTimeZone:y}=(0,a.r)({date:u,locale:m,timeZone:h}),b={hour:"numeric",hour12:!0,timeZone:y};g&&(b.weekday=g),v&&(b.minute="2-digit"),"en-US"!==m&&"es-US"!==m&&(delete b.hour12,b.minute="2-digit",b.hourCycle="h23"),p&&(b.timeZoneName="short");let w=new Intl.DateTimeFormat(m,b);if(m.includes("-US")){let e=w.formatToParts(f),a=g&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),s=null==(l=e.find(e=>"hour"===e.type))?void 0:l.value,o=v&&(null==(r=e.find(e=>"minute"===e.type))?void 0:r.value),d=null==(i=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:i.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=p?null==(n=e.find(e=>"timeZoneName"===e.type))?void 0:n.value:"",y=g?"".concat(a," "):"";return"".concat(y).concat(s).concat(v?":".concat(o):"").concat(u).concat(h).trim()}if(x){let e=w.formatToParts(f),t=g&&(null==(s=e.find(e=>"weekday"===e.type))?void 0:s.value),l=null==(o=e.find(e=>"hour"===e.type))?void 0:o.value,a=v&&(null==(d=e.find(e=>"minute"===e.type))?void 0:d.value),r=p?null==(c=e.find(e=>"timeZoneName"===e.type))?void 0:c.value:"";return"".concat(g?"".concat(t," "):"").concat(l).concat(v?":".concat(a):""," ").concat(r).trim()}return w.format(f)}},81078:(e,t,l)=>{"use strict";l.d(t,{V:()=>i});var a=l(21102);l(42494);var r=l(71535);let i=e=>{let t,{value:l=0,diameter:i=60,strokeWidth:n=5,strokeColor:s,icon:o,iconSize:d,iconClassName:c,className:u,textClassName:m,displayValue:h,maxValue:v,useExtendedLinecap:p=!1,extendedLinecapProps:x={radius:7,strokeWidth:2},invert:g,textColor:f,textY:y="55%",strokeLinecap:b,railClassName:w}=e,j=i/2,N=j-n/2,C=2*Math.PI*N;t=v?C/100*(l/v*100):C/100*l;let T="".concat(t," ").concat(C),A=t/C*100,k={strokeWidth:n,strokeDasharray:T,stroke:s||((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,v)},S="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:f,children:h});if(o){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)(o,{className:(0,r.cn)("h-full w-full",c),"aria-hidden":"true"})})})}return null};return(0,a.jsxs)("svg",{width:i,height:i,"data-testid":"DonutChart",className:(0,r.cn)("block overflow-visible rounded-full",u,{"scale-x-[-1]":g}),children:[(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:S,style:{strokeWidth:n},className:(0,r.cn)("fill-transparent stroke-[#E7ECF1]",w)}),l>=0?(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:S,strokeLinecap:b||"round",style:k,className:"fill-transparent transition-[stroke-dasharray] duration-300 ease-in-out"}):null,g&&I()?(0,a.jsx)("g",{transform:"translate(".concat(i,", 0) scale(-1, 1)"),children:I()}):I(),p&&(0,a.jsx)("circle",{r:x.radius,cx:j,style:{transform:"rotateZ(".concat(360*A/100,"deg)"),transformOrigin:"center"},fill:k.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),i=l(57809),n=l(2092),s=l(90267);let o={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,i.md)(n.Yt),v=((0,s.xP)(h)||s.AF).code;return(0,a.Ay)(l?[t,d,l,v,u,c]:null,e=>{let[t,l,a,i,n,s]=e;return(0,r.I)({geocode:a,units:i,language:s,insightType:l,par:n,cscCountryCode:"KR"===m?"KR":void 0})},o)}},86983:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HurricaneTrackerBlock:()=>M,default:()=>R});var a=l(21102),r=l(59432),i=l(71458),n=l(90267),s=l(42494),o=l(59946),d=l(57809),c=l(88915),u=l(2092),m=l(34679),h=l(95121),v=l(17577),p=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?"},g={revalidateOnFocus:!1,dedupingInterval:6e4};var f=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]"},k=e=>{var t;let{titleKey:l,outboundUrl:r,imageUrl:i,stormDetails:o,units:d,loading:c}=e,u=(0,f.c)("HurricaneTracker"),m=(0,f.c)("DetailsTable"),{advisoryTime:h,stormName:v,stormType:p,stormTypeCode:x,stormSubTypeCode:g,maxWind:k,direction:S,speed:I,pressure:M}=o||{},R=(null!=(t=(0,n.Bu)(d))?t:n.AF).speed,_=(0,s.useMemo)(()=>{let e="l";return g&&(e="cat".concat(g)),g||"TS"!==x||(e="ts"),e},[g,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:i?{backgroundImage:"url(".concat(i,")")}:void 0}),(0,y.n)(v)&&(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(p," ").concat(v)}),(0,a.jsx)("div",{className:"text-xs",children:h})]})]}),(0,y.n)(I)&&(0,y.n)(S)&&(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!=k?k: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:S,speed:I,windUnit:R})})]}),(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:M?"".concat(M," 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 S=l(83037);let I=e=>{var t;let{location:l,titleKey:r,zoom:i,stormId:f,basin:y,showPT:b,initializing:w,initialError:j}=e,{effectiveLocation:N,isLocationLoading:C}=(0,S.s)({location:l}),T=(0,d.md)(u.Yt),A=null==(t=(0,n.xP)(T))?void 0:t.code,{imageUrl:I,interactiveMapUrl:M,stormDetails:R,isLoading:_,error:P}=(e=>{let{location:t,basin:l,showPT:a,stormId:r,overlays:i,zoom:f,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,n.xP)(T)||n.AF).code,k=(0,v.n)({key:"radar",interpolationArgs:{locale:N,locId:w||""}}),{data:S,isLoading:I,error:M}=(0,o.Ay)(t?["getTropicalCurrentPosition",l||"all","default","false",A,N]:null,e=>{let[t,l,a,r,i,n]=e;return(0,c.x)({basin:l,source:a,nautical:r,units:i,language:n})},g),R=null==S?void 0:S.advisoryinfo,_=(0,s.useMemo)(()=>{if(!R||!R.length)return;let e=new Date(Date.now()),t=[];return R.forEach(l=>{var r;let i=null==l||null==(r=l.currentposition)?void 0:r.storm_type_cd;if("RO"===i||"PT"===i&&!a)return;let n=new Date(l.adv_dt_tm),s=((e,t)=>e&&t?Math.floor((Date.parse(t)-Date.parse(e))/864e5):0)(e.toString(),n.toString());(0===s||-1===s)&&("AL"===l.basin?t.unshift(l):t.push(l))}),t.length>0?t:void 0},[R,a]),P=(0,s.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,s.useMemo)(()=>P||y?P:!P&&_?_[0]:null,[_,P,y]),L=(0,s.useMemo)(()=>{var e,t,l,a,r,i,n,s,o,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,p.w)(t,l,a);let i=(0,p.V)(t,l,a,r),n=i.find(e=>"month"===e.type).value,s=i.find(e=>"day"===e.type).value,o=i.find(e=>"hour"===e.type).value,d=i.find(e=>"minute"===e.type).value,c=i.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return"".concat(n," ").concat(s,", ").concat(o,":").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==(i=E.currentposition)?void 0:i.storm_type,stormTypeCode:((e,t)=>t?"CAT ".concat(t):"TS"===e?"TS":"L")(c,u),direction:null==(s=E.currentposition)||null==(n=s.heading)?void 0:n.storm_dir_cardinal,speed:null==(d=E.currentposition)||null==(o=d.heading)?void 0:o.storm_spd,pressure:h}},[E,N,j,A]),D=(0,s.useMemo)(()=>{if(!E)return null;let{lod:e,attr:t,format:l,height:a,width:r,product:n,basemap:s,baseUrl:o}=x,d=i||n,c=f||e,u=(0,h.S)(E.currentposition.lat,c),m=(0,h.S)(E.currentposition.lon,c),v=C&&["en","fr","es","de","ru","zu"].indexOf(C)>=0?C:"en",p=null;return"IN"===b&&(p="&region=in"),"".concat(o,"geocode=").concat(u,",").concat(m,"&h=").concat(a,"&w=").concat(r,"&lod=").concat(c)+"&product=".concat(d,"&map=").concat(s,"&format=").concat(l,"&language=").concat(v)+"&apiKey=".concat("71f92ea9dd2f4790b92ea9dd2f779061","&a=").concat(t)+"".concat(p||"")},[E,C,b,i,f]),F=(0,s.useMemo)(()=>{if(!E)return null;let e=!w,t=e?"/redir":k,l=E.storm_name,a=f||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,k,f]);return{tropicalStorms:R,isLoading:I,error:M,allActiveStorms:_,queriedStorm:P,stormData:E,stormDetails:L,imageUrl:D,interactiveMapUrl:F}})({location:N,zoom:i||void 0,stormId:f||void 0,basin:y||void 0,showPT:b||void 0});return j||P?null:(0,a.jsx)(k,{titleKey:null!=r?r:"title",outboundUrl:null!=M?M:"",imageUrl:I,units:A,stormDetails:R,loading:_||w||C})},M=e=>{let{locationEntry:t,locationProvider:l,hideModule:n,...s}=e,o="specified"===l,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,r.v)(n?null:t);if(n)return null;let m=o&&d&&t?(0,i.I)(d):void 0;return(0,a.jsx)(I,{...s,location:m,initializing:o&&u,initialError:o?c:void 0})},R=M},87403:(e,t,l)=>{"use strict";l.d(t,{y:()=>s});var a=l(21102),r=l(42494),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="ArrowDown"},88298:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentDetailsAdminBlock:()=>s,default:()=>o});var a=l(21102);l(42494);var r=l(68858),i=l(56692),n=l(68842);let s=()=>{let[e]=(0,i.kV6)(),t=(0,n.r)(e,!0);return(0,a.jsxs)(r.default,{name:"CurrentDetails",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Provider"}),": ",t.locationProvider]}),"specified"===t.locationProvider&&(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{children:"Location"}),": ",t.locationEntry]})]})},o=s},88737:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>i,default:()=>n});var a=l(21102);l(42494);var r=l(94456);let i=e=>{let{title:t,subTitle:l,subText:i,ctaStyle:n,media:s,buttonText:o,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=s.url?s.url:"string"==typeof s?s: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(n),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}),i&&(0,a.jsx)("p",{className:"mb-4",children:i}),"standard"===n&&(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:o||"Learn More"})})]})})})},n=i},88915:(e,t,l)=>{"use strict";t.x=n;let a=l(90302),r=l(56438),i=l(40919);async function n(e){let t=(0,a.getTropicalObservationsCurrentPositionUrlConfig)(e),l=(0,r.urlFrom)(t),n=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,i.handleFetchResponse)(n)}},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=n;let a=l(56438),r=l(40919),i=l(67330);async function n(){let e=(0,i.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 i="",n="",s=1,o=0,d=0,c=0,u=0,m=!1,h=0,v={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1},p={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function x(e){var t;return null!=(t=p[e])?t:"click"}function g(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 f(){Object.keys(v).map(e=>{v[e]=!1}),o=0,d=0,n=""}function y(e,t){var l,i,n,s,o,d,c,u,m,h,v,p,x,g,f,y,b,w,j,N,C,T,A,k,S,I,M,R,_,P,E,L,D,F,B,V,z;let H=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==H||null==(i=H.custom)||null==(l=i.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(n=e.getConfig())?void 0:n.aspectratio,assetName:(0,a.EY)(null!=(V=null==H||null==(o=H.custom)||null==(s=o.ctx)?void 0:s.assetName)?V:""),collection:null==H||null==(c=H.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==H||null==(m=H.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==H||null==(v=H.custom)||null==(h=v.ctx)?void 0:h.id,entitlements:(0,r.X)(null!=(z=null==H||null==(x=H.custom)||null==(p=x.ctx)?void 0:p.entitlements)?z:[]),iabContent:(0,a.IA)((null==H||null==(f=H.custom)||null==(g=f.ctx)?void 0:g.iab)||{}),id:null==H||null==(b=H.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==H||null==(j=H.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==H||null==(T=H.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==H||null==(k=H.custom)||null==(A=k.ctx)?void 0:A.premium,publishdate:null==H||null==(M=H.custom)||null==(I=M.ctx)||null==(S=I.publishdate)?void 0:S.toString(),providerName:null==H||null==(_=H.custom)||null==(R=_.ctx)?void 0:R.providername,tagsGeo:(0,r.X)(null==H||null==(E=H.custom)||null==(P=E.ctx)?void 0:P.tagsGeo),tagsKeyword:(0,r.X)(null==H||null==(D=H.custom)||null==(L=D.ctx)?void 0:L.tagsKeyword),tagsStorm:(0,r.X)(null==H||null==(B=H.custom)||null==(F=B.ctx)?void 0:F.tagsStorm)}}let b=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{if(v.videoStarted&&!v.videoEnd){var e,a;let r=t.getPlaylistItem(),d=g(null==r||null==(a=r.custom)||null==(e=a.ctx)?void 0:e.duration);r&&!v.videoAttempt&&l&&(l({eventName:"video-end",eventAttributes:{errorMessage:n,contentWatchedSeconds:o,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:n,videoWatchedLength:o,playMethod:i,videoView:s,...y(t),videoLength:d,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"pageExit"}})),v.videoEnd=!0}})}},{eventName:"adImpression",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(n="",f(),console.debug("JW Player callback - adImpression eventSentFlags:",v),v.adImpression=!0,a&&!v.videoAttempt&&l){var r,o;let e=g(null==a||null==(o=a.custom)||null==(r=o.ctx)?void 0:r.duration);l({eventName:"video-attempt",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:n,playMethod:i,videoLength:e,videoView:s,...y(t)}}),v.videoAttempt=!0}a&&!v.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}}),v.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;s=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(i=x("playlist"),v.videoStarted&&!v.videoCompleted&&!v.videoEnd){var a,r;let e=t.getPlaylistIndex(),d=t.getPlaylistItem(e-1),h=g(null==d||null==(r=d.custom)||null==(a=r.ctx)?void 0:a.duration);l({eventName:"video-end",eventAttributes:{errorMessage:n,contentWatchedSeconds:o,playReason:i,videoView:s,...y(t,d)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:n,videoWatchedLength:o,playMethod:i,videoView:s,...y(t),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"nextVideo"}}),v.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(v.adImpression||(n="",f()),console.debug("JW Player callback - playAttempt eventSentFlags:",v),a&&!v.videoAttempt&&l){var r,o;let e=g(null==a||null==(o=a.custom)||null==(r=o.ctx)?void 0:r.duration);v.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:n,videoLength:e,playMethod:i,videoView:s,...y(t)}})}}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",v);let a=t.getPlaylistItem();if(a&&!v.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}}),v.videoPlayed=!0),a&&!v.videoStarted&&l){var r,o;let e=g(null==a||null==(o=a.custom)||null==(r=o.ctx)?void 0:r.duration);l({eventName:"video-started",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(t)}}),l({eventName:"video-begin",eventAttributes:{errorMessage:n,playMethod:i,videoView:s,...y(t),videoLength:e,adLength:c,adWatchedLength:u,adSkipped:m}}),v.videoStarted=!0}}},{eventName:"complete",callback:async e=>{var t,l;let{player:a,trackVideoEvent:r}=e,d=a.getPlaylistItem(),h=g(null==d||null==(l=d.custom)||null==(t=l.ctx)?void 0:t.duration);console.debug("JW Player callback - complete eventSentFlags:",v),d&&!v.videoCompleted&&r&&(r({eventName:"video-completed",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(a)}}),v.videoCompleted=!0),v.videoStarted&&!v.videoEnd&&(r({eventName:"video-end",eventAttributes:{errorMessage:n,contentWatchedSeconds:o,playReason:i,videoView:s,...y(a)}}),r({eventName:"video-ended",eventAttributes:{errorMessage:n,videoWatchedLength:o,playMethod:i,videoView:s,...y(a),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"complete"}}),v.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:",v),r&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...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:n,playReason:i,videoView:s,...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:",v),r&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:n,playReason:i,videoView:s,...y(l)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;i=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;n=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;o+=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),i=l(66188);let n=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:n,...e}));s.displayName="NewMoon";let o=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(i.h,{ref:t,icon:o,...e}));d.displayName="WaxingCrescent";let c=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(i.h,{ref:t,icon:c,...e}));u.displayName="FirstQuarter";let m=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(i.h,{ref:t,icon:m,...e}));h.displayName="WaxingGibbous";let v=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),p=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:v,...e}));p.displayName="FullMoon";let x=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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"})]})}),g=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:x,...e}));g.displayName="WaningGibbous";let f=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(i.h,{ref:t,icon:f,...e}));y.displayName="LastQuarter";let b=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:i,descId:n,...s}=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":n,...s,children:[i?(0,a.jsx)("desc",{id:n,children:i}):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)(i.h,{ref:t,icon:b,...e}));w.displayName="WaningCrescent";var j=l(78217);let N={[j.MoonPhaseCode.NEW]:s,[j.MoonPhaseCode.WAXING_CRESCENT]:d,[j.MoonPhaseCode.FIRST_QUARTER]:u,[j.MoonPhaseCode.WAXING_GIBBOUS]:h,[j.MoonPhaseCode.FULL]:p,[j.MoonPhaseCode.WANING_GIBBOUS]:g,[j.MoonPhaseCode.LAST_QUARTER]:y,[j.MoonPhaseCode.WANING_CRESCENT]:w},C=e=>{var t;let{moonPhaseCode:l,...r}=e,i=null!=(t=l&&N[l])?t:s;return(0,a.jsx)(i,{...r})}},93848:(e,t,l)=>{"use strict";l.d(t,{a:()=>s});var a=l(21102),r=l(85422),i=l(71535);let n=(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"}}),s=e=>{let{className:t,size:l,variant:r,label:s}=e;return(0,a.jsx)("div",{className:(0,i.cn)(n({size:l,variant:r}),t),"aria-label":s})}},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,i]=e.toString().split(".");if(void 0===i)return l>0?"".concat(r,".").concat("".padEnd(l,"0")):r;if(0===l)return r;let n=i.slice(0,l).split(""),s=parseInt(n[n.length-1],10);return s>0&&s{"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),i=l(20423),n=l(71535),s=l(94456);let o=r.forwardRef((e,t)=>{let{src:l,alt:r,caption:i,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:v,priority:p,imageAttributes:x}=e,g=!!(i||o);return(0,a.jsxs)("figure",{ref:t,className:(0,n.cn)(h),children:[(0,a.jsx)(s._V,{src:l,alt:r,width:d,height:c,shadow:u,rounded:m,sizes:v,priority:p,...x}),g&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[i&&(0,a.jsx)("p",{children:i}),o&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>{var t,l;let{imageType:r,internalImageId:s,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:v}=e;if(!r||!s&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let p="internal"===r&&(e=>"object"==typeof e&&null!==e&&"url"in e)(s),x=p?(null==s?void 0:s.url)||"":d||"",g=p?(null==s||null==(t=s.seo)?void 0:t.altText)||"":u||"",f="",y="";(null==c?void 0:c.showCaption)&&((!p||(null==c?void 0:c.useImageCaption))&&"external"!==r?p&&(f=(null==s?void 0:s.caption)||"",y=(null==s||null==(l=s.seo)?void 0:l.credit)||""):(f=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(o,{src:x,alt:g,caption:f,credit:y,priority:!!m,className:(0,n.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 v?(0,a.jsx)(i.default,{href:v,target:"_blank",rel:"noopener noreferrer nofollow",children:b}):b},c=d},98132:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},99569:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>n,default:()=>s});var a=l(21102);l(42494);var r=l(13741),i=l(20423);let n=e=>{let{label:t,url:l,variant:n="bg-gray-900",inline:s=!1,isAffiliate:o=!0}=e;return(0,a.jsx)("div",{className:s?"inline-block":"block",children:(0,a.jsx)(i.default,{href:l,target:"_blank",rel:o?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(r.$n,{variant:n,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},s=n},99721:(e,t,l)=>{"use strict";l.d(t,{r:()=>n});var a=l(42494),r=l(97521),i=l(17846);let n=e=>{let t=(0,a.useRef)(null),[l,n]=(0,a.useState)(i.A?e(window.innerWidth,window.innerHeight):null),s=(0,a.useRef)(!1),o=(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,i=e+l,d=a+r,c=o.current(i,d);s.current=!0,n(c)}});return l.observe(e),()=>{l.disconnect()}},[t,o]),[l,t,s.current]}}}]);