1(function(){'use strict';function initRankSlider(root){if(root.getAttribute('data-rank-init')==='1'){return} 2root.setAttribute('data-rank-init','1');const slides=root.querySelector('[data-rank-slides]');const count=slides?slides.children.length:0;if(!slides||count===0){return} 3const dots=Array.prototype.slice.call(root.querySelectorAll('[data-rank-dot]'));const prev=root.querySelector('[data-rank-prev]');const next=root.querySelector('[data-rank-next]');let index=parseInt(root.getAttribute('data-rank-start'),10)||0;function go(target){index=Math.max(0,Math.min(count-1,target));slides.style.transform='translateX(-'+index*100+'%)';dots.forEach(function(dot,i){const active=i===index;dot.classList.toggle('is-active',active);dot.setAttribute('aria-selected',active?'true':'false')});if(prev){prev.hidden=index===0} 4if(next){next.hidden=index===count-1}} 5if(prev){prev.addEventListener('click',function(){go(index-1)})} 6if(next){next.addEventListener('click',function(){go(index+1)})} 7dots.forEach(function(dot,i){dot.addEventListener('click',function(){go(i)})});go(index)} 8function initScrollCarousel(wrap){if(wrap.getAttribute('data-carousel-init')==='1'){return} 9wrap.setAttribute('data-carousel-init','1');const track=wrap.querySelector('.bf-rewards-carousel');if(!track){return} 10const prev=wrap.querySelector('.bf-rewards-carousel__btn--prev');const next=wrap.querySelector('.bf-rewards-carousel__btn--next');function step(){const first=track.children[0];if(!first){return track.clientWidth} 11const styles=window.getComputedStyle(track);const gap=parseFloat(styles.columnGap||styles.gap||'16')||0;return first.getBoundingClientRect().width+gap} 12function update(){const overflow=track.scrollWidth-track.clientWidth;if(overflow<=1){if(prev){prev.hidden=!0} 13if(next){next.hidden=!0} 14return} 15const edge=24;if(prev){prev.hidden=track.scrollLeft<=edge} 16if(next){next.hidden=track.scrollLeft>=overflow-edge}} 17if(prev){prev.addEventListener('click',function(){track.scrollBy({left:-step(),behavior:'smooth'})})} 18if(next){next.addEventListener('click',function(){track.scrollBy({left:step(),behavior:'smooth'})})} 19track.addEventListener('scroll',update,{passive:!0});window.addEventListener('resize',update);update()} 20function init(){Array.prototype.forEach.call(document.querySelectorAll('.bf-rewards-summary__rank[data-rank-carousel]'),initRankSlider);Array.prototype.forEach.call(document.querySelectorAll('.bf-rewards-carousel-wrap'),initScrollCarousel)} 21if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init)}else{init()}})()
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.