document.addEventListener("input",function(e){var l=e.target.closest(".fpf-slider-wrapper");if(l){var r=e.target.closest(".fpf-slider-range");r&&(l.querySelector(".fpf-slider-value").value=r.value,l.querySelector(".fpf-slider-value").dispatchEvent(new Event("change",{bubbles:!0})));var a=e.target.closest(".fpf-slider-value");a&&(l.querySelector(".fpf-slider-range").value=a.value),function(){var e=l.querySelector(".fpf-slider-range"),r=e.dataset.baseColor,a=e.dataset.progressColor;if(r&&a){var t=e.max?~~(100*(e.value-e.min)/(e.max-e.min)):e.value;e.style.background="linear-gradient(to right, "+a+" 0%, "+a+" "+t+"%, "+r+" "+t+"%, "+r+" 100%)"}}()}});

