(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,190344,e=>{"use strict";var t=e.i(794120),r=e.i(282446),l=e.i(763886),i=e.i(132084),n=e.i(456215),a=e.i(647292);e.i(609717);var o=e.i(950771),s=e.i(328895);let c=(0,e.i(695881).createLogger)("useVideoNavUrl");e.s(["f",0,function(){var e,u;let d=(0,r.y)(l.f),f=(0,r.y)(a.f),p=(0,r.y)(o.f),h=(e=d??"",u=f??"",e===i.p.SAMSUNG?"weather-com-mobile-web-samsung":(0,n.x)(u)?"twc-snowcast":u?"weather-com-mobile-web":"weather-com-web"),{data:m,error:g}=(0,t.U)(["navigation/video-nav",h,p,d],()=>(0,s.getVideoNavLink)({channel:h,language:p,partner:d||void 0}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0});return g&&c.error("video nav url fetch failed",{channel:h,locale:p,partner:d,error:g}),m}],190344)},128541,e=>{"use strict";var t=e.i(74492);let r=(0,t.j)(()=>sessionStorage),l=(0,t.N)("wx-purchase-source-attribution",null,r);e.s(["f",0,l])},947118,221085,e=>{"use strict";let t;var r=e.i(538167);let l=new Set,i=0,n=()=>"function"==typeof window.mParticle?.init,a=()=>{void 0!==t&&(clearInterval(t),t=void 0)},o=()=>{if(!n()||(a(),0===l.size))return;let e=[...l];for(let t of(l.clear(),e))t()},s=()=>{void 0===t&&(i=0,t=setInterval(()=>{i+=100,o(),i>=3e4&&a()},100))},c=e=>(l.add(e),s(),()=>{l.delete(e)}),u=e=>n()?(e(),()=>{}):c(e),d=e=>n()?()=>{}:c(e),f=()=>!1;e.s(["h",0,u,"s",0,()=>(0,r.useSyncExternalStore)(d,n,f),"x",0,e=>{if("u"{};if(n())return o(),()=>{};s();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>o();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let p=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),h=()=>!!window.mParticle?.isInitialized?.(),m=()=>!1;e.s(["f",0,()=>(0,r.useSyncExternalStore)(p,h,m)],947118)},459598,e=>{"use strict";let t=()=>{let e,t=!1;return{suppressNext:()=>{t=!0,clearTimeout(e),e=setTimeout(()=>{t=!1},2e3)},consume:()=>!!t&&(t=!1,clearTimeout(e),!0)}},r=t(),l=t(),i=r.suppressNext,n=r.consume,a=l.suppressNext,o=l.consume;e.s(["R",0,o,"V",0,n,"M",0,a,"w",0,i])},427977,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getQuickNav=void 0;let l=e.r(414655),i=e.r(678651),n=e.r(718043);r.getQuickNav=async()=>{let e=(0,i.urlFrom)((0,n.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,l.handleFetchResponse)(t)}},718043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},r.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},r.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},r.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:r}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${r}/${e}`}},r.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:r=0,limit:n=10,sort:a="-publishdate"}){let o={q:Object.keys(t).reduce((e,r)=>{let l=t[r];return l instanceof Array?[...e,...l.map(e=>i(r,e))]:[...e,i(r,l)]},[]).join(";"),pg:`${r},${n}`,format:"json",sort:a},s=(0,l.queryStringToSearchParams)(o).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},r.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:r=0,limit:i=10,sort:n="-publishdate"}){let a={q:t,pg:`${r},${i}`,format:"json",sort:n},o=(0,l.queryStringToSearchParams)(a).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},r.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:r=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${r}`}},r.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let l=e.r(678651);function i(e,t){let r=`'${t.$in}'`;return t.$in instanceof Array&&(r=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${r})`}},44677,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},336726,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:l,descId:i,...n},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":r,"aria-describedby":i,...n,children:[l?(0,t.jsx)("desc",{id:i,children:l}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Chevron Down"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.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"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(l.f,{ref:r,icon:i,...e}));n.displayName="ChevronDown",e.s(["f",0,n])},993269,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:l,descId:i,...n},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":r,"aria-describedby":i,...n,children:[l?(0,t.jsx)("desc",{id:i,children:l}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Minus"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H4.8a.8.8 0 1 0 0 1.6h6.4a.8.8 0 0 0 .8-.8"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(l.f,{ref:r,icon:i,...e}));n.displayName="Minus",e.s(["f",0,n])},859827,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:l,descId:i,...n},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":r,"aria-describedby":i,...n,children:[l?(0,t.jsx)("desc",{id:i,children:l}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Plus"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H8.8V5.3a.8.8 0 1 0-1.6 0v2.4H4.8a.8.8 0 1 0 0 1.6h2.4v2.4a.8.8 0 0 0 1.6 0V9.3h2.4a.8.8 0 0 0 .8-.8"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(l.f,{ref:r,icon:i,...e}));n.displayName="Plus",e.s(["f",0,n])},281687,e=>{"use strict";var t=e.i(64412),r=e.i(512134);e.s(["f",0,function(){let{location:e}=(0,t.f)();return(0,r.f)()?e:void 0}])},935807,e=>{"use strict";function t(e,r=[],i=!1,n="US",a){let o,s=r.find(t=>t.placeID===e.placeId);if(s&&i){let t=s.userTag||s.name;if(t&&"Other"!==t){let r=e.displayName,i=l(e,n,""),a="address"===e.type?e.address:void 0;if(t!==r&&t!==i&&t!==a)return t}}if(e?.disputedCountries)o=e.displayName||"";else{switch(e?.type){case"address":o=e?.address?.split(",")[0]?.trim()||"";break;case"city":o=e?.locale?.locale2||"";break;case"locality":o=e?.locale?.locale3||"";break;case"neighborhood":o=e?.locale?.locale4||"";break;case"airport":o=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";o=a?`${t} ${r}`.trim():`${t}`.trim();break}default:o=e?.displayName||""}0===o.length&&(o=e?.displayName||"")}return o}function r(e,t=[],i=!1,n="US",a){let o,s=t.find(t=>t.placeID===e.placeId);if(s&&i){let t=s.userTag||s.name;if(t&&"Other"!==t){let r=e.displayName,i=l(e,n,"");if(t!==r&&t!==i)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let r=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,r].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",l=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${l}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,n)}}if(e?.disputedCountries)o=e?.displayName||"";else{let t=n===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",l=e?.postalCode||"",i=e.city||"";switch(e?.type){case"address":o=[i,r,t].filter(Boolean).join(", ");break;case"city":default:o=[r,t].filter(Boolean).join(", ");break;case"locality":o=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":o=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let i=r||e?.locale?.locale2||"";o=[a?`${i} ${l}`.trim():i,t].filter(Boolean).join(", ")}}}return o}function l(e,t,r){let{displayName:l,adminDistrictCode:i,adminDistrict:n,countryCode:a,disputedArea:o,country:s}=e,c=[];return l&&c.push(l),"IL"!==t&&(i?c.push(i):n&&c.push(n)),a!==t&&!1===o&&s&&c.push(s),c.join(r)}e.s(["d",0,r,"P",0,t,"e",0,function(e,l=[],i=!1,n="US"){let a=t(e,l,i,n,!1),o=r(e,l,i,n,!0),s=e?.separator?e?.separator:a&&o?", ":"";return`${a}${s}${o}`.trim()}])},919101,e=>{"use strict";e.s(["f",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let r=t.find(t=>t.placeId===e.placeId);return r?{...e,displayName:r.address,address:r.address}:e}])},458001,e=>{"use strict";let t=(0,e.i(144683).g)("");e.s(["f",0,t])},763886,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},520362,e=>{"use strict";var t=e.i(458201),r=e.i(538167);let l=e=>{let{apiRoute:t,depth:l,refresh:i,serverURL:n}=e,a=(0,r.useRef)(!1),o=(0,r.useCallback)(e=>{e.origin===n&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,n]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",o),a.current||(a.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:n}),i()),()=>{"u">typeof window&&window.removeEventListener("message",o)}),[n,o,l,t,i]),null};var i=e.i(935251);let n=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),a={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"};e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),l=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useCallback)(()=>{if("u"{let r=t.current,i=e.current;if(!r||!i)return;if(!r.isConnected){t.current=null,i.style.opacity="0",l.current?.disconnect();return}let n=r.getBoundingClientRect();i.style.top=`${n.top+window.scrollY}px`,i.style.left=`${n.left+window.scrollX}px`,i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.style.opacity="1"},[]),u=(0,r.useCallback)(()=>{t.current=null,o.current=null,e.current&&(e.current.style.opacity="0"),l.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,c()}))},[c]),f=(0,r.useCallback)(e=>{if(e===o.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void n.debug("No element found for block ID",{blockId:e});let i=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?f(e.data.blockId):u())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==i.current&&cancelAnimationFrame(i.current),l.current?.disconnect(),e.current?.remove()}},[f,u,d]),null},"LivePreviewListener",0,e=>{let r=(0,i.useRouter)();return(0,t.jsx)(l,{...e,refresh:r.refresh})}],520362)},889781,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},5397,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},21121,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},752496,e=>{"use strict";var t=e.i(538167),r=e.i(609858);let l=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:i,page:n,onUpdateData:a,onSetPageData:o}){let{updateComponentData:s,setPageData:c}=(0,r.f)(),u=(0,t.useRef)(!1),d=a||s,f=o||c;return(0,t.useEffect)(()=>{if(i)return l.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(i),hasPerformance:!!i.performance,hasContext:!!i.context}),d(e,{...i,_collectedAt:new Date().toISOString()}),()=>{l.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,i,d]),(0,t.useEffect)(()=>{n&&!u.current&&(l.lifecycle("Setting page metadata",{title:n.title,assetName:n.assetName,collection:n.collection}),f({...n,_updatedAt:new Date().toISOString()}),u.current=!0)},[n,f]),null}])},609858,674339,e=>{"use strict";var t=e.i(282446),r=e.i(538167);let l=(0,e.i(144683).g)({timestamp:new Date().toISOString()});e.s(["f",0,l],674339),e.s(["f",0,function(){let[e,i]=(0,t.q)(l),n=(0,r.useCallback)((e,t)=>{i(r=>{let l=r?.[e]||{},i="object"==typeof t&&null!==t&&"object"==typeof l?{...l,...t}:t;return{...r,[e]:i}})},[i]),a=(0,r.useCallback)((e,t)=>{i(r=>{let l=r||{timestamp:new Date().toISOString()},i=l.components||{};if(null===t){let t={...i};return delete t[e],{...l,components:t}}return{...l,components:{...i,[e]:t}}})},[i]),o=(0,r.useCallback)(e=>{n("page",e)},[n]),s=(0,r.useCallback)(e=>{n("route",e)},[n]),c=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&n(e,t)})},[n]);return{debugData:e,updateSection:n,updateComponentData:a,setPageData:o,clearAllDebugData:(0,r.useCallback)(()=>{i({timestamp:new Date().toISOString()})},[i]),updateRouteInfo:s,updatePageDebug:c}}],609858)},394481,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},37429,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(168518),l=l,i=e.i(632137);let n={square:"Square (1:1)",video:"Video (16:9)",goldenPortrait:"Golden Portrait (1:1.618)",goldenLandscape:"Golden Landscape (1.618:1)","16/9":"16:9","8/5":"8:5","4/3":"4:3","3/2":"3:2","2/3":"2/3","1/1":"1:1",auto:"Auto"};["square","video","goldenPortrait","goldenLandscape","16/9","8/5","4/3","3/2","2/3","1/1","auto"].map(e=>({label:n[e],value:e}));let a={square:"aspect-square",video:"aspect-video",goldenPortrait:"aspect-[1/1.618]",goldenLandscape:"aspect-[1.618/1]","16/9":"aspect-[16/9]","8/5":"aspect-[8/5]","4/3":"aspect-[4/3]","3/2":"aspect-[3/2]","2/3":"aspect-[2/3]","1/1":"aspect-[1/1]",auto:"h-full w-full"},o=(0,r.forwardRef)(({src:e,alt:r,shadow:n,rounded:o=!0,className:s,wrapperClassName:c,width:u,height:d,quality:f,priority:p=!1,loading:h,isFetchPriority:m=!1,objectFit:g,fill:v=!1,sizes:b,aspectRatio:w,isAnimated:y=!1,unoptimized:x,...C},k)=>{if(!e)return null;let j=y||e.toLowerCase().endsWith(".gif"),S=v||!!w,$=g??(w?"cover":"contain"),N=w?a[w]:"",R=(0,t.jsx)(l.Image,{ref:k,src:e,alt:r,width:S?void 0:u??320,height:S?void 0:d??180,quality:f,priority:p,loading:h,fetchPriority:m?"high":void 0,fill:S,sizes:b,unoptimized:x??j,className:(0,i.f)({"shadow-md":n,"rounded-lg":o,"object-contain":"contain"===$,"object-cover":"cover"===$,"object-fill":"fill"===$,"object-none":"none"===$,"object-scale-down":"scale-down"===$,"h-auto w-full":!S},s),...C});return S?(0,t.jsx)("div",{className:(0,i.f)("relative overflow-hidden",N,!w&&"h-full w-full",c),children:R}):R});o.displayName="Image",e.s(["s",0,a,"n",0,o,"U",0,o],37429)},235577,e=>{"use strict";var t=e.i(458201),r=e.i(523084),l=e.i(47524),i=e.i(632137),n=e.i(877957);e.s(["f",0,function({direction:e,onClick:a,hidden:o,size:s="default",variant:c="light",className:u}){let d="sm"===s,f=(0,i.f)("text-current",d?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(n.f,{type:"button",onClick:a,"aria-hidden":"true",tabIndex:-1,className:(0,i.f)("group z-sticky absolute top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===c?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===c?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===c?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",d?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",o&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",o&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",o&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(r.f,{className:f}):(0,t.jsx)(l.f,{className:f})})}])},457492,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(632137),i=e.i(282446),n=e.i(663333),a=e.i(235577),o=e.i(315730),s=e.i(240058);let c=(0,l.f)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),u=e=>{let{activeIndex:r,index:i,link:n}=e,a=r===i,o=(0,l.f)(c,{"bg-gray-100 text-blue-500":a});if(e.onSelect){let{onSelect:r}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>r(i,n),className:(0,l.f)("cursor-pointer",o),"aria-current":a?"page":void 0,children:n.label})}let{basePath:u,mpa:d}=e,f=n.href??("/"===n.slug?u||"/":`${u}/${n.slug}`);return(0,t.jsx)(s.default,{href:f,mpa:d,className:o,"aria-current":a?"page":void 0,sourceModule:"subnavigation",children:n.label})},d=(0,r.memo)(e=>{let{links:r,activeIndex:s,className:c,constrained:d=!0}=e,f=(0,i.y)(n.f),{ref:p,showLeft:h,showRight:m,scrollLeft:g,scrollRight:v}=(0,o.f)({enabled:"mobile"!==f&&"tablet"!==f,scrollAmount:200,contentKey:r});return(0,t.jsxs)("div",{className:(0,l.f)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",d&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,l.f)("pointer-events-none absolute top-0 -left-1 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-transform md:-top-1 md:h-14 md:rounded-s-[28px]",{"-translate-x-24":!h}),"aria-hidden":"true"}),(0,t.jsx)(a.f,{hidden:!h,onClick:g,direction:"left"}),(0,t.jsx)("div",{ref:p,className:(0,l.f)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:r.map((r,l)=>e.onSelect?(0,t.jsx)(u,{link:r,index:l,activeIndex:s,onSelect:e.onSelect},`${r.label}_${r.slug}`):(0,t.jsx)(u,{link:r,index:l,activeIndex:s,basePath:e.basePath,mpa:e.mpa},`${r.label}_${r.slug}`))}),(0,t.jsx)("div",{className:(0,l.f)("pointer-events-none absolute top-0 -right-1 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-transform md:-top-1 md:h-14 md:rounded-e-[28px]",{"translate-x-24":!m}),"aria-hidden":"true"}),(0,t.jsx)(a.f,{hidden:!m,onClick:v,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));d.displayName="SubnavigationUI",e.s(["f",0,d],457492)},385277,e=>{"use strict";var t=e.i(538167),r=e.i(792461);e.s(["f",0,e=>{let l=(0,t.useRef)(null),[i,n]=(0,t.useState)(null),a=(0,t.useRef)(!1),o=(0,r.f)(e);return(0,t.useEffect)(()=>{let e=l.current;if(!e||"u"{window.requestAnimationFrame(()=>{for(let t of e){let{right:e,left:r,top:l,bottom:i}=t.contentRect,s=e+r,c=l+i,u=o.current(s,c);a.current=!0,n(u)}})});return t.observe(e),()=>{t.disconnect()}},[l,o]),[i,l,a.current]}])},315730,e=>{"use strict";var t=e.i(147732),r=e.i(538167);e.s(["f",0,function({enabled:e=!0,scrollAmount:l=200,contentKey:i}={}){let n=(0,r.useRef)(null),a=(0,r.useRef)(null),o=(0,r.useRef)(!1),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(!1),f=(0,r.useCallback)(()=>{let t=n.current;if(!t||!e){c(!1),d(!1);return}let{scrollLeft:r,scrollWidth:l,clientWidth:i}=t,a=Math.abs(r),s=a>2,u=a+i(0,t.f)(f,150),[f]),h=(0,r.useCallback)(()=>{null===a.current&&(a.current=requestAnimationFrame(()=>{f(),a.current=null}))},[f]);(0,r.useEffect)(()=>{let t=n.current;return t&&(o.current="rtl"===getComputedStyle(t).direction),f(),e&&(t?.addEventListener("scroll",h),window.addEventListener("resize",p)),()=>{null!==a.current&&cancelAnimationFrame(a.current),a.current=null,t?.removeEventListener("scroll",h),p.cancel(),window.removeEventListener("resize",p)}},[e,f,h,p,i]);let m=(0,r.useCallback)(()=>n.current?.scrollBy({left:-l,behavior:"smooth"}),[l]),g=(0,r.useCallback)(()=>n.current?.scrollBy({left:l,behavior:"smooth"}),[l]);return{ref:n,showLeft:s,showRight:u,scrollLeft:m,scrollRight:g}}])},739971,e=>{"use strict";let t=(0,e.i(144683).g)(null);e.s(["f",0,t])},792461,e=>{"use strict";var t=e.i(538167);e.s(["f",0,e=>{let r=(0,t.useRef)(e);return r.current=e,r}])}]);