1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`1487267d9b9e74d71fa1d89ca5574010112473d2`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`fe4fdbc9-1550-43fe-9f82-a58dfd89e2f7`,e._sentryDebugIdIdentifier=`sentry-dbid-fe4fdbc9-1550-43fe-9f82-a58dfd89e2f7`)}catch{}})();import{t as e}from"./defineProperty.zaTo8Mzu.js?dpl=dpl_6UUbvfp9hRQx24sdtivNj9EBawc1";import{t}from"./carouselA11y.BV4DmmHM.js?dpl=dpl_6UUbvfp9hRQx24sdtivNj9EBawc1";var n=class{constructor(t){e(this,`container`,void 0),e(this,`gradientContainer`,void 0),e(this,`prevBtn`,void 0),e(this,`nextBtn`,void 0),e(this,`statusRegion`,void 0),e(this,`currentIndex`,void 0),e(this,`itemWidth`,void 0),e(this,`gap`,void 0),e(this,`isScrolling`,void 0),e(this,`items`,void 0),this.container=document.getElementById(t),this.container&&(this.gradientContainer=this.container.closest(`.carousel-gradient-container`),this.prevBtn=document.querySelector(`[data-carousel-prev="${t}"]`),this.nextBtn=document.querySelector(`[data-carousel-next="${t}"]`),this.statusRegion=document.querySelector(`[data-carousel-status="${t}"]`),this.currentIndex=0,this.itemWidth=320,this.gap=16,this.isScrolling=!1,this.items=this.container.querySelectorAll(`.carousel-item`),this.init())}init(){this.updateItemWidth(),this.setupEventListeners(),setTimeout(()=>{this.updateGradients(),this.updateButtonStates(),this.updateAriaAttributes()},100),window.addEventListener(`resize`,()=>{this.updateItemWidth(),this.updateCurrentIndexFromScroll(),setTimeout(()=>{this.updateGradients(),this.updateButtonStates(),this.updateAriaAttributes()},100)})}updateItemWidth(){let e=this.container?.querySelector(`.carousel-item`);if(e){let t=e.getBoundingClientRect();this.itemWidth=t.width+this.gap}}setupEventListeners(){this.prevBtn&&this.prevBtn.addEventListener(`click`,()=>this.movePrev()),this.nextBtn&&this.nextBtn.addEventListener(`click`,()=>this.moveNext()),this.container&&this.container.addEventListener(`scroll`,()=>{this.updateGradients(),this.updateCurrentIndexFromScroll(),this.updateButtonStates(),this.updateAriaAttributes()})}updateCurrentIndexFromScroll(){if(this.container&&!this.isScrolling){let e=this.container.scrollWidth-this.container.clientWidth;this.currentIndex=this.container.scrollLeft+this.gap>=e?this.getMaxIndex():Math.round(this.container.scrollLeft/this.itemWidth)}}movePrev(){this.currentIndex>0&&(this.currentIndex--,this.scrollToIndex()),this.updateButtonStates()}moveNext(){if(!this.container)return;let e=this.container.scrollWidth-this.container.clientWidth;this.container.scrollLeft+this.itemWidth<e&&(this.currentIndex++,this.scrollToIndex()),this.updateButtonStates()}scrollToIndex(){if(this.container){let e=this.itemWidth*this.currentIndex,t=this.container.scrollLeft;e<t&&t-e<this.itemWidth/2&&this.currentIndex>0&&(this.currentIndex--,e=this.itemWidth*this.currentIndex),this.isScrolling=!0,this.container.scrollLeft=e,this.updateButtonStates(),setTimeout(()=>{this.isScrolling=!1,this.updateButtonStates()},500)}}getMaxIndex(){if(!this.container)return 0;let e=this.container.scrollWidth-this.container.clientWidth;return Math.max(0,Math.ceil(e/this.itemWidth))}updateButtonStates(){if(!this.container)return;let e=this.container.scrollWidth-this.container.clientWidth;this.prevBtn&&(this.currentIndex<=0?this.prevBtn.setAttribute(`disabled`,``):this.prevBtn.removeAttribute(`disabled`)),this.nextBtn&&(this.container.scrollLeft+this.itemWidth>=e?this.nextBtn.setAttribute(`disabled`,``):this.nextBtn.removeAttribute(`disabled`))}updateAriaAttributes(){if(!this.container)return;let e=this.container.getBoundingClientRect();if(e.width===0&&e.height===0)return;let n=-1;if(this.items.forEach((r,i)=>{let a=r.getBoundingClientRect(),o=a.right>e.left&&a.left<e.right;t(r,o),o&&n===-1&&(n=i)}),this.statusRegion&&n>=0){let e=this.items.length;this.statusRegion.textContent=`Showing item ${n+1} of ${e}`}}updateGradients(){if(!this.container||!this.gradientContainer)return;let e=this.container.scrollLeft,t=this.container.scrollWidth-this.container.clientWidth;e>10?this.gradientContainer.classList.add(`show-left-gradient`):this.gradientContainer.classList.remove(`show-left-gradient`),e<t-10?this.gradientContainer.classList.add(`show-right-gradient`):this.gradientContainer.classList.remove(`show-right-gradient`)}};
1function r(){document.querySelectorAll(`[data-feature-carousel]`).forEach(e=>{e.id&&!e.hasAttribute(`data-carousel-init`)&&(e.setAttribute(`data-carousel-init`,``),new n(e.id))})}document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,r):r();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.