text: /* Eagle Gallery - 2016-03-22 
     http://codecanyon.net/item/eagle-gallery-responsive-touch-zoom-product-gallery/13625789 */
  "function"!==typeof Object.create&&(Object.create=function(d){function k(){}k.prototype=d;return new k});
  (function(d,k,p){var f={global:{isNoDrag:0,isDrag:0,isZoom:!1,leftDirection:!0,rightDirection:!0,topBottomDirection:!1,newX:0,newY:0,open:null,showMediumImg:!0},init:function(a,b){this.$elem=d(b);this.userOptions=d.extend({},a);this.options=d.extend({},d.fn.eagleGallery.options,a);this.miniOptions=d.extend({},d.fn.eagleGallery.options.miniSlider);a&&a.miniSlider&&(this.miniOptions=d.extend(this.miniOptions,a.miniSlider));this.galleryOptions=d.extend({},d.fn.eagleGallery.options.gallerySlider);a&&
  a.gallerySlider&&(this.galleryOptions=d.extend(this.galleryOptions,a.gallerySlider));this.$elem.append('<div class="is-mobile"></div>');"inside"==this.options.miniSliderArrowPos&&this.$elem.addClass("in");1==this.options.miniSliderArrowStyle&&this.$elem.addClass("as1");2==this.options.miniSliderArrowStyle&&this.$elem.addClass("as2");if(1==this.options.showMediumImg){var c=this.$elem.find("img:nth-of-type(1)").data("medium-img");this.$elem.prepend('<div class="eagle-medium-wrap"><a class="eagle-view-medium-img"><img src="'+
  c+'" alt=""></a><div class="scale-ico"></div></div>');this.$medium=this.$elem.find(".eagle-medium-wrap");this.global.showMediumImg=!0}else this.global.showMediumImg=!1,!1!==this.options.autoPlayMediumImg&&(this.miniOptions.autoPlay=this.options.autoPlayMediumImg,this.miniOptions.stopOnHover=!0,this.miniOptions.rewindNav=!0,this.options.autoPlayMediumImg=!1);!1!==this.options.autoPlayMediumImg&&(this.miniOptions.autoPlay=!1);this.$elem.find(".owl-carousel").owlCarouselE(this.miniOptions);this.miniSlider=
  this.$elem.find(".owl-carousel").data("owlCarouselE");1==this.options.showMediumImg&&this.showMediumImg();this.openGallery()},showMediumImg:function(){var a=this;a.$elem.on("click",".owl-carousel."+a.miniOptions.theme+" .owl-item img",function(b){b.preventDefault();0==a.global.isNoDrag&&a.changeMediumImg(d(this),!1)});!0===a.options.autoPlayMediumImg&&(a.options.autoPlayMediumImg=5E3);!1!==a.options.autoPlayMediumImg&&(!1!==a.options.changeMediumStyle&&a.options.autoPlayMediumImg<a.options.changeMediumSpeed&&
  (a.options.autoPlayMediumImg=a.options.changeMediumSpeed),k.clearInterval(a.autoPlayMediumInterval),a.playMedium(),"ontouchstart"in k||k.navigator.msMaxTouchPoints?a.stopMediumOnTouch():a.stopMediumOnHover())},playMedium:function(){var a=this,b=a.$elem.find(".owl-carousel."+a.miniOptions.theme+" .owl-item").length,c,h,d;k.clearInterval(a.autoPlayMediumInterval);a.autoPlayMediumInterval=k.setInterval(function(){c=a.$elem.find(".owl-carousel."+a.miniOptions.theme+" .owl-item.active").index()+1;d=c+
  1;d>b&&(d=1);h=a.$elem.find(".owl-carousel."+a.miniOptions.theme+" .owl-item:nth-of-type("+d+") img");a.changeMediumImg(h,!0)},a.options.autoPlayMediumImg)},stopMedium:function(){k.clearInterval(this.autoPlayMediumInterval)},stopMediumOnHover:function(){var a=this;a.$elem.on("mouseover",function(){a.stopMedium()});a.$elem.on("mouseout",function(){a.playMedium()})},stopMediumOnTouch:function(){var a=this;a.$elem.on("touchstart",function(){a.stopMedium();d(p).on("touchend",function(){a.playMedium()})})},
  changeMediumImg:function(a,b){var c=this,h={slideIn:function(a,b){a>b&&c.$medium.addClass("slideInNext");a<b&&c.$medium.addClass("slideInPrev")},slideOut:function(a,b){a>b&&c.$medium.addClass("slideOutNext");a<b&&c.$medium.addClass("slideOutPrev")},scaleIn:function(){c.$medium.addClass("scaleIn")},scaleOut:function(){c.$medium.addClass("scaleOut")}},f=a.data("medium-img"),g=d("<img>",{src:f}),e=a.parent().index(),q=c.$elem.find(".owl-item.active").index();if(e!=q){var l=setTimeout(function(){c.$medium.append('<div class="loading">Loading...</div>')},
  500);g.load(function(){clearTimeout(l);c.$medium.find(".loading").length&&c.$medium.find(".loading").remove();if(0==c.options.changeMediumStyle)c.$elem.find(".eagle-view-medium-img img").attr("src",f),b&&c.miniSlider.goTo(e);else{iterations=0;if(1==c.options.changeMediumStyle){var a=1+Math.floor(4*Math.random());1==a&&h.slideIn(e,q);2==a&&h.slideOut(e,q);3==a&&h.scaleIn();4==a&&h.scaleOut()}"slideIn"==c.options.changeMediumStyle&&h.slideIn(e,q);"slideOut"==c.options.changeMediumStyle&&h.slideOut(e,
  q);"scaleIn"==c.options.changeMediumStyle&&h.scaleIn();"scaleOut"==c.options.changeMediumStyle&&h.scaleOut();c.$medium.append('<a class="eagle-view-medium-img ea-show"><img src="'+f+'" alt=""></a>');c.$medium.find("a").css(n.addCssSpeed(c.options.changeMediumSpeed));setTimeout(function(){c.$medium.find("a").not(".ea-show").addClass("ea-hide");c.$medium.find("a").removeClass("ea-show")},60);setTimeout(function(){c.$medium.find("a.ea-hide").remove();c.$medium.removeClass("slideInNext").removeClass("slideInPrev").removeClass("slideOutNext").removeClass("slideOutPrev").removeClass("scaleIn").removeClass("scaleOut")},
  c.options.changeMediumSpeed+60);b&&setTimeout(function(){c.miniSlider.goTo(e)},60)}})}c.$elem.find(".owl-carousel."+c.miniOptions.theme+" .owl-item").removeClass("active");a.parent().addClass("active")},openGallery:function(){var a=this;if(1==a.options.showMediumImg)a.$elem.on("click",".eagle-medium-wrap",function(b){b.preventDefault();a.createGallery()});else d(this).parent().index(),a.$elem.find(".owl-item.active").index(),a.$elem.on("click",".owl-carousel."+a.miniOptions.theme+" .owl-item img",
  function(b){b.preventDefault();0==a.global.isNoDrag&&(a.$elem.find(".owl-item").removeClass("active"),d(this).parent().addClass("active"),a.createGallery())})},createGallery:function(){var a="",b=this.$elem.find("."+this.miniOptions.theme);!1!==this.options.autoPlayMediumImg&&this.stopMedium();this.numberOfimages=b.find(".owl-item").length;this.currentImage=b.find(" .owl-item.active").index()+1;b.find(".owl-item").each(function(){var b=d(this),h=b.find("img").data("big-img");a=(b=b.find("img").data("title"))?
  a+'<div class="eagle-item" data-scale="1"><img src="'+h+'"><div class="title"><span>'+b+"</span></div></div>":a+'<div class="eagle-item" data-scale="1"><img src="'+h+'"></div>'});this.$elem.append('<div class="eagle-open-gallery"><div class="top-controls"><div class="ea-progress"><div class="ea-current">'+this.currentImage+'</div><div>/</div><div class="ea-all">'+this.numberOfimages+'</div></div><div class="eagle-close"><span></span></div></div><div class="eagle-prev"><span></span></div><div class="view-big-img"><div class="owl-carousel">'+
  a+'</div></div><div class="eagle-next"><span></span></div><div class="bottom-controls"><div class="eagle-scale"><div class="ea-zoom ea-minus"><span></span></div><div class="ea-magnifier"></div><div class="ea-zoom ea-plus"><span></span></div></div></div></div>');this.$gall=this.$elem.find(".eagle-open-gallery");this.options.bottomControlLine&&this.$gall.addClass("eagle-bottom-line");"transform"==this.options.openGalleryStyle&&(this.$gall.addClass("transform"),this.$gall.find(".top-controls, .bottom-controls, .view-big-img, .eagle-prev, .eagle-next").addClass("ea-hide"));
  this.$gall.addClass(this.options.theme);1==this.currentImage?this.$gall.find(".eagle-prev").addClass("disabled"):this.currentImage==b.find(".owl-item").length&&this.$gall.find(".eagle-next").addClass("disabled");1==this.numberOfimages&&this.$gall.find(".eagle-next").addClass("disabled");this.global.open=this.$gall;this.showGallery()},showGallery:function(){var a=this,b=d("body").width(),c=d("body").outerWidth();b!=c&&(d("body").css({"padding-right":0}),a.bodyRightPadding=c-d("body").width(),a.bodyRightPadding=
  c-b-a.bodyRightPadding);d("body").css({overflow:"hidden"});b=d("body").outerWidth()-c;void 0!=a.bodyRightPadding?d("body").css({"padding-right":b+a.bodyRightPadding}):d("body").css({"padding-right":b});a.$gall.css(n.addCssSpeed(a.options.openGallerySpeed));"show"==a.options.openGalleryStyle&&setTimeout(function(){a.$gall.css({opacity:1})},10);"transform"==a.options.openGalleryStyle&&(setTimeout(function(){a.$gall.css({opacity:1,"-webkit-transform":"scale3d(1, 1, 1)","-o-transform":"scale3d(1, 1, 1)",
  "-ms-transform":"scale3d(1, 1, 1)","-moz-transform":"scale3d(1, 1, 1)",transform:"scale3d(1, 1, 1)"})},10),setTimeout(function(){a.$gall.find(".top-controls, .bottom-controls").removeClass("ea-hide")},a.options.openGallerySpeed+400),setTimeout(function(){function b(){c+=1;n.completeImg(a.$gall.find(".owl-item.active img").get(0))?a.$gall.find(".view-big-img").removeClass("ea-hide"):100>=c?k.setTimeout(b,100):a.$gall.find(".view-big-img").removeClass("ea-hide")}var c=0;b()},a.options.openGallerySpeed+
  800),setTimeout(function(){a.$elem.find(".transform").length&&a.$gall.find(".eagle-prev, .eagle-next").removeClass("ea-hide")},a.options.openGallerySpeed+1300),setTimeout(function(){a.$elem.find(".transform").length&&a.$gall.removeClass("transform")},a.options.openGallerySpeed+2300));a.$gall.bind("touchmove",function(a){a.preventDefault()});a.$gall.find(".owl-carousel").owlCarouselE(a.galleryOptions);a.owlGallery=a.$gall.find(".owl-carousel").data("owlCarouselE");a.owlGallery.jumpTo(a.currentImage-
  1);a.whenGalleryOpened()},whenGalleryOpened:function(){this.$gall.find(".top-controls, .bottom-controls").css(n.addCssSpeed(this.options.hideControlsSpeed));this.galleryEvents();this.mouseDown();this.gestures();this.response()},galleryEvents:function(){var a=this;a.$gall.on("click",".eagle-prev",function(){a.owlGallery.prev()});a.$gall.on("click",".eagle-next",function(){a.owlGallery.next()});a.$gall.on("click",".view-big-img",function(){a.hideControls()});a.$gall.on("click",".eagle-close",function(){a.close()})},
  mouseDown:function(){this.$gall.find(".eagle-item").on("mousedown",function(){d(this).addClass("mouse-down")}).on("mouseup",function(){d(this).removeClass("mouse-down")})},gestures:function(){function a(a){var b=e.$gall.find(".owl-item.active").offset();if(void 0!==a.touches)return d.map(a.touches,function(a){return{x:a.pageX-b.left,y:a.pageY-b.top}});if(void 0===a.touches){if(void 0!==a.pageX)return d.map(a,function(a){return{x:a.pageX,y:a.pageY}});if(void 0===a.pageX)return d.map(a,function(a){return{x:a.clientX,
  y:a.clientY}})}}function b(a,b){var e,c;e=a.x-b.x;c=a.y-b.y;return Math.sqrt(e*e+c*c)}function c(a,e){var c=b(a[0],a[1]);return b(e[0],e[1])/c}function h(a){"on"===a?(e.$gall.on(e.ev_types.moveZoom,".owl-item",f),e.$gall.on(e.ev_types.endZoom,".owl-item",g)):"off"===a&&(e.$gall.off(e.ev_types.moveZoom,".owl-item",f),e.$gall.off(e.ev_types.endZoom,".owl-item",g))}function f(b){b=b.originalEvent||b||k.event;var h=d(this).find(".eagle-item");l<e.options.maxZoom?(l=oldScale*c(q,a(b)),l>e.options.maxZoom&&
  (l=e.options.maxZoom),e.newPos(h,l),e.updateImg(h,l,e.global.newX,e.global.newY),e.direction(h,l)):(oldScale=e.options.maxZoom,l=oldScale*c(q,a(b)),q=a(b))}function g(a){var b=d(this).find(".eagle-item");e.global.isZoom=!1;l>e.options.maxZoom&&(l=e.options.maxZoom);if(1>l||.01>Math.abs(l-1))l=1,b.css(n.addCssSpeed(300)),e.updateImg(b,l,e.global.newX,e.global.newY),setTimeout(function(){b.css(n.removeTransition());e.direction(b,l)},300),e.$gall.find(".top-controls.ea-hide").length||e.showTitle(b.find(".title"));
  b.data("scale",l).attr("data-scale",l);e.direction(b,l);h("off")}var e=this,q=null,l,r;e.ev_types={startZoom:"touchstart",moveZoom:"touchmove",endZoom:"touchend touchcancel"};e.$gall.on("click",".eagle-scale .ea-plus",function(){var a=e.$gall.find(".owl-item.active .eagle-item");l=a.data("scale");0!=l%1&&(l=parseInt(l,10));l<e.options.maxZoom&&(1==l&&e.hideTitle(a.find(".title")),clearTimeout(k.remTran),a.css(n.addCssSpeed(200)),l++,e.updateImg(a,l,e.global.newX,e.global.newY),k.remTran=setTimeout(function(){a.css(n.removeTransition());
  e.direction(a,l)},200),a.data("scale",l).attr("data-scale",l))});e.$gall.on("click",".eagle-scale .ea-minus",function(){var a=e.$gall.find(".owl-item.active .eagle-item");l=a.data("scale");0!=l%1?l=parseInt(l,10):1<l&&l--;1==l&&e.showTitle(a.find(".title"));e.newPos(a,l);clearTimeout(k.remTran);a.css(n.addCssSpeed(200));e.updateImg(a,l,e.global.newX,e.global.newY);k.remTran=setTimeout(function(){a.css(n.removeTransition());e.direction(a,l)},200);a.data("scale",l).attr("data-scale",l)});e.$gall.on(e.ev_types.startZoom,
  ".owl-item",function(c){c=c.originalEvent||c||k.event;var g=d(this).find(".eagle-item");if(0!=e.global.isDrag)return!1;2===c.touches.length&&(c.preventDefault(),e.global.isZoom=!0,q=a(c),b(q[0],a(c)[1]),oldScale=l=r=g.data("scale"),g.find(".title.hideTitle").length||g.find(".title.hideTitleMobile").length||e.hideTitle(g.find(".title")),h("on"))})},updateImg:function(a,b,c,h){b="scale3d("+b+", "+b+", 1)";c="translate3d("+c+"px, "+h+"px, 0px)";a.css({"-webkit-transform":b+c,"-o-transform":b+c,"-ms-transform":b+
  c,"-moz-transform":b+c,transform:b+c})},direction:function(a,b){var c=a.find("img");c.offset().left+3>=a.closest(".owl-item").offset().left?this.global.leftDirection=!0:this.global.leftDirection=!1;c.offset().left+c.width()*b-3<=a.closest(".owl-item").offset().left+a.closest(".owl-item").width()?this.global.rightDirection=!0:this.global.rightDirection=!1;c.height()*b-2>a.closest(".owl-item").height()?this.global.topBottomDirection=!0:this.global.topBottomDirection=!1},newPos:function(a,b){var c=a.find("img");
  if(c.width()*b>a.closest(".owl-item").width()){var h=(c.width()*b-a.closest(".owl-item").width())/2,d=this.global.newX*b;d>h&&(this.global.newX=(c.width()*b-a.closest(".owl-item").width())/(2*b));-d>h&&(this.global.newX=(a.closest(".owl-item").width()-c.width()*b)/(2*b))}else this.global.newX=0;c.height()*b>a.closest(".owl-item").height()?(h=(c.height()*b-a.closest(".owl-item").height())/2,d=this.global.newY*b,d>h&&(this.global.newY=(c.height()*b-a.closest(".owl-item").height())/(2*b)),-d>h&&(this.global.newY=
  (a.closest(".owl-item").height()-c.height()*b)/(2*b))):this.global.newY=0},response:function(){var a=this,b,c,h;c=d(k).width();h=d(k).height();a.resizer=function(){if(!a.$gall)return!1;if(d(k).width()!==c||d(k).height()!==h)k.clearTimeout(b),b=k.setTimeout(function(){c=d(k).width();h=d(k).height();var b=a.$gall.find(".owl-item.active .eagle-item"),g=b.data("scale");a.newPos(b,g);a.updateImg(b,g,a.global.newX,a.global.newY);a.direction(b,g);b=a.$gall.find(".owl-item");a.isMobile()?b.each(function(){var a=
  d(this).find(".title");a.hasClass("hideTitle")&&(a.addClass("hideTitleMobile"),a.removeClass("hideTitle"))}):b.each(function(){var a=d(this).find(".title");a.hasClass("hideTitleMobile")&&(a.addClass("hideTitle"),a.removeClass("hideTitleMobile"))});!a.isMobile()&&a.$gall.find(".top-controls").hasClass("ea-hide")&&(a.$gall.find(".top-controls, .bottom-controls").toggleClass("ea-hide"),b.each(function(){1==d(this).find(".eagle-item").data("scale")&&a.showTitle(d(this).find(".title"))}))},200)};d(k).resize(a.resizer)},
  hideTitle:function(a){var b=this;if(!a.length)return!1;a.css(n.addCssSpeed(b.options.hideControlsSpeed));b.isMobile()?a.addClass("hideTitleMobile"):a.addClass("hideTitle");setTimeout(function(){a.css(n.removeTransition(b.options.hideControlsSpeed))},200)},showTitle:function(a){var b=this;if(!a.length)return!1;a.css(n.addCssSpeed(b.options.hideControlsSpeed));b.isMobile()?a.removeClass("hideTitleMobile"):a.removeClass("hideTitle");setTimeout(function(){a.css(n.removeTransition(b.options.hideControlsSpeed))},
  200)},hideControls:function(){var a=this;if(a.isMobile()&&0==a.global.isNoDrag){a.$gall.find(".top-controls, .bottom-controls").toggleClass("ea-hide");var b=a.$gall.find(".owl-item");a.$gall.find(".top-controls").hasClass("ea-hide")?b.each(function(){1==d(this).find(".eagle-item").data("scale")&&a.hideTitle(d(this).find(".title"))}):b.each(function(){1==d(this).find(".eagle-item").data("scale")&&a.showTitle(d(this).find(".title"))})}},close:function(){var a=this;a.$gall.css({opacity:0});a.global.isZoom=
  !1;a.global.leftDirection=!0;a.global.rightDirection=!0;a.global.topBottomDirection=!1;a.global.open=null;setTimeout(function(){a.owlGallery.destroy();a.$gall.remove();a.$gall=void 0;void 0!=a.bodyRightPadding?d("body").css({"padding-right":a.bodyRightPadding,overflow:"auto"}):d("body").css({"padding-right":0,overflow:"auto"});!1!==a.options.autoPlayMediumImg&&a.playMedium()},a.options.openGallerySpeed)},isMobile:function(){return this.$elem.find(".is-mobile").is(":visible")?!0:!1}};d.fn.eagleGallery=
  function(a){return this.each(function(){Object.create(f).init(a,this)})};d.fn.eagleGallery.options={maxZoom:4,miniSliderArrowPos:"outside",miniSliderArrowStyle:1,showMediumImg:!0,changeMediumStyle:!1,changeMediumSpeed:600,autoPlayMediumImg:!1,openGalleryStyle:"show",openGallerySpeed:300,hideControlsSpeed:200,theme:"dark",bottomControlLine:!1,miniSlider:{navigation:!0,pagination:!1,navigationText:!1,rewindNav:!1,theme:"mini-slider",responsiveBaseWidth:".eagle-gallery",itemsCustom:[[0,1],[250,2],[450,
  3],[650,4],[850,5],[1050,6],[1250,7],[1450,8]],margin:10},gallerySlider:{singleItem:!0,navigation:!1,pagination:!1,rewindNav:!1,addClassActive:!0,theme:"gallery-slider",galleryslider:!0}};var n={init:function(a,b){this.$elem=d(b);this.options=d.extend({},d.fn.owlCarouselE.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var c,d="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(c in a.owl)a.owl.hasOwnProperty(c)&&
  (d+=a.owl[c].item);b.$elem.html(d)}b.logIn()}var b=this,c;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath?(c=b.options.jsonPath,d.getJSON(c,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;
  this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length;this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();
  this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&&(this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem]);this.options.galleryslider||
  this.$elem.find(".owl-item:first-child").addClass("active")},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this,[this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();
  this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;k.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}),k.clearInterval(a.autoPlayInterval),k.clearInterval(a.checkVisible);else return!1;a.checkVisible=k.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),k.clearInterval(a.checkVisible))},
  500)},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>');this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")},baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,
  b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=!1,this.options.itemsMobile=!1;a=this.$elem.closest(d(this.options.responsiveBaseWidth)).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,
  b){return a[0]-b[0]}),b=0;b<this.options.itemsCustom.length;b+=1)this.options.itemsCustom[b][0]<=a&&(this.options.items=this.options.itemsCustom[b][1]);else a<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]),a<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]),a<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]),
  a<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]),a<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]);this.options.items>this.itemsAmount&&!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,c;if(!0!==a.options.responsive)return!1;c=d(k).width();a.resizer=function(){d(k).width()!==c&&(!1!==a.options.autoPlay&&k.clearInterval(a.autoPlayInterval),
  k.clearTimeout(b),b=k.setTimeout(function(){c=d(k).width();a.updateVars()},a.options.responsiveRefreshRate))};d(k).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a=this,b=0,c=a.itemsAmount-a.options.items;a.$owlItems.each(function(h){var f=d(this);f.css({width:a.itemWidth,"margin-right":a.options.margin}).data("owl-item",Number(h));if(0===h%a.options.items||h===c)h>c||(b+=1);f.data("owl-roundPages",
  b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round((this.$elem.width()-(this.options.items-1)*this.options.margin)/this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth+this.options.margin*(this.itemsAmount-1)-this.options.items*this.itemWidth-
  (this.options.items-1)*this.options.margin);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,c,h;this.positionsInArray=[0];this.pagesInArray=[];for(c=0;c<this.itemsAmount;c+=1)b=c+1==this.itemsAmount?b+this.itemWidth:b+(this.itemWidth+this.options.margin),this.positionsInArray.push(-b),!0===this.options.scrollPerPage&&(h=d(this.$owlItems[c]),
  h=h.data("owl-roundPages"),h!==a&&(this.pagesInArray[a]=this.positionsInArray[c],a=h))},buildControls:function(){if(!0===this.options.navigation||!0===this.options.pagination)this.owlControls=d('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=d('<div class="owl-buttons"/>');a.owlControls.append(b);a.buttonPrev=
  d("<div/>",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=d("<div/>",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();d(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper=
  d('<div class="owl-pagination"/>');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(d(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(d(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,c,h,f,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(h=0;h<this.itemsAmount;h+=1)0===h%this.options.items&&
  (a+=1,b===h&&(c=this.itemsAmount-this.options.items),f=d("<div/>",{"class":"owl-page"}),g=d("<span></span>",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),f.append(g),f.data("owl-page",b===h?c:h),f.data("owl-roundPages",a),this.paginationWrapper.append(f));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){d(this).data("owl-roundPages")===
  d(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),d(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem===
  this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1;
  this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage?
  this.options.items:1);if(0>this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,c){var d=this;if(d.isTransition)return!1;"function"===typeof d.options.beforeMove&&d.options.beforeMove.apply(this,[d.$elem]);a>=d.maximumItem?a=d.maximumItem:0>=a&&(a=0);d.currentItem=d.owl.currentItem=a;if(!1!==d.options.transitionStyle&&"drag"!==c&&1===d.options.items&&!0===d.browser.support3d)return d.swapSpeed(0),
  !0===d.browser.support3d?d.transition3d(d.positionsInArray[a]):d.css2slide(d.positionsInArray[a],1),d.afterGo(),d.singleItemTransition(),!1;a=d.positionsInArray[a];!0===d.browser.support3d?(d.isCss3Finish=!1,!0===b?(d.swapSpeed("paginationSpeed"),k.setTimeout(function(){d.isCss3Finish=!0},d.options.paginationSpeed)):"rewind"===b?(d.swapSpeed(d.options.rewindSpeed),k.setTimeout(function(){d.isCss3Finish=!0},d.options.rewindSpeed)):(d.swapSpeed("slideSpeed"),k.setTimeout(function(){d.isCss3Finish=!0},
  d.options.slideSpeed)),d.transition3d(a)):!0===b?d.css2slide(a,d.options.paginationSpeed):"rewind"===b?d.css2slide(a,d.options.rewindSpeed):d.css2slide(a,d.options.slideSpeed);d.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem=
  this.owl.currentItem=a;this.afterGo()},afterGo:function(){var a=this;a.prevArr.push(a.currentItem);a.prevItem=a.owl.prevItem=a.prevArr[a.prevArr.length-2];a.prevArr.shift(0);if(a.prevItem!==a.currentItem&&(a.checkPagination(),a.checkNavigation(),a.eachMoveUpdate(),!1!==a.options.autoPlay&&a.checkAp(),a.options.galleryslider)){var b=a.$elem.find(".owl-item.active").index()+1;a.$elem.closest(".eagle-open-gallery").find(".ea-current").html(b);1==b?(a.$elem.closest(".eagle-open-gallery").find(".eagle-prev").addClass("disabled"),
  a.$elem.closest(".eagle-open-gallery").find(".eagle-next").removeClass("disabled")):b==a.$elem.find(".owl-item").length?(a.$elem.closest(".eagle-open-gallery").find(".eagle-next").addClass("disabled"),a.$elem.closest(".eagle-open-gallery").find(".eagle-prev").removeClass("disabled")):a.$elem.closest(".eagle-open-gallery").find(".eagle-next, .eagle-prev").removeClass("disabled");setTimeout(function(){a.$owlItems.find(".eagle-item").removeAttr("style");f.global.open.find(".top-controls").hasClass("ea-hide")||
  a.$owlItems.find(".title").removeClass("hideTitle").removeClass("hideTitleMobile");f.global.leftDirection=!0;f.global.rightDirection=!0;f.global.topBottomDirection=!1;f.global.newX=0;f.global.newY=0;a.$owlItems.find(".eagle-item").data("scale",1)},a.options.slideSpeed)}"function"===typeof a.options.afterMove&&a.prevItem!==a.currentItem&&a.options.afterMove.apply(this,[a.$elem])},stop:function(){this.apStatus="stop";k.clearInterval(this.autoPlayInterval)},checkAp:function(){"stop"!==this.apStatus&&
  this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;k.clearInterval(a.autoPlayInterval);a.autoPlayInterval=k.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))},addCssSpeed:function(a){return{"-webkit-transition":"all "+
  a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},
  transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var d=this;d.isCssFinish=!1;d.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||d.options.slideSpeed,complete:function(){d.isCssFinish=!0}})},checkBrowser:function(){var a=p.createElement("div");a.style.cssText="  -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)";
  a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in k||k.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:
  !1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return d(a.target).is("input, textarea, select, option")})},
  gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(d(p).on(g.ev_types.move,h),d(p).on(g.ev_types.end,m)):"off"===a&&(d(p).off(g.ev_types.move),d(p).off(g.ev_types.end))}function c(b){var d=e.owlActive.find(".eagle-item"),c=e.owlActive.find("img"),g=e.owlActive.find(".eagle-item").data("scale");e.newX=
  a(b).x;e.newY=a(b).y;c.offset().left>e.owlActive.offset().left&&e.newX>e.oldX||c.offset().left+c.width()*g<e.owlActive.offset().left+e.owlActive.width()&&e.newX<e.oldX?f.global.newX+=(e.newX-e.oldX)/g/3:(f.global.newX+=(e.newX-e.oldX)/g,f.global.leftDirection=!1,f.global.rightDirection=!1);1==f.global.topBottomDirection&&(c.offset().top>e.owlActive.offset().top&&e.newY>e.oldY||c.offset().top+c.height()*g<e.owlActive.offset().top+e.owlActive.height()&&e.newY<e.oldY?f.global.newY+=(e.newY-e.oldY)/g/
  3:f.global.newY+=(e.newY-e.oldY)/g);f.updateImg(d,g,f.global.newX,f.global.newY);e.oldX=e.newX;e.oldY=e.newY}function h(b){b=b.originalEvent||b||k.event;if(f.global.isZoom)return!1;g.newPosX=a(b).x-e.offsetX;g.newPosY=a(b).y-e.offsetY;g.newRelativeX=g.newPosX-e.relativePos;g.newRelativeY=g.newPosY;if(0<g.newRelativeX&&0==f.global.leftDirection){c(b);if(3<g.newRelativeX||-3>g.newRelativeX||3<g.newRelativeY||-3>g.newRelativeY)f.global.isNoDrag=1;return!1}if(0>g.newRelativeX&&0==f.global.rightDirection){c(b);
  if(3<g.newRelativeX||-3>g.newRelativeX||3<g.newRelativeY||-3>g.newRelativeY)f.global.isNoDrag=1;return!1}if(1==f.global.topBottomDirection){var h=e.owlActive.find(".eagle-item"),r=e.owlActive.find("img"),m=e.owlActive.find(".eagle-item").data("scale");e.newY=a(b).y;r.offset().top>e.owlActive.offset().top&&e.newY>e.oldY||r.offset().top+r.height()*m<e.owlActive.offset().top+e.owlActive.height()&&e.newY<e.oldY?f.global.newY+=(e.newY-e.oldY)/m/3:f.global.newY+=(e.newY-e.oldY)/m;f.updateImg(h,m,f.global.newX,
  f.global.newY);e.oldY=e.newY}"function"===typeof g.options.startDragging&&!0!==e.dragging&&0!==g.newRelativeX&&(e.dragging=!0,g.options.startDragging.apply(g,[g.$elem]));(8<g.newRelativeX||-8>g.newRelativeX)&&!0===g.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,e.sliding=!0);(10<g.newPosY||-10>g.newPosY)&&!1===e.sliding&&0==f.global.topBottomDirection&&d(p).off("touchmove.owl");g.newPosX=Math.max(Math.min(g.newPosX,g.newRelativeX/5),g.maximumPixels+g.newRelativeX/
  5);!0===g.browser.support3d?g.transition3d(g.newPosX):g.css2move(g.newPosX);if(3<g.newRelativeX||-3>g.newRelativeX)f.global.isNoDrag=1;f.global.isDrag=1}function m(a){a=a.originalEvent||a||k.event;var c;c=e.owlActive.find(".eagle-item").data("scale");if(0<g.newRelativeX&&0==f.global.leftDirection){var h=e.owlActive.find("img"),m=e.owlActive.find(".eagle-item");a=(h.offset().left-e.owlActive.offset().left)/c;0<=a&&(f.global.leftDirection=!0,f.global.newX-=a);if(1==f.global.topBottomDirection){var p=
  (h.offset().top-e.owlActive.offset().top)/c,h=(h.offset().top+h.height()*c-(e.owlActive.offset().top+e.owlActive.height()))/c;0<p&&(f.global.newY-=p);0>h&&(f.global.newY-=h)}else f.global.newY=0;if(0<=a||1==f.global.topBottomDirection)m.css(n.addCssSpeed(100)),f.updateImg(m,c,f.global.newX,f.global.newY),setTimeout(function(){m.css(n.removeTransition())},100);b("off");f.global.isDrag=0;return!1}if(0>g.newRelativeX&&0==f.global.rightDirection){h=e.owlActive.find("img");m=e.owlActive.find(".eagle-item");
  a=(h.offset().left+h.width()*c-(e.owlActive.offset().left+e.owlActive.width()))/c;0>=a&&(f.global.rightDirection=!0,f.global.newX-=a);1==f.global.topBottomDirection?(p=(h.offset().top-e.owlActive.offset().top)/c,h=(h.offset().top+h.height()*c-(e.owlActive.offset().top+e.owlActive.height()))/c,0<p&&(f.global.newY-=p),0>h&&(f.global.newY-=h)):f.global.newY=0;if(0>=a||1==f.global.topBottomDirection)m.css(n.addCssSpeed(100)),f.updateImg(m,c,f.global.newX,f.global.newY),setTimeout(function(){m.css(n.removeTransition())},
  100);b("off");f.global.isDrag=0;return!1}1==f.global.topBottomDirection&&(h=e.owlActive.find("img"),m=e.owlActive.find(".eagle-item"),p=(h.offset().top-e.owlActive.offset().top)/c,h=(h.offset().top+h.height()*c-(e.owlActive.offset().top+e.owlActive.height()))/c,0<p&&(f.global.newY-=p,m.css(n.addCssSpeed(100)),f.updateImg(m,c,f.global.newX,f.global.newY),setTimeout(function(){m.css(n.removeTransition())},100)),0>h&&(f.global.newY-=h,m.css(n.addCssSpeed(100)),f.updateImg(m,c,f.global.newX,f.global.newY),
  setTimeout(function(){m.css(n.removeTransition())},100)));a.target=a.target||a.srcElement;e.dragging=!1;!0!==g.browser.isTouch&&g.$owlWrapper.removeClass("grabbing");g.dragDirection=0>g.newRelativeX?g.owl.dragDirection="left":g.owl.dragDirection="right";0!==g.newRelativeX&&(c=g.getNewPosition(),g.goTo(c,!1,"drag"),e.targetElement===a.target&&!0!==g.browser.isTouch&&(d(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();d(a.target).off("click.disable")}),
  a=d._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));f.global.isDrag=0;b("off")}var g=this,e={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null,owlActive:null,newX:0,newY:0,oldX:0,oldY:0};g.isCssFinish=!0;g.$elem.on(g.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||k.event;var h;e.owlActive=d(this).find(".owl-item.active");if(3===c.which)return!1;if(!(g.itemsAmount<=g.options.items&&null==
  f.global.open)){if(!1===g.isCssFinish&&!g.options.dragBeforeAnimFinish||!1===g.isCss3Finish&&!g.options.dragBeforeAnimFinish)return!1;!1!==g.options.autoPlay&&k.clearInterval(g.autoPlayInterval);!0===g.browser.isTouch||g.$owlWrapper.hasClass("grabbing")||g.$owlWrapper.addClass("grabbing");g.newPosX=0;g.newRelativeX=0;d(this).css(g.removeTransition());h=d(this).position();e.relativePos=h.left;e.offsetX=a(c).x-h.left;e.offsetY=a(c).y-h.top;e.oldX=a(c).x;e.oldY=a(c).y;b("on");e.sliding=!1;e.targetElement=
  c.target||c.srcElement;f.global.isNoDrag=0}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,c=a.newPosX,h=null;d.each(b,function(f,g){c-a.itemWidth/20>b[f+1]&&c-a.itemWidth/20<g&&"left"===a.moveDirection()?(h=g,a.currentItem=!0===a.options.scrollPerPage?d.inArray(h,a.positionsInArray):f):c+
  a.itemWidth/20<g&&c+a.itemWidth/20>(b[f+1]||b[f]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(h=b[f+1]||b[b.length-1],a.currentItem=d.inArray(h,a.positionsInArray)):(h=b[f+1],a.currentItem=f+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});
  a.$elem.on("owl.play",function(b,c){a.options.autoPlay=c;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,c){a.goTo(c)});a.$elem.on("owl.jumpTo",function(b,c){a.jumpTo(c)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,
  b,c,h,f;if(!1===this.options.lazyLoad)return!1;for(a=0;a<this.itemsAmount;a+=1)b=d(this.$owlItems[a]),"loaded"!==b.data("owl-loaded")&&(c=b.data("owl-item"),h=b.find(".lazyOwl"),"string"!==typeof h.data("src")?b.data("owl-loaded","loaded"):(void 0===b.data("owl-loaded")&&(h.hide(),b.addClass("loading").data("owl-loaded","checked")),(f=!0===this.options.lazyFollow?c>=this.currentItem:!0)&&c<this.currentItem+this.options.items&&h.length&&this.lazyPreload(b,h)))},lazyPreload:function(a,b){function c(){a.data("owl-loaded",
  "loaded").removeClass("loading");b.removeAttr("data-src");"fade"===f.options.lazyEffect?b.fadeIn(400):b.show();"function"===typeof f.options.afterLazyLoad&&f.options.afterLazyLoad.apply(this,[f.$elem])}function d(){g+=1;f.completeImg(b.get(0))||!0===e?c():100>=g?k.setTimeout(d,100):c()}var f=this,g=0,e;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),e=!0):b[0].src=b.data("src");d()},autoHeight:function(){function a(){var a=d(c.$owlItems[c.currentItem]).height();c.wrapperOuter.css("height",
  a+"px");c.wrapperOuter.hasClass("autoHeight")||k.setTimeout(function(){c.wrapperOuter.addClass("autoHeight")},0)}function b(){m+=1;c.completeImg(f.get(0))?a():100>=m?k.setTimeout(b,100):c.wrapperOuter.css("height","")}var c=this,f=d(c.$owlItems[c.currentItem]).find("img"),m;void 0!==f.get(0)?(m=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");
  this.visibleItems=[];for(a=this.currentItem;a<this.currentItem+this.options.items;a+=1)this.visibleItems.push(a),!0===this.options.addClassActive&&d(this.$owlItems[a]).addClass("active");this.owl.visibleItems=this.visibleItems},transitionTypes:function(a){this.outClass="owl-"+a+"-out";this.inClass="owl-"+a+"-in"},singleItemTransition:function(){var a=this,b=a.outClass,c=a.inClass,d=a.$owlItems.eq(a.currentItem),f=a.$owlItems.eq(a.prevItem),g=Math.abs(a.positionsInArray[a.currentItem])+a.positionsInArray[a.prevItem],
  e=Math.abs(a.positionsInArray[a.currentItem])+a.itemWidth/2;a.isTransition=!0;a.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":e+"px","-moz-perspective-origin":e+"px","perspective-origin":e+"px"});f.css({position:"relative",left:g+"px"}).addClass(b).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endPrev=!0;f.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");a.clearTransStyle(f,b)});d.addClass(c).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",
  function(){a.endCurrent=!0;d.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");a.clearTransStyle(d,c)})},clearTransStyle:function(a,b){a.css({position:"",left:""}).removeClass(b);this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1)},owlStatus:function(){this.owl={userOptions:this.userOptions,baseElement:this.$elem,userItems:this.$userItems,owlItems:this.$owlItems,currentItem:this.currentItem,prevItem:this.prevItem,
  visibleItems:this.visibleItems,isTouch:this.browser.isTouch,browser:this.browser,dragDirection:this.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect");d(p).off(".owl owl");d(k).off("resize",this.resizer)},unWrap:function(){0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove());this.clearEvents();this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",
  this.$elem.data("owl-originalClasses"))},destroy:function(){this.stop();k.clearInterval(this.checkVisible);this.unWrap();this.$elem.removeData()},reinit:function(a){a=d.extend({},this.userOptions,a);this.unWrap();this.init(a,this.$elem)},addItem:function(a,b){var c;if(!a)return!1;if(0===this.$elem.children().length)return this.$elem.append(a),this.setVars(),!1;this.unWrap();c=void 0===b||-1===b?-1:b;c>=this.$userItems.length||-1===c?this.$userItems.eq(-1).after(a):this.$userItems.eq(c).before(a);
  this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};d.fn.owlCarouselE=function(a){return this.each(function(){if(!0===d(this).data("owl-init"))return!1;d(this).data("owl-init",!0);var b=Object.create(n);b.init(a,this);d.data(this,"owlCarouselE",b)})};d.fn.owlCarouselE.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,
  itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,margin:0,slideSpeed:200,paginationSpeed:800,rewindSpeed:800,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:k,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,
  transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1,galleryslider:!1}})(jQuery,window,document);