!function(t){"function"==typeof define&&define.amd&&define.amd.jquery?define(["jquery"],t):"undefined"!=typeof jquery&&t(jquery)}(function(h){"use strict";var p,u="ontouchstart"in window,f=window.navigator.mspointerenabled&&!window.navigator.pointerenabled||!1,v=window.navigator.pointerenabled||window.navigator.mspointerenabled||!1,g=u||v,m=g?v?f?"mspointerdown":"pointerdown":"touchstart":"mousedown",y=g?v?f?"mspointermove":"pointermove":"touchmove":"mousemove",w=g?v?f?"mspointerup":"pointerup":"touchend":"mouseup",c=g?null:"mouseenter",b=g?null:"mouseleave",s=g?v?f?"mspointercancel":"pointercancel":"touchcancel":null,a="transitionend webkittransitionend otransitionend mstransitionend",i=[],z=!1,t=0,x=0,k=0,m=0,t=(document.body||document.documentelement).style,q=!(void 0===t.transform&&void 0===t.webkittransform&&void 0===t.moztransform&&void 0===t.mstransform&&void 0===t.otransform||void 0===t.transition&&void 0===t.webkittransition&&void 0===t.moztransition&&void 0===t.mstransition&&void 0===t.otransition);function i(t,i){var a=t.originalevent?t.originalevent:t;return u&&void 0!==a.touches&&1==a.touches.length?a.touches[0][i]:void 0!==t[i]?t[i]:void 0!==a[i]?a[i]:0}function o(t){return i(t,"pagex")}function e(t){return i(t,"pagey")}h.fn.extend({settransition:function(t){if(1==q){var i=0!==t?"cubic-bezier(0.39, 0.575, 0.565, 1)":"linear",a=t+"s",n=0!==t?"all":"none";this.css({"-webkit-transition-property":n,"-moz-transition-property":n,"-ms-transition-property":n,"-o-transition-property":n,"transition-property":n,"-webkit-transition-duration":a,"-moz-transition-duration":a,"-ms-transition-duration":a,"-o-transition-duration":a,"transition-duration":a,"-webkit-transition-timing-function":i,"-moz-transition-timing-function":i,"-ms-transition-timing-function":i,"-o-transition-timing-function":i,"transition-timing-function":i})}return this},translatex:function(t,i){var a="";return-1==t.tostring().indexof("px")&&(a="px"),1==q?(null!=i&&!0===i&&this.settransition(0),this.css({"-webkit-transform":"translate3d("+t+a+", 0, 0)","-moz-transform":"translatex("+t+a+")","-ms-transform":"translatex("+t+a+")","-o-transform":"translatex("+t+a+")",transform:"translatex("+t+a+")"})):this.css({"margin-left":t}),this},animatex:function(t,i){return 1==q?(this.settransition(i/1e3).translatex(t),this.hasclass("event-attached")||this.addclass("event-attached").on(a,function(t){var i=h(t.target);i.hasclass("slider-slides")&&(i.getslider().slidecomplete(),i.settransition(0))})):this.stop(!0,!0).animate({"margin-left":t},i,function(){h(this).getslider().slidecomplete()}),this},animatefade:function(t){return 1==q?(this.settransition(t/1e3).css({"-webkit-opacity":1,"-moz-opacity":1,"-ms-opacity":1,"-o-opacity":1,opacity:1}),this.hasclass("event-attached")||this.addclass("event-attached").on(a,function(t){-1!=t.originalevent.propertyname.indexof("opacity")&&0!=h(this).css("z-index")&&h(this).getslider().slidecomplete()})):this.stop(!0,!0).fadeto(t,1,function(){h(this).getslider().slidecomplete()}),this}}),h.fn.extend({sliderinit:function(t){var i=this.children().length;if(!(i<=1||1==this.data("initialized"))){this.hasclass("jslider")||this.addclass("jslider");var a={navigation:"hover",indicator:"always",speed:500,delay:5e3,transition:"slide",loop:!1,group:1},n={navigation:this.data("navigation"),indicator:this.data("indicator"),speed:this.data("speed"),delay:this.data("delay"),transition:this.data("transition"),loop:this.data("loop"),group:this.data("group")},e=h.extend({},a,n,t);(isnan(e.speed)||e.speed<0)&&(e.speed=a.speed),(isnan(e.delay)||e.delay<0)&&(e.delay=a.delay),"slide"!=e.transition&&"fade"!=e.transition&&(e.transition=a.transition),"slide"!=e.transition&&(e.group=1),g&&("hover"==e.navigation&&(e.navigation="none"),"hover"==e.indicator&&(e.indicator="none")),i=math.ceil(i/e.group),this.data("settings",e);var s=0,r="> div.selected";""!=window.location.hash&&(r=window.location.hash+","+r),0!=this.find(r).length&&(s=math.ceil(this.find(r).index()/e.group),this.find("> div.selected").removeclass("selected"),this.find("> div:eq("+s+")").addclass("selected")),this.find("[class*=appear-]").each(function(){var t=h(this),i=parseint(t.css("top"),10),a=parseint(t.css("left"),10);t.data("top",i).data("left",a),t.hasclass("appear-top")&&t.css("top",i-15),t.hasclass("appear-bottom")&&t.css("top",i+15),t.hasclass("appear-left")&&t.css("left",i-15),t.hasclass("appear-right")&&t.css("left",a+15),t.css("opacity",0),q&&t.addclass("cssanimation")}),this.data("total",i).data("current",s).data("cancel-play",!1).data("map-index",i.length).data("initialized",!0).wrapinner('
'),this.find(".slider-slides").settransition(0),i.push({slider:this,sliderinterval:null,showinterval:null}),1!=e.group?this.find(".slider-slides > div").css("width",100/e.group+"%"):this.find("img:eq(0)").clone().prependto(this),(f||v)&&this.css({"-ms-scroll-chaining":"none","-ms-touch-action":"pan-y pinch-zoom","touch-action":"pan-y pinch-zoom"}),u&&this.addclass("webkit-slider"),"fade"!=e.transition||"none"==e.navigation&&"none"==e.indicator?"none"==e.navigation&&"none"==e.indicator&&this.addclass("background-transition"):this.addclass("fade-transition"),"none"==e.navigation&&"none"==e.indicator||(this.find(".slider-content-wrapper").on(m,function(t){var i=h(this).getslider(),a=i.find(".slider-slides");g||(t.preventdefault(),a.addclass("grabbing")),a.settransition(0),!(z=!0),t=o(t),x=e(t),i.sliderstop(),p=i}).on(y,function(t){var i=h(this).getslider(),a=i.find(".slider-slides"),n=i.data("settings"),e=i.data("current"),s=i.width();1==z&&(g||t.preventdefault(),k=o(t)-t,m=e(t)-x,math.abs(m)>math.abs(k)?g&&i.slidercanceltouch():(!0,t.preventdefault(),"slide"==n.transition&&a.translatex(-e*s+k,!0)))}).on(w+" "+s,function(t){var i=h(this).getslider(),a=i.find(".slider-slides"),n=i.data("settings"),e=i.data("current"),s=(i.width(),1);a.removeclass("grabbing"),35",{class:"controller",html:'
'}).appendto(this);-1!=navigator.useragent.tolowercase().indexof("msie 8")&&d.addclass("msie8");var o=this.find(".navigator"),l=this.find(".indicator");"always"==e.navigation&&o.show(),this.find(".navigator span").on("click",function(t){t.preventdefault(),h(this).getslider().sliderstop().slidergo(h(this).data("direction"))}),"always"==e.indicator&&l.show();for(var c=0;c",{class:c==s?"selected":"",text:c,"data-slide":c}).appendto(d.find(".indicator")).on("click",function(t){t.preventdefault();var i=h(this),a=i.getslider(),n=a.data("current"),e=i.data("slide");(e<0||e>=a.data("total"))&&(e=n),a.sliderstop().slideroptimize(n,e).sliderupdate(e)});return this.trigger({type:"slidecreated"}),this.sliderresized().sliderupdate(s).slideroptimize().sliderplay(),this}},sliderplay:function(){var t=this.data("current"),i=this.data("map-index"),a=this.data("settings"),n=this.data("total"),e=this.data("cancel-play"),s=this.data("imageloaded")==this.data("totalimages");if(n-1<=t)this.sliderstop();else if(1!=e&&0!=a.delay){var r=this;i[i].sliderinterval=setinterval(function(){1!=r.data("cancel-play")?s&&r.slidergo(1):clearinterval(i[i].sliderinterval)},a.delay)}},sliderstop:function(){var t=this.data("map-index");return clearinterval(i[t].sliderinterval),1==this.data("cancel-play")?this:this.data("cancel-play",!0).trigger("slidecancelautoplay")},slidecomplete:function(){return this.slideroptimize().trigger({type:"slidecomplete",current:this.data("current")})},slideroptimize:function(t,i){var a=this.data("settings"),n=this.data("current"),e=void 0!==i?i:n,s=this.find(".slider-slides > div");if("slide"==a.transition)return this.slidershowitems();for(var r=0;r div");for(t=0;t div:eq("+t+")").css("z-index",this.data("total")).animatefade(a.speed),this.find(".navigator span").removeclass("disabled"),0==a.loop&&(0==t?this.find(".navigator .prev").addclass("disabled"):t==this.data("total")-1&&this.find(".navigator .next").addclass("disabled")),this.find(".indicator span.selected").removeclass("selected"),this.find(".indicator span:eq("+t+")").addclass("selected"),this},slidershowitems:function(){var i=this,t=i.data("current"),a=i.data("map-index"),n=i.find(".slider-slides > div:eq("+t+") [class*=appear-]"),e=0;return i.sliderhideitems(),clearinterval(i[a].showinterval),n.length<=0||(i[a].showinterval=setinterval(function(){if(e>=n.length)return clearinterval(i[a].showinterval),i;var t=n.eq(e);q?t.css({top:t.data("top"),left:t.data("left"),opacity:1}):t.stop(!0,!0).animate({top:t.data("top"),left:t.data("left"),opacity:1},500),e++},200)),i},sliderhideitems:function(){var t=this.data("current"),i=this.data("map-index");return clearinterval(i[i].showinterval),this.find(".slider-slides > div:not(:eq("+t+")) [class*=appear-]").each(function(){var t=h(this),i=t.data("top"),a=t.data("left");t.hasclass("appear-top")&&t.css("top",i-15),t.hasclass("appear-bottom")&&t.css("top",i+15),t.hasclass("appear-left")&&t.css("left",i-15),t.hasclass("appear-right")&&t.css("left",a+15),t.css("opacity",0)}),this},getslider:function(){return this.hasclass("jslider")?this:this.parents(".jslider")}}),h(document).ready(function(t){h("body .jslider").each(function(){h(this).sliderinit()})}),h(window).resize(function(t){h("body .jslider").each(function(){h(this).sliderresized()})})}); //# sourcemappingurl=jquery.jslider.min.js.map