Current File : /var/www/html/blog/wp-content/plugins/beaver-builder-lite-version/js/jquery.bxslider.min.js |
!function(R){var Z={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};R.fn.bxSlider=function(e){var d,c,n,s,o,t,r,a,l,g,h,p,u,v,f,x,m,S,b,w,C,T,E,k,P,O,y,z,M,I,F,N,q,X,A,Y,V,H,W,D,L;return 0===this.length?this:1<this.length?(this.each(function(){R(this).bxSlider(e)}),this):(d={},c=this,n=R(window).width(),s=R(window).height(),R(c).data("bxSlider")?void 0:(o=function(){R(c).data("bxSlider")||(d.settings=R.extend({},Z,e),d.settings.slideWidth=parseInt(d.settings.slideWidth),d.children=c.children(d.settings.slideSelector),d.children.length<d.settings.minSlides&&(d.settings.minSlides=d.children.length),d.children.length<d.settings.maxSlides&&(d.settings.maxSlides=d.children.length),d.settings.randomStart&&(d.settings.startSlide=Math.floor(Math.random()*d.children.length)),d.active={index:d.settings.startSlide},d.carousel=1<d.settings.minSlides||1<d.settings.maxSlides,d.carousel&&(d.settings.preloadImages="all"),d.minThreshold=d.settings.minSlides*d.settings.slideWidth+(d.settings.minSlides-1)*d.settings.slideMargin,d.maxThreshold=d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin,d.working=!1,d.controls={},d.interval=null,d.animProp="vertical"===d.settings.mode?"top":"left",d.usingCSS=d.settings.useCSS&&"fade"!==d.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return d.cssPrefix=e[i].replace("Perspective","").toLowerCase(),d.animProp="-"+d.cssPrefix+"-transform",!0;return!1}(),"vertical"===d.settings.mode&&(d.settings.maxSlides=d.settings.minSlides),c.data("origStyle",c.attr("style")),c.children(d.settings.slideSelector).each(function(){R(this).data("origStyle",R(this).attr("style"))}),t())},t=function(){var t=d.children.eq(d.settings.startSlide);c.wrap('<div class="'+d.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),d.viewport=c.parent(),d.settings.ariaLive&&!d.settings.ticker&&d.viewport.attr("aria-live","polite"),d.loader=R('<div class="bx-loading" />'),d.viewport.prepend(d.loader),c.css({width:"horizontal"===d.settings.mode?1e3*d.children.length+215+"%":"auto",position:"relative"}),d.usingCSS&&d.settings.easing?c.css("-"+d.cssPrefix+"-transition-timing-function",d.settings.easing):d.settings.easing||(d.settings.easing="swing"),d.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),d.viewport.parent().css({maxWidth:g()}),d.settings.pager||d.settings.controls||d.viewport.parent().css({margin:"0 auto 0px"}),d.children.css({float:"horizontal"===d.settings.mode?"left":"none",listStyle:"none",position:"relative"}),d.children.css("width",h()),"horizontal"===d.settings.mode&&0<d.settings.slideMargin&&d.children.css("marginRight",d.settings.slideMargin),"vertical"===d.settings.mode&&0<d.settings.slideMargin&&d.children.css("marginBottom",d.settings.slideMargin),"fade"===d.settings.mode&&(d.children.css({position:"absolute",zIndex:0,display:"none"}),d.children.eq(d.settings.startSlide).css({zIndex:d.settings.slideZIndex,display:"block"})),d.controls.el=R('<div class="bx-controls" />'),d.settings.captions&&C(),d.active.last=d.settings.startSlide===u()-1,d.settings.video&&c.fitVids(),"all"!==d.settings.preloadImages&&!d.settings.ticker||(t=d.children),d.settings.ticker?d.settings.pager=!1:(d.settings.controls&&b(),d.settings.auto&&d.settings.autoControls&&w(),d.settings.pager&&S(),(d.settings.controls||d.settings.autoControls||d.settings.pager)&&d.viewport.after(d.controls.el)),r(t,a)},r=function(t,e){var i=t.find('img:not([src=""]), iframe').length,n=0;0===i?e():t.find('img:not([src=""]), iframe').each(function(){R(this).one("load error",function(){++n===i&&e()}).each(function(){setTimeout(()=>{!this.complete&&""!=this.src||R(this).trigger("load")},0)})})},a=function(){var t,e;d.settings.infiniteLoop&&"fade"!==d.settings.mode&&!d.settings.ticker&&(e="vertical"===d.settings.mode?d.settings.minSlides:d.settings.maxSlides,t=d.children.slice(0,e).clone(!0).addClass("bx-clone"),e=d.children.slice(-e).clone(!0).addClass("bx-clone"),d.settings.ariaHidden&&(t.attr("aria-hidden",!0),e.attr("aria-hidden",!0)),c.append(t).prepend(e)),d.loader.remove(),f(),"vertical"===d.settings.mode&&(d.settings.adaptiveHeight=!0),d.viewport.height(l()),c.redrawSlider(),d.settings.onSliderLoad.call(c,d.active.index),d.initialized=!0,d.settings.responsive&&R(window).bind("resize",D),d.settings.auto&&d.settings.autoStart&&(1<u()||d.settings.autoSlideForOnePage)&&F(),d.settings.ticker&&N(),d.settings.pager&&y(d.settings.startSlide),d.settings.controls&&I(),"ontouchstart"in window&&Y(),d.settings.keyboardEnabled&&!d.settings.ticker&&R(document).keydown(A)},l=function(){var e=0,t=R();if("vertical"===d.settings.mode||d.settings.adaptiveHeight)if(d.carousel){var n=1===d.settings.moveSlides?d.active.index:d.active.index*v(),t=d.children.eq(n);for(i=1;i<=d.settings.maxSlides-1;i++)t=n+i>=d.children.length?t.add(d.children.eq(i-1)):t.add(d.children.eq(n+i))}else t=d.children.eq(d.active.index);else t=d.children;return"vertical"===d.settings.mode?(t.each(function(t){e+=R(this).outerHeight()}),0<d.settings.slideMargin&&(e+=d.settings.slideMargin*(d.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return R(this).outerHeight(!1)}).get()),"border-box"===d.viewport.css("box-sizing")?e+=parseFloat(d.viewport.css("padding-top"))+parseFloat(d.viewport.css("padding-bottom"))+parseFloat(d.viewport.css("border-top-width"))+parseFloat(d.viewport.css("border-bottom-width")):"padding-box"===d.viewport.css("box-sizing")&&(e+=parseFloat(d.viewport.css("padding-top"))+parseFloat(d.viewport.css("padding-bottom"))),e},g=function(){var t="100%";return t=0<d.settings.slideWidth?"horizontal"===d.settings.mode?d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin:d.settings.slideWidth:t},h=function(){var t=d.settings.slideWidth,e=d.viewport.width();if(0===d.settings.slideWidth||d.settings.slideWidth>e&&!d.carousel||"vertical"===d.settings.mode)t=e;else if(1<d.settings.maxSlides&&"horizontal"===d.settings.mode){if(e>d.maxThreshold)return t;e<d.minThreshold?t=(e-d.settings.slideMargin*(d.settings.minSlides-1))/d.settings.minSlides:d.settings.shrinkItems&&(t=Math.floor((e+d.settings.slideMargin)/Math.ceil((e+d.settings.slideMargin)/(t+d.settings.slideMargin))-d.settings.slideMargin))}return t},p=function(){var t,e=1;return"horizontal"===d.settings.mode&&0<d.settings.slideWidth?e=d.viewport.width()<d.minThreshold?d.settings.minSlides:d.viewport.width()>d.maxThreshold?d.settings.maxSlides:(t=d.children.first().width()+d.settings.slideMargin,Math.floor((d.viewport.width()+d.settings.slideMargin)/t)):"vertical"===d.settings.mode&&(e=d.settings.minSlides),e},u=function(){var t=0,e=0,i=0;if(0<d.settings.moveSlides)if(d.settings.infiniteLoop)t=Math.ceil(d.children.length/v());else for(;e<d.children.length;)++t,e=i+p(),i+=d.settings.moveSlides<=p()?d.settings.moveSlides:p();else t=Math.ceil(d.children.length/p());return t},v=function(){return 0<d.settings.moveSlides&&d.settings.moveSlides<=p()?d.settings.moveSlides:p()},f=function(){var t,e;d.children.length>d.settings.maxSlides&&d.active.last&&!d.settings.infiniteLoop?"horizontal"===d.settings.mode?(t=(e=d.children.last()).position(),x(-(t.left-(d.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===d.settings.mode&&(e=d.children.length-d.settings.minSlides,t=d.children.eq(e).position(),x(-t.top,"reset",0)):(t=d.children.eq(d.active.index*v()).position(),d.active.index===u()-1&&(d.active.last=!0),void 0!==t&&("horizontal"===d.settings.mode?x(-t.left,"reset",0):"vertical"===d.settings.mode&&x(-t.top,"reset",0)))},x=function(t,e,i,n){var s;d.usingCSS?(s="vertical"===d.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",c.css("-"+d.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(c.css(d.animProp,s),0!==i?c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(c)&&(c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),z())}):z()):"reset"===e?c.css(d.animProp,s):"ticker"===e&&(c.css("-"+d.cssPrefix+"-transition-timing-function","linear"),c.css(d.animProp,s),0!==i?c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(c)&&(c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),x(n.resetValue,"reset",0),q())}):(x(n.resetValue,"reset",0),q()))):((s={})[d.animProp]=t,"slide"===e?c.animate(s,i,d.settings.easing,function(){z()}):"reset"===e?c.css(d.animProp,t):"ticker"===e&&c.animate(s,i,"linear",function(){x(n.resetValue,"reset",0),q()}))},m=function(){for(var t="",e="",i=u(),n=0;n<i;n++)e="",d.settings.buildPager&&"function"==typeof d.settings.buildPager||d.settings.pagerCustom?(e=d.settings.buildPager(n),d.pagerEl.addClass("bx-custom-pager")):(e=n+1,d.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+e+"</a></div>";d.pagerEl.html(t)},S=function(){d.settings.pagerCustom?d.pagerEl=R(d.settings.pagerCustom):(d.pagerEl=R('<div class="bx-pager" />'),d.settings.pagerSelector?R(d.settings.pagerSelector).html(d.pagerEl):d.controls.el.addClass("bx-has-pager").append(d.pagerEl),m()),d.pagerEl.on("click touchend","a",O)},b=function(){d.controls.next=R('<a class="bx-next" href="">'+d.settings.nextText+"</a>"),d.controls.prev=R('<a class="bx-prev" href="">'+d.settings.prevText+"</a>"),d.controls.next.bind("click touchend",T),d.controls.prev.bind("click touchend",E),d.settings.nextSelector&&R(d.settings.nextSelector).append(d.controls.next),d.settings.prevSelector&&R(d.settings.prevSelector).append(d.controls.prev),d.settings.nextSelector||d.settings.prevSelector||(d.controls.directionEl=R('<div class="bx-controls-direction" />'),d.controls.directionEl.append(d.controls.prev).append(d.controls.next),d.controls.el.addClass("bx-has-controls-direction").append(d.controls.directionEl))},w=function(){d.controls.start=R('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+d.settings.startText+"</a></div>"),d.controls.stop=R('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+d.settings.stopText+"</a></div>"),d.controls.autoEl=R('<div class="bx-controls-auto" />'),d.controls.autoEl.on("click",".bx-start",k),d.controls.autoEl.on("click",".bx-stop",P),d.settings.autoControlsCombine?d.controls.autoEl.append(d.controls.start):d.controls.autoEl.append(d.controls.start).append(d.controls.stop),d.settings.autoControlsSelector?R(d.settings.autoControlsSelector).html(d.controls.autoEl):d.controls.el.addClass("bx-has-controls-auto").append(d.controls.autoEl),M(d.settings.autoStart?"stop":"start")},C=function(){d.children.each(function(t){var e=R(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&R(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},T=function(t){t.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&c.stopAuto(),c.goToNextSlide())},E=function(t){t.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&c.stopAuto(),c.goToPrevSlide())},k=function(t){c.startAuto(),t.preventDefault()},P=function(t){c.stopAuto(),t.preventDefault()},O=function(t){t.preventDefault(),d.controls.el.hasClass("disabled")||(d.settings.auto&&d.settings.stopAutoOnClick&&c.stopAuto(),void 0!==(t=R(t.currentTarget)).attr("data-slide-index")&&(t=parseInt(t.attr("data-slide-index")))!==d.active.index&&c.goToSlide(t))},y=function(i){var t=d.children.length;"short"===d.settings.pagerType?(1<d.settings.maxSlides&&(t=Math.ceil(d.children.length/d.settings.maxSlides)),d.pagerEl.html(i+1+d.settings.pagerShortSeparator+t)):(d.pagerEl.find("a").removeClass("active"),d.pagerEl.find("a").attr("aria-current",!1),d.pagerEl.each(function(t,e){R(e).find("a").eq(i).addClass("active"),R(e).find("a").eq(i).attr("aria-current",!0)}))},z=function(){var t;d.settings.infiniteLoop&&(t="",0===d.active.index?t=d.children.eq(0).position():d.active.index===u()-1&&d.carousel?t=d.children.eq((u()-1)*v()).position():d.active.index===d.children.length-1&&(t=d.children.eq(d.children.length-1).position()),t)&&("horizontal"===d.settings.mode?x(-t.left,"reset",0):"vertical"===d.settings.mode&&x(-t.top,"reset",0)),d.working=!1,d.settings.onSlideAfter.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index)},M=function(t){d.settings.autoControlsCombine?d.controls.autoEl.html(d.controls[t]):(d.controls.autoEl.find("a").removeClass("active"),d.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},I=function(){1===u()?(d.controls.prev.addClass("disabled"),d.controls.next.addClass("disabled")):!d.settings.infiniteLoop&&d.settings.hideControlOnEnd&&(0===d.active.index?(d.controls.prev.addClass("disabled"),d.controls.next):d.active.index===u()-1?(d.controls.next.addClass("disabled"),d.controls.prev):(d.controls.prev.removeClass("disabled"),d.controls.next)).removeClass("disabled")},F=function(){0<d.settings.autoDelay?setTimeout(c.startAuto,d.settings.autoDelay):(c.startAuto(),R(window).focus(function(){c.startAuto()}).blur(function(){c.stopAuto()})),d.settings.autoHover&&c.hover(function(){d.interval&&(c.stopAuto(!0),d.autoPaused=!0)},function(){d.autoPaused&&(c.startAuto(!0),d.autoPaused=null)})},N=function(){var t,e,i,n,s,o,r,a,l=0;"next"===d.settings.autoDirection?c.append(d.children.clone().addClass("bx-clone")):(c.prepend(d.children.clone().addClass("bx-clone")),t=d.children.first().position(),l="horizontal"===d.settings.mode?-t.left:-t.top),x(l,"reset",0),d.settings.pager=!1,d.settings.controls=!1,d.settings.autoControls=!1,d.settings.tickerHover&&(d.usingCSS?(n="horizontal"===d.settings.mode?4:5,d.viewport.hover(function(){e=c.css("-"+d.cssPrefix+"-transform"),i=parseFloat(e.split(",")[n]),x(i,"reset",0)},function(){a=0,d.children.each(function(t){a+="horizontal"===d.settings.mode?R(this).outerWidth(!0):R(this).outerHeight(!0)}),s=d.settings.speed/a,o="horizontal"===d.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(i))),q(r)})):d.viewport.hover(function(){c.stop()},function(){a=0,d.children.each(function(t){a+="horizontal"===d.settings.mode?R(this).outerWidth(!0):R(this).outerHeight(!0)}),s=d.settings.speed/a,o="horizontal"===d.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(c.css(o)))),q(r)})),q()},q=function(t){var t=t||d.settings.speed,e={left:0,top:0},i={left:0,top:0};"next"===d.settings.autoDirection?e=c.find(".bx-clone").first().position():i=d.children.first().position(),e="horizontal"===d.settings.mode?-e.left:-e.top,i="horizontal"===d.settings.mode?-i.left:-i.top,x(e,"ticker",t,{resetValue:i})},X=function(t){var e=R(window),i={top:e.scrollTop(),left:e.scrollLeft()},n=t.offset();return i.right=i.left+e.width(),i.bottom=i.top+e.height(),n.right=n.left+t.outerWidth(),n.bottom=n.top+t.outerHeight(),!(i.right<n.left||i.left>n.right||i.bottom<n.top||i.top>n.bottom)},A=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&X(c))return 39===t.keyCode?(T(t),!1):37===t.keyCode?(E(t),!1):void 0},Y=function(){d.touch={start:{x:0,y:0},end:{x:0,y:0}},d.viewport.bind("touchstart",V),d.viewport.on("click",".bxslider a",function(t){d.viewport.hasClass("click-disabled")&&(t.preventDefault(),d.viewport.removeClass("click-disabled"))})},V=function(t){d.controls.el.addClass("disabled"),d.working?(t.preventDefault(),d.controls.el.removeClass("disabled")):(d.touch.originalPos=c.position(),t=void 0!==(t=t.originalEvent).changedTouches?t.changedTouches:[t],d.touch.start.x=t[0].pageX,d.touch.start.y=t[0].pageY,d.viewport.bind("touchmove",H),d.viewport.bind("touchend",W))},H=function(t){var e=t.originalEvent,e=void 0!==e.changedTouches?e.changedTouches:[e],i=Math.abs(e[0].pageX-d.touch.start.x),n=Math.abs(e[0].pageY-d.touch.start.y),s=0,o=0;(n<3*i&&d.settings.preventDefaultSwipeX||i<3*n&&d.settings.preventDefaultSwipeY)&&t.preventDefault(),"fade"!==d.settings.mode&&d.settings.oneToOneTouch&&(s="horizontal"===d.settings.mode?(o=e[0].pageX-d.touch.start.x,d.touch.originalPos.left+o):(o=e[0].pageY-d.touch.start.y,d.touch.originalPos.top+o),x(s,"reset",0))},W=function(t){d.viewport.unbind("touchmove",H),d.controls.el.removeClass("disabled");var t=t.originalEvent,e=void 0!==t.changedTouches?t.changedTouches:[t],i=0,n=0;d.touch.end.x=e[0].pageX,d.touch.end.y=e[0].pageY,"fade"===d.settings.mode?(n=Math.abs(d.touch.start.x-d.touch.end.x))>=d.settings.swipeThreshold&&(d.touch.start.x>d.touch.end.x?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto()):(i="horizontal"===d.settings.mode?(n=d.touch.end.x-d.touch.start.x,d.touch.originalPos.left):(n=d.touch.end.y-d.touch.start.y,d.touch.originalPos.top),(d.settings.infiniteLoop||!(0===d.active.index&&0<n||d.active.last&&n<0))&&Math.abs(n)>=d.settings.swipeThreshold?(n<0?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto()):x(i,"reset",200)),d.viewport.unbind("touchend",W),"function"==typeof PointerEvent&&void 0===t.pointerId||d.viewport.get(0).releasePointerCapture&&d.viewport.get(0).releasePointerCapture(d.pointerId)},D=function(t){var e,i;d.initialized&&(d.working?window.setTimeout(D,10):(e=R(window).width(),i=R(window).height(),n===e&&s===i||(n=e,s=i,c.redrawSlider(),d.settings.onSliderResize.call(c,d.active.index))))},L=function(t){var e=p();d.settings.ariaHidden&&!d.settings.ticker&&(d.children.attr("aria-hidden","true"),d.children.slice(t,t+e).attr("aria-hidden","false"))},c.goToSlide=function(t,e){var i,n=!0,s=0,o={left:0,top:0},r=null;d.oldIndex=d.active.index,d.active.index=(i=t)<0?d.settings.infiniteLoop?u()-1:d.active.index:i>=u()?d.settings.infiniteLoop?0:d.active.index:i,d.working||d.active.index===d.oldIndex||(d.working=!0,void 0===(n=d.settings.onSlideBefore.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index))||n?("next"===e?d.settings.onSlideNext.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(n=!1):"prev"!==e||d.settings.onSlidePrev.call(c,d.children.eq(d.active.index),d.oldIndex,d.active.index)||(n=!1),d.active.last=d.active.index>=u()-1,(d.settings.pager||d.settings.pagerCustom)&&y(d.active.index),d.settings.controls&&I(),"fade"===d.settings.mode?(d.settings.adaptiveHeight&&d.viewport.height()!==l()&&d.viewport.animate({height:l()},d.settings.adaptiveHeightSpeed),d.children.filter(":visible").fadeOut(d.settings.speed).css({zIndex:0}),d.children.eq(d.active.index).css("zIndex",d.settings.slideZIndex+1).fadeIn(d.settings.speed,function(){R(this).css("zIndex",d.settings.slideZIndex),z()})):(d.settings.adaptiveHeight&&d.viewport.height()!==l()&&d.viewport.animate({height:l()},d.settings.adaptiveHeightSpeed),!d.settings.infiniteLoop&&d.carousel&&d.active.last?"horizontal"===d.settings.mode?(o=(r=d.children.eq(d.children.length-1)).position(),s=d.viewport.width()-r.outerWidth()):(i=d.children.length-d.settings.minSlides,o=d.children.eq(i).position()):d.carousel&&d.active.last&&"prev"===e?(n=1===d.settings.moveSlides?d.settings.maxSlides-v():(u()-1)*v()-(d.children.length-d.settings.maxSlides),o=(r=c.children(".bx-clone").eq(n)).position()):"next"===e&&0===d.active.index?(o=c.find("> .bx-clone").eq(d.settings.maxSlides).position(),d.active.last=!1):0<=t&&(i=t*parseInt(v()),o=d.children.eq(i).position()),void 0!==o?(n="horizontal"===d.settings.mode?-(o.left-s):-o.top,x(n,"slide",d.settings.speed)):d.working=!1),d.settings.ariaHidden&&L(d.active.index*v())):(d.active.index=d.oldIndex,d.working=!1))},c.goToNextSlide=function(){var t;!d.settings.infiniteLoop&&d.active.last||(t=parseInt(d.active.index)+1,c.goToSlide(t,"next"))},c.goToPrevSlide=function(){var t;!d.settings.infiniteLoop&&0===d.active.index||(t=parseInt(d.active.index)-1,c.goToSlide(t,"prev"))},c.startAuto=function(t){d.interval||(d.interval=setInterval(function(){"next"===d.settings.autoDirection?c.goToNextSlide():c.goToPrevSlide()},d.settings.pause),d.settings.autoControls&&!0!==t&&M("stop"))},c.stopAuto=function(t){d.interval&&(clearInterval(d.interval),d.interval=null,d.settings.autoControls)&&!0!==t&&M("start")},c.getCurrentSlide=function(){return d.active.index},c.getCurrentSlideElement=function(){return d.children.eq(d.active.index)},c.getSlideElement=function(t){return d.children.eq(t)},c.getSlideCount=function(){return d.children.length},c.isWorking=function(){return d.working},c.redrawSlider=function(){d.children.add(c.find(".bx-clone")).outerWidth(h()),d.viewport.css("height",l()),d.settings.ticker||f(),d.active.last&&(d.active.index=u()-1),d.active.index>=u()&&(d.active.last=!0),d.settings.pager&&!d.settings.pagerCustom&&(m(),y(d.active.index)),d.settings.ariaHidden&&L(d.active.index*v())},c.destroySlider=function(){d.initialized&&(d.initialized=!1,R(".bx-clone",this).remove(),d.children.each(function(){void 0!==R(this).data("origStyle")?R(this).attr("style",R(this).data("origStyle")):R(this).removeAttr("style")}),void 0!==R(this).data("origStyle")?this.attr("style",R(this).data("origStyle")):R(this).removeAttr("style"),R(this).unwrap().unwrap(),d.controls.el&&d.controls.el.remove(),d.controls.next&&d.controls.next.remove(),d.controls.prev&&d.controls.prev.remove(),d.pagerEl&&d.settings.controls&&!d.settings.pagerCustom&&d.pagerEl.remove(),R(".bx-caption",this).remove(),d.controls.autoEl&&d.controls.autoEl.remove(),clearInterval(d.interval),d.settings.responsive&&R(window).unbind("resize",D),d.settings.keyboardEnabled&&R(document).unbind("keydown",A),R(this).removeData("bxSlider"))},c.reloadSlider=function(t){void 0!==t&&(e=t),c.destroySlider(),o(),R(c).data("bxSlider",this)},o(),R(c).data("bxSlider",this),this))}}(jQuery);