(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,726538,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(725287),s=e.i(457492);e.s(["SectionSubnav",0,function({links:e,locale:i,section:n,leadingLink:r,disableActiveFallback:c=!1,className:m}){let u=(0,l.useParams)(),{navLinks:o,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&&!c?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,c]);return(0,t.jsx)(s.SubnavigationUI,{links:o,basePath:h,activeIndex:d,className:m})}],726538)},238430,e=>{"use strict";var t=e.i(902875),a=e.i(247865);e.s(["default",0,function({candidate:e,failedMessage:l="Authentication failed. Please try again.",protectMessage:s="Remove your adblocker.",fetch:i,refresh:n,getCustomAccountInfo:r}){let[c,m]=(0,a.useState)(""),[u,o]=(0,a.useState)(!1),[h,d]=(0,a.useState)(!1),[p,b]=(0,a.useState)(!1),v=(0,a.useRef)([]);(0,a.useEffect)(()=>{e.id!==v.current[0]&&(v.current=[e.id],e.transactIDs&&v.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let k=(0,a.useCallback)(()=>{try{i("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{m(l)})}catch{m(l)}},[i,l,n]),f=(0,a.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,a.useEffect)(()=>{typeof window>"u"||(f.admiral=f.admiral||function(...e){(f.admiral.q=f.admiral.q||[]).push(e)},f.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(m(s),o(!0)):b(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!r;f.admiral("after","visitor.latest",function(a){var l;if("account"===e.requirement)(t?r().registered:a.status.registered)||h||(m(s),o(!0));else if("benefits"===e.requirement){let a=[];if(t)a=r().benefits;else{let e=document.cookie.split(";");e&&(a=(null==(l=e.find(e=>e.startsWith("admbenefits=")))?void 0:l.split(","))??[])}if(a){let t=e.benefits??[];if(0==t.length)return void b(!0);let l=!1;for(let e of t)a.includes(e)&&(l=!0);l?b(!0):(m(s),o(!0))}else m(s),o(!0)}})}}))},[]),(0,a.useEffect)(()=>{p&&(b(!1),k())},[p,k]),(0,a.useEffect)(()=>{h||!u||(d(!0),f.admiral("targeting","force",{candidateIDs:v.current}))},[h,u,v,f]),(0,t.jsxs)("div",{children:[c||null," "]})}])},468104,e=>{"use strict";var t=e.i(247865),a=e.i(598513);e.s(["useTrackModuleClick",0,function(){let e=(0,a.useSendInteractionEvent)();return(0,t.useCallback)((t,a)=>{e({moduleId:t,interactionType:"click",interactionElement:a},{flushImmediately:!0})},[e])}])},947118,221085,e=>{"use strict";let t;var a=e.i(247865);let l=new Set,s=0,i=()=>"function"==typeof window.mParticle?.init,n=()=>{void 0!==t&&(clearInterval(t),t=void 0)},r=()=>{if(!i()||(n(),0===l.size))return;let e=[...l];for(let t of(l.clear(),e))t()},c=()=>{void 0===t&&(s=0,t=setInterval(()=>{s+=100,r(),s>=3e4&&n()},100))},m=e=>(l.add(e),c(),()=>{l.delete(e)}),u=e=>i()?(e(),()=>{}):m(e),o=e=>i()?()=>{}:m(e),h=()=>!1;e.s(["subscribeSdkLoaded",0,u,"useIsSdkLoaded",0,()=>(0,a.useSyncExternalStore)(o,i,h),"watchForSdkLoad",0,e=>{if("u"{};if(i())return r(),()=>{};c();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let a=()=>r();return t.addEventListener("load",a),()=>{t.removeEventListener("load",a)}}],221085);let d=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),p=()=>!!window.mParticle?.isInitialized?.(),b=()=>!1;e.s(["useIsInitialized",0,()=>(0,a.useSyncExternalStore)(d,p,b)],947118)},887908,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3d-1kbutbj1gv.js"].map(t=>e.l(t))).then(()=>t(147168)))},991894,e=>{e.v(t=>Promise.all(["static/immutable/chunks/22euvwis66vmb.js"].map(t=>e.l(t))).then(()=>t(39086)))},840623,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n8msz19yvqd6.js"].map(t=>e.l(t))).then(()=>t(882330)))},660824,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0xxeeocmy2aye.js"].map(t=>e.l(t))).then(()=>t(530212)))},317297,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2616xyz29bjwr.js"].map(t=>e.l(t))).then(()=>t(680602)))},355962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37hnuu5dy6sit.js"].map(t=>e.l(t))).then(()=>t(503885)))},765014,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3um12qzwmc8k_.js"].map(t=>e.l(t))).then(()=>t(872251)))},876327,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tyxy3-hxmn50.js"].map(t=>e.l(t))).then(()=>t(947387)))},921282,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ma3aggvms9ma.js"].map(t=>e.l(t))).then(()=>t(493948)))},959395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0f3g-lp97vkng.js"].map(t=>e.l(t))).then(()=>t(706686)))},813499,e=>{e.v(t=>Promise.all(["static/immutable/chunks/329zyt8hnwe7y.js"].map(t=>e.l(t))).then(()=>t(314459)))},563854,e=>{e.v(t=>Promise.all(["static/immutable/chunks/16536_5evh7u0.js"].map(t=>e.l(t))).then(()=>t(643246)))},48629,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zgos4ygxa0bb.js"].map(t=>e.l(t))).then(()=>t(769885)))},762150,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0p2m8whl54tha.js"].map(t=>e.l(t))).then(()=>t(1892)))},541661,e=>{e.v(t=>Promise.all(["static/immutable/chunks/198_ffptnt9h3.js"].map(t=>e.l(t))).then(()=>t(306712)))},565343,e=>{e.v(t=>Promise.all(["static/immutable/chunks/06xr-i7ondto9.js"].map(t=>e.l(t))).then(()=>t(294782)))},393816,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0ff1-4vnz_78l.js"].map(t=>e.l(t))).then(()=>t(855621)))},75726,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0yr40fq9cik4v.js"].map(t=>e.l(t))).then(()=>t(748540)))},72951,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mw623e8v1oie.js"].map(t=>e.l(t))).then(()=>t(360647)))},276567,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2853l-wt_g4_t.js"].map(t=>e.l(t))).then(()=>t(501462)))},951283,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hb99379n909x.js"].map(t=>e.l(t))).then(()=>t(273498)))},416614,e=>{e.v(t=>Promise.all(["static/immutable/chunks/084ypheui9pug.js"].map(t=>e.l(t))).then(()=>t(901728)))},592630,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s_0vvr_qgag9.js"].map(t=>e.l(t))).then(()=>t(507085)))},423373,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p3orq86c5ifv.js"].map(t=>e.l(t))).then(()=>t(62159)))},815954,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qaf2w3zk3w27.js"].map(t=>e.l(t))).then(()=>t(61161)))},15398,e=>{e.v(t=>Promise.all(["static/immutable/chunks/02xiqt9zvf6gh.js"].map(t=>e.l(t))).then(()=>t(762526)))},776943,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ytb6oy4ikrz6.js"].map(t=>e.l(t))).then(()=>t(97569)))},284458,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3nxkndkqavswg.js"].map(t=>e.l(t))).then(()=>t(877390)))},261156,e=>{e.v(t=>Promise.all(["static/immutable/chunks/38l6gmiu5_9ku.js"].map(t=>e.l(t))).then(()=>t(827382)))},389867,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3hk3rd5e71dc4.js"].map(t=>e.l(t))).then(()=>t(702479)))},900346,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0t4h2wlc7n595.js"].map(t=>e.l(t))).then(()=>t(389327)))},96219,e=>{e.v(t=>Promise.all(["static/immutable/chunks/381m8qf6cbhtp.js"].map(t=>e.l(t))).then(()=>t(16557)))},267082,e=>{e.v(t=>Promise.all(["static/immutable/chunks/31nq3o47_azko.js"].map(t=>e.l(t))).then(()=>t(894202)))},829350,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p8724zzw5ewi.js"].map(t=>e.l(t))).then(()=>t(447314)))},391939,e=>{e.v(t=>Promise.all(["static/immutable/chunks/396y1w1ozc-fu.js"].map(t=>e.l(t))).then(()=>t(72575)))},252521,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0lmym4f8kyevf.js"].map(t=>e.l(t))).then(()=>t(661446)))},408674,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bk2xo-o_s-vf.js"].map(t=>e.l(t))).then(()=>t(783769)))},846784,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-9yeudlt40j_.js"].map(t=>e.l(t))).then(()=>t(873667)))},713848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0qp3xhy3q8zip.js"].map(t=>e.l(t))).then(()=>t(889507)))},407657,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-2wb7wpbqbgn.js"].map(t=>e.l(t))).then(()=>t(75960)))},415546,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0tsqv73kd2uwg.js"].map(t=>e.l(t))).then(()=>t(667728)))},781723,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17nasyndzgye8.js"].map(t=>e.l(t))).then(()=>t(654703)))},197999,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hwzkvu2g7pco.js"].map(t=>e.l(t))).then(()=>t(272493)))},103659,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17hryngooc2j1.js"].map(t=>e.l(t))).then(()=>t(296920)))},625303,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1d-xb8qt0v27_.js"].map(t=>e.l(t))).then(()=>t(718437)))},148486,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3q96qady37ql-.js"].map(t=>e.l(t))).then(()=>t(946515)))},957284,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zx_ucotfu7pf.js"].map(t=>e.l(t))).then(()=>t(48914)))},92368,e=>{e.v(t=>Promise.all(["static/immutable/chunks/19pzyqeq9654w.js"].map(t=>e.l(t))).then(()=>t(789895)))},226507,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3jelzfg203nfe.js"].map(t=>e.l(t))).then(()=>t(538258)))},132409,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nmdno2r5jhr2.js"].map(t=>e.l(t))).then(()=>t(3017)))},626117,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mltvvqhcgund.js"].map(t=>e.l(t))).then(()=>t(825086)))},395624,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1q-jk2-pdev6-.js"].map(t=>e.l(t))).then(()=>t(600726)))},494738,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3_ndi79lx21jd.js"].map(t=>e.l(t))).then(()=>t(512028)))},774463,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3t1n31-ogxy75.js"].map(t=>e.l(t))).then(()=>t(155062)))},752465,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3iyt_l7ny1i-k.js"].map(t=>e.l(t))).then(()=>t(777844)))},67832,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1jtfbjn7tl5lf.js"].map(t=>e.l(t))).then(()=>t(414064)))},2638,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2jkxj9298b3gp.js"].map(t=>e.l(t))).then(()=>t(198051)))},916531,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0wdahy0c-g55j.js"].map(t=>e.l(t))).then(()=>t(369675)))},744883,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1yxzgbbc9k2zy.js"].map(t=>e.l(t))).then(()=>t(581947)))},880187,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17dedv282ubqs.js"].map(t=>e.l(t))).then(()=>t(747997)))},164295,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0srphq_p8tbzl.js"].map(t=>e.l(t))).then(()=>t(702162)))},521662,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0mi2a4br_qp3u.js"].map(t=>e.l(t))).then(()=>t(782697)))},403395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0pvy0xx928tqy.js"].map(t=>e.l(t))).then(()=>t(573581)))},661123,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1n29uczdwr6s-.js"].map(t=>e.l(t))).then(()=>t(711818)))},48208,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n6233oisp1f-.js"].map(t=>e.l(t))).then(()=>t(625444)))},476493,e=>{e.v(t=>Promise.all(["static/immutable/chunks/234hfx_o8ubit.js"].map(t=>e.l(t))).then(()=>t(328877)))},650095,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-83gv2_8qjed.js"].map(t=>e.l(t))).then(()=>t(601862)))},945801,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3a02q729huh9w.js"].map(t=>e.l(t))).then(()=>t(566248)))},909969,e=>{e.v(t=>Promise.all(["static/immutable/chunks/41skq4kn8ohe8.js"].map(t=>e.l(t))).then(()=>t(218776)))},155043,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nxr0_6i1lqtd.js"].map(t=>e.l(t))).then(()=>t(869146)))},353962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2hut6c8sprk2i.js"].map(t=>e.l(t))).then(()=>t(367128)))},666922,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bgee7gqcluq5.js"].map(t=>e.l(t))).then(()=>t(41455)))},72998,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2sx3cwgqxp3i5.js"].map(t=>e.l(t))).then(()=>t(970479)))},722332,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3e4lkh1cm8zsc.js"].map(t=>e.l(t))).then(()=>t(476881)))},171913,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37viczxedu6th.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0b6c2xomqe187.js"].map(t=>e.l(t))).then(()=>t(22872)))},632092,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3cmxbqj3xp7vq.js"].map(t=>e.l(t))).then(()=>t(45677)))},935807,e=>{"use strict";function t(e,a=[],s=!1,i="US",n){let r,c=a.find(t=>t.placeID===e.placeId);if(c&&s){let t=c.userTag||c.name;if(t&&"Other"!==t){let a=e.displayName,s=l(e,i,""),n="address"===e.type?e.address:void 0;if(t!==a&&t!==s&&t!==n)return t}}if(e?.disputedCountries)r=e.displayName||"";else{switch(e?.type){case"address":r=e?.address?.split(",")[0]?.trim()||"";break;case"city":r=e?.locale?.locale2||"";break;case"locality":r=e?.locale?.locale3||"";break;case"neighborhood":r=e?.locale?.locale4||"";break;case"airport":r=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",a=e?.postalCode||"";r=n?`${t} ${a}`.trim():`${t}`.trim();break}default:r=e?.displayName||""}0===r.length&&(r=e?.displayName||"")}return r}function a(e,t=[],s=!1,i="US",n){let r,c=t.find(t=>t.placeID===e.placeId);if(c&&s){let t=c.userTag||c.name;if(t&&"Other"!==t){let a=e.displayName,s=l(e,i,"");if(t!==a&&t!==s)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let a=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,a].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,a].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,a].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(),a].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,a].filter(Boolean).join(", ")}}}(e,i)}}if(e?.disputedCountries)r=e?.displayName||"";else{let t=i===e?.countryCode?"":e?.country||"",a=e?.adminDistrict||"",l=e?.postalCode||"",s=e.city||"";switch(e?.type){case"address":r=[s,a,t].filter(Boolean).join(", ");break;case"city":default:r=[a,t].filter(Boolean).join(", ");break;case"locality":r=[e?.locale?.locale2||"",a,t].filter(Boolean).join(", ");break;case"neighborhood":r=[e?.locale?.locale3||e?.locale?.locale2||"",a,t].filter(Boolean).join(", ");break;case"postal":{let s=a||e?.locale?.locale2||"";r=[n?`${s} ${l}`.trim():s,t].filter(Boolean).join(", ")}}}return r}function l(e,t,a){let{displayName:l,adminDistrictCode:s,adminDistrict:i,countryCode:n,disputedArea:r,country:c}=e,m=[];return l&&m.push(l),"IL"!==t&&(s?m.push(s):i&&m.push(i)),n!==t&&!1===r&&c&&m.push(c),m.join(a)}e.s(["getLocationContext",0,a,"getLocationName",0,t,"getLocationPresentationName",0,function(e,l=[],s=!1,i="US"){let n=t(e,l,s,i,!1),r=a(e,l,s,i,!0),c=e?.separator?e?.separator:n&&r?", ":"";return`${n}${c}${r}`.trim()}])},919101,e=>{"use strict";e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let a=t.find(t=>t.placeId===e.placeId);return a?{...e,displayName:a.address,address:a.address}:e}])},186044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1mi90qv4i98mf.js"].map(t=>e.l(t))).then(()=>t(451309)))},235577,e=>{"use strict";var t=e.i(902875),a=e.i(523084),l=e.i(47524),s=e.i(632137),i=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:n,hidden:r,size:c="default",variant:m="light",className:u}){let o="sm"===c,h=(0,s.cn)("text-current",o?"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.Button,{type:"button",onClick:n,"aria-hidden":"true",tabIndex:-1,className:(0,s.cn)("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"===m?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===m?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===m?"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",o?"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.ChevronLeft,{className:h}):(0,t.jsx)(l.ChevronRight,{className:h})})}])},315730,e=>{"use strict";var t=e.i(147732),a=e.i(247865);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:l=200,contentKey:s}={}){let i=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,a.useRef)(!1),[c,m]=(0,a.useState)(!1),[u,o]=(0,a.useState)(!1),h=(0,a.useCallback)(()=>{let t=i.current;if(!t||!e){m(!1),o(!1);return}let{scrollLeft:a,scrollWidth:l,clientWidth:s}=t,n=Math.abs(a),c=n>2,u=n+s(0,t.debounce)(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,s]);let b=(0,a.useCallback)(()=>i.current?.scrollBy({left:-l,behavior:"smooth"}),[l]),v=(0,a.useCallback)(()=>i.current?.scrollBy({left:l,behavior:"smooth"}),[l]);return{ref:i,showLeft:c,showRight:u,scrollLeft:b,scrollRight:v}}])}]);