"use strict";const GSscrollHorizontal=(t,l="right",o=500,e=2500,r=1200)=>{"rtl"==document.dir?"right"==l?t.scrollLeft>=0?t.scrollTo({top:0,left:-e,behavior:"smooth"}):t.scrollTo({top:0,left:t.scrollLeft+o,behavior:"smooth"}):Math.abs(t.scrollLeft)>=e-r-1?t.scrollTo({top:0,left:0,behavior:"smooth"}):t.scrollTo({top:0,left:t.scrollLeft-o,behavior:"smooth"}):"right"==l?t.scrollLeft>=e-r-1?t.scrollTo({top:0,left:0,behavior:"smooth"}):t.scrollTo({top:0,left:t.scrollLeft+o,behavior:"smooth"}):t.scrollLeft<=0?t.scrollTo({top:0,left:e,behavior:"smooth"}):t.scrollTo({top:0,left:t.scrollLeft-o,behavior:"smooth"})};var gsscrollcarousel=document.getElementsByClassName("gspb_smartscroll_btns");for(let i=0;i<gsscrollcarousel.length;i++){let t=gsscrollcarousel[i],l="";if(t.previousSibling&&t.previousSibling.classList&&t.previousSibling.classList.contains("gspb_scrollcarousel"))l=t.previousSibling;else{let o=t.getAttribute("class").match(/gs-control-(.*)/);if(null!=o&&o.length){let e=o[1].split(" ");l=document.querySelector("."+e[0])}else l=t.closest(".gspb_scrollcarousel")}let r=t.getAttribute("data-carouselWrapper"),s=r?l.querySelector("."+r):l,c=JSON.parse(t.getAttribute("data-groupCells")),a="",n=JSON.parse(t.getAttribute("data-autoPlay")),u=parseInt(t.getAttribute("data-autoPlaySpeed"));n&&"false"!=n&&(a=u||4500);let f=JSON.parse(t.getAttribute("data-disableButtons"));if(s){let g=s.scrollWidth,h=s.firstChild;h.tagName&&"style"===h.tagName.toLowerCase()&&(h=h.nextElementSibling);let p=l.offsetWidth,b=c?p:h.offsetWidth;if(f||(t.querySelector(".next").onclick=function(){GSscrollHorizontal(s,"right",b,g,p)},t.querySelector(".previous").onclick=function(){GSscrollHorizontal(s,"left",b,g,p)}),a){let $=setInterval(()=>GSscrollHorizontal(s,"right",b,g,p),a);s.addEventListener("mouseenter",function(t){clearInterval($)},!1),s.addEventListener("mouseleave",function(t){$=setInterval(()=>GSscrollHorizontal(s,"right",b,g,p),a)},!1)}let v=s.closest(".gs-scrollbtn-wrapper");if(v){let S=v.querySelector(".previous"),m=v.querySelector(".next");S&&(S.onclick=function(){GSscrollHorizontal(s,"left",b,g,p)}),m&&(m.onclick=function(){GSscrollHorizontal(s,"right",b,g,p)})}}else t.remove()}