(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,390027,e=>{"use strict";var t=e.i(426641),l=e.i(539922),a=e.i(25681);function n(){return false}function r(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function i(e){(0,l.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let a=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(a.current)e.route&&a.current(e.route);else{let l=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let l=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${l}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let a=document.createElement("script");return a.src=l,a.defer=!0,a.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),a.dataset.sdkv="1.3.1",e.sampleRate&&(a.dataset.sampleRate=e.sampleRate.toString()),e.route&&(a.dataset.route=e.route),e.endpoint?a.dataset.endpoint=e.endpoint:e.basePath&&(a.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(a.dataset.dsn=e.dsn),n()&&!1===e.debug&&(a.dataset.debug="false"),a.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${l}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(a),{setRoute:e=>{a.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});l&&(a.current=l.setRoute)}},[e.route]),null}function s(e){let n=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,l=(0,a.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!l||!n)return l;let i=l;try{let e=Object.entries(n);for(let[t,l]of e)if(!Array.isArray(l)){let e=r(l);e.test(i)&&(i=i.replace(e,`/[${t}]`))}for(let[t,l]of e)if(Array.isArray(l)){let e=r(l.join("/"));e.test(i)&&(i=i.replace(e,`/[...${t}]`))}return i}catch(e){return l}})();return l.default.createElement(i,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return l.default.createElement(l.Suspense,{fallback:null},l.default.createElement(s,{...e}))}])},691871,e=>{"use strict";var t,l=e.i(426641),a={scriptHostname:("u">typeof l.default?l.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof l.default?l.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof l.default?l.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof l.default?l.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof l.default?"dpl_CnkwryPasDFah2ANwotXMWX3LeoN":void 0},n=e.i(539922),r=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:l}){return(0,n.useEffect)(()=>(e&&r&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(a,e);let l=document.createElement("script");for(let[n,r]of(l.src=`${a.scriptHostname}/_next-live/feedback/feedback.js`,l.setAttribute("data-explicit-opt-in","true"),e.nonce&&l.setAttribute("nonce",e.nonce),Object.entries((a.ownerId&&a.projectId?{"data-owner-id":a.ownerId,"data-project-id":a.projectId,"data-branch":t??a.branch}:a.deploymentId?{"data-deployment-id":a.deploymentId}:void 0)??{})))r&&l.setAttribute(n,r);(document.head||document.documentElement).appendChild(l)}}({nonce:l}),r=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],691871)},449172,e=>{"use strict";var t=e.i(648198),l=e.i(539922),a=e.i(747961);let n=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"External Link"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{d:"m19.395 3.83-6.82.145c-.423.009-.759-.327-.75-.75s.359-.774.783-.783l8.67-.184a.73.73 0 0 1 .75.75l-.184 8.67c-.009.423-.359.774-.783.783s-.759-.327-.75-.75l.145-6.82-8.625 8.625c-.306.306-.791.316-1.084.023s-.283-.778.023-1.084z"}),(0,t.jsx)("path",{d:"M2.614 7.334h8.966c.857 0 .857 1.348 0 1.348H3.954V20.06h11.657v-5.798c0-.921 1.337-.921 1.337 0v7.143H2.614z"})]})),r=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:n,...e}));r.displayName="ExternalLink",e.s(["ExternalLink",0,r])},80479,e=>{"use strict";var t=e.i(648198),l=e.i(539922),a=e.i(547100),n=e.i(475566),r=e.i(240058),i=e.i(37429),s=e.i(368847),o=e.i(632137),d=e.i(449172);let c=function({links:e,hasSeparators:l=!1,className:n,itemClassName:c,linkClassName:u,separatorDirChanges:h,separatorColorClass:f}){let g=(0,a.useTranslations)("Footer");return(0,t.jsx)("ul",{className:(0,o.cn)("flex flex-wrap",n),children:e.map(e=>{let a=e.titleTranslationKey?g(e.titleTranslationKey):e.title;return(0,t.jsx)("li",{className:(0,o.cn)("flex",((e,t,l)=>{if(!e)return"";let a="string"==typeof l?[l]:l||[];return`${a[0]||"border-gray-600"} ${a[1]||""} last:border-0 `+("column"===e?t?"sm:border-b max-sm:border-r":"border-b":t?"sm:border-r max-sm:border-b":"border-r")})(l,h,f),c),children:(0,t.jsxs)(r.default,{href:e.url,className:(0,o.cn)("flex items-center text-sm text-gray-900 hover:underline",u),target:e.isExternal?"_blank":void 0,rel:e.rel,children:[!e.iconOnly&&(0,t.jsxs)(s.default,{variant:"Body.S",className:(0,o.cn)("flex flex-col",{"mr-1":e.IconComponent||e.iconUrl}),children:[(0,t.jsx)("span",{children:a}),e.subTextTranslationKey&&(0,t.jsx)("span",{className:"text-gray-400",children:g(e.subTextTranslationKey)})]}),e.IconComponent?(0,t.jsx)(e.IconComponent,{className:(0,o.cn)("h-4.5",e.iconClassName),"aria-label":e.iconOnly?a:""}):e.iconUrl&&(0,t.jsx)(i.default,{unoptimized:!0,src:e.iconUrl,alt:e.iconOnly?a:"",className:(0,o.cn)("h-4.5",e.iconClassName),rounded:!1}),e.isExternal&&!e.iconOnly&&(0,t.jsx)(d.ExternalLink,{className:"ml-0.5 h-4 w-auto","data-testid":"external-link-icon"})]})},e.title)})})};var u=e.i(918462),h=e.i(697380),f=e.i(909232),g=e.i(993269),m=e.i(859827);let p=new Date;e.s(["default",0,function({regime:e,locale:i,userLoggedIn:d,showCommunityGuidelines:x}){let v=(0,a.useTranslations)("Footer"),b=(0,f.useClientMobileMedia)(),[y,w]=(0,l.useState)(!1),[j,C]=(0,l.useState)(!1),N=(0,n.useAtomValue)(h.fixedBottomAdHeightAtom),S=y?g.Minus:m.Plus;(0,l.useEffect)(()=>{C(b)},[b]);let{corporateLinks:R,legalLinks:E,brandLinks:B,featureLinks:A,socialLinks:k}=(0,u.useFooterLinks)(e,i,d,x),L="h-[1px] w-full bg-[rgba(37,36,34,0.10)] lg:h-[revert] lg:w-[1px]";return(0,t.jsxs)("footer",{className:"border-t border-gray-200",style:{paddingBottom:N},children:[(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1208px] flex-col gap-4 p-6 pt-10 lg:gap-6",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 lg:flex-row lg:gap-6",children:[(0,t.jsxs)("div",{className:"w-full lg:w-[47%]",children:[(0,t.jsx)(c,{links:B,className:"gap-3.5",itemClassName:"",linkClassName:"flex items-center justify-center"}),(0,t.jsx)(s.default,{className:"my-5",children:v.rich("accuracyClaim",{b:e=>(0,t.jsx)("b",{children:e}),a:e=>(0,t.jsx)(r.default,{href:"https://forecastwatch.com/AccuracyOverview2021-2024",target:"_blank",className:"text-blue-500 underline hover:no-underline",children:e}),theWeatherCompany:"The Weather Company"})}),(0,t.jsx)("p",{className:"text-gray-400",children:"Weather Channel."})]}),(0,t.jsx)("div",{className:L}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 md:flex-row lg:w-[53%] lg:gap-6",children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("p",{className:"text-xl font-semibold",children:v("privacyNLegal")}),(0,t.jsx)(c,{links:E,className:"mt-4 flex-col",itemClassName:"py-2",linkClassName:"whitespace-nowrap"})]}),(0,t.jsx)("div",{className:(0,o.cn)(L,"md:hidden lg:block")}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:(0,o.cn)("flex w-full items-center justify-between",j&&"cursor-pointer"),...j&&{onClick:()=>w(e=>!e),role:"button",tabIndex:0,"aria-label":"Toggle"},children:[(0,t.jsx)("p",{className:"text-xl font-semibold",children:v("more")}),j&&(0,t.jsx)(S,{className:"h-4 w-4 text-gray-600"})]}),(0,t.jsx)(c,{links:R,className:(0,o.cn)("mt-4 flex-col",j&&!y&&"hidden"),itemClassName:"py-2"})]})]})]}),(0,t.jsx)("div",{className:"h-[1px] bg-[rgba(37,36,34,0.10)]"}),(0,t.jsxs)("div",{className:"items-left flex flex-col justify-between py-1 max-md:gap-6 md:flex-row md:items-center",children:[(0,t.jsx)("div",{className:"order-1",children:(0,t.jsx)(c,{links:k,className:"gap-3",linkClassName:"flex h-11 w-11 items-center justify-center rounded-full bg-[rgba(53,45,35,0.102)] p-3"})}),(0,t.jsx)("div",{className:"order-3 sm:order-2",children:(0,t.jsxs)("p",{className:"text-gray-400",children:["© The Weather Company, LLC ",p.getFullYear()]})}),(0,t.jsx)("div",{className:"order-2 sm:order-3",children:(0,t.jsx)(c,{links:A,className:"items-end gap-5 md:items-center"})})]})]}),(0,t.jsx)("div",{className:"h-15 md:hidden"})]})}],80479)},702957,489408,113016,312401,807215,876329,e=>{"use strict";var t=e.i(648198),l=e.i(539922),a=e.i(747961);let n=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Today"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 2a5.5 5.5 0 0 1 5.5 5.5c0 1.661-.74 3.145-1.902 4.153A5.5 5.5 0 0 1 17 22H7a5.5 5.5 0 0 1-1.628-10.753 7.01 7.01 0 0 1 5.193-4.6A5.5 5.5 0 0 1 16 2m-4 6.5a5 5 0 0 0-4.857 3.813l-.154.628-.635.12A3.5 3.5 0 0 0 7 20h10a3.5 3.5 0 0 0 .645-6.94l-.635-.118-.154-.629A5 5 0 0 0 12 8.5M16 4a3.5 3.5 0 0 0-3.363 2.53 7 7 0 0 1 5.55 3.701A3.5 3.5 0 0 0 16 4",clipRule:"evenodd"})]})),r=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:n,...e}));r.displayName="PartlyCloudyBold",e.s(["PartlyCloudyBold",0,r],702957);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Today"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 2a5.5 5.5 0 0 1 3.6 9.655A5.5 5.5 0 0 1 17 22H7a5.5 5.5 0 0 1-1.628-10.753 7.01 7.01 0 0 1 5.193-4.6A5.5 5.5 0 0 1 16 2m0 2a3.5 3.5 0 0 0-3.363 2.53 7 7 0 0 1 5.55 3.701A3.5 3.5 0 0 0 16 4",clipRule:"evenodd"})]})),s=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:i,...e}));s.displayName="PartlyCloudyBoldFilled",e.s(["PartlyCloudyBoldFilled",0,s],489408);let o=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Video"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M9.5 8.895a.5.5 0 0 1 .762-.426l5.046 3.105a.5.5 0 0 1 0 .852l-5.046 3.105a.5.5 0 0 1-.762-.426z"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 4.5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2zm-17 13h17v-11h-17z",clipRule:"evenodd"})]})),d=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:o,...e}));d.displayName="VideoPlayerBold",e.s(["VideoPlayerBold",0,d],113016);let c=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Video"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 4.5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2zM10.262 8.469a.5.5 0 0 0-.762.426v6.21a.5.5 0 0 0 .762.426l5.046-3.105a.5.5 0 0 0 0-.852z",clipRule:"evenodd"})]})),u=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:c,...e}));u.displayName="VideoPlayerBoldFilled",e.s(["VideoPlayerBoldFilled",0,u],312401);let h=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Radar"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 2a1 1 0 0 1 0 2 8.001 8.001 0 1 0 2.322 15.655 8 8 0 0 0 4-12.557l-1.43 1.43A6 6 0 1 1 12 6a1 1 0 0 1 0 2 4 4 0 1 0 3.447 1.973l-2.74 2.74a1 1 0 0 1-1.414-1.414l6.321-6.323.043-.047a1 1 0 0 1 1.415 0A10 10 0 1 1 12 2"})]})),f=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:h,...e}));f.displayName="RadarBold",e.s(["RadarBold",0,f],807215);let g=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Radar"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8.002 8.002 0 0 0-7.056 11.772 8.001 8.001 0 1 0 12.713-9.43.75.75 0 0 0-1.06 0l-.006.007-.03.027-5.091 5.09a.751.751 0 0 0 1.06 1.062l2.053-2.053A3.001 3.001 0 1 1 12 9a.75.75 0 0 0 0-1.5 4.502 4.502 0 0 0-3.969 6.621 4.502 4.502 0 0 0 7.71.379 4.5 4.5 0 0 0-.075-5.108l1.429-1.43a6.5 6.5 0 0 1 .31 7.65A6.5 6.5 0 1 1 12 5.5.75.75 0 0 0 12 4",clipRule:"evenodd"})]})),m=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:g,...e}));m.displayName="RadarBoldFilled",e.s(["RadarBoldFilled",0,m],876329)},57,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getMediaAssetsById=i;let a=e.r(414655),n=e.r(678651),r=e.r(46365);async function i(e,t,l){let i=(0,n.urlFrom)((0,r.getMediaAssetsByIdUrlConfig)({assetId:e,limit:l,language:t})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return await (0,a.handleFetchResponse)(s)}},718043,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},l.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},l.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},l.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:l}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${l}/${e}`}},l.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:l=0,limit:r=10,sort:i="-publishdate"}){let s={q:Object.keys(t).reduce((e,l)=>{let a=t[l];return a instanceof Array?[...e,...a.map(e=>n(l,e))]:[...e,n(l,a)]},[]).join(";"),pg:`${l},${r}`,format:"json",sort:i},o=(0,a.queryStringToSearchParams)(s).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},l.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:l=0,limit:n=10,sort:r="-publishdate"}){let i={q:t,pg:`${l},${n}`,format:"json",sort:r},s=(0,a.queryStringToSearchParams)(i).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},l.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:l=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${l}`}},l.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let a=e.r(678651);function n(e,t){let l=`'${t.$in}'`;return t.$in instanceof Array&&(l=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${l})`}},427977,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getQuickNav=void 0;let a=e.r(414655),n=e.r(678651),r=e.r(718043);l.getQuickNav=async()=>{let e=(0,n.urlFrom)((0,r.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,a.handleFetchResponse)(t)}},526371,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getOrderedCollectionByCollectionName=void 0,l.getVideosByCollectionName=i;let a=e.r(718043),n=e.r(678651),r=e.r(414655);async function i(e,t){let l=t?t.split("-").join("_"):"en_US",i=(0,n.urlFrom)((0,a.getCMSOrderedListUrlConfig)({language:l,collectionId:e,collectionType:"video"})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,r.handleFetchResponse)(s)}l.getOrderedCollectionByCollectionName=async(e,t)=>{let l=t?t.split("-").join("_"):"en_US",i=(0,n.urlFrom)((0,a.getCMSOrderedCollectionsUrlConfig)({collectionId:e,language:l})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,r.handleFetchResponse)(s)}},995113,445899,e=>{"use strict";var t=e.i(648198),l=e.i(539922),a=e.i(747961);let n=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"lightning"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M5.748 14.435a.43.43 0 0 0 .203.195.4.4 0 0 0 .164.037.4.4 0 0 0 .188-.057.43.43 0 0 0 .145-.142l5.47-7.69a.47.47 0 0 0 .046-.453.44.44 0 0 0-.156-.185.4.4 0 0 0-.223-.068H9.587l.727-3.52a.49.49 0 0 0-.084-.384.4.4 0 0 0-.146-.124A.4.4 0 0 0 9.902 2H5.694a.4.4 0 0 0-.268.094.46.46 0 0 0-.152.254L4.01 8.23a.49.49 0 0 0 .083.39q.062.082.151.126a.4.4 0 0 0 .187.04h2.032L5.7 14.147c-.014.1.003.201.049.289"})]})),r=l.default.forwardRef((e,l)=>(0,t.jsx)(a.BaseIcon,{ref:l,icon:n,...e}));r.displayName="LightningFilled",e.s(["LightningFilled",0,r],995113);var i=e.i(57),s=e.i(427977),o=e.i(526371);let d={"en-US":"b5b00612-dcab-47fe-aa37-7edcc198c3eb","es-US":"79e3a66a-ee77-47a2-a93d-84931a413924","de-DE":"ef0cb00f-bd97-4636-b2b2-b7d0fcd7dc30","en-IN":"b784ec68-382d-4b45-8eb0-47f3d677d6c6",en:"85d5d0c0-c26b-420a-8bd5-788bba2ec0bb"},c=async e=>{let t=await (0,s.getQuickNav)(),l=t?.videoLinkLocaleInclude?.[e],a=l?.launchPlaylist;if(l?.override&&a){let t=await (0,o.getVideosByCollectionName)(a,e);return t?.[0]?.url||null}let n=d[e];if(!n)return null;let r=await (0,i.getMediaAssetsById)(n,"1");return r?.[0]?.url||null};e.s(["getVideoLink",0,c],445899)},316810,436066,166763,314552,e=>{"use strict";var t=e.i(648198),l=e.i(632137);e.s(["default",0,({className:e})=>(0,t.jsx)("span",{className:(0,l.cn)("text-xxs bg-brand-200 ml-2 inline-flex h-[19px] items-center justify-center rounded-md border-2 border-white px-[3px] py-1 font-bold text-white",e),children:"New"})],316810);var a=e.i(751931);let n=(0,a.atom)(!1),r=(0,a.atom)(!1),i=(0,a.atom)(!1);e.s(["locationPickerOpenAtom",0,i,"menuOpenAtom",0,r,"settingsMenuOpenAtom",0,n],436066),e.s(["LOCALE_DATA",0,[{title:"Americas",countries:[{name:"Antigua and Barbuda",locale:"en-AG",language:"English"},{name:"Argentina",locale:"es-AR",language:"Español"},{name:"Bahamas",locale:"en-BS",language:"English"},{name:"Barbados",locale:"en-BB",language:"English"},{name:"Belize",locale:"en-BZ",language:"English"},{name:"Bolivia",locale:"es-BO",language:"Español"},{name:"Brazil",locale:"pt-BR",language:"Português"},{name:"Canada",locale:"en-CA",language:"English"},{name:"Canada",locale:"fr-CA",language:"Français"},{name:"Chile",locale:"es-CL",language:"Español"},{name:"Colombia",locale:"es-CO",language:"Español"},{name:"Costa Rica",locale:"es-CR",language:"Español"},{name:"Dominica",locale:"en-DM",language:"English"},{name:"Dominican Republic",locale:"es-DO",language:"Español"},{name:"Ecuador",locale:"es-EC",language:"Español"},{name:"El Salvador",locale:"es-SV",language:"Español"},{name:"Grenada",locale:"en-GD",language:"English"},{name:"Guatemala",locale:"es-GT",language:"Español"},{name:"Guyana",locale:"en-GY",language:"English"},{name:"Haiti",locale:"fr-HT",language:"Français"},{name:"Honduras",locale:"es-HN",language:"Español"},{name:"Jamaica",locale:"en-JM",language:"English"},{name:"Mexico",locale:"es-MX",language:"Español"},{name:"Nicaragua",locale:"es-NI",language:"Español"},{name:"Panama",locale:"es-PA",language:"Español"},{name:"Panama",locale:"en-PA",language:"English"},{name:"Paraguay",locale:"es-PY",language:"Español"},{name:"Peru",locale:"es-PE",language:"Español"},{name:"St. Kitts and Nevis",locale:"en-KN",language:"English"},{name:"St. Lucia",locale:"en-LC",language:"English"},{name:"St. Vincent and the Grenadines",locale:"en-VC",language:"English"},{name:"Suriname",locale:"nl-SR",language:"Nederlands"},{name:"Trinidad and Tobago",locale:"en-TT",language:"English"},{name:"Uruguay",locale:"es-UY",language:"Español"},{name:"United States",locale:"en-US",language:"English"},{name:"United States",locale:"es-US",language:"Español"},{name:"Venezuela",locale:"es-VE",language:"Español"}]},{title:"Africa",countries:[{name:"Algeria",locale:"ar-DZ",language:"العربية"},{name:"Algeria",locale:"fr-DZ",language:"Français"},{name:"Angola",locale:"pt-AO",language:"Português"},{name:"Benin",locale:"fr-BJ",language:"Français"},{name:"Burkina Faso",locale:"fr-BF",language:"Français"},{name:"Burundi",locale:"fr-BI",language:"Français"},{name:"Cameroon",locale:"fr-CM",language:"Français"},{name:"Cameroon",locale:"en-CM",language:"English"},{name:"Cape Verde",locale:"pt-CV",language:"Português"},{name:"Central African Republic",locale:"fr-CF",language:"Français"},{name:"Chad",locale:"fr-TD",language:"Français"},{name:"Chad",locale:"ar-TD",language:"العربية"},{name:"Comoros",locale:"fr-KM",language:"Français"},{name:"Comoros",locale:"ar-KM",language:"العربية"},{name:"Democratic Republic of the Congo",locale:"fr-CD",language:"Français"},{name:"Republic of Congo",locale:"fr-CG",language:"Français"},{name:"Côte d'Ivoire",locale:"fr-CI",language:"Français"},{name:"Djibouti",locale:"fr-DJ",language:"Français"},{name:"Djibouti",locale:"ar-DJ",language:"العربية"},{name:"Egypt",locale:"ar-EG",language:"العربية"},{name:"Equatorial Guinea",locale:"es-GQ",language:"Español"},{name:"Eritrea",locale:"ar-ER",language:"العربية"},{name:"Gabon",locale:"fr-GA",language:"Français"},{name:"Gambia",locale:"en-GM",language:"English"},{name:"Ghana",locale:"en-GH",language:"English"},{name:"Guinea",locale:"fr-GN",language:"Français"},{name:"Guinea-Bissau",locale:"pt-GW",language:"Português"},{name:"Kenya",locale:"en-KE",language:"English"},{name:"Lesotho",locale:"en-LS",language:"English"},{name:"Liberia",locale:"en-LR",language:"English"},{name:"Libya",locale:"ar-LY",language:"العربية"},{name:"Madagascar",locale:"fr-MG",language:"Français"},{name:"Mali",locale:"fr-ML",language:"Français"},{name:"Mauritania",locale:"ar-MR",language:"العربية"},{name:"Mauritius",locale:"en-MU",language:"English"},{name:"Mauritius",locale:"fr-MU",language:"Français"},{name:"Morocco",locale:"ar-MA",language:"العربية"},{name:"Morocco",locale:"fr-MA",language:"Français"},{name:"Mozambique",locale:"pt-MZ",language:"Português"},{name:"Namibia",locale:"en-NA",language:"English"},{name:"Niger",locale:"fr-NE",language:"Français"},{name:"Nigeria",locale:"en-NG",language:"English"},{name:"Rwanda",locale:"fr-RW",language:"Français"},{name:"Rwanda",locale:"en-RW",language:"English"},{name:"Sao Tome and Principe",locale:"pt-ST",language:"Português"},{name:"Senegal",locale:"fr-SN",language:"Français"},{name:"Sierra Leone",locale:"en-SL",language:"English"},{name:"Somalia",locale:"ar-SO",language:"العربية"},{name:"South Africa",locale:"en-ZA",language:"English"},{name:"South Sudan",locale:"en-SS",language:"English"},{name:"Sudan",locale:"ar-SD",language:"العربية"},{name:"Swaziland",locale:"en-SZ",language:"English"},{name:"Tanzania",locale:"en-TZ",language:"English"},{name:"Togo",locale:"fr-TG",language:"Français"},{name:"Tunisia",locale:"ar-TN",language:"العربية"},{name:"Uganda",locale:"en-UG",language:"English"}]},{title:"Asia Pacific",countries:[{name:"Australia",locale:"en-AU",language:"English"},{name:"Bangladesh",locale:"bn-BD",language:"বাংলা"},{name:"Brunei",locale:"ms-BN",language:"Bahasa Melayu"},{name:"China",locale:"zh-CN",language:"中文"},{name:"Hong Kong SAR",locale:"zh-HK",language:"中文"},{name:"East Timor",locale:"pt-TP",language:"Português"},{name:"Fiji",locale:"en-FJ",language:"English"},{name:"India (English)",locale:"en-IN",language:"English"},{name:"India (Hindi)",locale:"hi-IN",language:"हिन्दी"},{name:"Indonesia",locale:"id-ID",language:"Bahasa Indonesia"},{name:"Japan",locale:"ja-JP",language:"日本語"},{name:"Kiribati",locale:"en-KI",language:"English"},{name:"South Korea",locale:"ko-KR",language:"한국어"},{name:"Kyrgyzstan",locale:"ru-KG",language:"Русский"},{name:"Malaysia",locale:"ms-MY",language:"Bahasa Melayu"},{name:"Marshall Islands",locale:"en-MH",language:"English"},{name:"Micronesia",locale:"en-FM",language:"English"},{name:"New Zealand",locale:"en-NZ",language:"English"},{name:"Palau",locale:"en-PW",language:"English"},{name:"Philippines",locale:"en-PH",language:"English"},{name:"Philippines",locale:"tl-PH",language:"Tagalog"},{name:"Samoa",locale:"en-AS",language:"English"},{name:"Singapore",locale:"en-SG",language:"English"},{name:"Singapore",locale:"zh-SG",language:"中文"},{name:"Solomon Islands",locale:"en-SB",language:"English"},{name:"Taiwan",locale:"zh-TW",language:"中文"},{name:"Thailand",locale:"th-TH",language:"ไทย"},{name:"Tonga",locale:"en-TO",language:"English"},{name:"Tuvalu",locale:"en-TV",language:"English"},{name:"Vanuatu",locale:"en-VU",language:"English"},{name:"Vanuatu",locale:"fr-VU",language:"Français"},{name:"Vietnam",locale:"vi-VN",language:"Tiếng Việt"}]},{title:"Europe",countries:[{name:"Andorra",locale:"ca-AD",language:"Català"},{name:"Andorra",locale:"fr-AD",language:"Français"},{name:"Austria",locale:"de-AT",language:"Deutsch"},{name:"Belarus",locale:"ru-BY",language:"Русский"},{name:"Belgium",locale:"nl-BE",language:"Dutch"},{name:"Belgium",locale:"fr-BE",language:"Français"},{name:"Bosnia and Herzegovina",locale:"hr-BA",language:"Hrvatski"},{name:"Croatia",locale:"hr-HR",language:"Hrvatski"},{name:"Cyprus",locale:"el-CY",language:"Ελληνικά"},{name:"Czech Republic",locale:"cs-CZ",language:"Čeština"},{name:"Denmark",locale:"da-DK",language:"Dansk"},{name:"Estonia",locale:"ru-EE",language:"Русский"},{name:"Estonia",locale:"et-EE",language:"Eesti"},{name:"Finland",locale:"fi-FI",language:"Suomi"},{name:"France",locale:"fr-FR",language:"Français"},{name:"Germany",locale:"de-DE",language:"Deutsch"},{name:"Greece",locale:"el-GR",language:"Ελληνικά"},{name:"Hungary",locale:"hu-HU",language:"Magyar"},{name:"Ireland",locale:"en-IE",language:"English"},{name:"Italy",locale:"it-IT",language:"Italiano"},{name:"Liechtenstein",locale:"de-LI",language:"Deutsch"},{name:"Luxembourg",locale:"fr-LU",language:"Français"},{name:"Malta",locale:"en-MT",language:"English"},{name:"Monaco",locale:"fr-MC",language:"Français"},{name:"Netherlands",locale:"nl-NL",language:"Nederlands"},{name:"Norway",locale:"no-NO",language:"Norsk"},{name:"Poland",locale:"pl-PL",language:"Polski"},{name:"Portugal",locale:"pt-PT",language:"Português"},{name:"Romania",locale:"ro-RO",language:"Română"},{name:"San Marino",locale:"it-SM",language:"Italiano"},{name:"Slovakia",locale:"sk-SK",language:"Slovenčina"},{name:"Spain",locale:"es-ES",language:"Español"},{name:"Spain",locale:"ca-ES",language:"Català"},{name:"Sweden",locale:"sv-SE",language:"Svenska"},{name:"Switzerland",locale:"de-CH",language:"Deutsch"},{name:"Turkey",locale:"tr-TR",language:"Turkçe"},{name:"Ukraine",locale:"uk-UA",language:"Українська"},{name:"United Kingdom",locale:"en-GB",language:"English"},{name:"State of Vatican City (Holy See)",locale:"it-VA",language:"Italiano"}]},{title:"Middle East",countries:[{name:"Bahrain",locale:"ar-BH",language:"العربية"},{name:"Iraq",locale:"ar-IQ",language:"العربية"},{name:"Israel",locale:"he-IL",language:"עִבְרִית"},{name:"Jordan",locale:"ar-JO",language:"العربية"},{name:"Kuwait",locale:"ar-KW",language:"العربية"},{name:"Lebanon",locale:"ar-LB",language:"العربية"},{name:"Oman",locale:"ar-OM",language:"العربية"},{name:"Pakistan",locale:"ur-PK",language:" اردو"},{name:"Pakistan",locale:"en-PK",language:"English"},{name:"Qatar",locale:"ar-QA",language:"العربية"},{name:"Saudi Arabia",locale:"ar-SA",language:"العربية"},{name:"Syria",locale:"ar-SY",language:"العربية"},{name:"United Arab Emirates",locale:"ar-AE",language:"العربية"}]}],"convertLocaleFormat",0,function(e){return e.replace("-","_")}],166763),e.s(["defaultLocale",0,"en-US"],314552)},906361,e=>{"use strict";var t=e.i(648198),l=e.i(632137),a=e.i(547100),n=e.i(827049),r=e.i(475566);let i=[{locales:["de-DE"],url:"https://www.focus.de/?utm_source=weather.com&utm_medium=referral&utm_campaign=unser+netzwerk",cobrandIconSrc:{src:e.i(10993).default,width:208,height:74,blurWidth:0,blurHeight:0}.src}];var s=e.i(37429),o=e.i(240058);let d=e=>{let{classname:a}=e,d=(0,r.useAtomValue)(n.pageLocaleAtom),{url:c,cobrandIconSrc:u}=i.find(e=>e.locales.includes(d))||{};return c&&u?(0,t.jsx)("span",{className:"flex",children:(0,t.jsx)(o.default,{href:c,target:"_blank",className:(0,l.cn)("relative p-0",a,{"de-DE":"de-DE"===d}),children:(0,t.jsx)(s.default,{className:"h-6 w-auto max-w-none",src:u,alt:"focus logo",rounded:!1})})}):null};var c=e.i(458645),u=e.i(368847),h=e.i(113016),f=e.i(312401),g=e.i(539922),m=e.i(747961);let p=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Home"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm-4 6h4v-4H5zM19 3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM5 9h14V5H5zM19 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm-4 6h4v-4h-4z",clipRule:"evenodd"})]})),x=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:p,...e}));x.displayName="HomeBold";let v=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Home"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zM19 3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM19 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2z",clipRule:"evenodd"})]})),b=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:v,...e}));b.displayName="HomeBoldFilled";let y=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Playlist"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M9.5 11.395a.5.5 0 0 1 .762-.426l5.046 3.105a.5.5 0 0 1 0 .852l-5.046 3.105a.5.5 0 0 1-.762-.425z"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm-17 13h17V9h-17z",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M18.25 4a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5zM14.75 1a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5z"})]})),w=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:y,...e}));w.displayName="PlaylistVideoBold";let j=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Playlist"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm-10.238 3.969a.5.5 0 0 0-.762.426v6.21a.5.5 0 0 0 .762.426l5.046-3.105a.5.5 0 0 0 0-.852z",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M18.25 4a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5zM14.75 1a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5z"})]})),C=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:j,...e}));C.displayName="PlaylistVideoBoldFilled";let N=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.422 7.47a1.002 1.002 0 0 1 1.084 1.237l-1.414 5.656c-.09.359-.37.64-.729.729l-5.656 1.414a1 1 0 0 1-1.213-1.213l1.414-5.656c.09-.359.37-.64.729-.729l5.656-1.414zM9.84 14.162l3.456-.865-2.593-2.593z",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16",clipRule:"evenodd"})]})),S=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:N,...e}));S.displayName="Compass";let R=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"m13.709 13.709-4.558 1.14 1.139-4.559z"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.422 5.47-.129.024-5.656 1.414c-.359.09-.64.37-.729.729l-1.414 5.656a1 1 0 0 0 1.213 1.213l5.656-1.414c.359-.09.64-.37.729-.729l1.414-5.656a1 1 0 0 0-1.084-1.236",clipRule:"evenodd"})]})),E=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:R,...e}));E.displayName="CompassFilled";var B=e.i(807215),A=e.i(876329);let k=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Close"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.5 1.5a1 1 0 0 1 1 1V3H19a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5v-.5a1 1 0 0 1 2 0V3h5v-.5a1 1 0 0 1 1-1M5 10v9h14v-9zm0-2h14V5h-2.5v.5a1 1 0 1 1-2 0V5h-5v.5a1 1 0 0 1-2 0V5H5z",clipRule:"evenodd"})]})),L=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:k,...e}));L.displayName="CalendarBold";let M=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Daily"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.5 1.5a1 1 0 0 1 1 1V3H19a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5v-.5a1 1 0 0 1 2 0V3h5v-.5a1 1 0 0 1 1-1M5 8h14V5h-2.5v.5a1 1 0 1 1-2 0V5h-5v.5a1 1 0 0 1-2 0V5H5z",clipRule:"evenodd"})]})),I=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:M,...e}));I.displayName="CalendarBoldFilled";let P=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Hourly"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 6a1 1 0 0 1 1 1v4.586l2.707 2.707a1 1 0 1 1-1.414 1.414l-3-3A1 1 0 0 1 11 12V7a1 1 0 0 1 1-1"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16",clipRule:"evenodd"})]})),D=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:P,...e}));D.displayName="TimeBold";let T=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Hourly"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 4a1 1 0 0 0-1 1v5a1 1 0 0 0 .293.707l3 3a1 1 0 1 0 1.414-1.414L13 11.586V7a1 1 0 0 0-1-1",clipRule:"evenodd"})]})),U=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:T,...e}));U.displayName="TimeBoldFilled";var z=e.i(129932),F=e.i(800177);let V=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Breathing"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M15.1 13.5c1.103 0 1.991-.001 2.709.058.728.06 1.368.185 1.96.487a5 5 0 0 1 2.186 2.185c.302.593.428 1.233.487 1.961.059.718.058 1.606.058 2.71V21a1 1 0 1 1-2 0v-.1c0-1.136 0-1.929-.05-2.545-.05-.606-.143-.954-.277-1.217a3 3 0 0 0-1.31-1.31c-.264-.135-.612-.228-1.218-.277-.616-.05-1.409-.051-2.545-.051h-.2c-1.136 0-1.929 0-2.546.05-.605.05-.953.143-1.216.277a3 3 0 0 0-1.31 1.31c-.135.264-.228.612-.277 1.218-.05.616-.051 1.409-.051 2.545v.1a1 1 0 1 1-2 0v-.1c0-1.103-.001-1.991.058-2.709.06-.728.185-1.368.487-1.96a5 5 0 0 1 2.185-2.186c.593-.302 1.233-.428 1.961-.487.718-.059 1.606-.058 2.71-.058z"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10m0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6",clipRule:"evenodd"}),(0,t.jsx)("path",{fill:"currentColor",d:"M8 8a.75.75 0 0 1 0 1.5H4.5a.75.75 0 0 0-.75.75v.5a.75.75 0 0 1-1.5 0v-.5A2.25 2.25 0 0 1 4.5 8zM3 3.5a.75.75 0 0 1 .75.75v.5c0 .414.336.75.75.75H8A.75.75 0 0 1 8 7H4.5a2.25 2.25 0 0 1-2.25-2.25v-.5A.75.75 0 0 1 3 3.5"})]})),O=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:V,...e}));O.displayName="BreathingBold";let _=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Breathing"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M15.1 13.5c1.103 0 1.991-.001 2.709.058.728.06 1.368.185 1.96.487a5 5 0 0 1 2.186 2.185c.302.593.428 1.233.487 1.961.059.718.058 1.606.058 2.71 0 .092 0 .138-.003.177a1 1 0 0 1-.919.92C21.54 22 21.493 22 21.4 22H8.6c-.093 0-.14 0-.178-.003a1 1 0 0 1-.92-.919C7.5 21.04 7.5 20.993 7.5 20.9c0-1.103-.001-1.991.058-2.709.06-.728.185-1.368.487-1.96a5 5 0 0 1 2.185-2.186c.593-.302 1.233-.428 1.961-.487.718-.059 1.606-.058 2.71-.058zM8 8a1 1 0 0 1 0 2H4.5a.5.5 0 0 0-.5.5v.5a1 1 0 1 1-2 0v-.5A2.5 2.5 0 0 1 4.5 8zM15 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10M3 3a1 1 0 0 1 1 1v.5a.5.5 0 0 0 .5.5H8a1 1 0 0 1 0 2H4.5A2.5 2.5 0 0 1 2 4.5V4a1 1 0 0 1 1-1"})]})),H=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:_,...e}));H.displayName="BreathingBoldFilled";let $=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Virus"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.75 14a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M8.75 11.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M12 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2M15.25 10a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M11.25 7.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5"}),(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 1.5a1 1 0 1 1 0 2H13v1.067a7.46 7.46 0 0 1 3.547 1.47l.757-.755-.354-.353a1 1 0 1 1 1.414-1.414l2.121 2.12a1 1 0 0 1-1.414 1.415l-.353-.354-.756.756A7.46 7.46 0 0 1 19.432 11H20.5v-.5a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0V13h-1.068a7.46 7.46 0 0 1-1.47 3.547l.756.757.353-.354a1 1 0 1 1 1.414 1.414l-2.12 2.121a1 1 0 0 1-1.415-1.414l.354-.353-.757-.756A7.46 7.46 0 0 1 13 19.432V20.5h.5a1 1 0 1 1 0 2h-3a1 1 0 1 1 0-2h.5v-1.068a7.46 7.46 0 0 1-3.548-1.47l-.756.756.354.353a1 1 0 1 1-1.414 1.414l-2.121-2.12a1 1 0 0 1 1.414-1.415l.353.354.755-.757A7.46 7.46 0 0 1 4.568 13H3.5v.5a1 1 0 1 1-2 0v-3a1 1 0 0 1 2 0v.5h1.068a7.46 7.46 0 0 1 1.47-3.548l-.756-.756-.353.354a1 1 0 1 1-1.414-1.414l2.12-2.121A1 1 0 0 1 7.05 4.929l-.354.353.756.755A7.46 7.46 0 0 1 11 4.567V3.5h-.5a1 1 0 0 1 0-2zm-1.5 5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11",clipRule:"evenodd"})]})),K=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:$,...e}));K.displayName="FluBold";let G=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Virus"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 1.5a1 1 0 1 1 0 2H13v1.067a7.46 7.46 0 0 1 3.547 1.47l.757-.755-.354-.353a1 1 0 1 1 1.414-1.414l2.121 2.12a1 1 0 0 1-1.414 1.415l-.353-.354-.756.756A7.46 7.46 0 0 1 19.432 11H20.5v-.5a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0V13h-1.068a7.46 7.46 0 0 1-1.47 3.547l.756.757.353-.354a1 1 0 1 1 1.414 1.414l-2.12 2.121a1 1 0 0 1-1.415-1.414l.354-.353-.757-.756A7.46 7.46 0 0 1 13 19.432V20.5h.5a1 1 0 1 1 0 2h-3a1 1 0 1 1 0-2h.5v-1.068a7.46 7.46 0 0 1-3.548-1.47l-.756.756.354.353a1 1 0 1 1-1.414 1.414l-2.121-2.12a1 1 0 0 1 1.414-1.415l.353.354.755-.757A7.46 7.46 0 0 1 4.568 13H3.5v.5a1 1 0 1 1-2 0v-3a1 1 0 0 1 2 0v.5h1.068a7.46 7.46 0 0 1 1.47-3.548l-.756-.756-.353.354a1 1 0 1 1-1.414-1.414l2.12-2.121A1 1 0 0 1 7.05 4.929l-.354.353.756.755A7.46 7.46 0 0 1 11 4.567V3.5h-.5a1 1 0 0 1 0-2zm-.25 13a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m-5-2.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2m3.75-1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m-5-2.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5",clipRule:"evenodd"})]})),W=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:G,...e}));W.displayName="FluBoldFilled";let Y=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Hurricane"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M4 11.5c0-4.926 3.82-7.286 7.19-8.388 1.712-.56 3.41-.836 4.67-.973a25 25 0 0 1 1.972-.137l.12-.002H18a1 1 0 0 1 .815 1.581l-1.962 2.745c.336.307.753.72 1.17 1.226C18.964 8.697 20 10.418 20 12.5c0 4.926-3.82 7.286-7.19 8.388-1.712.56-3.41.836-4.67.973a25 25 0 0 1-1.972.137l-.12.002H6a1 1 0 0 1-.814-1.581l1.96-2.746a12 12 0 0 1-1.168-1.225C5.036 15.303 4 13.582 4 11.5m10.918-4.187a1 1 0 0 1-.231-1.394l1.27-1.778c-1.162.132-2.66.386-4.147.872C8.68 6.036 6 7.926 6 11.5c0 1.418.714 2.697 1.521 3.677A10 10 0 0 0 8.968 16.6q.061.048.092.07l.02.015.001.002a1 1 0 0 1 .232 1.394l-1.27 1.777c1.161-.132 2.66-.385 4.147-.87C15.32 17.963 18 16.073 18 12.5c0-1.418-.714-2.697-1.521-3.677A10 10 0 0 0 15.032 7.4l-.092-.07-.02-.016z"})]})),q=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:Y,...e}));q.displayName="HurricaneBold";let X=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Hurricane"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M4 11.5c0-4.926 3.82-7.286 7.19-8.388 1.712-.56 3.41-.836 4.67-.973a25 25 0 0 1 1.972-.137l.12-.002H18a1 1 0 0 1 .815 1.581l-1.962 2.745c.336.307.753.72 1.17 1.226C18.964 8.697 20 10.418 20 12.5c0 4.926-3.82 7.286-7.19 8.388-1.712.56-3.41.836-4.67.973a25 25 0 0 1-1.972.137l-.12.002H6a1 1 0 0 1-.814-1.581l1.96-2.746a12 12 0 0 1-1.168-1.225C5.036 15.303 4 13.582 4 11.5"})]})),Q=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:X,...e}));Q.displayName="HurricaneBoldFilled";var J=e.i(702957),Z=e.i(489408);let ee=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Allergy"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 3.05c-.133 2.644-.8 4.637-1.783 6.126a8.23 8.23 0 0 1-3.488 2.983 9.9 9.9 0 0 1-3.729.86v6.044c2.101.257 3.941 1.315 5.019 2.867a1 1 0 0 1-1.643 1.14C14.547 21.876 12.933 21 11 21c-1.553 0-2.911.568-3.813 1.42a1 1 0 0 1-1.373-1.454c1.08-1.02 2.551-1.704 4.186-1.905v-6.015h-.033c-.673-.017-1.598-.121-2.525-.492-.94-.376-1.897-1.033-2.57-2.146-.672-1.11-1.005-2.578-.869-4.48L4.07 5H5c2.827 0 4.586.886 5.637 2.063a7.1 7.1 0 0 1 1.516-2.442C13.786 2.914 16.348 2 20 2h1.052zM5.978 7.045c.04 1.06.286 1.804.603 2.328.405.668.979 1.074 1.602 1.323.627.251 1.29.334 1.816.349V11l.006-.379a3.84 3.84 0 0 0-.444-1.64c-.426-.775-1.355-1.721-3.583-1.936m12.929-3.012c-2.687.164-4.32.937-5.31 1.97-1.06 1.109-1.541 2.682-1.593 4.637q.004.083.004.152 0 .13-.006.208l-.002.015c.082-.004.168-.005.258-.012a7.9 7.9 0 0 0 2.638-.662 6.23 6.23 0 0 0 2.652-2.267c.63-.953 1.14-2.256 1.359-4.04",clipRule:"evenodd"})]})),et=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:ee,...e}));et.displayName="PollenBold";let el=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Allergy"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 3.05c-.133 2.644-.8 4.637-1.783 6.126a8.23 8.23 0 0 1-3.488 2.983 9.9 9.9 0 0 1-3.729.86v6.044c2.101.257 3.941 1.315 5.019 2.867a1 1 0 0 1-1.643 1.14C14.547 21.876 12.933 21 11 21c-1.553 0-2.911.568-3.813 1.42a1 1 0 0 1-1.373-1.454c1.08-1.02 2.551-1.704 4.186-1.905v-6.015h-.033c-.673-.017-1.598-.121-2.525-.492-.94-.376-1.897-1.033-2.57-2.146-.672-1.11-1.005-2.578-.869-4.48L4.07 5H5c2.827 0 4.586.886 5.637 2.063a7.1 7.1 0 0 1 1.516-2.442C13.786 2.914 16.348 2 20 2h1.052z",clipRule:"evenodd"})]})),ea=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:el,...e}));ea.displayName="PollenBoldFilled";let en=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Storm"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M11.124 11.519a1 1 0 1 1 1.752.962L10.94 16h4.77l-3.089 5.49a1 1 0 1 1-1.742-.98L12.29 18H7.559z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M12 2.5a7 7 0 0 1 6.626 4.747 5.5 5.5 0 0 1-.404 10.616 1 1 0 0 1-.444-1.95 3.5 3.5 0 0 0-.133-6.853l-.635-.118-.154-.629a5 5 0 0 0-9.713 0l-.154.628-.635.12a3.5 3.5 0 0 0-.909 6.576 1 1 0 0 1-.89 1.79 5.5 5.5 0 0 1 .817-10.18A7 7 0 0 1 12 2.5"})]})),er=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:en,...e}));er.displayName="ThunderstormsBold";let ei=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Storm"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M11.124 11.519a1 1 0 1 1 1.752.962L10.94 16h4.77l-3.089 5.49a1 1 0 1 1-1.742-.98L12.29 18H7.559z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M12 2a7 7 0 0 1 6.626 4.747 5.5 5.5 0 0 1-1.464 10.748l1.129-2.005A1 1 0 0 0 17.42 14h-3.097l.305-.555A3 3 0 0 0 9.45 10.42l-.077.134-3.728 6.776a5.5 5.5 0 0 1-.271-10.584A7 7 0 0 1 12 2"})]})),es=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:ei,...e}));es.displayName="ThunderstormsBoldFilled";let eo=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Tornado"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M13 19a1 1 0 1 1 0 2h-3a1 1 0 1 1 0-2zM12 16a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2zM13 13a1 1 0 1 1 0 2H5.5a1 1 0 1 1 0-2zM14 10a1 1 0 1 1 0 2H6a1 1 0 1 1 0-2zM17 7a1 1 0 1 1 0 2H4.5a1 1 0 0 1 0-2zM19 4a1 1 0 1 1 0 2H6a1 1 0 0 1 0-2z"})]})),ed=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:eo,...e}));ed.displayName="TornadoBold";let ec=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Tornado"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.5 18.5a1.5 1.5 0 0 1 0 3h-2a1.5 1.5 0 0 1 0-3h-2a1.5 1.5 0 0 1 0-3H6a1.5 1.5 0 0 1 0-3h.5a1.5 1.5 0 0 1 0-3H5a1.5 1.5 0 1 1 0-3h1.5a1.5 1.5 0 1 1 0-3h12a1.5 1.5 0 0 1 0 3h-2a1.5 1.5 0 0 1 0 3h-3a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0 3z"})]})),eu=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:ec,...e}));eu.displayName="TornadoBoldFilled";var eh=e.i(611540);let ef={VideoPlayerBold:h.VideoPlayerBold,VideoPlayerBoldActive:f.VideoPlayerBoldFilled,PlaylistVideoBold:w,PlaylistVideoBoldActive:C,RadarBold:B.RadarBold,RadarBoldActive:A.RadarBoldFilled,HomeBold:x,HomeBoldActive:b,CalendarBold:L,CalendarBoldActive:I,TimeBold:D,TimeBoldActive:U,SkincareBold:z.SkincareBold,SkincareBoldActive:F.SkincareBoldFilled,BreathingBold:O,BreathingBoldActive:H,FluBold:K,FluBoldActive:W,HurricaneBold:q,HurricaneBoldActive:Q,PartlyCloudyBold:J.PartlyCloudyBold,PartlyCloudyBoldActive:Z.PartlyCloudyBoldFilled,PollenBold:et,PollenBoldActive:ea,ThunderstormsBold:er,ThunderstormsBoldActive:es,TornadoBold:ed,TornadoBoldActive:eu,Compass:S,CompassActive:E},eg=[{titleTranslationKey:"home",url:eh.URLS.home,includeLocales:["en-US","es-US","de-DE"],icon:"HomeBold"},{url:eh.URLS.today,titleTranslationKey:"today",icon:"PartlyCloudyBold"},{url:eh.URLS.hourly,titleTranslationKey:"hourly",icon:"TimeBold"},{url:eh.URLS.tenday,titleTranslationKey:"tenday",excludePartners:["oppo_widget"],icon:"CalendarBold"},{url:eh.URLS.tenday,titleTranslationKey:"fifteenday",includePartners:["oppo_widget"],icon:"CalendarBold"},{url:eh.URLS.radar,titleTranslationKey:"radar",excludePartners:["samsungVietnam"],icon:"RadarBold"},{url:"",dynamicVideoUrl:!0,title:"Video",includeLocales:["en-US","es-US"],icon:"VideoPlayerBold"},{url:eh.URLS.allergy,titleTranslationKey:"allergyTracker",excludeLocales:["de-DE","en-US"],icon:"PollenBold"},{url:eh.URLS.airQuality,titleTranslationKey:"airQualityIndex",excludeLocales:["de-DE","en-US"],icon:"BreathingBold"},{title:"Explore",url:"/explore",includeLocales:["en-US"],showNewBadge:17723196e5>Date.now(),icon:"Compass",includeGeoIP:["US"]},{title:"Severe Weather",includeLocales:["en-US"],includePartners:["samsung"],links:[{url:"/storms/hurricane-central",title:"Hurricane Central",icon:"HurricaneBold"},{url:"/storms/tornado-central",title:"Tornado Central",icon:"TornadoBold"},{url:"/safety/index",title:"Safety & Prep",icon:"ThunderstormsBold"}]},{title:"Health & Wellness",includeLocales:["en-US"],includePartners:["samsung"],links:[{url:eh.URLS.allergy,titleTranslationKey:"allergyTracker",icon:"PollenBold"},{url:eh.URLS.airQuality,titleTranslationKey:"airQualityIndex",icon:"BreathingBold"},{url:"/forecast/cold-flu/l/{locId}",title:"Cold & Flu Tracker",icon:"FluBold"},{url:"/health/skin-health",title:"Skin Health",icon:"PlaylistVideoBold"}]},{title:"Lifestyle",includeLocales:["en-US"],includePartners:["samsung"],links:[{url:"/home-garden",title:"Home & Garden",icon:"PlaylistVideoBold"},{url:"/pets",title:"Pets & Animals",icon:"PlaylistVideoBold"},{url:"/home-garden/recipes",title:"Recipes",icon:"PlaylistVideoBold"},{url:"/science/space",title:"Space & Skywatching",icon:"PlaylistVideoBold"},{url:"/travel",title:"Travel & Outdoors",icon:"PlaylistVideoBold"},{url:"/atmosphere",title:"Product Reviews & Deals",icon:"SkincareBold"},{url:"https://shop.weather.com/",title:"Shop",openInNewWindow:!0,icon:"SkincareBold"}]},{url:"/de-DE/neuigkeiten/deutschland",title:"Video",includeLocales:["de-DE"],icon:"VideoPlayerBold"},{title:"News",includeLocales:["de-DE"],links:[{title:"Wetter-News",url:"/de-DE/wetter",excludePartners:["samsung"],icon:"PlaylistVideoBold"},{title:"Deutschland",url:"/de-DE/wetter/deutschland",excludePartners:["samsung"],icon:"PlaylistVideoBold"},{title:"Ausland",url:"/de-DE/wetter/ausland",excludePartners:["samsung"],icon:"PlaylistVideoBold"}]},{title:"Wissen",includeLocales:["de-DE"],excludePartners:["samsung"],links:[{title:"Übersicht",url:"/de-DE/wissen",icon:"PlaylistVideoBold"},{title:"Umwelt",url:"/de-DE/wissen/umwelt",icon:"PlaylistVideoBold"},{title:"Klima",url:"/de-DE/wissen/klima",icon:"PlaylistVideoBold"},{title:"Mensch",url:"/de-DE/wissen/mensch",icon:"PlaylistVideoBold"},{title:"Tiere",url:"/de-DE/wissen/tiere",icon:"PlaylistVideoBold"},{title:"Astronomie",url:"/de-DE/wissen/astronomie",icon:"PlaylistVideoBold"},{title:"Wetterphänomene",url:"/de-DE/wissen/wetterphaenomene",icon:"PlaylistVideoBold"},{title:"Wetterlexikon",url:"/de-DE/wissen/wetterlexikon",icon:"PlaylistVideoBold"},{title:"Haus und Garten",url:"/de-DE/haus-und-garten",icon:"PlaylistVideoBold"}]},{title:"Gesundheit",includeLocales:["de-DE"],links:[{title:"Pollenflug-Kalender",url:"/de-DE/forecast/allergy/l/{locId}",excludePartners:["samsung"],icon:"PollenBold"},{url:"/de-DE/forecast/air-quality/l/{locId}",title:"Luftqualitätsindex",icon:"BreathingBold"},{title:"Übersicht",url:"/de-DE/gesundheit",excludePartners:["samsung"],icon:"PlaylistVideoBold"},{title:"Allergie",url:"/de-DE/gesundheit/allergie",icon:"PlaylistVideoBold"},{title:"Ernährung",url:"/de-DE/gesundheit/ernaehrung",excludePartners:["samsung"],icon:"PlaylistVideoBold"},{title:"Sonnenschutz",url:"/de-DE/gesundheit/sonnenschutz",excludePartners:["samsung"],icon:"PlaylistVideoBold"},{title:"Psyche",url:"/de-DE/gesundheit/psyche",excludePartners:["samsung"],icon:"PlaylistVideoBold"}]},{title:"Reisen",includeLocales:["de-DE"],excludePartners:["samsung"],links:[{title:"Übersicht",url:"/de-DE/reisen",icon:"PlaylistVideoBold"},{title:"Deutschland",url:"/de-DE/reisen/deutschland",icon:"PlaylistVideoBold"},{title:"Europa",url:"/de-DE/reisen/europa",icon:"PlaylistVideoBold"},{title:"Fernreisen",url:"/de-DE/reisen/fernreisen",icon:"PlaylistVideoBold"},{title:"Service",url:"/de-DE/reisen/service",icon:"PlaylistVideoBold"},{title:"Beste Reisezeit",url:"/de-DE/reisen/beste-reisezeit",icon:"PlaylistVideoBold"},{title:"Wintersport",url:"/de-DE/reisen/wintersport",icon:"PlaylistVideoBold"}]}];var em=e.i(316810),ep=e.i(436066);let ex=({link:e,role:a,forceCollapsedNavbar:n})=>{let i=(0,r.useAtomValue)(ep.settingsMenuOpenAtom),s=e.isActive&&!i,d=ef[`${e.icon}${s?"Active":""}`];return(0,t.jsx)("li",{children:(0,t.jsxs)(o.default,{href:e.url||"",className:(0,l.cn)("group relative box-border flex h-14 cursor-pointer flex-col items-center justify-center rounded-2xl px-3 font-semibold text-gray-900 no-underline transition-colors duration-200 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!n,"pointer-events-none bg-gray-100 font-bold text-blue-500":s}),role:a,sourceModule:"sidebarNavigation",children:[(0,t.jsx)(d,{className:(0,l.cn)("w-6 shrink-0 text-inherit",{"xl:mr-3":!n})}),(0,t.jsx)(u.default,{className:(0,l.cn)("text-xxs mt-1 h-[13px] font-semibold text-inherit",{"font-bold":s,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!n}),lineClamp:1,children:e.title}),e.showNewBadge&&(0,t.jsx)(em.default,{className:(0,l.cn)("transition duration-200 group-hover:border-gray-100 group-focus:border-gray-100","absolute top-0 right-0",{"xl:static":!n,"border-gray-100":s})})]})},e.title)};var ev=e.i(25681),eb=e.i(941497),ey=e.i(537989),ew=e.i(381477),ej=e.i(445899),eC=e.i(959194),eN=e.i(427309);let eS=({navigationData:e,locale:t,geoIPCountry:l,partner:a,theme:n,videoUrl:r,pathname:i,locId:s,pageId:o,tSidebarNavigation:d})=>e.reduce((e,c)=>{if("links"in c){let u=eS({navigationData:c.links,locale:t,geoIPCountry:l,partner:a,theme:n,videoUrl:r,pathname:i,locId:s,pageId:o,tSidebarNavigation:d});e.push({title:c.title,links:u})}else{let l;l=c.dynamicVideoUrl?r:(0,eh.interpolateUrl)(c.url,{locId:s,locale:t});let a=c.titleTranslationKey?d(c.titleTranslationKey):c.title,n=c.dynamicVideoUrl?"video"===o:i===l;e.push({title:a,url:l,icon:c.icon,showNewBadge:c.showNewBadge,...n&&{isActive:n}})}return e},[]),eR=({filteredPropName:e,filteredPropValue:t})=>l=>!(l[`exclude${e}`]&&l[`exclude${e}`].includes(t))&&(!l[`include${e}`]||!!l[`include${e}`].includes(t));var eE=e.i(995113),eB=e.i(47524),eA=e.i(598513),ek=e.i(828405),eL=e.i(889753),eM=e.i(837879);let eI=({forceCollapsedNavbar:e})=>{let a=(0,r.useAtomValue)(eL.userTierAtom),n=(0,ek.isUserTierPremium)(a),i=(0,eA.useSendInteractionEvent)(),s=(0,eM.useSubscriptionsEnabled)();return n||!s?null:(0,t.jsx)("li",{children:(0,t.jsxs)(o.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&tpcc=mktg-leftrail-menu-upgrade",style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>i({interactionElement:"sidebar-nav-go-to-checkout-button",interactionType:"click",moduleId:"SidebarNavigation"}),className:(0,l.cn)("group relative flex h-14 flex-col items-center justify-center overflow-hidden rounded-2xl px-3 font-semibold text-white no-underline focus:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e}),sourceModule:"sidebarNavigation",children:[(0,t.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,t.jsx)(eE.LightningFilled,{className:(0,l.cn)("relative z-2 w-6 shrink-0 text-white",{"xl:mr-3":!e})}),(0,t.jsxs)(u.default,{className:(0,l.cn)("text-xxs relative z-2 mt-1 h-[13px] font-semibold whitespace-nowrap text-white",{"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e}),lineClamp:1,children:[(0,t.jsx)("span",{className:(0,l.cn)("hidden",{"xl:contents":!e}),children:"Get Premium"}),(0,t.jsx)("span",{className:(0,l.cn)("contents xl:hidden",{"xl:contents":e}),children:"Upgrade"})]}),(0,t.jsx)(eB.ChevronRight,{className:(0,l.cn)("relative z-2 ml-auto hidden w-4 shrink-0 text-white",{"xl:block":!e})})]})})},eP=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Overflow Menu Horizontal"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.jsx)("path",{d:"M4 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})]})),eD=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:eP,...e}));eD.displayName="OverflowMenuHorizontal";let eT=({forceCollapsedNavbar:e})=>{let n=(0,a.useTranslations)("SidebarNavigation"),[i,s]=(0,r.useAtom)(ep.settingsMenuOpenAtom);return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":i,onClick:()=>s(e=>!e),className:(0,l.cn)("group relative box-border flex h-14 w-full cursor-pointer flex-col items-center justify-center rounded-2xl bg-transparent px-3 font-semibold text-gray-900 no-underline transition-colors duration-200 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e,"bg-gray-100 font-bold text-blue-500":i}),children:[(0,t.jsx)(eD,{className:(0,l.cn)("w-6 shrink-0 text-inherit",{"xl:mr-3":!e})}),(0,t.jsx)(u.default,{className:(0,l.cn)("text-xxs mt-1 h-[13px] font-semibold text-inherit",{"font-bold":i,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e}),lineClamp:1,children:n("more")})]})})};var eU=e.i(379805),ez=e.i(553329),eF=e.i(710746);let eV=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"temperature"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{fillRule:"evenodd",d:"M6.5 8.63V3a2 2 0 1 0-4 0v5.63a3.5 3.5 0 1 0 4 0M4.5 2a1 1 0 0 1 1 1v3.5h-2V3a1 1 0 0 1 1-1m0 12a2.5 2.5 0 0 1-1.25-4.665l.25-.14V7.5h2v1.695l.25.14A2.5 2.5 0 0 1 4.5 14",clipRule:"evenodd"}),(0,t.jsx)("path",{d:"M9.938 2.466a.5.5 0 0 1 .5-.5h4.087a.5.5 0 0 1 0 1h-4.087a.5.5 0 0 1-.5-.5M10.438 4.996a.5.5 0 1 0 0 1h2.63a.5.5 0 0 0 0-1zM9.938 11.509a.5.5 0 0 1 .5-.5h2.63a.5.5 0 0 1 0 1h-2.63a.5.5 0 0 1-.5-.5M10.438 8.002a.5.5 0 1 0 0 1h4.087a.5.5 0 0 0 0-1z"})]})]})),eO=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:eV,...e}));eO.displayName="Temperature";let e_=(0,e.i(514514).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var eH=e.i(617874),e$=e.i(166763),eK=e.i(314552),eG=e.i(674885),eW=e.i(776169),eY=e.i(523084),eq=e.i(274432);let eX=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Checkmark"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.207 3.793a1 1 0 0 1 0 1.414L7.384 12.03a1.25 1.25 0 0 1-1.768 0L1.793 8.207a1 1 0 0 1 1.414-1.414L6.5 10.086l6.293-6.293a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]})),eQ=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:eX,...e}));function eJ({locale:e,LOCALE_DATA:n,handleLocaleChange:r,onBack:i,onClose:s}){let o=(0,a.useTranslations)("SidebarNavigation"),[d,c]=(0,g.useState)(""),h=(0,g.useMemo)(()=>{let t=n.flatMap(e=>e.countries),l=e.toLowerCase(),a=t.find(e=>e.locale.toLowerCase()===l),r=t.filter(e=>e.locale.toLowerCase()!==l).sort((e,t)=>{let l=e.name.localeCompare(t.name);return 0!==l?l:e.language.localeCompare(t.language)});return a?[a,...r]:r},[n,e]),f=(0,g.useMemo)(()=>{let e=d.trim().toLowerCase();return e?h.filter(t=>t.name.toLowerCase().includes(e)||t.language.toLowerCase().includes(e)):h},[d,h]),m=e.toLowerCase();return(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 pt-5 pb-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":o("back"),className:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-transparent text-gray-900 transition-colors hover:bg-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(eY.ChevronLeft,{className:"h-4 w-4 rtl:rotate-180"})}),(0,t.jsx)(u.default,{elementType:"h2",variant:"Title.S",className:"text-gray-900",children:o("locationAndLanguage")})]}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":o("close"),className:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-gray-100 text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(eF.Close,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:"px-5 pt-2 pb-4",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",value:d,onChange:e=>c(e.target.value),placeholder:o("searchCountriesOrLanguages"),"aria-label":o("searchCountriesOrLanguages"),className:"relative box-border h-12 w-full rounded-3xl border-2 border-transparent bg-white ps-9.5 pr-4 text-sm text-gray-900 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_0_32px_0_rgba(0,0,0,0.12)] transition-all placeholder:text-gray-900 placeholder:transition-all hover:border-blue-500 focus:outline-none focus:placeholder:text-gray-400 focus-visible:border-blue-500"}),(0,t.jsx)(eq.Search,{className:"pointer-events-none absolute start-4 top-1/2 size-4 -translate-y-1/2 text-gray-900","aria-hidden":"true"})]})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1 overflow-y-auto px-2 py-1",children:[0===f.length&&(0,t.jsx)("div",{className:"px-5 py-8 text-center",children:(0,t.jsx)(u.default,{className:"text-[13px] text-stone-600",children:o("noMatchingCountriesOrLanguages")})}),f.map(e=>{let a=e.locale.toLowerCase()===m;return(0,t.jsxs)("button",{type:"button",onClick:()=>r(e.locale),"aria-pressed":a,className:(0,l.cn)("flex w-full cursor-pointer items-center justify-between gap-3 rounded-2xl px-3 py-3 text-left text-sm leading-loose tracking-tight transition-colors","focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",a?"bg-gray-100 font-bold text-blue-500":"font-medium hover:bg-gray-100 focus-visible:bg-gray-100 active:bg-gray-200"),children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:a?"":"text-gray-900",children:e.name}),(0,t.jsx)("span",{className:(0,l.cn)("mx-1.5",!a&&"text-stone-600"),children:"·"}),(0,t.jsx)("span",{className:a?"":"text-gray-600",children:e.language})]}),a&&(0,t.jsx)(eQ,{className:"h-4 w-4 shrink-0 text-blue-500","aria-hidden":"true"})]},e.locale)})]})]})}eQ.displayName="Checkmark";let eZ=new Set(["article","video","index"]);function e0(){let e=(0,a.useTranslations)("SidebarNavigation"),n=(0,r.useAtomValue)(ep.settingsMenuOpenAtom),i=(0,r.useSetAtom)(ep.settingsMenuOpenAtom),s=(0,r.useAtomValue)(eG.isImperialUnitsAtom),o=(0,r.useAtomValue)(eG.isMetricUnitsAtom),d=(0,r.useAtomValue)(eG.isHybridUnitsAtom),c=(0,ev.useParams)(),h=c?.locale||eK.defaultLocale,f=c?.locId,m=(0,r.useAtomValue)(ey.pageIdAtom),{updatePreferences:p}=(0,eW.usePreferences)(),x=(0,r.useAtomValue)(eL.userPreferencesAtom),v=(0,g.useRef)(null),[b,y]=(0,g.useState)(!1),[w,j]=(0,g.useState)(n),[C,N]=(0,g.useState)(!1),S=(0,g.useCallback)(()=>i(!1),[i]);(0,g.useEffect)(()=>{let e=(0,eU.getCookie)("unitOfMeasurement")?.toString();if(!e)return;let t=(0,eH.unitsSystemByCode)(e),l=t?.name;l&&l!==x?.unit&&p({unit:l})},[p,x?.unit]);let R=async e=>{let{error:t}=await (0,ez.tryCatch)(p({unit:e}));t&&console.error("Failed to update unit preference:",t)},E=async e=>{let t=(0,e$.convertLocaleFormat)(e),{error:l}=await (0,ez.tryCatch)(p({locale:t}));if(l)return void console.error("Failed to update locale preference:",l);if((0,eU.setCookie)("sitePref",e,{domain:`.${window.location.hostname}`}),S(),m&&eZ.has(m)){window.location.href=e===eK.defaultLocale?"/":`/${e}`;return}let a=m?eh.URLS[m]:void 0,n=a&&f?(0,eh.interpolateUrl)(a,{locale:e,locId:f}):null;if(n){window.location.href=n;return}let r=h!==eK.defaultLocale&&window.location.pathname.startsWith(`/${h}`)?window.location.pathname.slice(`/${h}`.length)||"/":window.location.pathname;window.location.href=e===eK.defaultLocale?r:`/${e}${r}`};if((0,g.useEffect)(()=>{if(n){j(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>N(!0))});return()=>{cancelAnimationFrame(t),e&&cancelAnimationFrame(e)}}N(!1);let e=setTimeout(()=>{j(!1),y(!1)},150);return()=>clearTimeout(e)},[n]),(0,g.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"===e.key&&(b?y(!1):S())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,b,S]),(0,g.useEffect)(()=>{if(n)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){let t=e.target;v.current&&t&&!v.current.contains(t)&&!t.closest("[data-settings-menu-trigger]")&&S()}},[n,S]),!w)return null;let B=e$.LOCALE_DATA.flatMap(e=>e.countries).find(e=>e.locale.toLowerCase()===h.toLowerCase()),A=[{id:eH.UNIT_IMPERIAL,label:"°F",active:s,caption:e("unitsImperialCaption")},{id:eH.UNIT_METRIC,label:"°C",active:o,caption:e("unitsMetricCaption")},{id:eH.UNIT_HYBRID,label:"Hybrid",active:d,caption:e("unitsHybridCaption")}];return(0,t.jsx)("div",{ref:v,role:"dialog","aria-label":e(b?"locationAndLanguage":"more"),className:(0,l.cn)("absolute top-0 bottom-0 z-105 flex w-[340px] flex-col bg-white","border-s border-black/10","shadow-[8px_0_30px_rgba(0,0,0,0.08)] rtl:shadow-[-8px_0_30px_rgba(0,0,0,0.08)]","left-full","transition-[opacity,translate] duration-150 ease-out",C?"translate-x-0 opacity-100":"pointer-events-none -translate-x-6 opacity-0 rtl:translate-x-6"),children:b?(0,t.jsx)(eJ,{locale:h,LOCALE_DATA:e$.LOCALE_DATA,handleLocaleChange:E,onBack:()=>y(!1),onClose:S}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 pt-5 pb-2",children:[(0,t.jsx)(u.default,{elementType:"h2",variant:"Title.S",className:"text-gray-900",children:e("more")}),(0,t.jsx)("button",{type:"button",onClick:S,"aria-label":e("close"),className:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-gray-100 text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(eF.Close,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:"px-5 pt-3 pb-1",children:(0,t.jsx)(u.default,{className:"text-[11px] font-bold tracking-[0.06em] text-stone-600 uppercase",children:e("settings")})}),(0,t.jsxs)("div",{className:"mx-2.5 flex h-16 items-center justify-between gap-3 px-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2.5",children:[(0,t.jsx)(eO,{className:"h-5 w-5 shrink-0 text-gray-600","aria-hidden":"true"}),(0,t.jsx)(u.default,{className:"truncate text-[15px] font-medium text-gray-900",children:e("units")})]}),(0,t.jsx)("div",{role:"radiogroup","aria-label":e("units"),className:"flex shrink-0 gap-0.5 rounded-full bg-gray-100 p-1",children:A.map((e,a)=>{let n=0===a?"start-0":a===A.length-1?"end-0":"start-1/2 -translate-x-1/2 rtl:translate-x-1/2";return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":e.active,title:e.caption,onClick:()=>R(e.id),className:(0,l.cn)("group/opt relative cursor-pointer rounded-full px-2.5 py-1 text-[12px] transition-all duration-200","focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",e.active?"bg-gray-900 font-semibold text-white":"font-medium text-gray-600 hover:bg-black/5 hover:text-gray-900"),children:[e.label,(0,t.jsx)("span",{role:"tooltip",className:(0,l.cn)("pointer-events-none absolute top-full z-10 mt-2 w-max max-w-[260px] rounded-md bg-gray-900 px-2.5 py-1.5 text-[12px] font-medium whitespace-normal text-white opacity-0 shadow-md transition-opacity duration-150","group-hover/opt:opacity-100 group-focus-visible/opt:opacity-100",n),children:e.caption})]},e.id)})})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>y(!0),"aria-label":e("locationAndLanguage"),className:"mx-2.5 mt-1 flex h-16 cursor-pointer items-center justify-between gap-3 rounded-2xl px-3 text-left transition-colors hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(e_,{className:"h-5 w-5 shrink-0 text-gray-600",strokeWidth:1.75,"aria-hidden":"true"}),(0,t.jsx)(u.default,{className:"text-[15px] font-medium text-gray-900",children:B?`${B.name} \xb7 ${B.language}`:e("locationAndLanguage")})]}),(0,t.jsx)(eB.ChevronRight,{className:"h-4 w-4 shrink-0 text-stone-600 rtl:rotate-180","aria-hidden":"true"})]})]})})}let e1=(0,g.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"User Avatar"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M8 4a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"}),(0,t.jsx)("path",{d:"M8 1a7 7 0 1 0 7 7 7.01 7.01 0 0 0-7-7M5 13.188V12.5A1.5 1.5 0 0 1 6.5 11h3a1.5 1.5 0 0 1 1.5 1.5v.688a5.95 5.95 0 0 1-6 0m6.996-.725A2.5 2.5 0 0 0 9.5 10h-3a2.5 2.5 0 0 0-2.496 2.463 6 6 0 1 1 7.992 0"})]})]})),e2=g.default.forwardRef((e,l)=>(0,t.jsx)(m.BaseIcon,{ref:l,icon:e1,...e}));function e4({firstName:e,isPremium:a,isAdFree:n}){let r=e?.charAt(0)?.toUpperCase();return(0,t.jsxs)("div",{className:(0,l.cn)("relative flex h-8 w-8 items-center justify-center rounded-full border-1 border-gray-900 md:h-12 md:w-12"),children:[(0,t.jsx)("span",{className:(0,l.cn)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":a}),children:r}),a&&(0,t.jsx)("span",{className:(0,l.cn)("absolute bottom-[-1px] left-[-1px] h-[9px] w-8 bg-white text-[6.25px] uppercase md:h-[13px] md:w-12 md:text-[10px]"),children:n?"Ad Free":"Premium"})]})}e2.displayName="UserAvatar";var e7=e.i(809058),e5=e.i(877957),e3=e.i(528600),e8=e.i(731672);let e6=({forceCollapsedNavbar:e})=>{let{user:n,userProfile:r}=(0,e3.useUser)(),{isUserLoggedIn:i,isUserPremium:s,isUserAdFree:d}=n,c=(0,e8.useUserLogout)(),h=(0,eM.useSubscriptionsEnabled)(),f=(0,a.useTranslations)("SidebarNavigation"),m=(0,a.useTranslations)("UserRegistration"),[p,x]=(0,g.useState)(!1);return i?(0,t.jsx)("li",{children:(0,t.jsxs)(e7.Popover,{open:p,onOpenChange:x,children:[(0,t.jsx)(e7.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":p,"data-testid":"sidebar-profile-button",className:(0,l.cn)("group relative box-border flex h-14 w-full cursor-pointer flex-col items-center justify-center rounded-2xl bg-transparent px-3 font-semibold text-gray-900 no-underline transition-colors duration-200 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e,"bg-gray-100 font-bold text-blue-500":p}),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:(0,l.cn)("flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-current text-[10px] leading-none font-bold text-inherit",{"xl:mr-3":!e}),children:r?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsx)(u.default,{className:(0,l.cn)("text-xxs mt-1 h-[13px] font-semibold text-inherit",{"font-bold":p,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e}),lineClamp:1,children:f("myAccount")})]})}),(0,t.jsx)(e7.PopoverContent,{side:"right",align:"end",className:"z-9996 p-0",showArrow:!1,children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(o.default,{href:"/member/settings","data-testid":"sidebar-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)(e4,{firstName:r?.firstName,isPremium:s,isAdFree:d}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(u.default,{variant:"Body.S",children:r?.firstName}),(0,t.jsx)(u.default,{className:"text-sm text-gray-500 hover:text-gray-700",children:m("manageAccount")})]})]})}),!s&&h&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(u.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(u.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(o.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",children:(0,t.jsx)(e5.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(e5.Button,{variant:"link",onClick:c,"data-testid":"sidebar-profile-signout",children:m("signOut")})})]})})]})}):(0,t.jsx)("li",{children:(0,t.jsxs)(o.default,{href:"/login",sourceModule:"sidebarNavigation",className:(0,l.cn)("group relative box-border flex h-14 cursor-pointer flex-col items-center justify-center rounded-2xl bg-gray-900 px-3 font-semibold text-white no-underline transition-opacity duration-200 hover:opacity-90 focus-visible:opacity-90 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e}),children:[(0,t.jsx)(e2,{className:(0,l.cn)("w-6 shrink-0 text-white",{"xl:mr-3":!e})}),(0,t.jsx)(u.default,{className:(0,l.cn)("text-xxs mt-1 h-[13px] font-semibold text-white",{"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e}),lineClamp:1,children:m("logIn")})]})})};e.i(647872);var e9=e.i(523579);let te=({locationProvider:e})=>{let i=(e=>{let{location:t}=(0,eb.useProviderLocation)(e),l=t?.placeId||"",i=(0,ev.usePathname)(),s=(0,ev.useParams)(),o=(0,r.useAtomValue)(n.pageLocaleAtom),d=(0,r.useAtomValue)(ey.pageIdAtom),c=(0,r.useAtomValue)(eN.geoipCountry)||"",u=(0,eC.getPartner)(),h=(0,a.useTranslations)("SidebarNavigation"),{data:f}=(0,ew.default)(["navigation/getVideoLink",o],([e,t])=>(0,ej.getVideoLink)(t),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),m=s.canonicalLocation,p=m&&m.length>0?i.substring(0,i.lastIndexOf("/")):void 0;return(0,g.useMemo)(()=>{var e,t,a,n,r,s;let g,m,x,v,b,y=(({navigationData:e,locale:t,geoIPCountry:l,partner:a,theme:n,videoUrl:r,pathname:i,locId:s,pageId:o,tSidebarNavigation:d})=>{let c=e.filter(eR({filteredPropName:"Locales",filteredPropValue:t})).filter(eR({filteredPropName:"Partners",filteredPropValue:a})).filter(eR({filteredPropName:"Themes",filteredPropValue:n})).filter(eR({filteredPropName:"GeoIP",filteredPropValue:l})).map(e=>"links"in e?{...e,links:e.links.filter(eR({filteredPropName:"Locales",filteredPropValue:t})).filter(eR({filteredPropName:"Partners",filteredPropValue:a})).filter(eR({filteredPropName:"Themes",filteredPropValue:n})).filter(eR({filteredPropName:"GeoIP",filteredPropValue:l}))}:e);return eS({navigationData:c=c.filter(e=>!("links"in e)||e.links.length>0),locale:t,geoIPCountry:l,partner:a,theme:n,videoUrl:r,pathname:i,locId:s,pageId:o,tSidebarNavigation:d})})({locId:l,pathname:i,videoUrl:f,navigationData:JSON.parse(JSON.stringify(eg)),locale:o,pageId:d,geoIPCountry:c,partner:u,tSidebarNavigation:h,theme:""});return e=y,t=l,a=o,n=i,r=h,s=p,g=e.filter(e=>"links"in e||!e.title.match(/^(Today|Hourly|10 Day|Tenday)$/i)),m=s?`${s}/today`:"en-US"===a?`/weather/today/l/${t}`:`/${a}/weather/today/l/${t}`,x=s?["today","hourbyhour","tenday"].includes(n.split("/").pop()??""):n.includes("/weather/today/")||n.includes("/weather/hourbyhour/")||n.includes("/weather/tenday/"),v={title:r("forecast"),url:m,icon:"PartlyCloudyBold",isActive:x},b=g.findIndex(e=>!("links"in e)&&"HomeBold"===e.icon),g.splice(b>=0?b+1:0,0,v),y=g},[l,i,f,o,d,u,p])})(e),s=(0,ev.usePathname)().includes("/subscribe"),u=(0,r.useAtomValue)(e9.retroWeatherAtom),h=(0,a.useTranslations)("SidebarNavigation");return(0,t.jsxs)("div",{className:"z-nav sticky top-0 hidden md:block",children:[(0,t.jsxs)("nav",{className:(0,l.cn)("relative top-0 box-content flex h-full h-screen w-20 flex-col gap-8 bg-white leading-none max-xl:items-center",{"xl:w-[200px]":!s}),"data-testid":"sidebar-navigation","aria-label":h("siteNavigationLinks"),children:[(0,t.jsxs)("div",{className:(0,l.cn)("mb-0 flex flex-wrap items-center justify-center gap-4 pt-4 leading-none xl:px-4",{"xl:justify-start":!s}),children:[(0,t.jsx)(o.default,{href:u?"/retro":"/",sourceModule:"sidebarNavigation",children:(0,t.jsx)(c.default,{className:"h-12 w-auto text-[#003399]",variant:"sidebar"})}),(0,t.jsx)(d,{})]}),(0,t.jsxs)("ul",{className:"m-0 flex w-full flex-col gap-1 px-3",children:[i.filter(e=>!e.links).map(e=>(0,t.jsx)(ex,{link:e,forceCollapsedNavbar:s},e.title)),(0,t.jsx)(eT,{forceCollapsedNavbar:s})]}),(0,t.jsxs)("ul",{className:"m-0 flex w-full flex-col gap-1 px-3",children:[(0,t.jsx)(e6,{forceCollapsedNavbar:s}),(0,t.jsx)(eI,{forceCollapsedNavbar:s})]})]}),(0,t.jsx)(e0,{})]})};e.s(["SidebarNavigation",0,te,"default",0,te],906361)},460581,e=>{"use strict";var t=e.i(648198),l=e.i(539922),a=e.i(240058),n=e.i(941497),r=e.i(747961);let i=(0,l.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...r},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":l,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"lightning"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.468 14.608a.56.56 0 0 0 .054.328c.05.1.13.178.224.223q.086.04.18.04a.43.43 0 0 0 .207-.064.5.5 0 0 0 .159-.162l6.017-8.742a.565.565 0 0 0 .05-.514.5.5 0 0 0-.17-.21.43.43 0 0 0-.246-.079H9.745l.8-4a.57.57 0 0 0-.092-.438.5.5 0 0 0-.161-.14.4.4 0 0 0-.2-.05H5.463a.43.43 0 0 0-.294.107.52.52 0 0 0-.168.289L3.612 7.882a.57.57 0 0 0 .091.443q.069.092.166.142a.4.4 0 0 0 .206.047H6.31zm5.49-8.18H8.526L9.45 1.8H5.896L4.71 7.514h2.748l-.692 5.007zm-5.022 8.31v-.01l.001-.055m-.03.097v-.028l-.004-.074m.005.102-.014-.021zm0 0v.027z",clipRule:"evenodd"})]})),s=l.default.forwardRef((e,l)=>(0,t.jsx)(r.BaseIcon,{ref:l,icon:i,...e}));s.displayName="Lightning";var o=e.i(995113),d=e.i(702957),c=e.i(489408),u=e.i(113016),h=e.i(312401),f=e.i(807215),g=e.i(876329),m=e.i(632137),p=e.i(475566),x=e.i(827049),v=e.i(537989),b=e.i(381477),y=e.i(445899),w=e.i(427977),j=e.i(25681),C=e.i(874886),N=e.i(498076),S=e.i(547100),R=e.i(611540),E=e.i(528600),B=e.i(837879);e.s(["default",0,function({locationProvider:e}){let r=(0,N.useIsMobile)(),i=(0,j.usePathname)(),A=(0,C.useCanonicalBasePath)(),k=(0,p.useAtomValue)(v.pageIdAtom),L=(0,S.useTranslations)("SidebarNavigation"),{user:M}=(0,E.useUser)(),{isUserPremium:I}=M,P=(0,B.useSubscriptionsEnabled)(),{location:D,isLoading:T}=(0,n.useProviderLocation)(e),U=(0,p.useAtomValue)(x.pageLocaleAtom),{data:z}=(0,b.default)(["navigation/getVideoLink",U],([e,t])=>(0,y.getVideoLink)(t),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:F}=(0,b.default)(["navigation/getQuickNav",U],()=>(0,w.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),V=(0,l.useMemo)(()=>{if(T||!D)return[];let e=D.placeId||"",l=A?`${A}/today`:(0,R.interpolateUrl)(R.URLS.today,{locale:U,locId:e}),a=(0,R.interpolateUrl)(R.URLS.radar,{locale:U,locId:e}),n=A?i.split("/").pop():null,r=A?C.CANONICAL_PAGE_TYPES.includes(n):i.includes("/weather/today/")||i.includes("/weather/hourbyhour/")||i.includes("/weather/tenday/")||i.includes("/weather/monthly/")||i.includes("/forecast/allergy/")||i.includes("/forecast/air-quality/")||i.includes("/forecast/cold-flu/"),m=i.includes("/weather/radar/")||i.includes("/weather/maps/"),p=i.includes("/subscribe"),x="video"===k,v=F?.videoLinkLocaleInclude?.["en-US"],b=v?.override?`?${v?.adRef}`:"",y=z?`${z}${b}`:"",w="h-6 w-6 text-inherit";return[{name:L("forecast"),href:l,icon:(0,t.jsx)(d.PartlyCloudyBold,{className:w}),activeIcon:(0,t.jsx)(c.PartlyCloudyBoldFilled,{className:w}),isActive:r},{name:L("video"),href:y,icon:(0,t.jsx)(u.VideoPlayerBold,{className:w}),activeIcon:(0,t.jsx)(h.VideoPlayerBoldFilled,{className:w}),isActive:x},{name:L("radar"),href:a,icon:(0,t.jsx)(f.RadarBold,{className:w}),activeIcon:(0,t.jsx)(g.RadarBoldFilled,{className:w}),isActive:m},...P&&!I&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(s,{className:w}),activeIcon:(0,t.jsx)(o.LightningFilled,{className:w}),isActive:p}]||[]]},[T,D,U,i,k,z,F,A]);return r&&0!==V.length?(0,t.jsx)("nav",{className:"fixed right-0 bottom-0 left-0 z-110 bg-white md:hidden","aria-label":"Mobile navigation","data-testid":"localsuite-nav",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:(0,t.jsx)("div",{className:"flex h-14 w-full items-stretch justify-around px-4 py-1",children:V.map(e=>(0,t.jsxs)(a.default,{href:e.href,className:(0,m.cn)("flex flex-1 flex-col items-center justify-center gap-0.5 rounded-3xl text-xs text-gray-900 transition-colors","hover:bg-gray-100 active:bg-gray-200",{"bg-gray-100 text-blue-500":e.isActive}),"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:(0,m.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold"),children:e.name})]},e.name))})})}):null}],460581)},867775,e=>{"use strict";var t=e.i(648198),l=e.i(539922),a=e.i(547100),n=e.i(877957),r=e.i(367810),i=e.i(901351),s=e.i(313983),o=e.i(725296),d=e.i(521350);let c=({isUserLoggedIn:e,regime:c,privacyPolicyLink:u,deviceClass:h,experience:f,isPremiumUser:g})=>{let m=(0,a.useTranslations)("PrivacyConsentModal"),[p,x]=(0,l.useState)(!1),[v,b]=(0,l.useState)(!1),[y,w]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!o.US_REGIMES.includes(c)||g||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),l=localStorage.getItem("saleOfDataConflict");t?(b(!0),x(!0)):e&&l&&(w(!0),x(!0))},[c,g,e]);let j=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await i.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},C=t=>{let l=window,a=window.top,n=l.DprSdk||a?.DprSdk;n?(n.setUserConsents({[s.Purpose.SALE_OF_DATA]:t}),e&&j({purpose:s.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),v?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):y&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),x(!1)):console.error("Unable to fix conflict, missing DprSdk.")},N="",S="";if(v?(N="gpcConflictHeader",S="gpcConflictParagraph",c===o.Regime.USA_CCPA&&(S+="_usa-ccpa")):y&&(N="saleOfDataConflictHeader",S="saleOfDataConflictParagraph",c===o.Regime.USA_CCPA&&(S+="_usa-ccpa")),S)return(0,t.jsx)(r.Dialog,{open:p,onOpenChange:x,children:(0,t.jsxs)(r.DialogContent,{className:`text-center ${"desktop"!==h?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===f?"wu-theme":""} `,onEscapeKeyDown:e=>{(y||v)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[N&&(0,t.jsx)(r.DialogHeader,{children:(0,t.jsx)(r.DialogTitle,{className:"text-xl font-semibold",children:m(N)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:m.rich(S,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:u,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(r.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(n.Button,{onClick:()=>{C(!0)},variant:"default",className:"w-full sm:w-auto",children:m("optInButtonText")}),(0,t.jsx)(n.Button,{onClick:()=>{C(!1)},variant:"secondary",className:"w-full sm:w-auto",children:m("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModal",0,c,"default",0,c])},556441,e=>{"use strict";var t=e.i(648198),l=e.i(25681),a=e.i(240058),n=e.i(877957),r=e.i(368847),i=e.i(132084),s=e.i(528600),o=e.i(837879),d=e.i(498076),c=e.i(37429);e.s(["default",0,()=>{let e=(0,l.useSearchParams)(),u=e.get("par")||e.get("partner"),h=(0,d.useIsMobile)(),f=(0,o.useSubscriptionsEnabled)(),{user:g}=(0,s.useUser)(),{isUserPremium:m}=g;return u===i.Partner.TIKTOK&&h&&f&&!m?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(c.default,{src:"https://s.w-x.co/tt-banner.jpg",alt:"",fill:!0,priority:!0,isFetchPriority:!0,rounded:!1,objectFit:"cover",className:"object-center",wrapperClassName:"absolute inset-0","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,t.jsx)(r.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(r.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(n.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(a.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",children:"Claim Now"})})]})]}):null}])},370645,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=e.r(539922);l.default=function(e){var t=(0,a.cache)(function(){return{current:e}});return[function(){return t().current},function(e){t().current=e}]}},348693,e=>{"use strict";let t;var l,a,n,r,i,s,o,d,c,u,h,f,g,m,p,x,v,b,y,w=e.i(648198),j=e.i(632137),C=e.i(240058),N=e.i(539922),S=e.i(547100),R=e.i(475566),E=e.i(877957),B=e.i(809058),A=e.i(526456),k=e.i(747961);let L=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Chevron Up"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{fill:"currentColor",d:"M8.471 5.7a.667.667 0 0 0-.942 0L3.35 9.88a.495.495 0 1 0 .7.7L8 6.629l3.95 3.95a.495.495 0 0 0 .7-.7z"})]})),M=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:L,...e}));M.displayName="ChevronUp";var I=e.i(710746),P=e.i(427309),D=e.i(498076);let T=({animationStrings:e})=>(0,w.jsx)(w.Fragment,{children:e.map(e=>(0,w.jsx)("span",{"data-nosnippet":!0,className:(0,j.cn)("animate-pulse","bg-gray-200","text-transparent","rounded-sm","box-decoration-clone"),children:e},e))});var U=e.i(436066),z=e.i(985542),F=e.i(381477),V=e.i(612977),O=e.i(77323),_=e.i(310847),H=e.i(919101);let $=()=>{let{getLocationName:e,getLocationContext:t,getLocationPresentationName:l}=(0,O.usePresentationName)(),a=(0,R.useAtomValue)(_.wxuUserRecentAddressesAtom);return{buildSearchItem:(0,N.useCallback)(n=>{let r=(0,H.getAddressForLocationData)(n,a);return{placeId:r.placeId,temperature:0,iconCode:44,geocode:`${r.latitude},${r.longitude}`,presentationName:l(r),name:e(r),nameContext:t(r),displayName:r.displayName,address:r.address,type:r.type}},[t,e,l,a])}};var K=e.i(935331),G=e.i(493449);let W="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Y(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function q(e){return"nodeType"in e}function X(e){var t,l;return e?Y(e)?e:q(e)&&null!=(t=null==(l=e.ownerDocument)?void 0:l.defaultView)?t:window:window}function Q(e){let{Document:t}=X(e);return e instanceof t}function J(e){return!Y(e)&&e instanceof X(e).HTMLElement}function Z(e){return e instanceof X(e).SVGElement}function ee(e){return e?Y(e)?e.document:q(e)?Q(e)?e:J(e)||Z(e)?e.ownerDocument:document:document:document}let et=W?N.useLayoutEffect:N.useEffect;function el(e){let t=(0,N.useRef)(e);return et(()=>{t.current=e}),(0,N.useCallback)(function(){for(var e=arguments.length,l=Array(e),a=0;a{l.current!==e&&(l.current=e)},t),l}function en(e,t){let l=(0,N.useRef)();return(0,N.useMemo)(()=>{let t=e(l.current);return l.current=t,t},[...t])}function er(e){let t=el(e),l=(0,N.useRef)(null),a=(0,N.useCallback)(e=>{e!==l.current&&(null==t||t(e,l.current)),l.current=e},[]);return[l,a]}function ei(e){let t=(0,N.useRef)();return(0,N.useEffect)(()=>{t.current=e},[e]),t.current}let es={};function eo(e,t){return(0,N.useMemo)(()=>{if(t)return t;let l=null==es[e]?0:es[e]+1;return es[e]=l,e+"-"+l},[e,t])}function ed(e){return function(t){for(var l=arguments.length,a=Array(l>1?l-1:0),n=1;n{for(let[a,n]of Object.entries(l)){let l=t[a];null!=l&&(t[a]=l+e*n)}return t},{...t})}}let ec=ed(1),eu=ed(-1);function eh(e){if(!e)return!1;let{KeyboardEvent:t}=X(e.target);return t&&e instanceof t}function ef(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=X(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:l}=e.touches[0];return{x:t,y:l}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:l}=e.changedTouches[0];return{x:t,y:l}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let eg=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:l}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(l?Math.round(l):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:l}=e;return"scaleX("+t+") scaleY("+l+")"}},Transform:{toString(e){if(e)return[eg.Translate.toString(e),eg.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:l,easing:a}=e;return t+" "+l+"ms "+a}}}),em="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",ep={display:"none"};function ex(e){let{id:t,value:l}=e;return N.default.createElement("div",{id:t,style:ep},l)}function ev(e){let{id:t,announcement:l,ariaLiveType:a="assertive"}=e;return N.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":a,"aria-atomic":!0},l)}let eb=(0,N.createContext)(null),ey={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},ew={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:l}=e;return l?"Draggable item "+t.id+" was moved over droppable area "+l.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:l}=e;return l?"Draggable item "+t.id+" was dropped over droppable area "+l.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function ej(e){var t;let l,{announcements:a=ew,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=ey}=e,{announce:s,announcement:o}=function(){let[e,t]=(0,N.useState)("");return{announce:(0,N.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),d=eo("DndLiveRegion"),[c,u]=(0,N.useState)(!1);if((0,N.useEffect)(()=>{u(!0)},[]),t=(0,N.useMemo)(()=>({onDragStart(e){let{active:t}=e;s(a.onDragStart({active:t}))},onDragMove(e){let{active:t,over:l}=e;a.onDragMove&&s(a.onDragMove({active:t,over:l}))},onDragOver(e){let{active:t,over:l}=e;s(a.onDragOver({active:t,over:l}))},onDragEnd(e){let{active:t,over:l}=e;s(a.onDragEnd({active:t,over:l}))},onDragCancel(e){let{active:t,over:l}=e;s(a.onDragCancel({active:t,over:l}))}}),[s,a]),l=(0,N.useContext)(eb),(0,N.useEffect)(()=>{if(!l)throw Error("useDndMonitor must be used within a children of ");return l(t)},[t,l]),!c)return null;let h=N.default.createElement(N.default.Fragment,null,N.default.createElement(ex,{id:r,value:i.draggable}),N.default.createElement(ev,{id:d,announcement:o}));return n?(0,G.createPortal)(h,n):h}function eC(){}function eN(e,t){return(0,N.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(l=u||(u={})).DragStart="dragStart",l.DragMove="dragMove",l.DragEnd="dragEnd",l.DragCancel="dragCancel",l.DragOver="dragOver",l.RegisterDroppable="registerDroppable",l.SetDroppableDisabled="setDroppableDisabled",l.UnregisterDroppable="unregisterDroppable";let eS=Object.freeze({x:0,y:0});function eR(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function eE(e,t){let{data:{value:l}}=e,{data:{value:a}}=t;return l-a}function eB(e,t){let{data:{value:l}}=e,{data:{value:a}}=t;return a-l}function eA(e){let{left:t,top:l,height:a,width:n}=e;return[{x:t,y:l},{x:t+n,y:l},{x:t,y:l+a},{x:t+n,y:l+a}]}function ek(e,t){if(!e||0===e.length)return null;let[l]=e;return t?l[t]:l}function eL(e,t,l){return void 0===t&&(t=e.left),void 0===l&&(l=e.top),{x:t+.5*e.width,y:l+.5*e.height}}let eM=e=>{let{collisionRect:t,droppableRects:l,droppableContainers:a}=e,n=eL(t,t.left,t.top),r=[];for(let e of a){let{id:t}=e,a=l.get(t);if(a){let l=eR(eL(a),n);r.push({id:t,data:{droppableContainer:e,value:l}})}}return r.sort(eE)},eI=e=>{let{collisionRect:t,droppableRects:l,droppableContainers:a}=e,n=[];for(let e of a){let{id:a}=e,r=l.get(a);if(r){let l=function(e,t){let l=Math.max(t.top,e.top),a=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height);if(a0&&n.push({id:a,data:{droppableContainer:e,value:l}})}}return n.sort(eB)};function eP(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:eS}let eD=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),a=1;a({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})},eT={ignoreTransform:!1};function eU(e,t){void 0===t&&(t=eT);let l=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:a}=X(e).getComputedStyle(e);t&&(l=function(e,t,l){let a=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!a)return e;let{scaleX:n,scaleY:r,x:i,y:s}=a,o=e.left-i-(1-n)*parseFloat(l),d=e.top-s-(1-r)*parseFloat(l.slice(l.indexOf(" ")+1)),c=n?e.width/n:e.width,u=r?e.height/r:e.height;return{width:c,height:u,top:d,right:o+c,bottom:d+u,left:o}}(l,t,a))}let{top:a,left:n,width:r,height:i,bottom:s,right:o}=l;return{top:a,left:n,width:r,height:i,bottom:s,right:o}}function ez(e){return eU(e,{ignoreTransform:!0})}function eF(e,t){let l=[];return e?function a(n){var r,i;let s;if(null!=t&&l.length>=t||!n)return l;if(Q(n)&&null!=n.scrollingElement&&!l.includes(n.scrollingElement))return l.push(n.scrollingElement),l;if(!J(n)||Z(n)||l.includes(n))return l;let o=X(e).getComputedStyle(n);return(n!==e&&(void 0===(r=o)&&(r=X(n).getComputedStyle(n)),s=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=r[e];return"string"==typeof t&&s.test(t)}))&&l.push(n),void 0===(i=o)&&(i=X(n).getComputedStyle(n)),"fixed"===i.position)?l:a(n.parentNode)}(e):l}function eV(e){let[t]=eF(e,1);return null!=t?t:null}function eO(e){return W&&e?Y(e)?e:q(e)?Q(e)||e===ee(e).scrollingElement?window:J(e)?e:null:null:null}function e_(e){return Y(e)?e.scrollX:e.scrollLeft}function eH(e){return Y(e)?e.scrollY:e.scrollTop}function e$(e){return{x:e_(e),y:eH(e)}}function eK(e){return!!W&&!!e&&e===document.scrollingElement}function eG(e){let t={x:0,y:0},l=eK(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={x:e.scrollWidth-l.width,y:e.scrollHeight-l.height},n=e.scrollTop=a.y,isRight:e.scrollLeft>=a.x,maxScroll:a,minScroll:t}}(a=h||(h={}))[a.Forward=1]="Forward",a[a.Backward=-1]="Backward";let eW={x:.2,y:.2};function eY(e){return e.reduce((e,t)=>ec(e,e$(t)),eS)}let eq=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+e_(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+eH(t),0)}]];class eX{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=eF(t),a=eY(l);for(const[t,n,r]of(this.rect={...e},this.width=e.width,this.height=e.height,eq))for(const e of n)Object.defineProperty(this,e,{get:()=>{let n=r(l),i=a[t]-n;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eQ{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,l){var a;null==(a=this.target)||a.addEventListener(e,t,l),this.listeners.push([e,t,l])}}function eJ(e,t){let l=Math.abs(e.x),a=Math.abs(e.y);return"number"==typeof t?Math.sqrt(l**2+a**2)>t:"x"in t&&"y"in t?l>t.x&&a>t.y:"x"in t?l>t.x:"y"in t&&a>t.y}function eZ(e){e.preventDefault()}function e0(e){e.stopPropagation()}(n=f||(f={})).Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange",(r=g||(g={})).Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab";let e1={start:[g.Space,g.Enter],cancel:[g.Esc],end:[g.Space,g.Enter,g.Tab]},e2=(e,t)=>{let{currentCoordinates:l}=t;switch(e.code){case g.Right:return{...l,x:l.x+25};case g.Left:return{...l,x:l.x-25};case g.Down:return{...l,y:l.y+25};case g.Up:return{...l,y:l.y-25}}};class e4{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new eQ(ee(t)),this.windowListeners=new eQ(X(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(f.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,l=e.node.current;l&&function(e,t){if(void 0===t&&(t=eU),!e)return;let{top:l,left:a,bottom:n,right:r}=t(e);eV(e)&&(n=window.innerHeight||a>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(l),t(eS)}handleKeyDown(e){if(eh(e)){let{active:t,context:l,options:a}=this.props,{keyboardCodes:n=e1,coordinateGetter:r=e2,scrollBehavior:i="smooth"}=a,{code:s}=e;if(n.end.includes(s))return void this.handleEnd(e);if(n.cancel.includes(s))return void this.handleCancel(e);let{collisionRect:o}=l.current,d=o?{x:o.left,y:o.top}:eS;this.referenceCoordinates||(this.referenceCoordinates=d);let c=r(e,{active:t,context:l.current,currentCoordinates:d});if(c){let t=eu(c,d),a={x:0,y:0},{scrollableAncestors:n}=l.current;for(let l of n){let n=e.code,{isTop:r,isRight:s,isLeft:o,isBottom:d,maxScroll:u,minScroll:h}=eG(l),f=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:l,right:a,bottom:n}=e.getBoundingClientRect();return{top:t,left:l,right:a,bottom:n,width:e.clientWidth,height:e.clientHeight}}(l),m={x:Math.min(n===g.Right?f.right-f.width/2:f.right,Math.max(n===g.Right?f.left:f.left+f.width/2,c.x)),y:Math.min(n===g.Down?f.bottom-f.height/2:f.bottom,Math.max(n===g.Down?f.top:f.top+f.height/2,c.y))},p=n===g.Right&&!s||n===g.Left&&!o,x=n===g.Down&&!d||n===g.Up&&!r;if(p&&m.x!==c.x){let e=l.scrollLeft+t.x,r=n===g.Right&&e=h.x;if(r&&!t.y)return void l.scrollTo({left:e,behavior:i});r?a.x=l.scrollLeft-e:a.x=n===g.Right?l.scrollLeft-u.x:l.scrollLeft-h.x,a.x&&l.scrollBy({left:-a.x,behavior:i});break}if(x&&m.y!==c.y){let e=l.scrollTop+t.y,r=n===g.Down&&e=h.y;if(r&&!t.x)return void l.scrollTo({top:e,behavior:i});r?a.y=l.scrollTop-e:a.y=n===g.Down?l.scrollTop-u.y:l.scrollTop-h.y,a.y&&l.scrollBy({top:-a.y,behavior:i});break}}this.handleMove(e,ec(eu(c,this.referenceCoordinates),a))}}}handleMove(e,t){let{onMove:l}=this.props;e.preventDefault(),l(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function e7(e){return!!(e&&"distance"in e)}function e5(e){return!!(e&&"delay"in e)}e4.activators=[{eventName:"onKeyDown",handler:(e,t,l)=>{let{keyboardCodes:a=e1,onActivation:n}=t,{active:r}=l,{code:i}=e.nativeEvent;if(a.start.includes(i)){let t=r.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==n||n({event:e.nativeEvent}),!0)}return!1}}];class e3{constructor(e,t,l){var a;void 0===l&&(l=function(e){let{EventTarget:t}=X(e);return e instanceof t?e:ee(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:n}=e,{target:r}=n;this.props=e,this.events=t,this.document=ee(r),this.documentListeners=new eQ(this.document),this.listeners=new eQ(l),this.windowListeners=new eQ(X(r)),this.initialCoordinates=null!=(a=ef(n))?a:eS,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:l}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(f.Resize,this.handleCancel),this.windowListeners.add(f.DragStart,eZ),this.windowListeners.add(f.VisibilityChange,this.handleCancel),this.windowListeners.add(f.ContextMenu,eZ),this.documentListeners.add(f.Keydown,this.handleKeydown),t){if(null!=l&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(e5(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(e7(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:l,onPending:a}=this.props;a(l,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(f.Click,e0,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(f.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:l,initialCoordinates:a,props:n}=this,{onMove:r,options:{activationConstraint:i}}=n;if(!a)return;let s=null!=(t=ef(e))?t:eS,o=eu(a,s);if(!l&&i){if(e7(i)){if(null!=i.tolerance&&eJ(o,i.tolerance))return this.handleCancel();if(eJ(o,i.distance))return this.handleStart()}return e5(i)&&eJ(o,i.tolerance)?this.handleCancel():void this.handlePending(i,o)}e.cancelable&&e.preventDefault(),r(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===g.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let e8={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class e6 extends e3{constructor(e){const{event:t}=e;super(e,e8,ee(t.target))}}e6.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:l}=e,{onActivation:a}=t;return!!l.isPrimary&&0===l.button&&(null==a||a({event:l}),!0)}}];(i=m||(m={}))[i.RightClick=2]="RightClick";(s=p||(p={}))[s.Pointer=0]="Pointer",s[s.DraggableRect=1]="DraggableRect",(o=x||(x={}))[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder";let e9={x:{[h.Backward]:!1,[h.Forward]:!1},y:{[h.Backward]:!1,[h.Forward]:!1}};(d=v||(v={}))[d.Always=0]="Always",d[d.BeforeDragging=1]="BeforeDragging",d[d.WhileDragging=2]="WhileDragging",(b||(b={})).Optimized="optimized";let te=new Map;function tt(e,t){return en(l=>e?l||("function"==typeof t?t(e):e):null,[t,e])}function tl(e){let{callback:t,disabled:l}=e,a=el(t),n=(0,N.useMemo)(()=>{if(l||"u"()=>null==n?void 0:n.disconnect(),[n]),n}function ta(e){return new eX(eU(e),e)}function tn(e,t,l){void 0===t&&(t=ta);let[a,n]=(0,N.useState)(null);function r(){n(a=>{if(!e)return null;if(!1===e.isConnected){var n;return null!=(n=null!=a?a:l)?n:null}let r=t(e);return JSON.stringify(a)===JSON.stringify(r)?a:r})}let i=function(e){let{callback:t,disabled:l}=e,a=el(t),n=(0,N.useMemo)(()=>{if(l||"u"()=>null==n?void 0:n.disconnect(),[n]),n}({callback(t){if(e)for(let l of t){let{type:t,target:a}=l;if("childList"===t&&a instanceof HTMLElement&&a.contains(e)){r();break}}}}),s=tl({callback:r});return et(()=>{r(),e?(null==s||s.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==i||i.disconnect())},[e]),a}let tr=[];function ti(e,t){void 0===t&&(t=[]);let l=(0,N.useRef)(null);return(0,N.useEffect)(()=>{l.current=null},t),(0,N.useEffect)(()=>{let t=e!==eS;t&&!l.current&&(l.current=e),!t&&l.current&&(l.current=null)},[e]),l.current?eu(e,l.current):eS}function ts(e){return(0,N.useMemo)(()=>{let t,l;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:l=e.innerHeight,width:t,height:l}):null},[e])}let to=[],td=[{sensor:e6,options:{}},{sensor:e4,options:{}}],tc={current:{}},tu={draggable:{measure:ez},droppable:{measure:ez,strategy:v.WhileDragging,frequency:b.Optimized},dragOverlay:{measure:eU}};class th extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,l;return null!=(t=null==(l=this.get(e))?void 0:l.node.current)?t:void 0}}let tf={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new th,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:eC},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tu,measureDroppableContainers:eC,windowRect:null,measuringScheduled:!1},tg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:eC,draggableNodes:new Map,over:null,measureDroppableContainers:eC},tm=(0,N.createContext)(tg),tp=(0,N.createContext)(tf);function tx(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new th}}}function tv(e,t){switch(t.type){case u.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case u.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case u.DragEnd:case u.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case u.RegisterDroppable:{let{element:l}=t,{id:a}=l,n=new th(e.droppable.containers);return n.set(a,l),{...e,droppable:{...e.droppable,containers:n}}}case u.SetDroppableDisabled:{let{id:l,key:a,disabled:n}=t,r=e.droppable.containers.get(l);if(!r||a!==r.key)return e;let i=new th(e.droppable.containers);return i.set(l,{...r,disabled:n}),{...e,droppable:{...e.droppable,containers:i}}}case u.UnregisterDroppable:{let{id:l,key:a}=t,n=e.droppable.containers.get(l);if(!n||a!==n.key)return e;let r=new th(e.droppable.containers);return r.delete(l),{...e,droppable:{...e.droppable,containers:r}}}default:return e}}function tb(e){let{disabled:t}=e,{active:l,activatorEvent:a,draggableNodes:n}=(0,N.useContext)(tm),r=ei(a),i=ei(null==l?void 0:l.id);return(0,N.useEffect)(()=>{if(!t&&!a&&r&&null!=i){if(!eh(r)||document.activeElement===r.target)return;let e=n.get(i);if(!e)return;let{activatorNode:t,node:l}=e;(t.current||l.current)&&requestAnimationFrame(()=>{for(let e of[t.current,l.current]){if(!e)continue;let t=e.matches(em)?e:e.querySelector(em);if(t){t.focus();break}}})}},[a,t,n,i,r]),null}let ty=(0,N.createContext)({...eS,scaleX:1,scaleY:1});(c=y||(y={}))[c.Uninitialized=0]="Uninitialized",c[c.Initializing=1]="Initializing",c[c.Initialized=2]="Initialized";let tw=(0,N.memo)(function(e){var t,l,a,n,r,i,s,o;let d,c,f,g,m,b,w,j,{id:C,accessibility:S,autoScroll:R=!0,children:E,sensors:B=td,collisionDetection:A=eI,measuring:k,modifiers:L,...M}=e,[I,P]=(0,N.useReducer)(tv,void 0,tx),[D,T]=function(){let[e]=(0,N.useState)(()=>new Set),t=(0,N.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,N.useCallback)(t=>{let{type:l,event:a}=t;e.forEach(e=>{var t;return null==(t=e[l])?void 0:t.call(e,a)})},[e]),t]}(),[U,z]=(0,N.useState)(y.Uninitialized),F=U===y.Initialized,{draggable:{active:V,nodes:O,translate:_},droppable:{containers:H}}=I,$=null!=V?O.get(V):null,K=(0,N.useRef)({initial:null,translated:null}),Y=(0,N.useMemo)(()=>{var e;return null!=V?{id:V,data:null!=(e=null==$?void 0:$.data)?e:tc,rect:K}:null},[V,$]),q=(0,N.useRef)(null),[Q,Z]=(0,N.useState)(null),[ee,el]=(0,N.useState)(null),es=ea(M,Object.values(M)),ed=eo("DndDescribedBy",C),eu=(0,N.useMemo)(()=>H.getEnabled(),[H]),eh=(0,N.useMemo)(()=>({draggable:{...tu.draggable,...null==k?void 0:k.draggable},droppable:{...tu.droppable,...null==k?void 0:k.droppable},dragOverlay:{...tu.dragOverlay,...null==k?void 0:k.dragOverlay}}),[null==k?void 0:k.draggable,null==k?void 0:k.droppable,null==k?void 0:k.dragOverlay]),{droppableRects:eg,measureDroppableContainers:em,measuringScheduled:ep}=function(e,t){let{dragging:l,dependencies:a,config:n}=t,[r,i]=(0,N.useState)(null),{frequency:s,measure:o,strategy:d}=n,c=(0,N.useRef)(e),u=function(){switch(d){case v.Always:return!1;case v.BeforeDragging:return l;default:return!l}}(),h=ea(u),f=(0,N.useCallback)(function(e){void 0===e&&(e=[]),h.current||i(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),g=(0,N.useRef)(null),m=en(t=>{if(u&&!l)return te;if(!t||t===te||c.current!==e||null!=r){let t=new Map;for(let l of e){if(!l)continue;if(r&&r.length>0&&!r.includes(l.id)&&l.rect.current){t.set(l.id,l.rect.current);continue}let e=l.node.current,a=e?new eX(o(e),e):null;l.rect.current=a,a&&t.set(l.id,a)}return t}return t},[e,r,l,u,o]);return(0,N.useEffect)(()=>{c.current=e},[e]),(0,N.useEffect)(()=>{u||f()},[l,u]),(0,N.useEffect)(()=>{r&&r.length>0&&i(null)},[JSON.stringify(r)]),(0,N.useEffect)(()=>{u||"number"!=typeof s||null!==g.current||(g.current=setTimeout(()=>{f(),g.current=null},s))},[s,u,f,...a]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:null!=r}}(eu,{dragging:F,dependencies:[_.x,_.y],config:eh.droppable}),ex=en(e=>{var t;return null==V?null:null!=(t=null!=m?m:e)?t:null},[m=(g=null!=V?O.get(V):void 0)?g.node.current:null,V]),ev=(0,N.useMemo)(()=>ee?ef(ee):null,[ee]),ey=(d=(null==Q?void 0:Q.autoScrollEnabled)===!1,c="object"==typeof R?!1===R.enabled:!1===R,f=F&&!d&&!c,"object"==typeof R?{...R,enabled:f}:{enabled:f}),ew=tt(ex,eh.draggable.measure);!function(e){let{activeNode:t,measure:l,initialRect:a,config:n=!0}=e,r=(0,N.useRef)(!1),{x:i,y:s}="boolean"==typeof n?{x:n,y:n}:n;et(()=>{if(!i&&!s||!t){r.current=!1;return}if(r.current||!a)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let n=eP(l(e),a);if(i||(n.x=0),s||(n.y=0),r.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){let t=eV(e);t&&t.scrollBy({top:n.y,left:n.x})}},[t,i,s,a,l])}({activeNode:null!=V?O.get(V):null,config:ey.layoutShiftCompensation,initialRect:ew,measure:eh.draggable.measure});let eC=tn(ex,eh.draggable.measure,ew),eN=tn(ex?ex.parentElement:null),eR=(0,N.useRef)({activatorEvent:null,active:null,activeNode:ex,collisionRect:null,collisions:null,droppableRects:eg,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eE=H.getNodeFor(null==(t=eR.current.over)?void 0:t.id),eB=function(e){let{measure:t}=e,[l,a]=(0,N.useState)(null),n=tl({callback:(0,N.useCallback)(e=>{for(let{target:l}of e)if(J(l)){a(e=>{let a=t(l);return e?{...e,width:a.width,height:a.height}:a});break}},[t])}),[r,i]=er((0,N.useCallback)(e=>{let l=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return J(t)?t:e}(e);null==n||n.disconnect(),l&&(null==n||n.observe(l)),a(l?t(l):null)},[t,n]));return(0,N.useMemo)(()=>({nodeRef:r,rect:l,setRef:i}),[l,r,i])}({measure:eh.dragOverlay.measure}),eA=null!=(l=eB.nodeRef.current)?l:ex,eL=F?null!=(a=eB.rect)?a:eC:null,eM=!!(eB.nodeRef.current&&eB.rect),eT=(b=tt(r=eM?null:eC),eP(r,b)),ez=ts(eA?X(eA):null),e_=(i=F?null!=eE?eE:ex:null,w=(0,N.useRef)(i),j=en(e=>i?e&&e!==tr&&i&&w.current&&i.parentNode===w.current.parentNode?e:eF(i):tr,[i]),(0,N.useEffect)(()=>{w.current=i},[i]),j),eH=function(e,t){void 0===t&&(t=eU);let[l]=e,a=ts(l?X(l):null),[n,r]=(0,N.useState)(to);function i(){r(()=>e.length?e.map(e=>eK(e)?a:new eX(t(e),e)):to)}let s=tl({callback:i});return et(()=>{null==s||s.disconnect(),i(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),n}(e_),eq=function(e,t){let{transform:l,...a}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...a}),l):l}(L,{transform:{x:_.x-eT.x,y:_.y-eT.y,scaleX:1,scaleY:1},activatorEvent:ee,active:Y,activeNodeRect:eC,containerNodeRect:eN,draggingNodeRect:eL,over:eR.current.over,overlayNodeRect:eB.rect,scrollableAncestors:e_,scrollableAncestorRects:eH,windowRect:ez}),eQ=ev?ec(ev,_):null,eJ=function(e){let[t,l]=(0,N.useState)(null),a=(0,N.useRef)(e),n=(0,N.useCallback)(e=>{let t=eO(e.target);t&&l(e=>e?(e.set(t,e$(t)),new Map(e)):null)},[]);return(0,N.useEffect)(()=>{let t=a.current;if(e!==t){r(t);let i=e.map(e=>{let t=eO(e);return t?(t.addEventListener("scroll",n,{passive:!0}),[t,e$(t)]):null}).filter(e=>null!=e);l(i.length?new Map(i):null),a.current=e}return()=>{r(e),r(t)};function r(e){e.forEach(e=>{let t=eO(e);null==t||t.removeEventListener("scroll",n)})}},[n,e]),(0,N.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>ec(e,t),eS):eY(e):eS,[e,t])}(e_),eZ=ti(eJ),e0=ti(eJ,[eC]),e1=ec(eq,eZ),e2=eL?eD(eL,eq):null,e4=Y&&e2?A({active:Y,collisionRect:e2,droppableRects:eg,droppableContainers:eu,pointerCoordinates:eQ}):null,e7=ek(e4,"id"),[e5,e3]=(0,N.useState)(null),e8=(s=eM?eq:ec(eq,e0),o=null!=(n=null==e5?void 0:e5.rect)?n:null,{...s,scaleX:o&&eC?o.width/eC.width:1,scaleY:o&&eC?o.height/eC.height:1}),e6=(0,N.useRef)(null),ta=(0,N.useCallback)((e,t)=>{let{sensor:l,options:a}=t;if(null==q.current)return;let n=O.get(q.current);if(!n)return;let r=e.nativeEvent,i=new l({active:q.current,activeNode:n,event:r,options:a,context:eR,onAbort(e){if(!O.get(e))return;let{onDragAbort:t}=es.current,l={id:e};null==t||t(l),D({type:"onDragAbort",event:l})},onPending(e,t,l,a){if(!O.get(e))return;let{onDragPending:n}=es.current,r={id:e,constraint:t,initialCoordinates:l,offset:a};null==n||n(r),D({type:"onDragPending",event:r})},onStart(e){let t=q.current;if(null==t)return;let l=O.get(t);if(!l)return;let{onDragStart:a}=es.current,n={activatorEvent:r,active:{id:t,data:l.data,rect:K}};(0,G.unstable_batchedUpdates)(()=>{null==a||a(n),z(y.Initializing),P({type:u.DragStart,initialCoordinates:e,active:t}),D({type:"onDragStart",event:n}),Z(e6.current),el(r)})},onMove(e){P({type:u.DragMove,coordinates:e})},onEnd:s(u.DragEnd),onCancel:s(u.DragCancel)});function s(e){return async function(){let{active:t,collisions:l,over:a,scrollAdjustedTranslate:n}=eR.current,i=null;if(t&&n){let{cancelDrop:s}=es.current;i={activatorEvent:r,active:t,collisions:l,delta:n,over:a},e===u.DragEnd&&"function"==typeof s&&await Promise.resolve(s(i))&&(e=u.DragCancel)}q.current=null,(0,G.unstable_batchedUpdates)(()=>{P({type:e}),z(y.Uninitialized),e3(null),Z(null),el(null),e6.current=null;let t=e===u.DragEnd?"onDragEnd":"onDragCancel";if(i){let e=es.current[t];null==e||e(i),D({type:t,event:i})}})}}e6.current=i},[O]),th=(0,N.useCallback)((e,t)=>(l,a)=>{let n=l.nativeEvent,r=O.get(a);null!==q.current||!r||n.dndKit||n.defaultPrevented||!0===e(l,t.options,{active:r})&&(n.dndKit={capturedBy:t.sensor},q.current=a,ta(l,t))},[O,ta]),tf=(0,N.useMemo)(()=>B.reduce((e,t)=>{let{sensor:l}=t;return[...e,...l.activators.map(e=>({eventName:e.eventName,handler:th(e.handler,t)}))]},[]),[B,th]);(0,N.useEffect)(()=>{if(!W)return;let e=B.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},B.map(e=>{let{sensor:t}=e;return t})),et(()=>{eC&&U===y.Initializing&&z(y.Initialized)},[eC,U]),(0,N.useEffect)(()=>{let{onDragMove:e}=es.current,{active:t,activatorEvent:l,collisions:a,over:n}=eR.current;if(!t||!l)return;let r={active:t,activatorEvent:l,collisions:a,delta:{x:e1.x,y:e1.y},over:n};(0,G.unstable_batchedUpdates)(()=>{null==e||e(r),D({type:"onDragMove",event:r})})},[e1.x,e1.y]),(0,N.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:l,droppableContainers:a,scrollAdjustedTranslate:n}=eR.current;if(!e||null==q.current||!t||!n)return;let{onDragOver:r}=es.current,i=a.get(e7),s=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,o={active:e,activatorEvent:t,collisions:l,delta:{x:n.x,y:n.y},over:s};(0,G.unstable_batchedUpdates)(()=>{e3(s),null==r||r(o),D({type:"onDragOver",event:o})})},[e7]),et(()=>{eR.current={activatorEvent:ee,active:Y,activeNode:ex,collisionRect:e2,collisions:e4,droppableRects:eg,draggableNodes:O,draggingNode:eA,draggingNodeRect:eL,droppableContainers:H,over:e5,scrollableAncestors:e_,scrollAdjustedTranslate:e1},K.current={initial:eL,translated:e2}},[Y,ex,e4,e2,O,eA,eL,eg,H,e5,e_,e1]),function(e){let t,{acceleration:l,activator:a=p.Pointer,canScroll:n,draggingRect:r,enabled:i,interval:s=5,order:o=x.TreeOrder,pointerCoordinates:d,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:g}=e,m=function(e){let{delta:t,disabled:l}=e,a=ei(t);return en(e=>{if(l||!a||!e)return e9;let n={x:Math.sign(t.x-a.x),y:Math.sign(t.y-a.y)};return{x:{[h.Backward]:e.x[h.Backward]||-1===n.x,[h.Forward]:e.x[h.Forward]||1===n.x},y:{[h.Backward]:e.y[h.Backward]||-1===n.y,[h.Forward]:e.y[h.Forward]||1===n.y}}},[l,t,a])}({delta:f,disabled:!i}),[v,b]=(t=(0,N.useRef)(null),[(0,N.useCallback)((e,l)=>{t.current=setInterval(e,l)},[]),(0,N.useCallback)(()=>{null!==t.current&&(clearInterval(t.current),t.current=null)},[])]),y=(0,N.useRef)({x:0,y:0}),w=(0,N.useRef)({x:0,y:0}),j=(0,N.useMemo)(()=>{switch(a){case p.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case p.DraggableRect:return r}},[a,r,d]),C=(0,N.useRef)(null),S=(0,N.useCallback)(()=>{let e=C.current;if(!e)return;let t=y.current.x*w.current.x,l=y.current.y*w.current.y;e.scrollBy(t,l)},[]),R=(0,N.useMemo)(()=>o===x.TreeOrder?[...c].reverse():c,[o,c]);(0,N.useEffect)(()=>{if(!i||!c.length||!j)return void b();for(let e of R){if((null==n?void 0:n(e))===!1)continue;let t=u[c.indexOf(e)];if(!t)continue;let{direction:a,speed:r}=function(e,t,l,a,n){let{top:r,left:i,right:s,bottom:o}=l;void 0===a&&(a=10),void 0===n&&(n=eW);let{isTop:d,isBottom:c,isLeft:u,isRight:f}=eG(e),g={x:0,y:0},m={x:0,y:0},p={height:t.height*n.y,width:t.width*n.x};return!d&&r=t.bottom-p.height&&(g.y=h.Forward,m.y=a*Math.abs((t.bottom-p.height-o)/p.height)),!f&&s>=t.right-p.width?(g.x=h.Forward,m.x=a*Math.abs((t.right-p.width-s)/p.width)):!u&&i0||r.y>0){b(),C.current=e,v(S,s),y.current=r,w.current=a;return}}y.current={x:0,y:0},w.current={x:0,y:0},b()},[l,S,n,b,i,s,JSON.stringify(j),JSON.stringify(m),v,c,R,u,JSON.stringify(g)])}({...ey,delta:_,draggingRect:e2,pointerCoordinates:eQ,scrollableAncestors:e_,scrollableAncestorRects:eH});let tg=(0,N.useMemo)(()=>({active:Y,activeNode:ex,activeNodeRect:eC,activatorEvent:ee,collisions:e4,containerNodeRect:eN,dragOverlay:eB,draggableNodes:O,droppableContainers:H,droppableRects:eg,over:e5,measureDroppableContainers:em,scrollableAncestors:e_,scrollableAncestorRects:eH,measuringConfiguration:eh,measuringScheduled:ep,windowRect:ez}),[Y,ex,eC,ee,e4,eN,eB,O,H,eg,e5,em,e_,eH,eh,ep,ez]),tw=(0,N.useMemo)(()=>({activatorEvent:ee,activators:tf,active:Y,activeNodeRect:eC,ariaDescribedById:{draggable:ed},dispatch:P,draggableNodes:O,over:e5,measureDroppableContainers:em}),[ee,tf,Y,eC,P,ed,O,e5,em]);return N.default.createElement(eb.Provider,{value:T},N.default.createElement(tm.Provider,{value:tw},N.default.createElement(tp.Provider,{value:tg},N.default.createElement(ty.Provider,{value:e8},E)),N.default.createElement(tb,{disabled:(null==S?void 0:S.restoreFocus)===!1})),N.default.createElement(ej,{...S,hiddenTextDescribedById:ed}))}),tj=(0,N.createContext)(null),tC="button",tN={timeout:25},tS={position:"fixed",touchAction:"none"},tR=e=>eh(e)?"transform 250ms ease":void 0;function tE(e,t,l){let a=e.slice();return a.splice(l=0}(e,t)=>{let{as:l,activatorEvent:a,adjustScale:n,children:r,className:i,rect:s,style:o,transform:d,transition:c=tR}=e;if(!s)return null;let u=n?d:{...d,scaleX:1,scaleY:1},h={...tS,width:s.width,height:s.height,top:s.top,left:s.left,transform:eg.Transform.toString(u),transformOrigin:n&&a?function(e,t){let l=ef(e);if(!l)return"0 0";let a={x:(l.x-t.left)/t.width*100,y:(l.y-t.top)/t.height*100};return a.x+"% "+a.y+"%"}(a,s):void 0,transition:"function"==typeof c?c(a):c,...o};return N.default.createElement(l,{className:i,style:h,ref:t},r)},t={styles:{active:{opacity:"0"}}};let tA=e=>{let{rects:t,activeIndex:l,overIndex:a,index:n}=e,r=tE(t,a,l),i=t[n],s=r[n];return s&&i?{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}:null},tk="Sortable",tL=N.default.createContext({activeIndex:-1,containerId:tk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:tA,disabled:{draggable:!1,droppable:!1}});function tM(e){let{children:t,id:l,items:a,strategy:n=tA,disabled:r=!1}=e,{active:i,dragOverlay:s,droppableRects:o,over:d,measureDroppableContainers:c}=(0,N.useContext)(tp),u=eo(tk,l),h=null!==s.rect,f=(0,N.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),g=null!=i,m=i?f.indexOf(i.id):-1,p=d?f.indexOf(d.id):-1,x=(0,N.useRef)(f),v=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let l=0;l{v&&g&&c(f)},[v,f,g,c]),(0,N.useEffect)(()=>{x.current=f},[f]);let w=(0,N.useMemo)(()=>({activeIndex:m,containerId:u,disabled:y,disableTransforms:b,items:f,overIndex:p,useDragOverlay:h,sortedRects:f.reduce((e,t,l)=>{let a=o.get(t);return a&&(e[l]=a),e},Array(f.length)),strategy:n}),[m,u,y.draggable,y.droppable,b,f,p,o,h,n]);return N.default.createElement(tL.Provider,{value:w},t)}let tI=e=>{let{id:t,items:l,activeIndex:a,overIndex:n}=e;return tE(l,a,n).indexOf(t)},tP=e=>{let{containerId:t,isSorting:l,wasDragging:a,index:n,items:r,newIndex:i,previousItems:s,previousContainerId:o,transition:d}=e;return!!d&&!!a&&(s===r||n!==i)&&(!!l||i!==n&&t===o)},tD={duration:200,easing:"ease"},tT="transform",tU=eg.Transition.toString({property:tT,duration:0,easing:"linear"}),tz={roleDescription:"sortable"};function tF(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let tV=[g.Down,g.Right,g.Up,g.Left],tO=(e,t)=>{let{context:{active:l,collisionRect:a,droppableRects:n,droppableContainers:r,over:i,scrollableAncestors:s}}=t;if(tV.includes(e.code)){if(e.preventDefault(),!l||!a)return;let t=[];r.getEnabled().forEach(l=>{if(!l||null!=l&&l.disabled)return;let r=n.get(l.id);if(r)switch(e.code){case g.Down:a.topr.top&&t.push(l);break;case g.Left:a.left>r.left&&t.push(l);break;case g.Right:a.left{let{collisionRect:t,droppableRects:l,droppableContainers:a}=e,n=eA(t),r=[];for(let e of a){let{id:t}=e,a=l.get(t);if(a){let l=eA(a),i=Number((n.reduce((e,t,a)=>e+eR(l[a],t),0)/4).toFixed(4));r.push({id:t,data:{droppableContainer:e,value:i}})}}return r.sort(eE)})({active:l,collisionRect:a,droppableRects:n,droppableContainers:t,pointerCoordinates:null}),u=ek(c,"id");if(u===(null==i?void 0:i.id)&&c.length>1&&(u=c[1].id),null!=u){let e=r.get(l.id),t=r.get(u),i=t?n.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&i&&e&&t){var o,d;let l=eF(c).some((e,t)=>s[t]!==e),n=t_(e,t),r=(o=e,d=t,!!tF(o)&&!!tF(d)&&!!t_(o,d)&&o.data.current.sortable.index(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Location"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsxs)("g",{fill:"currentColor",children:[(0,w.jsx)("path",{d:"M8 9a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0-4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"}),(0,w.jsx)("path",{d:"m8 15-4.218-4.974-.174-.226A5.44 5.44 0 0 1 2.5 6.5a5.5 5.5 0 1 1 11 0 5.44 5.44 0 0 1-1.107 3.299h-.001s-.15.198-.172.225zM4.406 9.198s.117.154.144.187L8 13.454l3.455-4.075.14-.183A4.45 4.45 0 0 0 12.5 6.5a4.5 4.5 0 1 0-9 0 4.45 4.45 0 0 0 .906 2.698"})]})]})),tG=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:tK,...e}));tG.displayName="Location";var tW=e.i(368847);let tY=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Star"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{fill:"currentColor",d:"m8 3.26 1.38 2.79.23.5.5.075 3.08.445L11 9.22l-.374.365.09.5.525 3.065-2.755-1.445L8 11.5l-.465.245L4.78 13.17l.5-3.065.09-.5L5 9.22 2.79 7.045 5.87 6.6l.5-.075.23-.5zM8 1 5.727 5.61.64 6.345l3.68 3.59L3.45 15 8 12.61 12.55 15l-.87-5.065 3.68-3.585-5.085-.74z"})]})),tq=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:tY,...e}));tq.displayName="Star";let tX=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Star"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{fill:"currentColor",d:"M8 1 5.727 5.61.64 6.345l3.68 3.59L3.45 15 8 12.61 12.55 15l-.87-5.065 3.68-3.585-5.085-.74z"})]})),tQ=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:tX,...e}));function tJ({isFavorite:e,onClick:t}){let l=(0,S.useTranslations)("Header");return(0,w.jsxs)("div",{className:"group/favorite flex shrink-0 items-center",children:[(0,w.jsx)("span",{className:(0,j.cn)("w-0 overflow-hidden pl-2 text-xs text-nowrap capitalize opacity-0 transition-all group-hover/favorite:opacity-100",{"group-hover/favorite:w-22":!e,"group-hover/favorite:w-26.5":e}),children:l(e?"removeLocation":"saveLocation")}),(0,w.jsx)("button",{onClick:t,className:"flex cursor-pointer items-center justify-center p-1",children:e?(0,w.jsx)(tQ,{className:"size-6 text-[#fdc107]",title:"Unfavorite"}):(0,w.jsx)(tq,{className:"size-6 text-inherit hover:text-[#fdc107]",title:"Favorite"})})]})}tQ.displayName="StarFilled";var tZ=e.i(316078),t0=e.i(180193),t1=e.i(889951),t2=e.i(674885),t4=e.i(617874),t7=e.i(942400);function t5({search:e}){let t=(e=>{let t=(0,R.useAtomValue)(t2.userUnitPreferenceAtom),l=(0,t4.unitsSystemByName)(t)?.code,a=(0,t7.usePageLocale)(),{data:n}=(0,F.default)(e?["currentObservations",e,l,a]:null,async([,e,t,l])=>(0,t1.getCurrentObservations)({geocode:e,units:t,language:l}),{revalidateIfStale:!0,revalidateOnFocus:!0,dedupingInterval:3e5});return n})(e.geocode),l=t?.iconCode??e.iconCode,a=t?t.temperature:e.temperature;return(0,w.jsxs)("div",{className:"flex items-center gap-1","data-testid":"location-search-weather",children:[(0,w.jsx)("div",{className:"flex items-center justify-center text-gray-400",children:(0,w.jsx)(tZ.WxIcon,{iconCode:l,className:"lightBG h-5 w-5",iconTheme:"lightBG"})}),(0,w.jsx)("div",{className:"text-l min-w-9 text-inherit",children:(0,w.jsx)(t0.Temperature,{value:a})})]})}var t3=e.i(879812),t8=e.i(222127),t6=e.i(671525),t9=e.i(145651);function le({placeId:e,locationData:t,onSelect:l,onToggleSave:a,disabledFavorites:n,isFavorite:r,showWeather:i,attributes:s,isFocused:o,isSortable:d,firstItemActionRef:c}){let u=(0,t7.usePageLocale)(),{addRecentLocation:h}=(0,t9.default)(),{navigate:f}=(0,t6.default)(),{path:g,isGeolocationLoading:m}=(0,t8.default)(e),[p,x]=(0,N.useState)(!1),{buildSearchItem:v}=$(),b=(0,N.useRef)(null),[,y]=(0,R.useAtom)(_.wxuUserRecentAddressesAtom),C=(0,N.useCallback)(e=>{"address"===e.type&&y(t=>{let l={address:e?.address?.split(",")[0]?.trim()||e.displayName,placeId:e?.placeId,type:e?.type},a=t?.filter(e=>e.placeId!==l.placeId)||[];return[l,...a].slice(0,5)})},[y]),S=(0,t3.useGetLocationById)(t?.nameContext?null:e,u),E=(0,N.useMemo)(()=>t||(S?v(S):null),[v,S,t]);(0,N.useEffect)(()=>{let e=b.current;return o&&e?.focus(),()=>e?.blur()},[o]),(0,N.useEffect)(()=>{let t=!1;return p&&!m&&E&&!t&&(h(e),C(E),f(g),x(!1),l?.()),()=>{t=!0}},[p,m,g,h,C,E,f,l,e]);let B=(0,N.useCallback)(()=>{if(E){if(m)return void x(!0);h(e),C(E),f(g),l?.()}},[E,m,e,g,h,C,f,l]);return((0,N.useEffect)(()=>{if(c)return c.current=B,()=>{c.current=null}},[c,B]),E)?(0,w.jsxs)("div",{className:(0,j.cn)("group flex h-16 w-full flex-1 items-center rounded-2xl px-4 transition-colors","hover:bg-gray-100",o&&"bg-gray-100"),children:[(0,w.jsxs)("div",{role:"button",tabIndex:0,...s,ref:b,className:(0,j.cn)("flex min-w-0 flex-1 shrink-1 cursor-pointer items-center gap-3 md:gap-4",o&&"outline-0",s?.className),onClick:B,onKeyDown:e=>{s?.onKeyDown?.(e),("Enter"===e.key||" "===e.key)&&(" "!==e.key||!d)&&E&&(e.preventDefault(),B())},children:[i?(0,w.jsx)(t5,{search:E}):(0,w.jsx)(tG,{className:"size-4 shrink-0 text-current md:size-6"}),(0,w.jsxs)("div",{className:"text-left",children:[(0,w.jsx)(tW.default,{variant:"Body.M",className:"text-inherit",lineClamp:1,children:E.name}),(0,w.jsx)(tW.default,{variant:"Body.S",color:"secondary",className:"pb-0",lineClamp:1,children:E.nameContext})]})]}),!n&&(0,w.jsx)(tJ,{isFavorite:r,onClick:()=>a?.(E)})]}):null}function lt({location:e,onSelect:t,onToggleSave:l,isFocused:a=!1,firstItemActionRef:n}){let r=(0,t7.usePageLocale)(),{buildSearchItem:i}=$(),s=(0,t3.useGetLocationById)(e.placeID||null,r),o=(0,N.useMemo)(()=>s?i(s):null,[i,s]),{attributes:d,listeners:c,setNodeRef:h,transform:f,transition:g,isDragging:m}=function(e){var t,l,a,n;let{animateLayoutChanges:r=tP,attributes:i,disabled:s,data:o,getNewIndex:d=tI,id:c,strategy:h,resizeObserverConfig:f,transition:g=tD}=e,{items:m,containerId:p,activeIndex:x,disabled:v,disableTransforms:b,sortedRects:y,overIndex:w,useDragOverlay:j,strategy:C}=(0,N.useContext)(tL),S=(t=s,l=v,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:l.draggable,droppable:null!=(n=null==t?void 0:t.droppable)?n:l.droppable}),R=m.indexOf(c),E=(0,N.useMemo)(()=>({sortable:{containerId:p,index:R,items:m},...o}),[p,o,R,m]),B=(0,N.useMemo)(()=>m.slice(m.indexOf(c)),[m,c]),{rect:A,node:k,isOver:L,setNodeRef:M}=function(e){let{data:t,disabled:l=!1,id:a,resizeObserverConfig:n}=e,r=eo("Droppable"),{active:i,dispatch:s,over:o,measureDroppableContainers:d}=(0,N.useContext)(tm),c=(0,N.useRef)({disabled:l}),h=(0,N.useRef)(!1),f=(0,N.useRef)(null),g=(0,N.useRef)(null),{disabled:m,updateMeasurementsFor:p,timeout:x}={...tN,...n},v=ea(null!=p?p:a),b=tl({callback:(0,N.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{d(Array.isArray(v.current)?v.current:[v.current]),g.current=null},x)},[x]),disabled:m||!i}),[y,w]=er((0,N.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),h.current=!1),e&&b.observe(e))},[b])),j=ea(t);return(0,N.useEffect)(()=>{b&&y.current&&(b.disconnect(),h.current=!1,b.observe(y.current))},[y,b]),(0,N.useEffect)(()=>(s({type:u.RegisterDroppable,element:{id:a,key:r,disabled:l,node:y,rect:f,data:j}}),()=>s({type:u.UnregisterDroppable,key:r,id:a})),[a]),(0,N.useEffect)(()=>{l!==c.current.disabled&&(s({type:u.SetDroppableDisabled,id:a,key:r,disabled:l}),c.current.disabled=l)},[a,r,l,s]),{active:i,rect:f,isOver:(null==o?void 0:o.id)===a,node:y,over:o,setNodeRef:w}}({id:c,data:E,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...f}}),{active:I,activatorEvent:P,activeNodeRect:D,attributes:T,setNodeRef:U,listeners:z,isDragging:F,over:V,setActivatorNodeRef:O,transform:_}=function(e){let{id:t,data:l,disabled:a=!1,attributes:n}=e,r=eo("Draggable"),{activators:i,activatorEvent:s,active:o,activeNodeRect:d,ariaDescribedById:c,draggableNodes:u,over:h}=(0,N.useContext)(tm),{role:f=tC,roleDescription:g="draggable",tabIndex:m=0}=null!=n?n:{},p=(null==o?void 0:o.id)===t,x=(0,N.useContext)(p?ty:tj),[v,b]=er(),[y,w]=er(),j=(0,N.useMemo)(()=>i.reduce((e,l)=>{let{eventName:a,handler:n}=l;return e[a]=e=>{n(e,t)},e},{}),[i,t]),C=ea(l);return et(()=>(u.set(t,{id:t,key:r,node:v,activatorNode:y,data:C}),()=>{let e=u.get(t);e&&e.key===r&&u.delete(t)}),[u,t]),{active:o,activatorEvent:s,activeNodeRect:d,attributes:(0,N.useMemo)(()=>({role:f,tabIndex:m,"aria-disabled":a,"aria-pressed":!!p&&f===tC||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[a,f,m,p,g,c.draggable]),isDragging:p,listeners:a?void 0:j,node:v,over:h,setNodeRef:b,setActivatorNodeRef:w,transform:x}}({id:c,data:E,attributes:{...tz,...i},disabled:S.draggable}),H=function(){for(var e=arguments.length,t=Array(e),l=0;le=>{t.forEach(t=>t(e))},t)}(M,U),$=!!I,K=$&&!b&&tB(x)&&tB(w),G=!j&&F,W=G&&K?_:null,Y=K?null!=W?W:(null!=h?h:C)({rects:y,activeNodeRect:D,activeIndex:x,overIndex:w,index:R}):null,q=tB(x)&&tB(w)?d({id:c,items:m,activeIndex:x,overIndex:w}):R,X=null==I?void 0:I.id,Q=(0,N.useRef)({activeId:X,items:m,newIndex:q,containerId:p}),J=m!==Q.current.items,Z=r({active:I,containerId:p,isDragging:F,isSorting:$,id:c,index:R,items:m,newIndex:Q.current.newIndex,previousItems:Q.current.items,previousContainerId:Q.current.containerId,transition:g,wasDragging:null!=Q.current.activeId}),ee=function(e){let{disabled:t,index:l,node:a,rect:n}=e,[r,i]=(0,N.useState)(null),s=(0,N.useRef)(l);return et(()=>{if(!t&&l!==s.current&&a.current){let e=n.current;if(e){let t=eU(a.current,{ignoreTransform:!0}),l={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(l.x||l.y)&&i(l)}}l!==s.current&&(s.current=l)},[t,l,a,n]),(0,N.useEffect)(()=>{r&&i(null)},[r]),r}({disabled:!Z,index:R,node:k,rect:A});return(0,N.useEffect)(()=>{$&&Q.current.newIndex!==q&&(Q.current.newIndex=q),p!==Q.current.containerId&&(Q.current.containerId=p),m!==Q.current.items&&(Q.current.items=m)},[$,q,p,m]),(0,N.useEffect)(()=>{if(X===Q.current.activeId)return;if(null!=X&&null==Q.current.activeId){Q.current.activeId=X;return}let e=setTimeout(()=>{Q.current.activeId=X},50);return()=>clearTimeout(e)},[X]),{active:I,activeIndex:x,attributes:T,data:E,rect:A,index:R,newIndex:q,items:m,isOver:L,isSorting:$,isDragging:F,listeners:z,node:k,overIndex:w,over:V,setNodeRef:H,setActivatorNodeRef:O,setDroppableNodeRef:M,setDraggableNodeRef:U,transform:null!=ee?ee:Y,transition:ee||J&&Q.current.newIndex===R?tU:(!G||eh(P))&&g&&($||Z)?eg.Transition.toString({...g,property:tT}):void 0}}({id:e.placeID||""}),p={transform:eg.Transform.toString(f),transition:g};return o?(0,w.jsx)("div",{ref:h,style:p,className:m?"relative z-10 bg-gray-50 opacity-50 shadow-lg":void 0,children:(0,w.jsx)(le,{placeId:e.placeID,locationData:o,disabledFavorites:!1,onSelect:t,onToggleSave:l,showWeather:!0,isFavorite:!0,attributes:{...d,...c},isFocused:a,firstItemActionRef:n,isSortable:!0})}):null}var ll=e.i(611540);function la({title:e,onClearAll:t,testId:l}){let a=(0,S.useTranslations)("Header");return(0,w.jsxs)("div",{className:"flex h-10 items-center justify-between px-4","data-testid":l,children:[(0,w.jsx)(tW.default,{elementType:"h2",variant:"Body.S.Bold",children:e}),t&&(0,w.jsx)("button",{onClick:t,className:"cursor-pointer text-sm font-medium",children:a("clearEntries")})]})}function ln({searches:e,searching:t,onSelectSearch:l,showFavorites:a=!0,recentLocations:n=[],favoriteLocations:r,isUserLoggedIn:i,firstItemActionRef:s,onClearRecentLocations:o,focusedIndex:d=-1}){let c=(0,S.useTranslations)("Header"),{updatePreferences:u}=(0,tH.usePreferences)(),{navigate:h}=(0,t6.default)(),{addFavoriteLocation:f,removeFavoriteLocation:g}=(0,t9.default)(),{getLocationName:m}=(0,O.usePresentationName)(),p=(0,t7.usePageLocale)(),x=(0,ll.interpolateUrl)(ll.URLS.memberSignup,{locale:p}),[v,b]=(0,R.useAtom)(_.wxuUserRecentAddressesAtom),y=(0,N.useMemo)(()=>i&&r?.map(e=>({...e,geocode:e.coordinate,placeId:e.placeID})).sort((e,t)=>(e.position||0)-(t.position||0))||[],[i,r]),j=(0,N.useMemo)(()=>n.filter(e=>!y.some(t=>t.placeID===e)),[n,y]),C=function(){for(var e=arguments.length,t=Array(e),l=0;l[...t].filter(e=>null!=e),[...t])}(eN(e6,{activationConstraint:{distance:8}}),eN(e4,{coordinateGetter:tO})),E=async e=>{if(!i)return void h(x);if(y.some(t=>t.placeID===e.placeId))g(e.placeId);else{let t=e.geocode,l=e.name;if(!t&&e.placeId)try{let a=await (0,t$.getLocationPointByPlaceId)(e.placeId,"en-US");if(a?.location){let e=(0,H.getAddressForLocationData)(a.location,v);t=`${e.latitude},${e.longitude}`,l=m(e)}}catch(e){console.error("Failed to fetch location data for favoriting:",e)}if(t)f({placeID:e.placeId,coordinate:t,name:l}),"address"===e.type&&"address"===e.type&&b(t=>{let l={address:e?.address?.split(",")[0]?.trim()||e.displayName,placeId:e?.placeId,type:e?.type},a=t?.filter(e=>e.placeId!==l.placeId)||[];return[l,...a].slice(0,5)});else console.debug("Unable to get geocode for location:",e.name||e.placeId)}};return(0,w.jsx)("div",{"data-testid":"location-search-results-dropdown",className:"overflow-x-hidden",children:t?(0,w.jsx)(tW.default,{className:"p-6 text-center",children:c("loadingResults")}):a&&0===n.length&&0===y.length?(0,w.jsx)("div",{className:"p-6 text-center text-gray-500","data-testid":"location-search-empty-message",children:c("noRecentLocations")}):a?(0,w.jsxs)(w.Fragment,{children:[y.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(la,{title:c("favoritesTitle"),testId:"location-search-favorites-header"}),(0,w.jsx)(tw,{sensors:C,collisionDetection:eM,onDragEnd:e=>{let{active:t,over:l}=e;if(l&&t.id!==l.id){let e=y.findIndex(e=>e.placeID===t.id),a=y.findIndex(e=>e.placeID===l.id);u({locations:tE([...y],e,a)})}},children:(0,w.jsx)(tM,{items:y.map(e=>e.placeID||""),children:(0,w.jsx)("div",{"data-testid":"location-search-favorites-list",children:y.map((e,t)=>(0,w.jsx)(lt,{location:e,onToggleSave:E,onSelect:l,isFocused:t===d,firstItemActionRef:0===t?s:void 0},e.placeID))})})})]}),j.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(la,{title:c("recentLocationsTitle"),onClearAll:o,testId:"location-search-recent-header"}),(0,w.jsx)("div",{"data-testid":"location-search-recent-list",children:j.map((e,t)=>{let a=y.length+t;return(0,w.jsx)(le,{placeId:e,onSelect:l,onToggleSave:E,isFocused:a===d,firstItemActionRef:0===a?s:void 0},e)})})]})]}):0===e.length?(0,w.jsx)(tW.default,{children:c("noResults")}):(0,w.jsx)("div",{"data-testid":"location-search-results-list",children:e.map((e,t)=>{let a=y.some(t=>t.placeID===e.placeId);return(0,w.jsx)(le,{placeId:e.placeId,locationData:e,onSelect:l,onToggleSave:E,isFavorite:a,isFocused:t===d,firstItemActionRef:0===t?s:void 0},e.placeId)})})})}var lr=e.i(274432),li=e.i(523084);let ls=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Close"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{fill:"currentColor",d:"M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"})]})),lo=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:ls,...e}));lo.displayName="CloseFilled";var ld=e.i(528600),lc=e.i(909232),lu=e.i(870393);let lh=(0,N.memo)(({recentLocationsLength:e})=>{let t=(0,S.useTranslations)("Header"),{navigate:l}=(0,t6.default)(),a=(0,t7.usePageLocale)(),n=((0,lc.useClientMobileMedia)(),(0,ll.interpolateUrl)(ll.URLS.memberSignup,{locale:a})),{user:{isUserLoggedIn:r}}=(0,ld.useUser)();return r||e{l(n)},children:[(0,w.jsxs)("div",{className:"items-center justify-between",children:[(0,w.jsx)(tW.Text,{variant:"Body.M.Bold",children:t(`upsellTitle${e>=4?"2":"1"}`)}),(0,w.jsx)(tW.Text,{variant:"Body.S",children:t(`upsellSubtitle${e>=4?"2":"1"}`)})]}),(0,w.jsx)(lu.ChevronRight,{className:"size-5"})]})});function lf({className:e,searchContainerRef:t,searchInputRef:l,searchQuery:a,placeholderText:n,searchOpen:r,isMobile:i,canSearch:s,showFavorites:o,searching:d,recentSearches:c,recentLocations:u,favoriteLocations:h,isUserLoggedIn:f=!1,setSearchQuery:g,onSearchOpen:m,onSelectSearch:p,onClearRecentLocations:x,onRemoveRecentSearchLocation:v}){let[b,y]=(0,N.useState)(-1),[C,S]=(0,N.useState)(!1),R=(0,N.useRef)(null),B=(0,N.useMemo)(()=>{if(!o)return c.length;let e=f&&h?.length||0,t=new Set(h?.map(e=>e.placeID));return e+(u?.filter(e=>!t.has(e)).length||0)},[o,c.length,f,h,u]);(0,N.useEffect)(()=>{y(-1)},[a,r,B]);let A=(0,N.useCallback)(e=>{r&&0!==B&&("ArrowDown"===e.key?(e.preventDefault(),y(e=>{if(-1===e)return 0;let t=e+1;return t>=B?B-1:t})):"ArrowUp"===e.key&&(e.preventDefault(),y(e=>{let t=e-1;return t{g(""),m(!1),y(-1)},[m,g]),L=(0,N.useCallback)(e=>{"Enter"===e.key&&r&&R.current?(e.preventDefault(),R.current()):"Escape"===e.key&&(e.stopPropagation(),k())},[r,k]);return((0,N.useEffect)(()=>{r&&!i&&l?.current?.focus()},[r,i,l]),(0,N.useEffect)(()=>{if(!r)return;let e=e=>{"ArrowDown"===e.key||"ArrowUp"===e.key?(S(!1),A(e)):"Tab"===e.key?S(!0):"Escape"===e.key&&k()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r,A,k]),r)?(0,w.jsxs)("div",{ref:t,className:(0,j.cn)("z-110 w-full bg-white text-gray-800",i&&"fixed top-0 right-0 bottom-0 left-0 h-full overflow-auto",!i&&"rounded-3xl shadow-[0_4px_16px_0_rgba(0,0,0,0.10),0_0_32px_0_rgba(0,0,0,0.10)]",e),"data-testid":"header-search",children:[(0,w.jsxs)("div",{className:(0,j.cn)("flex w-full items-center gap-2",i?"p-3 pt-4":"p-2"),children:[i&&(0,w.jsx)(E.Button,{variant:"ghostUI",className:"m-0 p-1",onClick:()=>m(!1),"aria-label":"Close search",children:(0,w.jsx)(li.ChevronLeft,{className:"size-6"})}),(0,w.jsxs)("div",{className:"relative grow",children:[(0,w.jsx)(K.Input,{ref:l,value:a,placeholder:n,onChange:e=>g(e.target.value),onKeyDown:L,className:(0,j.cn)("relative box-border h-12 rounded-3xl border-2 border-transparent bg-white! pr-10 pl-9.5 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_0_32px_0_rgba(0,0,0,0.12)] transition-all placeholder:text-gray-900 placeholder:transition-all hover:border-blue-500 focus:placeholder:text-gray-400 focus-visible:border-blue-500")}),(0,w.jsx)(lr.Search,{className:"pointer-events-none absolute top-1/2 left-4 flex size-4 -translate-y-1/2 transform items-center text-gray-900"}),(0,w.jsx)("button",{className:(0,j.cn)("absolute top-1/2 right-3.5 flex -translate-y-1/2 transform items-center opacity-0 transition-all",{"cursor-pointer opacity-100":!!a}),onClick:()=>g(""),disabled:!a,"aria-label":"Clear search",children:(0,w.jsx)(lo,{className:"size-5 text-gray-900"})})]})]}),(s||o)&&(0,w.jsxs)("div",{className:(0,j.cn)("px-2 pb-2",i?"overflow-auto":"max-h-130 overflow-y-auto"),children:[(0,w.jsx)(ln,{searches:c,searching:d,showFavorites:o,recentLocations:u,onClearAll:()=>g(""),favoriteLocations:h||[],isUserLoggedIn:f,firstItemActionRef:R,onSelectSearch:p,onClearRecentLocations:x,onRemoveRecentSearchLocation:v,focusedIndex:C?-1:b}),o&&(0,w.jsx)(lh,{recentLocationsLength:u?.length??0})]})]}):null}var lg=e.i(800462);function lm({locale:e,className:t,open:l,onOpenChange:a}){let[n,r]=(0,N.useState)(""),i=(0,V.useDebounce)(n,200),s=(0,D.useIsMobile)(),o=(0,N.useRef)(null),d=(0,N.useRef)(null),c=(0,S.useTranslations)("Header"),{recentLocations:u,favoriteLocations:h,clearRecentLocations:f,removeRecentLocation:g}=(0,t9.default)(),{user:m}=(0,ld.useUser)(),{isUserLoggedIn:p}=m,x=(0,R.useSetAtom)(lg.fromSearchResultAtom),v=c("searchPlaceholderText"),b=i.length>=3,y=!i,{data:j,isLoading:C}=(0,F.default)(b?["locations",i,"city,locality,neighborhood,postal,airport,address",e]:null,([e,t,l,a])=>(0,z.getLocationsByQueryAndType)(t,l,a),{revalidateOnFocus:!1,dedupingInterval:2e3}),{buildSearchItem:E}=$(),B=(0,N.useMemo)(()=>j?j.map(e=>E(e)):[],[E,j]);(0,N.useEffect)(()=>(document.body.style.overflow=s&&l?"hidden":"",s&&l&&d.current?.focus(),()=>{document.body.style.overflow=""}),[s,l]),(0,N.useEffect)(()=>{l||r("")},[l]);let A=(0,N.useCallback)(()=>{a(!1),x(n)},[a,x,n]);return(0,w.jsx)(lf,{className:t,searchContainerRef:o,searchInputRef:d,searchQuery:n,placeholderText:v,searchOpen:l,isMobile:s,canSearch:b,showFavorites:y,searching:C,recentSearches:B,recentLocations:u,favoriteLocations:h,isUserLoggedIn:p,setSearchQuery:r,onSearchOpen:a,onSelectSearch:A,onClearRecentLocations:f,onRemoveRecentSearchLocation:g})}var lp=e.i(941497);let lx="LOCATION_PICKER_POPUP_CLOSED",lv="light",lb={light:"bg-gray-900 text-white hover:bg-[#3A3938] active:bg-[#0C0B0B] focus-visible:ring-2 focus-visible:ring-blue-500",dark:"bg-white text-gray-900 hover:bg-[#E6E6E6] active:bg-[#CCCCCC] focus-visible:ring-2 focus-visible:ring-blue-500"},ly={light:"bg-gray-900 text-white",dark:"bg-white text-gray-900"},lw={light:"fill-gray-900",dark:"fill-white"},lj={light:"text-gray-300",dark:"text-[#5C5C5C]"},lC={light:"bg-white/12 text-white hover:bg-white/20",dark:"bg-black/8 text-gray-900 hover:bg-black/14"};function lN({locale:e,className:t,locationProvider:l}){let a=(0,S.useTranslations)("Header"),n=(0,D.useIsMobile)(),r=(0,N.useRef)(null),i=(0,R.useAtomValue)(P.geoipGeocode),{location:s}=(0,lp.useProviderLocation)(l),o=s?.name||s?.city||s?.displayName,d=s?.geocode,[c,u]=(0,R.useAtom)(U.locationPickerOpenAtom),[h,f]=(0,N.useState)(!1);(0,N.useEffect)(()=>{try{"true"!==localStorage.getItem(lx)&&f(!0)}catch{}},[]);let g=(0,N.useCallback)(()=>{f(!1);try{localStorage.setItem(lx,"true")}catch{}},[]),m=(0,N.useCallback)(()=>{h&&g(),u(!c)},[h,g,u,c]);(0,N.useEffect)(()=>{if(!c||n)return;let e=e=>{r.current&&!r.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c,n,u]),(0,N.useEffect)(()=>{if(!c)return;let e=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,u]);let p=h&&!c;return(0,w.jsxs)("div",{ref:r,className:(0,j.cn)("relative max-md:mr-auto",t),children:[(0,w.jsxs)(B.Popover,{open:p,children:[(0,w.jsx)(B.PopoverAnchor,{asChild:!0,children:(0,w.jsx)("div",{className:"rounded-4xl bg-white md:p-1 md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,w.jsxs)(E.Button,{type:"button",variant:"ghostUI",onClick:m,"aria-expanded":c,"aria-haspopup":"dialog","aria-label":o??a("searchPlaceholderText"),"data-state":c?"open":"closed","data-testid":"location-picker-trigger",className:(0,j.cn)("inline-flex h-10 items-center justify-center gap-2 rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none",lb[lv]),children:[!!d&&!!i&&d===i&&(0,w.jsx)(A.CurrentLocationFilled,{className:"size-3 shrink-0 text-white","aria-hidden":"true"}),(0,w.jsx)("span",{className:"max-w-[140px] truncate md:max-w-[160px]",children:o||(0,w.jsx)(T,{animationStrings:["Location"]})}),(0,w.jsx)(M,{className:(0,j.cn)("size-3 shrink-0 text-white transition-transform duration-150",!c&&"rotate-180"),"aria-hidden":"true"})]})})}),(0,w.jsx)(B.PopoverContent,{side:"bottom",align:"start",sideOffset:12,className:(0,j.cn)("w-[320px] origin-top rounded-3xl border-none p-4 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_0_32px_0_rgba(0,0,0,0.12)]",ly[lv]),arrowClassName:lw[lv],onOpenAutoFocus:e=>e.preventDefault(),children:(0,w.jsxs)("div",{className:"flex items-start gap-2",children:[(0,w.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,w.jsx)("p",{className:"text-base leading-tight font-bold",children:"✨ Switching locations is easier with the new location selector."}),(0,w.jsx)("p",{className:(0,j.cn)("text-sm leading-tight font-medium",lj[lv]),children:"Search for new locations or choose from a list of your saved locations and recent searches."})]}),(0,w.jsx)("button",{type:"button",onClick:g,"aria-label":"Dismiss",className:(0,j.cn)("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-2xl transition-colors",lC[lv]),"data-testid":"location-picker-popup-close",children:(0,w.jsx)(I.Close,{className:"size-4 text-inherit","aria-hidden":"true"})})]})})]}),(0,w.jsx)("div",{className:(0,j.cn)(!n&&"absolute top-full left-0 z-110 mt-3 w-[400px]"),children:(0,w.jsx)(lm,{locale:e,open:c,onOpenChange:u})})]})}var lS=e.i(874886),lR=e.i(731672),lE=e.i(792461),lB=e.i(445899);let lA=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Globe"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{d:"M14.227 8.016h-.141c-.047-.023-.352.305-.352.305s-.234.094-.258.141c0 .047-.07 0-.023.07.023.07.164.023.234-.07.094-.07.258-.117.328-.164.07-.07.094-.047.234-.117.141-.047.234-.07.188-.141-.023-.023-.07-.023-.117-.023h-.117zm-1.243-.375c-.117 0-.258.047-.328.164-.047.117 0 .305-.023.398s-.047.305.07.328c.141.023.141-.188.117-.234s-.023-.281.047-.328c.047-.047.117-.164.258-.164.141-.023.258.094.234.211s.023.234.07.234.211-.094.164-.164.047-.352.047-.258.117.164.188.141-.07-.258-.164-.258c-.094-.023-.281-.023-.328 0-.023 0-.094 0-.164-.023s-.141-.023-.188-.023h-.023zm-.679-.305c-.164.07-.234.047-.234.141 0 .07.141.07.211.047a.7.7 0 0 1 .258-.07c.047-.023.023.07.141.07s.281.047.305.023.164-.164.047-.188c-.094-.023-.234-.117-.328-.188-.023-.023-.023-.023-.047-.023-.094 0-.234.141-.398.188zM6.68 7.242c.07.047.211.047.211.117s.047.234.117.211.07-.164.023-.211-.258-.211-.305-.211-.117-.07-.164-.094h-.023c-.07 0 .07.164.117.211zM2.953 5.555c-.141.094-.211.047-.281.117s-.281.141-.211-.023.07-.188-.047-.141-.141.141-.141.211-.188.164-.188.164.164.023.234 0 .023.141-.047.188-.164.141-.281.117-.117-.117-.188-.141c-.047 0-.094.023-.188.07A11.9 11.9 0 0 0 .045 12c0 6.563 5.344 11.93 11.93 11.906.984 0 1.945-.141 2.859-.375a.174.174 0 0 1-.117-.211c.047-.141-.07-.141-.141-.211-.07-.094.094-.141.07-.188s-.141-.023-.164-.117.094-.258.117-.281c0-.047-.094-.141-.117-.188 0-.047.047-.117.164-.234.094-.094.164-.234.164-.281s-.07-.164-.07-.281c0-.094.07-.141.094-.305 0-.141-.094-.117-.094-.211 0-.117.141-.07.117-.211-.023-.117.07-.211.117-.281s.07-.211.141-.305c.047-.094-.047-.305-.047-.352s.164-.094.094-.188c-.094-.07.023-.141.117-.211.07-.07-.023-.258.047-.516.047-.234.07-.656.07-.703s0-.211-.047-.305c-.07-.117-.141-.188-.234-.234s-.211-.164-.281-.188c-.07 0-.398-.117-.398-.328 0-.188-.234-.328-.258-.469s-.211-.422-.234-.563c0-.117-.305-.164-.328-.328-.047-.164.141-.258.164-.352s-.094-.305-.117-.375c0-.047.211-.258.281-.305s.141-.211.188-.211.047-.141.094-.305c.047-.141-.023-.352-.07-.375s-.094-.188-.141-.258c-.07-.047-.188-.023-.188-.023s.023.141-.094.188c-.141.047-.164-.023-.188-.047-.047-.047-.188-.047-.258-.117s-.164-.164-.258-.188c-.07-.047-.211-.07-.188-.234 0-.164-.164-.258-.234-.281-.047-.023-.164-.094-.234-.047-.047.023-.094 0-.141-.023s-.094-.047-.141-.047c-.094 0-.281-.164-.352-.234s-.117-.164-.234-.164-.141.047-.211.141c-.094.094-.211-.07-.234-.117-.047-.047-.141-.047-.281-.047-.164 0-.258-.211-.305-.234l-.516-.258c-.094-.047-.188-.258-.141-.305s-.07-.234-.07-.234-.188-.211-.258-.211-.281-.375-.398-.492-.398-.352-.445-.469-.07-.305-.188-.211c-.141.094-.023.188.117.305s.117.211.305.352.117.305.188.352c.07.07.352.234.234.328-.117.117-.234-.141-.305-.141-.047-.023-.164-.047-.164-.117.023-.07-.094-.141-.188-.258s-.141-.047-.258-.047 0-.141.047-.211c.07-.07-.07-.164-.141-.188s-.188-.328-.305-.516-.188-.281-.305-.258-.164-.141-.258-.188c-.07-.047-.211-.305-.328-.445-.141-.141-.258-.398-.234-.539s.047-.516.047-.609-.07-.328-.07-.352c0-.047-.07-.117-.117-.117-.047-.023-.211-.211-.328-.211s-.188-.141-.164-.234c.047-.094-.117-.258-.164-.258-.07 0-.164-.164-.211-.258s-.141-.094-.117-.047 0 .141.047.164c.07.023.117.234.07.281-.047.023-.188-.094-.305-.141-.141-.07-.07-.328-.07-.398s-.188-.141-.281-.141c-.07 0-.164.023-.164-.164 0-.164-.258-.258-.328-.258-.094 0-.516-.164-.656-.164s-.375-.117-.445-.07-.234-.094-.305-.094-.07.047-.234.141zm11.203 6.703c.117-.023.211.188.047.211h-.023c-.117 0-.141-.211-.023-.234zm1.782-.141c.117-.023.211.164.047.211h-.023c-.117 0-.141-.211-.023-.234zm-.774.164c-.07-.047-.117-.094-.234-.094-.07 0-.234-.023-.234-.023s.234-.211.328-.211c.094-.023.211-.047.305-.023.117.023.281.094.281.281-.023.164-.094.023-.141.023-.023 0-.141.07-.234.07h-.047zm-2.062-.773s.328-.094.398-.094.281 0 .398.094.305.211.398.188.258.141.234.188-.234.047-.305-.023c-.07-.047-.305-.164-.375-.234-.047-.07-.352-.047-.492-.047h-.164c-.07 0-.141-.023-.117-.094zm1.007-.375c.117-.023.211.117.047.141h-.023c-.117 0-.141-.117-.023-.141zm-.375-5.86c.117-.047.164.07.094.117h-.047c-.094 0-.164-.07-.047-.117m-.515-.093c.094-.094.234 0 .188.047 0 .023-.023.023-.07.023-.07 0-.164-.047-.141-.07zm-2.578-1.711c.07-.023.305-.047.352 0 .07.047.117.234.07.258-.047 0-.023.07-.188.164-.164.07-.211-.164-.234-.211 0-.023-.07-.023-.141 0-.047 0-.094.023-.141.023-.094 0-.141-.141-.07-.188.047-.047.141-.023.211-.023h.141zm.656.094c-.023-.07.258-.188.328-.211s.141.047.234.07c.094 0 .07.141 0 .164-.07 0-.258.023-.375.047h-.047c-.094 0-.141-.047-.141-.047zm-.024-.375c.047-.117.281-.07.305.047.023.047-.047.07-.094.07-.094 0-.234-.047-.211-.094zm-.539-.211c.164-.023.234.07.234.117s-.117.188-.234.164h-.07c-.047 0-.047 0-.094-.07-.047-.094-.328-.047-.375-.047s-.094.164-.164.188-.117-.07-.07-.07c.023-.023-.047-.211.023-.258.047-.047.281-.047.469-.023zm-3.468-.071c.047 0 .398-.117.586-.141s.258.07.281.117.445.07.445.07.211.117.234.141c.047.023.141 0 .188-.047s.07-.117.211-.141.141.117.234.141c.07.023.117 0 .188-.047.094-.047.141.047.141.047s-.047.164-.047.234c0 .047-.094.07-.117.117s-.305 0-.422-.023c-.094-.023-.328-.023-.398 0s-.258.023-.328 0-.07-.141-.141-.188c-.047-.047-.188.07-.258.094s-.188-.117-.164-.188c0-.07-.258-.023-.305 0s-.234.023-.352.023-.211 0-.188-.047c.023-.07.117-.07.188-.07s-.047-.117 0-.117zm4.922.399s-.258-.07-.305-.164c-.07-.094-.305-.094-.422-.141s-.281-.117-.375-.164-.047-.188-.047-.164.188.07.305.094c.234.047.211.047.305.07s.281.164.375.211c.07.047.164.117.258.117h1.102c.07 0 .422.07.398.094s-.047.094-.211.094-.469-.023-.68-.047-.398.023-.398.023l-.281-.023zm-3.61-.586c.164-.047.305-.164.422-.164s.047.188.047.234c.023.047-.117.07-.188.047-.047-.047-.234.023-.305.023s-.094-.094 0-.141zm1.195-.117c.023-.117.141-.094.258-.117.117 0 .281 0 .422.047.164.047.141.047.211.117s.094.188.023.188-.117-.023-.258-.047c-.117-.023-.094-.047-.117-.094s-.258 0-.352 0-.188-.047-.188-.117zM3.234 3.961c.188.023.469.023.516.023s.328.094.492.047.258.023.305.047.07.023.141.094.141.023.234-.047c.094-.047.07-.117.07-.117l.094-.023c.07-.023.141.023.352.047.234.023.164-.047.328-.094a.5.5 0 0 1 .258.023c.047.023.094.047.117.023.047-.023.117-.117.164-.07s.117.164.117.164.164-.141.211-.141.211.047.305.047c.094-.023.445-.023.539.047.07.07.281.047.398.117s.211-.047.164-.07-.188-.141-.188-.141-.211-.234-.234-.281-.07-.047-.117.07-.258.117-.492.117-.07-.117-.328-.117c-.258-.023-.164-.117-.07-.117.07 0 .141-.164.164-.258s.117-.07.305-.07h.422c.094.023.141 0 .188-.023s.094-.047.188-.023c.188.023.094.047.188.117.117.07.164.047.328.117.141.07.094.07.164.07.07.023.281-.023.422-.047s.234-.023.305.047.047.164.141.234-.047-.234-.047-.352.188-.023.305-.023.258-.047.281.023c.023.047-.188.141-.07.258s.211.164.305.164.352.023.234.164-.398.141-.492.141-.258.047-.211.141c.047.07.258.047.398.047s.609.047.727 0 .094-.188-.047-.234-.023-.117.117-.094c.07.023.117 0 .164 0s.094-.023.07 0c-.023.047.023.141.023.234q0 .175.141.141c.141-.034.117-.047.211-.047.094-.023.047-.234-.023-.352-.047-.117-.094-.188-.07-.258 0-.07.164-.07.234-.023.07.07.188.211.188.211s.164.094.211.211.07.07.188.023c.117-.07.141-.047.234.023s.023.211.023.234c0 .047.117 0 .141-.07 0-.094.141-.094.188-.117.07-.023.07-.188.07-.188s-.164-.047-.352-.023c-.164.023-.234-.023-.375-.117s-.047-.164-.117-.258.211-.141.398-.234c.164-.07.328-.023.305.164-.023.211-.047.164.141.141.164-.047-.047-.211.07-.234a3 3 0 0 1 .398-.047c.094.023.516-.047.633-.047s.281.094.398.164c.141.07.469.164.539.211.094.047.633.117.703.141.047.023.047.188.117.328.047.141.188.047.258.047.047 0 .234.094.281.164s.445.117.445.117-.117.117-.141.164c-.047.047-.164.07-.211.117-.094.047-.164-.023-.281-.07-.094-.07-.281-.117-.328-.094s0 .07.023.117c.047.047.211.094.328.188.141.07.094.164.117.258 0 .117-.094-.047-.234-.07s-.141.117-.141.117-.164-.023-.234-.023c-.094 0 0 0-.164-.117-.07-.07-.117-.023-.141 0s-.023.047-.07.023c-.094-.047-.164-.141-.188-.117s-.07-.023-.117-.047-.094-.07-.141-.047h-.211c-.117 0-.234-.023-.281 0-.07.023-.141.023-.211.047-.094.023-.094-.188-.07-.258.047-.07.141-.07.328-.047.164.047.188 0 .234-.07s.07-.141.258-.188 0-.094-.07-.117c-.047-.023-.117-.07-.164 0s-.141.164-.141.164-.094 0-.258-.023-.047-.07.023-.094c.047-.023.141-.188.07-.234s-.094-.07-.211-.047-.047-.094-.117-.141c-.094-.047-.047.023-.047.07s-.117.047-.117.047-.188-.023-.258 0-.188.07-.141.117.164.047.211.164-.164.141-.211.164c-.047 0-.188.07-.188.07s-.164-.047-.305-.047-.164.023-.141.07.094.023.141.023.047.07.141.047c.117-.023.094-.07.211.047s.211.094.398.188-.023.211-.117.211-.094-.07-.141-.164c-.07-.07-.281.023-.281.023s-.188.094-.281.094-.164-.023-.047-.117-.141-.094-.141-.234-.047.141-.047.211c0 .047-.047.047-.117.023h-.211c-.234.023-.188.117-.492.305-.281.188-.352.234-.328.398s.094.117.211.164c.117.023.07.234.188.211.094-.023.164-.07.352.023s.281.117.516.164.375.117.492.07c.141-.023.188 0 .188.117 0 .094.094.117.07.234 0 .117.141-.117.141-.117s.07.211.023.234c-.07.023.023.141.07.141h.07c.047 0 .117.023.164-.023.07-.07-.047-.258-.047-.352 0-.07-.07-.117-.117-.211-.047-.07.094-.094.164-.023.047.07.141.023.234-.047s.094-.188.094-.188-.164-.211-.281-.258-.047-.07.07-.094 0-.07.023-.211c.047-.141.047-.234.117-.234.047 0 .305-.047.492-.023s.305.164.422.164c.141 0 .352.047.398.117s-.164.07-.047.188c.094.117.094.094.188.141s.211.023.328-.141c.094-.164.164-.164.211-.117.047.023.305.328.375.398s.188.211.211.281.188.07.258.07c.047 0 .258.141.281.234 0 .094.047.117.234.141.188.047 0 .188-.023.281-.047.07-.047.117-.117.211-.023.047-.023.047 0 .047s.047-.023.07 0c.07.047.094.094.188.07s.141 0 .188.094c.047.07.117.141.141.211s0 .164-.07.117c-.07-.07-.234-.023-.234-.023s-.094.07-.117.047c-.023-.047-.07-.094-.188-.07a.2.2 0 0 1-.164 0h-.117c-.094.023-.141-.047-.07-.117.07-.047.07-.258.211-.328s.094-.211 0-.211-.141.117-.188.141c-.07.023-.141.023-.258.094-.094.07-.352.047-.234.07.094.023-.164.141-.211.141-.094 0-.07-.164-.07-.234s-.117.047-.117.047-.211-.117-.281-.047-.188.117-.305.211c-.094.07-.328.211-.328.211s.094-.047.234-.07c.164-.047.141-.023.281-.094s.258-.094.375.023c.094.117-.023.188-.023.188s.047.094.117.117c.047.023.047-.023.141-.07s.047.117.07.164c.047.047.117.047.188 0 .07-.07.094-.117.141-.07s.07.141.117.234-.258.117-.328.141c-.07 0-.305.07-.352.07-.047.023-.164.141-.281.141s-.094-.164-.117-.258c0-.094-.117.023-.141.047-.023.047-.141.023-.234.047-.094 0-.258.094-.258.211s.094.164.07.211-.258.094-.352.07-.234.047-.188.094.047.141-.07.117c-.094 0-.094.094-.07.164.047.07-.117.211-.141.141-.047-.047-.117-.07-.117 0s.023.141.117.258c.07.117-.164.164-.281.258-.094.07-.398.352-.539.398s-.141.234-.07.305c.094.07.141.352.188.445s-.023.352-.141.352c-.117-.023-.07-.164-.188-.211s-.188-.281-.211-.445c-.047-.164-.07-.07-.141-.023-.094.047-.164-.117-.188-.141s-.117 0-.211 0c-.07 0-.164.023-.234.023-.164-.023-.211.07-.211.094 0 .047-.023.164-.188.07-.141-.07-.164-.07-.328-.07-.141 0-.281 0-.305.047s-.164.164-.258.188-.281.164-.188.188c.07.023.07.211.023.328s-.047.305-.023.492.188.305.328.422.211.164.352.047.211-.047.234-.023c.047.023.141-.07.117-.188-.047-.117.047-.234.188-.211.047 0 .117 0 .188-.023.07 0 .141-.023.188-.023.117 0 .141.258 0 .375-.164.117-.07.281-.094.398s-.141.141 0 .141.094.023.188.047.164-.07.281-.094c.094 0 .328.211.281.305a1 1 0 0 0-.07.469c.047.164.07.164.117.234.023.047.141.164.258.117s.234-.094.281-.141.305.094.281.141c-.023.023.094.07.164.023.094-.023.117-.094.188-.211a.7.7 0 0 1 .281-.211c.047 0 .211-.164.328-.141.094.023-.047.164-.047.234 0 .094 0 .305.047.328.07 0 .047-.164.117-.281.07-.141.211-.188.281-.188s.117.258.211.211c.094-.07.281-.047.328.023.023.07.07.117.07.117s.07-.047.07-.117c0-.094.211-.141.352-.07s.094.094.164.117c.07 0 .141-.164.164-.188.047-.023 0 .211-.094.328-.117.094.07.07.094.117.023.023.047.023.094 0 .047 0 .117 0 .141.023.047.047.164.094.234.258.094.117.211.094.375.07s.375.07.539.258c.164.164.117.305.234.305s.141.141.141.188-.234.164-.352.188c-.141 0-.141.141.07.117.211-.047.117-.117.258-.141.141-.047.258.047.164.211-.141.164-.375.164-.164.188s.094-.047.211-.188c.117-.164.117-.117.188-.117.094 0 .258.047.328.094s.234.141.352.188c.117.07.258.047.328.023s.328.07.398.188c.07.094.258.117.375.164.094.047.234.188.234.328.023.141-.141.422-.141.492-.023.047-.234.305-.422.469s-.07.352-.07.422c.023.07-.141.375-.094.445s-.047.211-.141.328c-.094.094-.141.258-.188.352-.07.094-.234.07-.398.117-.164.023-.234.07-.234.07s-.305.117-.445.234c-.164.117.047.305-.023.445s-.164.141-.234.305c-.047.117-.094.094-.117.07-.023 0-.047-.023-.07 0-.07.047-.117.141-.117.258-.023.094-.141.211-.328.375-.164.164-.281.141-.469.07-.188-.047-.164-.516-.188-.445s-.023.305.023.352c.023.047.117.211.164.234.07.047.047.117 0 .164-.047.07-.211.305-.258.328s-.469.07-.563.023c-.07-.047-.117.094-.117.188.023.094.094.164-.07.141s-.352-.117-.352-.047.047.211.117.211.164-.047.117.047-.141.164-.211.211c-.047.047-.117.164-.258.258s-.141.141-.117.188.234.023.281.047-.047.211-.094.258-.281.234-.375.281-.094.211-.047.328c4.453-1.406 7.781-5.344 8.273-10.125-.117-.094-.047-.211-.07-.328-.023-.141-.164-.188-.094-.211s.047-.094.234-.281c0-.141.023-.281.023-.422v-.094c-.047-.094-.117-.258-.023-.422a11.77 11.77 0 0 0-2.766-7.125 6 6 0 0 1-.398.047c-.094 0-.234.211-.258.258s-.328 0-.422 0-.188.117-.375.141c-.164.023-.094.141-.07.234 0 .094-.047.141-.141.117-.117-.023-.094.047-.117.117s.023.188-.094.281c-.094.07-.141.117-.258.094-.117 0-.117-.211-.141-.188-.047 0-.234.141-.281.07s-.281-.234-.375-.258c-.094-.047-.164-.188-.188-.258-.047-.07.117-.07.07-.07-.047-.023-.211-.047-.258-.094s-.141-.258-.164-.328c0-.07.141-.164.141-.211 0-.023-.141-.023-.188-.023s-.117-.141-.047-.281.211-.094.211-.094h.117c.07 0 .047.164.023.234s.047.07.094.094.07-.07.07-.117c0-.07-.117-.211-.188-.281-.047-.07-.234-.094-.258-.047s-.164.234-.211.188-.047-.445-.117-.563-.328-.141-.445-.211c-.094-.047-.492-.117-.563-.117-.023 0-.094 0-.141.023a.5.5 0 0 1-.258 0c-.094-.023-.094-.211-.094-.211s-.07.188-.094.234c-.047.047-.141.07-.188.047s-.164-.234-.281-.258h-.117c-.047 0-.094 0-.164-.047-.141-.117.258-.094.281-.094s.328-.07.352-.141c0-.094.094-.188.234-.141.141.023.211-.094.188-.211s.258-.234.305-.164c.047.047.281 0 .211-.117s.281-.211.609-.234.422.023.492.07.281.047.398-.023A11.9 11.9 0 0 0 11.992.304c-3.469 0-6.586 1.5-8.766 3.867z"})]})),lk=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:lA,...e}));lk.displayName="Globe";let lL=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Chevron Down"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{fill:"currentColor",d:"M8.471 10.529a.667.667 0 0 1-.942 0L3.35 6.35a.495.495 0 1 1 .7-.7L8 9.6l3.95-3.95a.495.495 0 1 1 .7.7z"})]})),lM=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:lL,...e}));lM.displayName="ChevronDown";var lI=e.i(25681),lP=e.i(147732),lD=e.i(993269),lT=e.i(859827);let lU=(0,N.forwardRef)(({isImperial:e,isMetric:t,isHybrid:l,expandedRegions:a,LOCALE_DATA:n,handleUnitChange:r,toggleRegion:i,handleLocaleChange:s,inNavigation:o=!1},d)=>{let[c,u]=(0,N.useState)(1);(0,N.useEffect)(()=>{let e=()=>{u(window.innerWidth>=1024?3:window.innerWidth>=768?2:1)};e();let t=(0,lP.debounce)(e,150);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),t.cancel()}},[]);let h=[{label:"Imperial",unitName:t4.UNIT_IMPERIAL,active:e,symbol:"°F"},{label:"Metric",unitName:t4.UNIT_METRIC,active:t,symbol:"°C"},{label:"Hybrid",unitName:t4.UNIT_HYBRID,active:l,symbol:"Hybrid"}];return(0,w.jsx)("div",{ref:d,className:(0,j.cn)("absolute top-full right-0 left-0 w-full overflow-auto border-b-1 border-[#2524221A] bg-white",{"z-110 max-h-[calc(100vh-56px)] md:max-h-[calc(100vh-73px)]":!o}),children:(0,w.jsxs)("div",{className:(0,j.cn)("mx-auto max-w-screen-xl",{"px-[15px] py-[10px]":!o}),children:[(0,w.jsx)("div",{className:"flex justify-center border-b",children:h.map(({unitName:e,active:t,symbol:l})=>(0,w.jsx)(E.Button,{onClick:()=>r(e),variant:"ghost",className:(0,j.cn)("text-brand-400 cursor-pointer rounded-none border-b-2 border-transparent",t&&"border-brand-400 border-black"),children:l},e))}),(0,w.jsxs)("div",{className:"py-3 text-center text-xs text-[#6f7585]",children:[e&&"Imperial - F / mph / miles / inches",t&&"Metric - C / millimeters / km / kmh / millibars",l&&"Hybrid - C / millimeters / miles / mph / millibars"]}),(0,w.jsx)("div",{className:"",children:n.map(e=>(0,w.jsxs)("div",{className:"border-b last:border-b-0",children:[(0,w.jsxs)(E.Button,{onClick:()=>i(e.title),variant:"ghost",className:"flex w-full items-center justify-between rounded-none p-6",children:[(0,w.jsx)(tW.default,{className:"text-lg font-bold uppercase",children:e.title}),a[e.title]?(0,w.jsx)(lD.Minus,{className:"h-[18px] w-[18px] text-black"}):(0,w.jsx)(lT.Plus,{className:"h-[18px] w-[18px] text-black"})]}),a[e.title]&&(0,w.jsx)("div",{className:"grid grid-cols-1 bg-gray-50 px-[21px] md:grid-cols-2 lg:grid-cols-3",style:{gridAutoFlow:"column",gridTemplateRows:`repeat(${Math.ceil(e.countries.length/c)}, auto)`},children:e.countries.map(e=>(0,w.jsxs)(E.Button,{variant:"link",onClick:()=>s(e.locale),className:"flex h-auto items-center justify-between py-2 text-left no-underline hover:underline",children:[e.name," | ",e.language]},e.locale))})]},e.title))})]})})});lU.displayName="SettingsMenuContent";var lz=e.i(166763),lF=e.i(379805),lV=e.i(889753),lO=e.i(314552),l_=e.i(537989);let lH=new Set(["article","video","index"]);function l$(){let e=(0,R.useAtomValue)(U.settingsMenuOpenAtom),t=(0,R.useSetAtom)(U.settingsMenuOpenAtom),l=(0,N.useCallback)(()=>{t(!1)},[t]),a=(0,N.useRef)(null),[n,r]=(0,N.useState)({}),i=(0,R.useAtomValue)(t2.isImperialUnitsAtom),s=(0,R.useAtomValue)(t2.isMetricUnitsAtom),o=(0,R.useAtomValue)(t2.isHybridUnitsAtom),d=(0,lI.useParams)(),c=d?.locale||"en-US",u=d?.locId,h=(0,R.useAtomValue)(l_.pageIdAtom),{updatePreferences:f}=(0,tH.usePreferences)(),g=(0,R.useAtomValue)(lV.userPreferencesAtom);(0,N.useEffect)(()=>{let e=(0,lF.getCookie)("unitOfMeasurement")?.toString();if(e){let t=(0,t4.unitsSystemByCode)(e),l=t?.name,a=g?.unit;l&&l!==a&&f({unit:l})}},[f,g?.unit]);let m=async e=>{try{await f({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},p=async e=>{try{let t=(0,lz.convertLocaleFormat)(e);if(await f({locale:t}),(0,lF.setCookie)("sitePref",e,{domain:`.${window.location.hostname}`}),l(),h&&lH.has(h)){window.location.href=e===lO.defaultLocale?"/":`/${e}`;return}let a=h?ll.URLS[h]:void 0,n=a&&u?(0,ll.interpolateUrl)(a,{locale:e,locId:u}):null;if(n){window.location.href=n;return}let r=c!==lO.defaultLocale&&window.location.pathname.startsWith(`/${c}`)?window.location.pathname.slice(`/${c}`.length)||"/":window.location.pathname;window.location.href=e===lO.defaultLocale?r:`/${e}${r}`}catch(e){console.error("Failed to update locale preference:",e)}};return((0,N.useEffect)(()=>{function t(t){if(!e)return;let n=t.target;a.current&&n&&!a.current.contains(n)&&!n.closest("[data-settings-menu-trigger]")&&l()}return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[l,e]),e)?(0,w.jsx)(lU,{ref:a,isImperial:i,isMetric:s,isHybrid:o,locale:c,expandedRegions:n,LOCALE_DATA:lz.LOCALE_DATA,handleUnitChange:m,toggleRegion:e=>{r(t=>{if(t[e])return{...t,[e]:!1};let l={};return Object.keys(t).forEach(e=>{l[e]=!1}),{...l,[e]:!0}})},handleLocaleChange:p,inNavigation:!0}):null}var lK=e.i(827049),lG=e.i(449172),lW=e.i(316810);let lY=({url:e,action:t,name:l,isNew:a,isExternal:n,isInGroup:r})=>{if(!e&&!t)return null;let i=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("span",{className:"relative flex items-center",children:[l,a&&(0,w.jsx)(lW.default,{})]}),n&&(0,w.jsx)(lG.ExternalLink,{size:"sm","data-testid":"external-link-icon"})]}),s=(0,j.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",r?"px-10":"px-6");return(0,w.jsx)("li",{className:r?"border-b border-[rgba(37,36,34,0.10)]":"",children:e?(0,w.jsx)(C.default,{href:e,className:s,target:n?"_blank":void 0,children:i}):(0,w.jsx)("button",{onClick:t,className:(0,j.cn)(s,"cursor-pointer"),children:i})},l)},lq=({isExpanded:e,toggleCategory:t,name:l,links:a})=>(0,w.jsxs)("div",{className:"w-full md:mb-6",children:[(0,w.jsxs)("div",{className:(0,j.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:t,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,w.jsx)("h2",{className:(0,j.cn)("text-gray-900 md:font-bold"),children:l}),(0,w.jsx)("span",{"aria-label":e?"Collapse":"Expand",children:e?(0,w.jsx)(lD.Minus,{size:"md",className:"text-black"}):(0,w.jsx)(lT.Plus,{size:"md",className:"text-black"})})]}),(0,w.jsx)("ul",{className:(0,j.cn)("bg-[#ebecee] md:space-y-2",!e&&"hidden"),children:a.map(e=>(0,w.jsx)(lY,{...e,isInGroup:!0},e.name))})]},l),lX=(0,N.forwardRef)(({locationProvider:e},t)=>{let[l,a]=(0,R.useAtom)(U.settingsMenuOpenAtom),n=(0,R.useAtomValue)(t2.isImperialUnitsAtom),r=(0,lI.useParams)(),i=(r?.locale||"en-US").split("-")[1],{location:s}=(0,lp.useProviderLocation)(e),o=(0,lS.useCanonicalBasePath)(),{user:{isUserLoggedIn:d}}=(0,ld.useUser)(),c=(0,lR.useUserLogout)(),u=(0,lE.useRefMemo)(c),h=s?.placeId||"",f=(0,R.useAtomValue)(lK.pageLocaleAtom),g=(0,S.useTranslations)("SidebarNavigation"),m=(0,S.useTranslations)("UserRegistration"),{data:p}=(0,F.default)(["navigation/getVideoLink",f],([e,t])=>(0,lB.getVideoLink)(t),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),[x,v]=(0,N.useState)({}),b=(0,N.useMemo)(()=>[{name:g("weatherForecasts"),links:[{name:g("today"),url:o?`${o}/today`:(0,ll.interpolateUrl)(ll.URLS.today,{locale:f,locId:h})},{name:g("hourly"),url:o?`${o}/hourbyhour`:(0,ll.interpolateUrl)(ll.URLS.hourly,{locale:f,locId:h})},{name:g("tenday"),url:o?`${o}/tenday`:(0,ll.interpolateUrl)(ll.URLS.tenday,{locale:f,locId:h})}]},{name:g("radarAndMaps"),links:[{name:g("interactiveRadarMap"),url:`${(0,ll.interpolateUrl)(ll.URLS.interactiveMap,{locale:f,locId:h})}?animation=true`},..."en-US"===f?[{name:"US Forecast",url:ll.URLS.usForecast},{name:"US Satellite & Radar",url:ll.URLS.usSatAndRadar},{name:"World Satellite",url:ll.URLS.worldSatellite},{name:"US Severe Alerts",url:ll.URLS.usSevereAlerts},{name:"US Health",url:ll.URLS.usHealth}]:[]]},{name:g("newsMedia"),links:[..."en-US"===f?[{name:"Top Weather Stories",url:"/news"},{name:g("hurricaneCentral"),url:"/storms/hurricane-central"},{name:g("tornadoCentral"),url:"/storms/tornado-central"},{name:g("safetyAndPrep"),url:"/safety/index"},{name:g("spaceAndSkywatching"),url:ll.URLS.spaceSkywatching}]:[],...p?[{name:g("video"),url:p}]:[]]},{name:g("productAccount"),links:[..."en-US"===f?[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0}]:[],...d?[{name:m("manageAccount"),url:(0,ll.interpolateUrl)(ll.URLS.memberSettings,{locale:f})},{name:m("logOut"),action:u.current}]:[{name:m("createAnAccount"),url:(0,ll.interpolateUrl)(ll.URLS.memberSignup,{locale:f})},{name:m("logIn"),url:(0,ll.interpolateUrl)(ll.URLS.memberLogin,{locale:f})}]]},{name:g("lifestyle"),links:[..."en-US"===f?[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Shop",url:"https://shop.weather.com/",isExternal:!0},{name:g("recipes"),url:"/home-garden/recipes"},{name:g("homeAndGarden"),url:ll.URLS.homeGarden},{name:g("travelAndOutdoors"),url:ll.URLS.travel},{name:g("petsAndAnimals"),url:ll.URLS.pets},{name:"Health",url:"/health"}]:[],{name:g("allergyTracker"),url:(0,ll.interpolateUrl)(ll.URLS.allergy,{locale:f,locId:h})},{name:g("airQualityIndex"),url:(0,ll.interpolateUrl)(ll.URLS.airQuality,{locale:f,locId:h})},{name:g("coldAndFluTracker"),url:(0,ll.interpolateUrl)(ll.URLS.coldFlu,{locale:f,locId:h})},..."en-US"===f?[{name:g("skinHealth"),url:ll.URLS.skinHealth}]:[]]},..."en-US"===f?[{name:"Explore",url:"/explore"}]:[]],[d,u,h,p,o,f]);return(0,w.jsxs)("nav",{ref:t,className:(0,j.cn)("md:h-unset absolute top-full right-0 left-0 z-110 h-[calc(100vh-56px)] w-full overflow-y-auto bg-white shadow-md md:py-8"),"data-testid":"header-nav-menu",children:[(0,w.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,w.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,w.jsxs)(E.Button,{variant:"ghostUI","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":l,className:"text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900",onClick:()=>a(e=>!e),children:[(0,w.jsx)(lk,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,w.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:i}),(0,w.jsx)("span",{className:"border-l-brand-active border-l-[1px] pr-1 pl-2 text-[13px] md:border-l-gray-900 md:text-lg md:font-bold",children:n?"°F":"°C"}),l?(0,w.jsx)(M,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,w.jsx)(lM,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),(0,w.jsx)(l$,{})]}),!l&&(0,w.jsx)("div",{className:"mx-auto flex w-full max-w-7xl flex-col justify-center md:flex-row md:gap-3 md:px-4","data-testid":"header-nav-content",children:b.map((e,t)=>(0,w.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,w.jsx)(lq,{isExpanded:x[e.name],toggleCategory:()=>{var t;return t=e.name,void v(e=>({...e,[t]:!e[t]}))},...e}):(0,w.jsx)(lY,{...e})},t))})]})});lX.displayName="Navigation";let lQ=(0,N.forwardRef)(({title:e,titleId:t,desc:l,descId:a,...n},r)=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:r,"aria-labelledby":t,"aria-describedby":a,...n,children:[l?(0,w.jsx)("desc",{id:a,children:l}):null,void 0===e?(0,w.jsx)("title",{id:t,children:"Hamburger"}):e?(0,w.jsx)("title",{id:t,children:e}):null,(0,w.jsx)("path",{fill:"currentColor",d:"M20 16a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 6a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z"})]})),lJ=N.default.forwardRef((e,t)=>(0,w.jsx)(k.BaseIcon,{ref:t,icon:lQ,...e}));function lZ({locationProvider:e}){let[t,l]=(0,R.useAtom)(U.menuOpenAtom),a=(0,N.useRef)(null),n=(0,N.useRef)(null);return(0,N.useEffect)(()=>{t?document.querySelector("html")?.classList.add("overflow-hidden"):document.querySelector("html")?.classList.remove("overflow-hidden")},[t]),(0,N.useEffect)(()=>{function e(e){t&&a.current&&n.current&&!a.current.contains(e.target)&&!n.current.contains(e.target)&&l(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,l]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(E.Button,{ref:a,variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10 shrink-0 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>l(!t),"data-testid":"header-menu-button",children:t?(0,w.jsx)(I.Close,{}):(0,w.jsx)(lJ,{})}),t&&(0,w.jsx)(lX,{ref:n,locationProvider:e})]})}lJ.displayName="Hamburger";var l0=e.i(837879),l1=e.i(178655);let l2=()=>{let e=(0,R.useAtomValue)(l_.pageIdAtom);return(0,N.useCallback)(t=>{let l=`${e}_${t}`;(0,l1.setCookie)("fromStr",l,{path:"/",domain:".weather.com"})},[e])};function l4(){let{user:e,userProfile:t}=(0,ld.useUser)(),l=(0,lR.useUserLogout)(),{isUserLoggedIn:a,isUserPremium:n}=e,[r,i]=(0,N.useState)(!1),s=(0,l0.useSubscriptionsEnabled)(),o=(0,S.useTranslations)("UserRegistration"),d=l2(),c="flex size-8 shrink-0 items-center justify-center rounded-full border-2 border-current text-sm leading-none font-bold text-inherit";return(0,w.jsx)("div",{"data-testid":"header-profile",className:"md:hidden",children:a?(0,w.jsxs)(B.Popover,{trigger:"hover",openDelay:100,closeDelay:300,open:r,onOpenChange:i,children:[(0,w.jsx)(B.PopoverTrigger,{asChild:!0,children:(0,w.jsx)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":r,className:c,"data-testid":"header-profile-button",children:t?.firstName?.charAt(0)?.toUpperCase()})}),(0,w.jsx)(B.PopoverContent,{className:"z-9996 p-0",children:(0,w.jsxs)("div",{className:"flex flex-col",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)(C.default,{href:"/member/settings","data-testid":"header-profile-account",children:(0,w.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,w.jsx)("span",{className:c,children:t?.firstName?.charAt(0)?.toUpperCase()}),(0,w.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,w.jsx)(tW.default,{variant:"Body.S",children:t?.firstName}),(0,w.jsx)(tW.default,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:o("manageAccount")})]})]})}),!n&&s&&(0,w.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,w.jsx)(tW.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,w.jsx)(tW.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,w.jsx)(C.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>d("user_flyout_go_premium"),children:(0,w.jsx)(E.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,w.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,w.jsx)(E.Button,{variant:"link",onClick:l,"data-testid":"header-profile-signout",children:o("signOut")})})]})})]}):(0,w.jsx)(C.default,{href:"/login",children:(0,w.jsx)(E.Button,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:o("logIn")})})})}var l7=e.i(995113);function l5(){let{user:e}=(0,ld.useUser)(),{isUserPremium:t}=e,l=(0,l0.useSubscriptionsEnabled)(),a=l2();return t||!l?null:(0,w.jsx)("div",{className:"hidden rounded-4xl bg-white p-1 md:block md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",children:(0,w.jsxs)(C.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",className:(0,j.cn)("group relative inline-flex h-10 items-center justify-center gap-1 overflow-hidden rounded-3xl px-3 py-0 text-sm font-bold transition-colors md:h-12 md:px-4","focus-visible:ring-offset-0 focus-visible:outline-none"),style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>a("header_go_premium"),children:[(0,w.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,w.jsx)(l7.LightningFilled,{className:"relative z-2 size-4 text-white"}),(0,w.jsx)("span",{className:"relative text-sm font-semibold whitespace-nowrap text-white",children:"Get Premium"})]})})}var l3=e.i(370645),l8=e.i(725296),l6=e.i(543512);let[l9,ae]=(0,l3.default)(l8.default.EXEMPT),[at,al]=(0,l3.default)(l6.UserSubscriptionTiers.none),[aa,an]=(0,l3.default)("mobile"),[ar,ai]=(0,l3.default)(null),[as,ao]=(0,l3.default)("en-US"),[ad,ac]=(0,l3.default)(!1),[au,ah]=(0,l3.default)(!1),[af,ag]=(0,l3.default)(!1),[am,ap]=(0,l3.default)(!1),[ax,av]=(0,l3.default)(!1),[ab,ay]=(0,l3.default)(!1),[aw,aj]=(0,l3.default)("control"),[aC,aN]=(0,l3.default)("a"),[aS,aR]=(0,l3.default)(""),[aE,aB]=(0,l3.default)(!1),[aA,ak]=(0,l3.default)("control");var aL=e.i(458645);e.i(647872);var aM=e.i(523579);function aI({locationProvider:e,subnav:t,hideHeaderOnDesktop:l}){let a,n=(0,D.useIsMobile)(),r=(a=(0,D.useIsMobile)(),(0,lI.usePathname)().includes("/subscribe")&&!a||l&&!n),i=as(),s=(0,R.useAtomValue)(aM.retroWeatherAtom),o=(0,R.useAtomValue)(U.menuOpenAtom),d=(0,R.useAtomValue)(U.locationPickerOpenAtom),c=s?"/retro":`/${i===lO.defaultLocale?"":i}`;return r?null:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("header",{className:"z-sticky relative top-0 w-full md:sticky",children:(0,w.jsx)("div",{className:"text-black max-md:bg-white","data-testid":"header-main",children:(0,w.jsxs)("div",{className:"mx-auto flex items-center justify-between gap-2 px-3 py-2 md:gap-4 md:py-3 md:pl-0",children:[(0,w.jsx)("span",{className:"contents md:hidden",children:(0,w.jsx)(lZ,{locationProvider:e})}),(0,w.jsx)("div",{className:"flex items-center md:hidden",children:(0,w.jsx)(C.default,{href:c,className:"flex items-center md:hidden","data-testid":"header-logo",children:(0,w.jsx)(aL.default,{className:"h-10 w-auto text-[#003399] md:h-12",variant:"header"})})}),(0,w.jsx)(lN,{locale:i,locationProvider:e}),(0,w.jsx)("div",{className:"hidden md:contents",children:t}),(0,w.jsx)(l5,{}),(0,w.jsx)(l4,{})]})})}),(0,w.jsx)("div",{className:(0,j.cn)("z-sticky sticky top-2 mb-6 px-3 md:hidden",o||d?"hidden":"block"),children:t})]})}e.s(["Header",0,aI,"default",0,aI],348693)}]);