(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),a=e.i(282446),s=e.i(763886),l=e.i(132084),i=e.i(456215),n=e.i(647292);e.i(609717);var r=e.i(950771),o=e.i(328895);let c=(0,e.i(695881).createLogger)("useVideoNavUrl");e.s(["f",0,function(){var e,u;let m=(0,a.y)(s.f),h=(0,a.y)(n.f),d=(0,a.y)(r.f),p=(e=m??"",u=h??"",e===l.p.SAMSUNG?"weather-com-mobile-web-samsung":(0,i.x)(u)?"twc-snowcast":u?"weather-com-mobile-web":"weather-com-web"),{data:v,error:b}=(0,t.U)(["navigation/video-nav",p,d,m],()=>(0,o.getVideoNavLink)({channel:p,language:d,partner:m||void 0}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0});return b&&c.error("video nav url fetch failed",{channel:p,locale:d,partner:m,error:b}),v}],190344)},565491,e=>{"use strict";var t=e.i(935251);e.s(["DiscoverPageHeader",0,function({discoverPages:e,header:a,discoverHeader:s}){let{slug:l}=(0,t.useParams)()??{};return l&&e.includes(l)?s:a}])},726538,e=>{"use strict";var t=e.i(458201),a=e.i(538167),s=e.i(935251),l=e.i(457492);e.s(["SectionSubnav",0,function({links:e,locale:i,section:n,leadingLink:r,disableActiveFallback:o=!1,className:c}){let u=(0,s.useParams)(),{navLinks:m,basePath:h}=(0,a.useMemo)(()=>({navLinks:[...r?[r]:[],...e.map(e=>({...e,slug:`${n}/${e.slug}`}))],basePath:"en-US"===i?"":`/${i}`}),[e,i,n,r]),d=(0,a.useMemo)(()=>{let t=r&&!o?0:-1;if(u.section&&u.section!==`/${n}`.replace(/^\//,"").replace(/\//g,"-"))return t;let a=e.findIndex(e=>e.slug===u.slug);return -1===a?t:a+ +!!r},[u.section,u.slug,n,e,r,o]);return(0,t.jsx)(l.f,{links:m,basePath:h,activeIndex:d,className:c})}],726538)},502491,e=>{"use strict";var t=e.i(458201),a=e.i(538167);e.s(["default",0,function({candidate:e,failedMessage:s="Authentication failed. Please try again.",protectMessage:l="Remove your adblocker.",fetch:i,refresh:n,getCustomAccountInfo:r}){let[o,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(!1),[h,d]=(0,a.useState)(!1),[p,v]=(0,a.useState)(!1),b=(0,a.useRef)([]);(0,a.useEffect)(()=>{e.id!==b.current[0]&&(b.current=[e.id],e.transactIDs&&b.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let f=(0,a.useCallback)(()=>{try{i("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(s)})}catch{c(s)}},[i,s,n]),g=(0,a.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,a.useEffect)(()=>{typeof window>"u"||(g.admiral=g.admiral||function(...e){(g.admiral.q=g.admiral.q||[]).push(e)},g.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(l),m(!0)):v(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!r;g.admiral("after","visitor.latest",function(a){var s;if("account"===e.requirement)(t?r().registered:a.status.registered)||h||(c(l),m(!0));else if("benefits"===e.requirement){let a=[];if(t)a=r().benefits;else{let e=document.cookie.split(";");e&&(a=(null==(s=e.find(e=>e.startsWith("admbenefits=")))?void 0:s.split(","))??[])}if(a){let t=e.benefits??[];if(0==t.length)return void v(!0);let s=!1;for(let e of t)a.includes(e)&&(s=!0);s?v(!0):(c(l),m(!0))}else c(l),m(!0)}})}}))},[]),(0,a.useEffect)(()=>{p&&(v(!1),f())},[p,f]),(0,a.useEffect)(()=>{h||!u||(d(!0),g.admiral("targeting","force",{candidateIDs:b.current}))},[h,u,b,g]),(0,t.jsxs)("div",{children:[o||null," "]})}])},427977,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getQuickNav=void 0;let s=e.r(414655),l=e.r(678651),i=e.r(718043);a.getQuickNav=async()=>{let e=(0,l.urlFrom)((0,i.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,s.handleFetchResponse)(t)}},718043,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},a.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},a.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},a.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:a}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${a}/${e}`}},a.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:a=0,limit:i=10,sort:n="-publishdate"}){let r={q:Object.keys(t).reduce((e,a)=>{let s=t[a];return s instanceof Array?[...e,...s.map(e=>l(a,e))]:[...e,l(a,s)]},[]).join(";"),pg:`${a},${i}`,format:"json",sort:n},o=(0,s.queryStringToSearchParams)(r).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},a.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:a=0,limit:l=10,sort:i="-publishdate"}){let n={q:t,pg:`${a},${l}`,format:"json",sort:i},r=(0,s.queryStringToSearchParams)(n).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${r}`}},a.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:a=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${a}`}},a.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let s=e.r(678651);function l(e,t){let a=`'${t.$in}'`;return t.$in instanceof Array&&(a=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${a})`}},887908,e=>{e.v(t=>Promise.all(["static/immutable/chunks/246001zqxmi9h.js"].map(t=>e.l(t))).then(()=>t(147168)))},991894,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3sza417ff3160.js"].map(t=>e.l(t))).then(()=>t(39086)))},840623,e=>{e.v(t=>Promise.all(["static/immutable/chunks/20454cs5yh4x7.js"].map(t=>e.l(t))).then(()=>t(882330)))},660824,e=>{e.v(t=>Promise.all(["static/immutable/chunks/07hzic-m-238l.js"].map(t=>e.l(t))).then(()=>t(530212)))},317297,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3c2glv-nm46yi.js"].map(t=>e.l(t))).then(()=>t(680602)))},355962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3c9vh6g9-blop.js"].map(t=>e.l(t))).then(()=>t(503885)))},765014,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0cuy8i0lvkwzl.js"].map(t=>e.l(t))).then(()=>t(872251)))},876327,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1_-fwty7369w1.js"].map(t=>e.l(t))).then(()=>t(947387)))},921282,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0q_ir09vb0rha.js"].map(t=>e.l(t))).then(()=>t(493948)))},959395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/42yrbfr9tgksx.js"].map(t=>e.l(t))).then(()=>t(706686)))},813499,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3eza_b4vv1c0y.js"].map(t=>e.l(t))).then(()=>t(314459)))},563854,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2doe_r10k7gph.js"].map(t=>e.l(t))).then(()=>t(643246)))},48629,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3azoyq8q6gkzm.js"].map(t=>e.l(t))).then(()=>t(769885)))},762150,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2gf6tdw37hgz2.js"].map(t=>e.l(t))).then(()=>t(1892)))},541661,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2qyxou9a_lc07.js"].map(t=>e.l(t))).then(()=>t(478186)))},565343,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1u5g7njq76n2f.js"].map(t=>e.l(t))).then(()=>t(294782)))},393816,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ef8cq4tei8lf.js"].map(t=>e.l(t))).then(()=>t(855621)))},75726,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3fy7ic61l3o-t.js"].map(t=>e.l(t))).then(()=>t(748540)))},72951,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2s3jum8gr3mdm.js"].map(t=>e.l(t))).then(()=>t(360647)))},276567,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1nue_g789xsx1.js"].map(t=>e.l(t))).then(()=>t(501462)))},951283,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qi-8e1t62adq.js"].map(t=>e.l(t))).then(()=>t(273498)))},416614,e=>{e.v(t=>Promise.all(["static/immutable/chunks/20_7yxx4jdsi6.js"].map(t=>e.l(t))).then(()=>t(901728)))},592630,e=>{e.v(t=>Promise.all(["static/immutable/chunks/19yptqp73h1bh.js"].map(t=>e.l(t))).then(()=>t(507085)))},423373,e=>{e.v(t=>Promise.all(["static/immutable/chunks/09qkm047t81j0.js"].map(t=>e.l(t))).then(()=>t(62159)))},815954,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0j9y1cx2v-zyf.js"].map(t=>e.l(t))).then(()=>t(61161)))},15398,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hj4f602-nr_7.js"].map(t=>e.l(t))).then(()=>t(762526)))},776943,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37aomy4pgh9de.js"].map(t=>e.l(t))).then(()=>t(97569)))},284458,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1fogjm6l-ic_u.js"].map(t=>e.l(t))).then(()=>t(877390)))},261156,e=>{e.v(t=>Promise.all(["static/immutable/chunks/04e0d-7jk8w1q.js"].map(t=>e.l(t))).then(()=>t(827382)))},389867,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2j7b7iao_5yyb.js"].map(t=>e.l(t))).then(()=>t(702479)))},900346,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1cnv9c-yi356q.js"].map(t=>e.l(t))).then(()=>t(389327)))},96219,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1pi46q8e_2xzc.js"].map(t=>e.l(t))).then(()=>t(16557)))},267082,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2qfkvob1aflw0.js"].map(t=>e.l(t))).then(()=>t(894202)))},829350,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1oq_1otgqtmyf.js"].map(t=>e.l(t))).then(()=>t(447314)))},391939,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2rivm1v5pr9_l.js"].map(t=>e.l(t))).then(()=>t(72575)))},252521,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0v06c6kw0dvb_.js"].map(t=>e.l(t))).then(()=>t(661446)))},408674,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tv_5tkayobmb.js"].map(t=>e.l(t))).then(()=>t(783769)))},846784,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bose_c3l2j9o.js"].map(t=>e.l(t))).then(()=>t(873667)))},713848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0k-sxn5qp42o2.js"].map(t=>e.l(t))).then(()=>t(889507)))},407657,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0c87isc9trknj.js"].map(t=>e.l(t))).then(()=>t(75960)))},415546,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1tjn5c8xtp2g-.js"].map(t=>e.l(t))).then(()=>t(446839)))},781723,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1d-g7c7xz5wvn.js"].map(t=>e.l(t))).then(()=>t(654703)))},197999,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2kyiunotjbn8m.js"].map(t=>e.l(t))).then(()=>t(272493)))},103659,e=>{e.v(t=>Promise.all(["static/immutable/chunks/12rvgo52q1r49.js"].map(t=>e.l(t))).then(()=>t(296920)))},625303,e=>{e.v(t=>Promise.all(["static/immutable/chunks/4044m3783yaom.js"].map(t=>e.l(t))).then(()=>t(718437)))},148486,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0avr-qlfpap59.js"].map(t=>e.l(t))).then(()=>t(946515)))},957284,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0p3zebvqjitgx.js"].map(t=>e.l(t))).then(()=>t(48914)))},92368,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44i59sqb25c6s.js"].map(t=>e.l(t))).then(()=>t(789895)))},226507,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0li5wegqgoux-.js"].map(t=>e.l(t))).then(()=>t(538258)))},132409,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qh7lhx8u34in.js"].map(t=>e.l(t))).then(()=>t(3017)))},626117,e=>{e.v(t=>Promise.all(["static/immutable/chunks/15e4-q1wp87er.js"].map(t=>e.l(t))).then(()=>t(825086)))},395624,e=>{e.v(t=>Promise.all(["static/immutable/chunks/08ijxjppzydcl.js"].map(t=>e.l(t))).then(()=>t(600726)))},494738,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3vrr52bqm7unn.js"].map(t=>e.l(t))).then(()=>t(512028)))},299871,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2sfivpnq7iq_b.js"].map(t=>e.l(t))).then(()=>t(155062)))},752465,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0uh2o9otdcr9s.js"].map(t=>e.l(t))).then(()=>t(777844)))},67832,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ikpuixu4z0y5.js"].map(t=>e.l(t))).then(()=>t(414064)))},2638,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n-_5848yb7xr.js"].map(t=>e.l(t))).then(()=>t(198051)))},916531,e=>{e.v(t=>Promise.all(["static/immutable/chunks/33nw68eb5zzq0.js"].map(t=>e.l(t))).then(()=>t(369675)))},744883,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0lx97uthwai5c.js"].map(t=>e.l(t))).then(()=>t(581947)))},880187,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3hoeoqiccg-v_.js"].map(t=>e.l(t))).then(()=>t(747997)))},164295,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3j_m410rflkvz.js"].map(t=>e.l(t))).then(()=>t(702162)))},521662,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3_3b1y59bxc2b.js"].map(t=>e.l(t))).then(()=>t(782697)))},403395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3-1v3-4qhojr_.js"].map(t=>e.l(t))).then(()=>t(573581)))},661123,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2zlq8rbm6vesf.js"].map(t=>e.l(t))).then(()=>t(711818)))},48208,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-mjx3dkqs62y.js"].map(t=>e.l(t))).then(()=>t(625444)))},476493,e=>{e.v(t=>Promise.all(["static/immutable/chunks/34ss6ftwte9rh.js"].map(t=>e.l(t))).then(()=>t(328877)))},650095,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2c22hm-vezr6z.js"].map(t=>e.l(t))).then(()=>t(601862)))},945801,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3xa_d7sktr2jt.js"].map(t=>e.l(t))).then(()=>t(566248)))},909969,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hgzoucjeejno.js"].map(t=>e.l(t))).then(()=>t(218776)))},155043,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nxhp9jcvvt0l.js"].map(t=>e.l(t))).then(()=>t(869146)))},353962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0j83c2_zkll2k.js"].map(t=>e.l(t))).then(()=>t(367128)))},666922,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3dmq3abgd74w4.js"].map(t=>e.l(t))).then(()=>t(856593)))},72998,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tvn3e0b4-x2n.js"].map(t=>e.l(t))).then(()=>t(317586)))},722332,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0tfd2iw3fno8m.js"].map(t=>e.l(t))).then(()=>t(476881)))},171913,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2ehedfey61nm2.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ywn3jfu8ms7g.js"].map(t=>e.l(t))).then(()=>t(22872)))},632092,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0-770js2bibv_.js"].map(t=>e.l(t))).then(()=>t(45677)))},281687,e=>{"use strict";var t=e.i(64412),a=e.i(512134);e.s(["f",0,function(){let{location:e}=(0,t.f)();return(0,a.f)()?e:void 0}])},520362,e=>{"use strict";var t=e.i(458201),a=e.i(538167);let s=e=>{let{apiRoute:t,depth:s,refresh:l,serverURL:i}=e,n=(0,a.useRef)(!1),r=(0,a.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof l?l():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[l,i]);return(0,a.useEffect)(()=>("u">typeof window&&window.addEventListener("message",r),n.current||(n.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:i}),l()),()=>{"u">typeof window&&window.removeEventListener("message",r)}),[i,r,s,t,l]),null};var l=e.i(935251);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),n={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,a.useRef)(null),t=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,a.useRef)(null),r=(0,a.useRef)(null),o=(0,a.useCallback)(()=>{if("u"{let a=t.current,l=e.current;if(!a||!l)return;if(!a.isConnected){t.current=null,l.style.opacity="0",s.current?.disconnect();return}let i=a.getBoundingClientRect();l.style.top=`${i.top+window.scrollY}px`,l.style.left=`${i.left+window.scrollX}px`,l.style.width=`${i.width}px`,l.style.height=`${i.height}px`,l.style.opacity="1"},[]),u=(0,a.useCallback)(()=>{t.current=null,r.current=null,e.current&&(e.current.style.opacity="0"),s.current?.disconnect()},[]),m=(0,a.useCallback)(()=>{t.current&&null===l.current&&(l.current=requestAnimationFrame(()=>{l.current=null,c()}))},[c]),h=(0,a.useCallback)(e=>{if(e===r.current)return;let a=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!a)return void i.debug("No element found for block ID",{blockId:e});let l=(e=>{let t=e,a=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?h(e.data.blockId):u())};return window.addEventListener("message",t),window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",m),window.removeEventListener("resize",m),null!==l.current&&cancelAnimationFrame(l.current),s.current?.disconnect(),e.current?.remove()}},[h,u,m]),null},"LivePreviewListener",0,e=>{let a=(0,l.useRouter)();return(0,t.jsx)(s,{...e,refresh:a.refresh})}],520362)},186044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0bshob3u86i79.js"].map(t=>e.l(t))).then(()=>t(451309)))},235577,e=>{"use strict";var t=e.i(458201),a=e.i(523084),s=e.i(47524),l=e.i(632137),i=e.i(877957);e.s(["f",0,function({direction:e,onClick:n,hidden:r,size:o="default",variant:c="light",className:u}){let m="sm"===o,h=(0,l.f)("text-current",m?"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)(i.f,{type:"button",onClick:n,"aria-hidden":"true",tabIndex:-1,className:(0,l.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",m?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",r&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",r&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",r&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(a.f,{className:h}):(0,t.jsx)(s.f,{className:h})})}])},457492,e=>{"use strict";var t=e.i(458201),a=e.i(538167),s=e.i(632137),l=e.i(282446),i=e.i(663333),n=e.i(235577),r=e.i(315730),o=e.i(240058);let c=(0,s.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:a,index:l,link:i}=e,n=a===l,r=(0,s.f)(c,{"bg-gray-100 text-blue-500":n});if(e.onSelect){let{onSelect:a}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>a(l,i),className:(0,s.f)("cursor-pointer",r),"aria-current":n?"page":void 0,children:i.label})}let{basePath:u,mpa:m}=e,h=i.href??("/"===i.slug?u||"/":`${u}/${i.slug}`);return(0,t.jsx)(o.default,{href:h,mpa:m,className:r,"aria-current":n?"page":void 0,sourceModule:"subnavigation",children:i.label})},m=(0,a.memo)(e=>{let{links:a,activeIndex:o,className:c,constrained:m=!0}=e,h=(0,l.y)(i.f),{ref:d,showLeft:p,showRight:v,scrollLeft:b,scrollRight:f}=(0,r.f)({enabled:"mobile"!==h&&"tablet"!==h,scrollAmount:200,contentKey:a});return(0,t.jsxs)("div",{className:(0,s.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]",m&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,s.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":!p}),"aria-hidden":"true"}),(0,t.jsx)(n.f,{hidden:!p,onClick:b,direction:"left"}),(0,t.jsx)("div",{ref:d,className:(0,s.f)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:a.map((a,s)=>e.onSelect?(0,t.jsx)(u,{link:a,index:s,activeIndex:o,onSelect:e.onSelect},`${a.label}_${a.slug}`):(0,t.jsx)(u,{link:a,index:s,activeIndex:o,basePath:e.basePath,mpa:e.mpa},`${a.label}_${a.slug}`))}),(0,t.jsx)("div",{className:(0,s.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":!v}),"aria-hidden":"true"}),(0,t.jsx)(n.f,{hidden:!v,onClick:f,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,a)=>e.label===t.links[a]?.label&&e.slug===t.links[a]?.slug&&e.href===t.links[a]?.href));m.displayName="SubnavigationUI",e.s(["f",0,m],457492)},315730,e=>{"use strict";var t=e.i(147732),a=e.i(538167);e.s(["f",0,function({enabled:e=!0,scrollAmount:s=200,contentKey:l}={}){let i=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,a.useRef)(!1),[o,c]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!1),h=(0,a.useCallback)(()=>{let t=i.current;if(!t||!e){c(!1),m(!1);return}let{scrollLeft:a,scrollWidth:s,clientWidth:l}=t,n=Math.abs(a),o=n>2,u=n+l(0,t.f)(h,150),[h]),p=(0,a.useCallback)(()=>{null===n.current&&(n.current=requestAnimationFrame(()=>{h(),n.current=null}))},[h]);(0,a.useEffect)(()=>{let t=i.current;return t&&(r.current="rtl"===getComputedStyle(t).direction),h(),e&&(t?.addEventListener("scroll",p),window.addEventListener("resize",d)),()=>{null!==n.current&&cancelAnimationFrame(n.current),n.current=null,t?.removeEventListener("scroll",p),d.cancel(),window.removeEventListener("resize",d)}},[e,h,p,d,l]);let v=(0,a.useCallback)(()=>i.current?.scrollBy({left:-s,behavior:"smooth"}),[s]),b=(0,a.useCallback)(()=>i.current?.scrollBy({left:s,behavior:"smooth"}),[s]);return{ref:i,showLeft:o,showRight:u,scrollLeft:v,scrollRight:b}}])}]);