Your IP : 216.73.216.201


Current Path : /home/hrpsychology/public_html/soulfood.gr/psychology.soulfood.gr/t3-assets710/js/
Upload File :
Current File : /home/hrpsychology/public_html/soulfood.gr/psychology.soulfood.gr/t3-assets710/js/js-c28f2-15274.js


/*===============================
/1/components/com_sppagebuilder/assets/js/jquery.parallax.js
================================================================================*/;
!function(t){var n=t(window),a=n.height();n.resize((function(){a=n.height()})),t.fn.parallax=function(o,r,i){var s,c,e=t(this);function l(){var i=n.scrollTop();e.each((function(){var n=t(this),l=n.offset().top;l+s(n)<i||l>i+a||!e.data("sppbparallax")||e.css("backgroundPosition",o+" "+Math.round((c-i)*r)+"px")}))}e.data("sppbparallax",!0),e.css("backgroundAttachment","fixed"),e.each((function(){c=e.offset().top})),s=i?function(t){return t.outerHeight(!0)}:function(t){return t.height()},(arguments.length<1||null===o)&&(o="50%"),(arguments.length<2||null===r)&&(r=.15),(arguments.length<3||null===i)&&(i=!0),n.bind("scroll",l).resize(l),l()},t.fn.parallaxDestroy=function(n,a){var o=t(this);o.data("sppbparallax")&&(n?o.css("backgroundPosition",n):o.css("backgroundPosition","0% 0%"),a?o.css("backgroundAttachment",a):o.css("backgroundAttachment","inherit"),o.data("sppbparallax",!1))}}(jQuery);


/*===============================
/1/components/com_sppagebuilder/assets/js/sppagebuilder.js
================================================================================*/;
!function(t){"use strict";var e='[data-dismiss="sppb-alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.2.0",i.prototype.close=function(e){var i=t(this),n=i.attr("data-target");n||(n=(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var s=t(n);function a(){s.detach().trigger("closed.sppb.alert").remove()}e&&e.preventDefault(),s.length||(s=i.hasClass("sppb-alert")?i:i.parent()),s.trigger(e=t.Event("close.sppb.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("sppb-fade")?s.one("bsTransitionEnd",a).emulateTransitionEnd(150):a())};var n=t.fn.spbalert;t.fn.spbalert=function(e){return this.each((function(){var n=t(this),s=n.data("sppb.alert");s||n.data("sppb.alert",s=new i(this)),"string"==typeof e&&s[e].call(n)}))},t.fn.spbalert.Constructor=i,t.fn.spbalert.noConflict=function(){return t.fn.spbalert=n,this},t(document).on("click.sppb.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e).on("keydown.sppb.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".sppb-carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.sppb.carousel",t.proxy(this.pause,this)).on("mouseleave.sppb.carousel",t.proxy(this.cycle,this))};function i(i){return this.each((function(){var n=t(this),s=n.data("sppb.carousel"),a=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i),o="string"==typeof i?i:a.slide;s||n.data("sppb.carousel",s=new e(this,a)),"number"==typeof i?s.to(i):o?s[o]():a.interval&&s.pause().cycle()}))}e.VERSION="3.2.0",e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".sppb-item"),this.$items.index(t||this.$active)},e.prototype.to=function(e){var i=this,n=this.getItemIndex(this.$active=this.$element.find(".sppb-item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.sppb.carousel",(function(){i.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(e,i){var n=this.$element.find(".sppb-item.active"),s=i||n[e](),a=this.interval,o="next"==e?"left":"right",r="next"==e?"first":"last",l=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".sppb-item")[r]()}if(s.hasClass("active"))return this.sliding=!1;var p=s[0],d=t.Event("slide.sppb.carousel",{relatedTarget:p,direction:o});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(s)]);h&&h.addClass("active")}var c=t.Event("slid.sppb.carousel",{relatedTarget:p,direction:o});return t.support.transition&&this.$element.hasClass("sppb-slide")?(s.addClass(e),s[0].offsetWidth,n.addClass(o),s.addClass(o),n.one("bsTransitionEnd",(function(){s.removeClass([e,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(c)}),0)})).emulateTransitionEnd(1e3*n.css("transition-duration").slice(0,-1))):(n.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(c)),a&&this.cycle(),this}};var n=t.fn.sppbcarousel;t.fn.sppbcarousel=i,t.fn.sppbcarousel.Constructor=e,t.fn.sppbcarousel.noConflict=function(){return t.fn.sppbcarousel=n,this},t(document).ready((function(){t(".sppb-carousel").each((function(e){var i=t(this).find(".sppb-item"),n="sppb-carousel"+(e+1),s="";t(this).attr("id",n);for(var a=0;a<i.length;a++)s+=0==a?'<li data-sppb-target="#'+n+'" class="active" data-sppb-slide-to="0"></li>':'\n<li data-sppb-target="#'+n+'" data-sppb-slide-to="'+a+'"></li>';t(this).find(">.sppb-carousel-indicators").html(s),t(this).find(".sppb-carousel-control").attr("href","#"+n),t(this).find(".sppb-item").first().addClass("active")}))})),t(document).on("click.sppb.carousel.data-api","[data-slide], [data-sppb-slide-to]",(function(e){var n,s=t(this),a=t(s.attr("data-sppb-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("sppb-carousel")){var o=t.extend({},a.data(),s.data()),r=s.attr("data-sppb-slide-to");r&&(o.interval=!1),i.call(a,o),r&&a.data("sppb.carousel").to(r),e.preventDefault()}})),t(document).ready((function(){if(t('[data-sppb-ride="sppb-carousel"]').each((function(){var e=t(this);i.call(e,e.data())})),t(window).width()<767){var e=t(".sppb-carousel-pro-inner-content").outerHeight(!0)+50;t(".sppb-carousel-pro .sppb-item > img").css({height:e})}}))}(jQuery),function(t){"use strict";t(document).on("click",".sppb-panel-heading",(function(e){e.preventDefault();var i=t(this),n=i.closest(".sppb-panel-group").find(">div"),s=n.find(".sppb-panel-heading"),a=n.find(".sppb-panel-collapse");t(this).hasClass("active")?(t(this).removeClass("active"),i.next().slideUp()):(s.removeClass("active"),a.slideUp(),setTimeout(()=>{t(this).addClass("active").next().slideDown((function(){i[0].getBoundingClientRect().top<0&&t("html,body").animate({scrollTop:i.offset().top},400)}))}))}))}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function i(i){return this.each((function(){var n=t(this),s=n.data("sppb.tab");s||n.data("sppb.tab",s=new e(this)),"string"==typeof i&&s[i]()}))}e.VERSION="3.2.0",e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a")[0],a=t.Event("show.sppb.tab",{relatedTarget:s});if(e.trigger(a),!a.isDefaultPrevented()){var o=t(n);this.activate(e.closest("li"),i),this.activate(o,o.parent(),(function(){e.trigger({type:"shown.sppb.tab",relatedTarget:s})}))}}},e.prototype.activate=function(e,i,n){var s=i.find("> .active"),a=n&&t.support.transition&&s.hasClass("sppb-fade");function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("sppb-fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}a?s.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),s.removeClass("in")};var n=t.fn.sppbtab;t.fn.sppbtab=i,t.fn.sppbtab.Constructor=e,t.fn.sppbtab.noConflict=function(){return t.fn.sppbtab=n,this},t(document).ready((function(){t(".sppb-tab").each((function(e){var i="sppb-tab"+(e+1),n="sppb-content"+(e+1);t(this).find(">.sppb-nav").children().each((function(e){t(this).find(">a").attr("href","#"+i+"-"+(e+1)),t(this).find(">a").attr("id","#"+n+"-"+(e+1)),t(this).find(">a").attr("aria-controls","#"+i+"-"+(e+1))})),t(this).find(">.sppb-tab-content").children().each((function(e){t(this).attr("id",i+"-"+(e+1)),t(this).attr("aria-labelledby",n+"-"+(e+1))}))}))})),t(document).on("click.sppb.tab.data-api",'[data-toggle="sppb-tab"], [data-toggle="sppb-pill"]',(function(e){e.preventDefault(),i.call(t(this),"show")}))}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("sppbtooltip",t,e)};e.VERSION="3.2.0",e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="sppb-tooltip" role="tooltip"><div class="sppb-tooltip-arrow"></div><div class="sppb-tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),a=s.length;a--;){var o=s[a];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var r="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("sppb."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("sppb."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("sppb."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("sppb."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)},e.prototype.show=function(){var e=t.Event("show.sppb."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,s=this.tip(),a=this.getUID(this.type);this.setContent(),s.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&s.addClass("sppb-fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,l=r.test(o);l&&(o=o.replace(r,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(o).data("sppb."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var p=this.getPosition(),d=s[0].offsetWidth,h=s[0].offsetHeight;if(l){var c=o,u=this.$element.parent(),f=this.getPosition(u);o="bottom"==o&&p.top+p.height+h-f.scroll>f.height?"top":"top"==o&&p.top-f.scroll-h<0?"bottom":"right"==o&&p.right+d>f.width?"left":"left"==o&&p.left-d<f.left?"right":o,s.removeClass(c).addClass(o)}var m=this.getCalculatedOffset(o,p,d,h);this.applyPlacement(m,o);var v=function(){n.$element.trigger("shown.sppb."+n.type),n.hoverState=null};t.support.transition&&this.$tip.hasClass("sppb-")?s.one("bsTransitionEnd",v).emulateTransitionEnd(150):v()}},e.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,a=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),r=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(r)&&(r=0),e.top=e.top+o,e.left=e.left+r,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,p=n[0].offsetHeight;"top"==i&&p!=a&&(e.top=e.top+a-p);var d=this.getViewportAdjustedDelta(i,e,l,p);d.left?e.left+=d.left:e.top+=d.top;var h=d.left?2*d.left-s+l:2*d.top-a+p,c=d.left?"left":"top",u=d.left?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(h,n[0][u],c)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".sppb-tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("sppb-fade in top bottom left right")},e.prototype.hide=function(){var e=this,i=this.tip(),n=t.Event("hide.sppb."+this.type);function s(){"in"!=e.hoverState&&i.detach(),e.$element.trigger("hidden.sppb."+e.type)}if(this.$element.removeAttr("aria-describedby"),this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&this.$tip.hasClass("sppb-fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(150):s(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:n?t(window).width():e.outerWidth(),height:n?t(window).height():e.outerHeight()},n?{top:0,left:0}:e.offset())},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var a=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-a-o.scroll,l=e.top+a-o.scroll+n;r<o.top?s.top=o.top-r:l>o.top+o.height&&(s.top=o.top+o.height-l)}else{var p=e.left-a,d=e.left+a+i;p<o.left?s.left=o.left-p:d>o.width&&(s.left=o.left+o.width-d)}return s},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".sppb-tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("sppb."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("sppb."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("sppb."+this.type)};var i=t.fn.sppbtooltip;t.fn.sppbtooltip=function(i){return this.each((function(){var n=t(this),s=n.data("sppb.tooltip"),a="object"==typeof i&&i;(s||"destroy"!=i)&&(s||n.data("sppb.tooltip",s=new e(this,a)),"string"==typeof i&&s[i]())}))},t.fn.sppbtooltip.Constructor=e,t.fn.sppbtooltip.noConflict=function(){return t.fn.sppbtooltip=i,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("sppbpopover",t,e)};if(!t.fn.sppbtooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.2.0",e.DEFAULTS=t.extend({},t.fn.sppbtooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="sppb-popover" role="tooltip"><div class="arrow"></div><h3 class="sppb-popover-title"></h3><div class="sppb-popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.sppbtooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".sppb-popover-title")[this.options.html?"html":"text"](e),t.find(".sppb-popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("sppb-fade top bottom left right in"),t.find(".sppb-popover-title").html()||t.find(".sppb-popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.sppbpopover;t.fn.sppbpopover=function(i){return this.each((function(){var n=t(this),s=n.data("sppb.popover"),a="object"==typeof i&&i;(s||"destroy"!=i)&&(s||n.data("sppb.popover",s=new e(this,a)),"string"==typeof i&&s[i]())}))},t.fn.sppbpopover.Constructor=e,t.fn.sppbpopover.noConflict=function(){return t.fn.sppbpopover=i,this}}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(jQuery);var carousel=jQuery(".carousel");carousel&&jQuery(window).ready((function(){"undefined"!=typeof jQuery&&"undefined"!=typeof MooTools&&Element.implement({slide:function(t,e){return this}})})),
/*! WOW - v1.0.1 - 2014-08-15
* Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */
function(){var t,e,i,n=function(t,e){return function(){return t.apply(e,arguments)}},s=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var i,n;for(i in e)n=e[i],null==t[i]&&(t[i]=n);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t}(),i=this.WeakMap||this.MozWeakMap||(i=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,i,n,s;for(e=i=0,n=(s=this.keys).length;n>i;e=++i)if(s[e]===t)return this.values[e]},t.prototype.set=function(t,e){var i,n,s,a;for(i=n=0,s=(a=this.keys).length;s>n;i=++n)if(a[i]===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),this.SPPBWOW=function(){function a(t){null==t&&(t={}),this.scrollCallback=n(this.scrollCallback,this),this.scrollHandler=n(this.scrollHandler,this),this.start=n(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),this.animationNameCache=new i}return a.prototype.defaults={boxClass:"sppb-wow",animateClass:"sppb-animated",offset:0,mobile:!0,live:!0},a.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():document.addEventListener("DOMContentLoaded",this.start),this.finished=[]},a.prototype.start=function(){var e,i,n,s;if(this.stopped=!1,this.boxes=function(){var t,i,n,s;for(s=[],t=0,i=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;i>t;t++)e=n[t],s.push(e);return s}.call(this),this.all=function(){var t,i,n,s;for(s=[],t=0,i=(n=this.boxes).length;i>t;t++)e=n[t],s.push(e);return s}.call(this),this.boxes.length,this.disabled())this.resetStyle();else{for(i=0,n=(s=this.boxes).length;n>i;i++)e=s[i],this.applyStyle(e,!0);window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new t(function(t){return function(e){var i,n,s,a,o;for(o=[],s=0,a=e.length;a>s;s++)n=e[s],o.push(function(){var t,e,s,a;for(a=[],t=0,e=(s=n.addedNodes||[]).length;e>t;t++)i=s[t],a.push(this.doSync(i));return a}.call(t));return o}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},a.prototype.stop=function(){return this.stopped=!0,window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},a.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},a.prototype.doSync=function(t){var e,i,n,a,o;if(!this.stopped){if(null==t&&(t=this.element),1!==t.nodeType)return;for(o=[],i=0,n=(a=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;n>i;i++)e=a[i],s.call(this.all,e)<0?(this.applyStyle(e,!0),this.boxes.push(e),this.all.push(e),o.push(this.scrolled=!0)):o.push(void 0);return o}},a.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass},a.prototype.applyStyle=function(t,e){var i,n,s;return n=t.getAttribute("data-sppb-wow-duration"),i=t.getAttribute("data-sppb-wow-delay"),s=t.getAttribute("data-sppb-wow-iteration"),this.animate(function(a){return function(){return a.customStyle(t,e,n,i,s)}}(this))},a.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},a.prototype.resetStyle=function(){var t,e,i,n,s;for(s=[],e=0,i=(n=this.boxes).length;i>e;e++)t=n[e],s.push(t.setAttribute("style","visibility: visible;"));return s},a.prototype.customStyle=function(t,e,i,n,s){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),n&&this.vendorSet(t.style,{animationDelay:n}),s&&this.vendorSet(t.style,{animationIterationCount:s}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},a.prototype.vendors=["moz","webkit"],a.prototype.vendorSet=function(t,e){var i,n,s,a;for(i in a=[],e)n=e[i],t[""+i]=n,a.push(function(){var e,a,o,r;for(r=[],e=0,a=(o=this.vendors).length;a>e;e++)s=o[e],r.push(t[""+s+i.charAt(0).toUpperCase()+i.substr(1)]=n);return r}.call(this));return a},a.prototype.vendorCSS=function(t,e){var i,n,s,a,o,r;for(i=(n=window.getComputedStyle(t)).getPropertyCSSValue(e),a=0,o=(r=this.vendors).length;o>a;a++)s=r[a],i=i||n.getPropertyCSSValue("-"+s+"-"+e);return i},a.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(i){e=window.getComputedStyle(t).getPropertyValue("animation-name")}return"none"===e?"":e},a.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},a.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},a.prototype.scrollHandler=function(){return this.scrolled=!0},a.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,i,n,s;for(s=[],e=0,i=(n=this.boxes).length;i>e;e++)(t=n[e])&&(this.isVisible(t)?this.show(t):s.push(t));return s}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},a.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},a.prototype.isVisible=function(t){var e,i,n,s,a;return i=t.getAttribute("data-sppb-wow-offset")||this.config.offset,s=(a=window.pageYOffset)+Math.min(this.element.clientHeight,innerHeight)-i,e=(n=this.offsetTop(t))+t.clientHeight,s>=n&&e>=a},a.prototype.util=function(){return null!=this._util?this._util:this._util=new e},a.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},a}()}.call(this),jQuery((function(t){(new SPPBWOW).init()})),function(t){var e,i,n,s={},a=document,o=window,r=a.documentElement,l=t.expando;function p(){var n,l,p,d,h=t(),c=0;if(t.each(s,(function(t,e){var i=e.data.selector,n=e.$element;h=h.add(i?n.find(i):n)})),n=h.length)for(e=e||((d={height:o.innerHeight,width:o.innerWidth}).height||!(l=a.compatMode)&&t.support.boxModel||(d={height:(p="CSS1Compat"===l?r:a.body).clientHeight,width:p.clientWidth}),d),i=i||{top:o.pageYOffset||r.scrollTop||a.body.scrollTop,left:o.pageXOffset||r.scrollLeft||a.body.scrollLeft};c<n;c++)if(t.contains(r,h[c])){var u,f,m,v=t(h[c]),g={height:v.height(),width:v.width()},b=v.offset(),y=v.data("inview");if(!i||!e)return;b.top+g.height>i.top&&b.top<i.top+e.height&&b.left+g.width>i.left&&b.left<i.left+e.width?(m=(u=i.left>b.left?"right":i.left+e.width<b.left+g.width?"left":"both")+"-"+(f=i.top>b.top?"bottom":i.top+e.height<b.top+g.height?"top":"both"),y&&y===m||v.data("inview",m).trigger("inview",[!0,u,f])):y&&v.data("inview",!1).trigger("inview",[!1])}}t.event.special.inview={add:function(e){s[e.guid+"-"+this[l]]={data:e,$element:t(this)},n||t.isEmptyObject(s)||(n=setInterval(p,250))},remove:function(e){try{delete s[e.guid+"-"+this[l]]}catch(t){}t.isEmptyObject(s)&&(clearInterval(n),n=null)}},t(document).bind("scroll resize scrollstop",(function(){e=i=null})),!r.addEventListener&&r.attachEvent&&r.attachEvent("onfocusin",(function(){i=null})),t(document).on("inview",".sppb-progress",(function(e,i,n,s){var a=t(this).find(".sppb-progress-bar");i&&(a.css("width",a.data("width")),t(this).unbind("inview"))})),t.fn.sppbanimateNumbers=function(e,i,n,s){return this.each((function(){var a=t(this),o=parseInt(a.text().replace(/,/g,""));i=void 0===i||i,t({value:o}).animate({value:e},{duration:null==n?1e3:n,easing:null==s?"swing":s,step:function(){a.text(Math.floor(this.value)),i&&a.text(a.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"))},complete:function(){parseInt(a.text())!==e&&(a.text(e),i&&a.text(a.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")))}})}))},t(document).on("inview",".sppb-animated-number",(function(e,i,n,s){var a=t(this);i&&(a.sppbanimateNumbers(a.data("digit"),!1,a.data("duration")),a.unbind("inview"))})),t(document).on("inview",".sppb-pie-chart",(function(e,i,n,s){var a=t(this);if(i){var o={barColor:a.data("barcolor"),trackColor:a.data("trackcolor"),scaleColor:!1,lineWidth:a.data("width"),size:a.data("size"),onStep:function(t,e,i){a.find(".sppb-chart-percent > span").text(Math.round(i)+"%")}};if(a.data("duration")){var r=a.data("duration");o.animate={duration:r,enabled:!0}}a.easyPieChart(o),a.unbind("inview")}}))}(jQuery),jQuery((function(t){function e(e,n){void 0===n&&(n=!1);var s=!1;return e.find(" input[type=text], input[type=email], input[type=radio], input[type=checkbox], textarea, select").each((function(e,a){if(s)return!1;if(n)t(this).on("change keyup",(function(){var e=t(this).val().replace(/\s/g,""),n=t(this).attr("type"),a=t(this).attr("name");""===e||0===e.length?(s=!0,t(this).addClass("sppb-has-field-error")):(s=!1,t(this).removeClass("sppb-has-field-error")),"text"!==n||"captcha_question"===a||"phone"===a||isNaN(e)||s?(s=!1,t(this).removeClass("sppb-has-field-error")):(s=!0,t(this).addClass("sppb-has-field-error")),void 0!==t(this).prop("required")&&e.length>0&&"email"===n&&!s&&(i(e)?(t(this).removeClass("sppb-has-field-error"),s=!1):(t(this).addClass("sppb-has-field-error"),s=!0))}));else{var o=t(this).val().replace(/\s/g,""),r=t(this).attr("type"),l=t(this).attr("name");""!==o&&0!==o.length||(s=!0,t(this).addClass("sppb-has-field-error")),"text"!==r||isNaN(o)||"captcha_question"===l||"phone"===l||s||(s=!0,t(this).addClass("sppb-has-field-error")),void 0!==t(this).prop("required")&&o.length>0&&"email"===t(this).attr("type")&&!s&&(i(o)||(t(this).addClass("sppb-has-field-error"),s=!0))}})),s}function i(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}function n(e){var n=!1;if(void 0!==e.prop("required")){var s=e.parents(".sppb-form-group"),a=e.val().replace(/\s/g,"");e.attr("type"),e.attr("name");if(void 0===s||"undefined"===s.find("span.sppb-form-builder-required"))return!1;if(0===a.length&&e.prop("required")&&(s.find("span.sppb-form-builder-required").show(),n=!0),a.length>0&&e.prop("required")&&(s.find("span.sppb-form-builder-required").hide(),n=!1),"radio"===e.attr("type")&&e.prop("required")){var o=e.attr("name");t('input[name="'+o+'"]').is(":checked")?(s.find("span.sppb-form-builder-required").hide(),n=!1):(s.find("span.sppb-form-builder-required").show(),n=!0)}if("checkbox"===e.attr("type")){s.find("input[type=checkbox]").length;var r=!1;s.find("input[type=checkbox]").each((function(e,i){if(t(this).prop("required")){var n=t(this).attr("name");t('input[name="'+n+'"]').is(":checked")||(r=!0)}if(r)return!1})),r?(s.find("span.sppb-form-builder-required").show(),n=!0):(s.find("span.sppb-form-builder-required").hide(),n=!1)}}return void 0!==e.prop("required")&&a.length>0&&"email"===e.attr("type")&&(i(a)?(s.find("span.sppb-form-builder-required").hide(),n=!1):(s.find("span.sppb-form-builder-required").show(),n=!0)),n}function s(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!1;return e.find(" input[type=text], input[type=email], input[type=radio], input[type=checkbox], textarea, select").each((function(e,a){if(!0===i)t(this).on("change keyup",(function(e){if(s=n(t(this)))return!1}));else if(s=n(t(this)))return!1})),s}e(t(".sppb-ajaxt-contact-form"),!0),t(document).on("submit",".sppb-ajaxt-contact-form",(function(i){i.preventDefault();var n=t(this),s=t(this).serializeArray();if(e(n))return n.find(".sppb-form-validation-error").remove(),n.append('<p class="sppb-form-validation-error"> Please re-check required fields! </p>'),!1;n.find(".sppb-form-validation-error").remove();var a={name:"view_type",value:"page"};if(n.closest(".sp-page-builder").hasClass("mod-sppagebuilder")){a.value="module";var o={name:"module_id",value:n.closest(".sp-page-builder").data("module_id")};s.push(o)}else n.closest(".sp-page-builder").hasClass("sppb-article-page-wrapper")&&(a.value="article");s.push(a);var r={option:"com_sppagebuilder",task:"ajax",addon:"ajax_contact","g-recaptcha-response":n.find("#g-recaptcha-response").val(),data:s};return t.ajax({type:"POST",data:r,beforeSend:function(){n.find(".fa").addClass("fa-spinner fa-spin")},success:function(e){var i=t.parseJSON(e);try{var s=t.parseJSON(i.data),a=s.content,o="json"}catch(t){a=i.data,o="strings"}"json"==o?s.status&&(n.trigger("reset"),void 0===s.gcaptchaType||!s.gcaptchaType.length||"invisible"!=s.gcaptchaType&&"dynamic"!=s.gcaptchaType||((gcaptchaWidgetId=t("#"+s.gcaptchaId).attr("data-recaptcha-widget-id"))?(grecaptcha.reset(gcaptchaWidgetId),"invisible"==s.gcaptchaType&&grecaptcha.execute(gcaptchaWidgetId)):(grecaptcha.reset(),"invisible"==s.gcaptchaType&&grecaptcha.execute()))):n.trigger("reset"),n.find(".fa-spin").removeClass("fa-spinner fa-spin"),n.next(".sppb-ajax-contact-status").html(a).fadeIn().delay(4e3).fadeOut(500)}}),!1})),t(".sppb-addon-form-builder-form").length>0&&(s(t(".sppb-addon-form-builder-form"),!0),t('.sppb-form-builder-range input[type="range"]').on("input change",(function(){var e=t(this),i=e.attr("min"),n=e.attr("max"),s=e.val(),a=(s-i)/(n-i)*100,o=Math.round(50*a/100)-25;e.next(".sppb-form-builder-range-output").css("left","calc("+a+"% - "+o+"px)").text(s)}))),t(document).on("submit",".sppb-addon-form-builder-form",(function(e){e.preventDefault();var i=t(this),n=t(this).serializeArray(),a=s(i),o=i.data("redirect"),r=i.data("redirect-url");if(a)return i.next(".sppb-ajax-contact-status").html('<span class="sppb-text-danger">Please check the required field!</span>').fadeIn().delay(4e3).fadeOut(500),!1;i.find('input[type="checkbox"]:not(:checked)').each((function(e,i){n.push({name:t(i).attr("name"),value:""})}));var l={name:"view_type",value:"page"};if(i.closest(".sp-page-builder").hasClass("mod-sppagebuilder")){l.value="module";var p={name:"module_id",value:i.closest(".sp-page-builder").data("module_id")};n.push(p)}else i.closest(".sp-page-builder").hasClass("sppb-article-page-wrapper")&&(l.value="article");n.push(l);var d={option:"com_sppagebuilder",task:"ajax",addon:"form_builder","g-recaptcha-response":i.find("#g-recaptcha-response").val(),data:n};return t.ajax({type:"POST",data:d,beforeSend:function(){i.find(".fa").addClass("fa-spinner fa-spin")},success:function(e){var n=t.parseJSON(e);try{var a=t.parseJSON(n.data),l=a.content,p="json";void 0!==a.form_validation&&s(i)}catch(t){l=n.data,p="strings"}"json"==p?a.status&&(i.trigger("reset"),void 0===a.gcaptchaType||!a.gcaptchaType.length||"invisible"!=a.gcaptchaType&&"dynamic"!=a.gcaptchaType||(a.gcaptchaId?(gcaptchaWidgetId=t("#"+a.gcaptchaId).attr("data-recaptcha-widget-id"))&&(grecaptcha.reset(gcaptchaWidgetId),"invisible"==a.gcaptchaType&&grecaptcha.execute(gcaptchaWidgetId)):(grecaptcha.reset(),"invisible"==a.gcaptchaType&&grecaptcha.execute()))):i.trigger("reset"),i.find(".fa-spin").removeClass("fa-spinner fa-spin"),i.next(".sppb-ajax-contact-status").html(l).fadeIn().delay(4e3).fadeOut(500),"yes"===o&&setTimeout((function(){window.location.href=r}),2500)}}),!1}))})),jQuery((function(t){t(document).on("submit",".sppb-optin-form",(function(e){e.preventDefault();var i=t(this),n=t(this).serializeArray(),s={name:"view_type",value:"page"};if(i.closest(".sp-page-builder").hasClass("mod-sppagebuilder")){s.value="module";var a={name:"module_id",value:i.closest(".sp-page-builder").data("module_id")};n.push(a)}else i.closest(".sp-page-builder").hasClass("sppb-article-page-wrapper")&&(s.value="article");n.push(s);var o={option:"com_sppagebuilder",task:"ajax",addon:"optin_form","g-recaptcha-response":i.find("#g-recaptcha-response").val(),data:n};return t.ajax({type:"POST",data:o,beforeSend:function(){i.find(".fa").addClass("fa-spinner fa-spin")},success:function(e){var n=t.parseJSON(e);if(!n.success)return i.find(".fa-spin").removeClass("fa-spinner fa-spin"),n.message?i.next(".sppb-optin-form-status").html('<p class="sppb-alert sppb-alert-warning">'+n.message+"</p>").fadeIn().delay(4e3).fadeOut(1e3):n.messages&&i.next(".sppb-optin-form-status").html('<p class="sppb-alert sppb-alert-warning">'+n.messages+"</p>").fadeIn().delay(4e3).fadeOut(1e3),!1;var s=t.parseJSON(n.data),a="sppb-alert sppb-alert-warning";if(s.status){a="sppb-alert sppb-alert-success";i.trigger("reset")}i.find(".fa-spin").removeClass("fa-spinner fa-spin"),i.next(".sppb-optin-form-status").html('<p class="'+a+'">'+s.content+"</p>").fadeIn().delay(4e3).fadeOut(1e3)}}),!1}))})),jQuery((function(t){t(document).on("click",".sppb-magnific-popup",(function(e){e.preventDefault();var i=t(this);i.magnificPopup({type:i.data("popup_type"),mainClass:i.data("mainclass")}).magnificPopup("open")}))})),jQuery((function(t){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(t(".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap").on("mouseover",(function(e){t(this).toggleClass("flip")})),t(document).on("mouseenter",".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap",(function(e){t(this).addClass("flip")})),t(document).on("mouseleave",".sppb-addon-sppb-flibox .sppb-flipbox-panel, .threeD-flipbox .threeD-content-wrap",(function(e){t(this).removeClass("flip")}))):(t(document).on("click",".sppb-addon-sppb-flibox.flipon-click .sppb-flipbox-panel, .threeD-flipbox.flipon-click .threeD-content-wrap",(function(e){t(this).toggleClass("flip")})),t(document).on("mouseenter",".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap",(function(){t(this).addClass("flip")})),t(document).on("mouseleave",".sppb-addon-sppb-flibox.flipon-hover .sppb-flipbox-panel, .threeD-flipbox.flipon-hover .threeD-content-wrap",(function(){t(this).removeClass("flip")})))})),jQuery((function(t){new MutationObserver((function(e){e.forEach((function(e){var i=e.addedNodes;null!==i&&t(i).each((function(){t(this).find(".sppb-addon-countdown .sppb-countdown-timer").each((function(){var e=t(this),i=e.data("date")+" "+e.data("time");e.countdown(i,(function(i){t(this).html(i.strftime('<div class="sppb-countdown-days sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%-D</span><span class="sppb-countdown-text">%!D: '+Joomla.JText._("COM_SPPAGEBUILDER_DAY")+","+Joomla.JText._("COM_SPPAGEBUILDER_DAYS")+';</span></div><div class="sppb-countdown-hours sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%H</span><span class="sppb-countdown-text">%!H: '+Joomla.JText._("COM_SPPAGEBUILDER_HOUR")+","+Joomla.JText._("COM_SPPAGEBUILDER_HOURS")+';</span></div><div class="sppb-countdown-minutes sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%M</span><span class="sppb-countdown-text">%!M:'+Joomla.JText._("COM_SPPAGEBUILDER_MINUTE")+","+Joomla.JText._("COM_SPPAGEBUILDER_MINUTES")+';</span></div><div class="sppb-countdown-seconds sppb-col-xs-6 sppb-col-sm-3 sppb-text-center"><span class="sppb-countdown-number">%S</span><span class="sppb-countdown-text">%!S:'+Joomla.JText._("COM_SPPAGEBUILDER_SECOND")+","+Joomla.JText._("COM_SPPAGEBUILDER_SECONDS")+";</span></div>")).on("finish.countdown",(function(){t(this).html('<div class="sppb-countdown-finishedtext-wrap sppb-col-xs-12 sppb-col-sm-12 sppb-text-center"><h3 class="sppb-countdown-finishedtext">'+e.data("finish-text")+"</h3></div>")}))}))}))}))}))})).observe(document.body,{childList:!0,subtree:!0})})),function(t){var e=function(t){this.$heading=t.heading,this.type=void 0===t.type?"word":t.type,this.animationDelay=2500,this.barAnimationDelay=3800,this.barWaiting=this.barAnimationDelay-3e3,this.lettersDelay=50,this.typeLettersDelay=150,this.selectionDuration=500,this.typeAnimationDelay=this.selectionDuration+800,this.revealDuration=600,this.revealAnimationDelay=1500,this.interval=0,this.init()};e.prototype.init=function(){var t=this.$heading.parent().find(".letters");this.singleLetters(t.find(".animated-text")),this.animateHeadline(this.$heading)},e.prototype.singleLetters=function(e){e.each((function(){var e=t(this),n=e.text().split(""),s=e.hasClass("is-visible");for(i in n)e.parents(".animation-wave").length>0&&(n[i]="<em>"+n[i]+"</em>"),n[i]=s?'<i class="in">'+n[i]+"</i>":"<i>"+n[i]+"</i>";var a=n.join("");e.html(a).css("opacity",1)}))},e.prototype.animateHeadline=function(e){var i=this.animationDelay,n=this;e.each((function(){var e=t(this);if(e.hasClass("loading-bar"))i=n.barAnimationDelay,setTimeout((function(){e.find(".animated-text-words-wrapper").addClass("is-loading")}),n.barWaiting);else if(e.hasClass("text-clip")){var s=e.find(".animated-text-words-wrapper"),a=s.width()+10;s.css("width",a)}else if(!e.hasClass("type")){var o=e.find(".animated-text-words-wrapper .animated-text.is-visible");n.setParentClassWidth(o,delay=!1)}setTimeout((function(){n.hideWord(e.find("span.is-visible").eq(0))}),i)}))},e.prototype.hideWord=function(t){var e=this.takeNext(t),i=this;if(t.parents(".animated-heading-text").hasClass("type")){var n=t.parent(".animated-text-words-wrapper");n.addClass("selected").removeClass("waiting"),setTimeout((function(){n.removeClass("selected"),t.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out")}),i.selectionDuration),setTimeout((function(){i.showWord(e,i.typeLettersDelay)}),i.typeAnimationDelay)}else if(t.parents(".animated-heading-text").hasClass("letters")){var s=t.children("i").length>=e.children("i").length;i.hideLetter(t.find("i").eq(0),t,s,i.lettersDelay),i.showLetter(e.find("i").eq(0),e,s,i.lettersDelay),i.setParentClassWidth(e)}else t.parents(".animated-heading-text").hasClass("text-clip")?t.parents(".animated-text-words-wrapper").animate({width:"2px"},i.revealDuration,(function(){i.switchWord(t,e),i.showWord(e)})):t.parents(".animated-heading-text").hasClass("loading-bar")?(t.parents(".animated-text-words-wrapper").removeClass("is-loading"),this.switchWord(t,e),setTimeout((function(){i.hideWord(e)}),i.barAnimationDelay),setTimeout((function(){t.parents(".animated-text-words-wrapper").addClass("is-loading")}),i.barWaiting),this.setParentClassWidth(e)):(this.switchWord(t,e),setTimeout((function(){i.hideWord(e)}),i.animationDelay),this.setParentClassWidth(e))},e.prototype.showWord=function(t,e){var i=this;t.parents(".animated-heading-text").hasClass("type")?(i.showLetter(t.find("i").eq(0),t,!1,e),t.addClass("is-visible").removeClass("is-hidden")):t.parents(".animated-heading-text").hasClass("text-clip")&&t.parents(".animated-text-words-wrapper").animate({width:t.width()+10},i.revealDuration,(function(){setTimeout((function(){i.hideWord(t)}),i.revealAnimationDelay)}))},e.prototype.hideLetter=function(e,i,n,s){e.removeClass("in").addClass("out");var a=this;if(e.is(":last-child")?n&&setTimeout((function(){a.hideWord(a.takeNext(i))}),a.animationDelay):setTimeout((function(){a.hideLetter(e.next(),i,n,s)}),s),e.is(":last-child")&&t("html").hasClass("no-csstransitions")){var o=a.takeNext(i);a.switchWord(i,o)}},e.prototype.showLetter=function(t,e,i,n){t.addClass("in").removeClass("out");var s=this;t.is(":last-child")?(e.parents(".animated-heading-text").hasClass("type")&&setTimeout((function(){e.parents(".animated-text-words-wrapper").addClass("waiting")}),200),i||setTimeout((function(){s.hideWord(e)}),s.animationDelay)):setTimeout((function(){s.showLetter(t.next(),e,i,n)}),n)},e.prototype.takeNext=function(t){return t.is(":last-child")?t.parent().children().eq(0):t.next()},e.prototype.takePrev=function(t){return t.is(":first-child")?t.parent().children().last():t.prev()},e.prototype.switchWord=function(t,e){t.removeClass("is-visible").addClass("is-hidden"),e.removeClass("is-hidden").addClass("is-visible")},e.prototype.setParentClassWidth=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.parents(".animated-text-words-wrapper"),n=t.width(),s=e?this.revealDuration/2:0;this.interval>0&&(clearInterval(this.interval),this.interval=0);var a=this;setTimeout((function(){i.css({"transition-function":"ease",transitionDuration:a.revealDuration+"ms",transitionProperty:"width",width:n+"px"})}),s)},t(document).ready((function(){new e({heading:t(".animated-heading-text")});new MutationObserver((function(i){i.forEach((function(i){var n=i.addedNodes;null!==n&&t(n).each((function(){t(this).find(".animated-heading-text").each((function(){new e({heading:t(this)})}))}))}))})).observe(document.body,{childList:!0,subtree:!0})}))}(jQuery),function(t){function e(){if("undefined"==typeof stickyParent&&(stickyParent=t('[data-sticky-it="true"]').parents(".sppb-section ")),"undefined"!=typeof stickyParent&&0!=stickyParent.length){var e=stickyParent.offset();stickyParentWrap=stickyParent.parents(".sppb-sticky-wrap"),stickyParentWrap.hasClass("sppb-sticky-wrap")&&(e=stickyParentWrap.offset()),window.scrollY>=e.top&&!stickyParent.hasClass("sppb-sticky-it")?(stickyParent.wrap('<div class="sppb-sticky-wrap" style="height:'+stickyParent.outerHeight()+'px;"></div>'),stickyParent.addClass("sppb-sticky-it")):window.scrollY<e.top&&stickyParent.hasClass("sppb-sticky-it")&&(stickyParent.removeClass("sppb-sticky-it"),stickyParent.unwrap())}}window.sppbVideoBackgroundResize=function(t){t.find(".sppb-youtube-video-bg").removeClass("hidden");var e=t.innerWidth(),i=t.innerHeight();iframeW=e,iframeH=e*(9/16),marginTop=-Math.round((iframeH-i)/2),marginLeft=-Math.round((iframeW-e)/2),e/i<16/9&&(iframeW=i*(16/9),iframeH=i,marginLeft=-Math.round((iframeW-e)/2),marginTop=-Math.round((iframeH-i)/2)),t.find(".sppb-youtube-video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})},t(window).on("load resize",(function(){t(".sppb-row-have-ext-bg").each((function(){sppbVideoBackgroundResize(t(this))}))})),t(document).ready((function(){void 0!==jQuery.fn.parallax&&t('[data-sppb-parallax="on"]').each((function(){t(this).parallax()}));var e=document.getElementsByClassName("section-bg-video");if(e.volume=0,t(window).width()<767){for(var i=0;i<e.length;i++);t(document).on("touchend touchcancel",(function(){!function(){for(var t=0;t<e.length;t++)e[t].paused&&e[t].play()}()}))}var n=t(".sppb-positioned-addon");n.length>0&&n.each((function(){var e=t("#section-id-"+t(this).data("rowid")),i=t(this).data("zindex"),n=t("#column-wrap-id-"+t(this).data("colid")).find(".sppb-column"),s=t(this).data("col-zindex");e.css({zIndex:i}),n.css({zIndex:s})}))})),t(document).on("click",'[data-scroll-to="true"], .sppb-menu-scroll',(function(e){e.preventDefault();var i=t(this).attr("href"),n=t(this).parents(".sppb-link-list-wrap"),s=t(this).parents(".sppb-link-list-wrap").data("offset");(s=void 0===s||""===s?0:parseInt(s))<0?s=Math.abs(s):s*=-1,n.find(".sppb-active").removeClass("sppb-active"),t(this).parent().addClass("sppb-active"),t("html, body").animate({scrollTop:t(i).offset().top+s},600)})),t(document).on("load",e),t(window).on("scroll resize",e),t(document).on("click",".sppb-responsive-bars",(function(){t(this).toggleClass("open"),t(this).next().toggleClass("open")})),jQuery(window).on("load",(function(){"use strict";new MutationObserver((function(t){t.forEach((function(t){var e=t.addedNodes;null!==e&&jQuery(e).each((function(){jQuery(this).find(".sppb-article-scroller-wrap").each((function(){var t=jQuery(this).data("articles"),e=jQuery(this).data("move"),i=jQuery(this).data("speed");jQuery(".sppb-article-scroller-wrap").bxSlider({minSlides:t,mode:"vertical",speed:i,pager:!1,controls:!1,auto:!0,moveSlides:e,adaptiveHeight:!0,touchEnabled:!1})}))}))}))})).observe(document.body,{childList:!0,subtree:!0});new MutationObserver((function(t){t.forEach((function(t){var e=t.addedNodes;null!==e&&jQuery(e).each((function(){jQuery(this).find(".sppb-articles-carousel-wrap").each((function(){var t=jQuery(this).data("articles"),e=jQuery(this).data("speed"),i=jQuery(this).data("autoplay"),n=jQuery(this).data("drag"),s=jQuery(this).data("arrow");jQuery((function(){jQuery(".sppb-articles-carousel-wrap").bxSlider({mode:"horizontal",slideSelector:"div.sppb-articles-carousel-column",minSlides:t,maxSlides:t,moveSlides:t,slideWidth:1140,pager:!0,controls:s,nextText:"<i class='fa fa-angle-right' aria-hidden='true'></i>",prevText:"<i class='fa fa-angle-left' aria-hidden='true'></i>",speed:e,auto:i,autoHover:!0,touchEnabled:n,autoStart:!0})}))}))}))}))})).observe(document.body,{childList:!0,subtree:!0});new MutationObserver((function(t){t.forEach((function(t){var e=t.addedNodes;null!==e&&jQuery(e).each((function(){jQuery(this).find(".sppb-addon-articles-ticker").each((function(){var t=jQuery(this).parent("div").attr("id"),e=jQuery(this).data("speed");jQuery("#"+t+" .sppb-articles-ticker-content").bxSlider({minSlides:1,maxSlides:1,mode:"vertical",speed:e,pager:!1,controls:!1,auto:!0,adaptiveHeight:!0,autoHover:!0,touchEnabled:!1})}))}))}))})).observe(document.body,{childList:!0,subtree:!0})}))}(jQuery),function(t){t.fn.basictable=function(e){var i=function(e,i){var s=[];if(i.tableWrap&&e.wrap('<div class="bt-wrapper"></div>'),i.header){var a="";a=e.find("thead tr th").length?"thead th":e.find("tbody tr th").length?"tbody tr th":e.find("th").length?"tr:first th":"tr:first td",t.each(e.find(a),(function(){var e=t(this),i=parseInt(e.attr("colspan"),10)||1,n=e.closest("tr").index();s[n]||(s[n]=[]);for(var a=0;a<i;a++)s[n].push(e)}))}t.each(e.find("tbody tr"),(function(){n(t(this),s,i)})),t.each(e.find("tfoot tr"),(function(){n(t(this),s,i)}))},n=function(e,i,n){e.children().each((function(){var e=t(this);if(""!==e.html()&&"&nbsp;"!==e.html()||n.showEmptyCells){for(var s=e.index(),a="",o=0;o<i.length;o++){0!=o&&(a+=": ");var r=i[o][s],l=r.find("div");l.length>0?a+=(r=t(l[l.length-1])).text():a+=r.text()}e.attr("data-th",a.trim()),n.contentWrap&&!e.children().hasClass("bt-content")&&e.wrapInner('<span class="bt-content" />')}else e.addClass("bt-hide")}))},s=function(e,i){i.forceResponsive?null!==i.breakpoint&&t(window).width()<=i.breakpoint||null!==i.containerBreakpoint&&e.parent().width()<=i.containerBreakpoint?a(e,i):o(e,i):e.removeClass("bt").outerWidth()>e.parent().width()?a(e,i):o(e,i)},a=function(t,e){t.addClass("bt"),e.header||t.addClass("bt--no-header"),e.tableWrap&&t.parent(".bt-wrapper").addClass("active")},o=function(t,e){t.removeClass("bt bt--no-header"),e.tableWrap&&t.parent(".bt-wrapper").removeClass("active")},r=function(e,i){e.removeClass("bt bt--no-header"),e.find("td").removeAttr("data-th"),i.tableWrap&&e.unwrap(),i.contentWrap&&function(e){t.each(e.find("td"),(function(){var e=t(this),i=e.children(".bt-content").html();e.html(i)}))}(e),e.removeData("basictable")};this.each((function(){var n=t(this);if(0===n.length||n.data("basictable")){if(n.data("basictable")){var l=n.data("basictable");"destroy"===e?r(n,l):"restart"===e?(r(n,l),n.data("basictable",l),i(n,l),s(n,l)):"start"===e?a(n,l):"stop"===e?o(n,l):s(n,l)}return!1}var p=t.extend({},t.fn.basictable.defaults,e),d={breakpoint:p.breakpoint,containerBreakpoint:p.containerBreakpoint,contentWrap:p.contentWrap,forceResponsive:p.forceResponsive,noResize:p.noResize,tableWrap:p.tableWrap,showEmptyCells:p.showEmptyCells,header:p.header};null===d.breakpoint&&null===d.containerBreakpoint&&(d.breakpoint=568),n.data("basictable",d),i(n,n.data("basictable")),d.noResize||(s(n,n.data("basictable")),t(window).bind("resize.basictable",(function(){!function(t){t.data("basictable")&&s(t,t.data("basictable"))}(n)})))}))},t.fn.basictable.defaults={breakpoint:null,containerBreakpoint:null,contentWrap:!0,forceResponsive:!0,noResize:!1,tableWrap:!1,showEmptyCells:!1,header:!0},t.fn.addSortWidget=function(e){e=t.extend({},{sort_asc:"sort-asc",sort_desc:"sort-desc",no_sort:"no-sort"},e);var i=t(this),n=!0;return t("th",i).each((function(s){t("<div>").addClass("sppb-table-addon-sortable").attr("data-content",e.no_sort).on("click",(function(){t(".sppb-table-addon-sortable",i).attr("data-content",e.no_sort),t(this).attr("data-content",n?e.sort_desc:e.sort_asc),n=!n;var a=t("tr",i).not(":has(th)").get();a.sort((function(e,i){var a=t("td:eq("+s+")",e).text(),o=t("td:eq("+s+")",i).text();return isNaN(a)||isNaN(o)?n?a.localeCompare(o):o.localeCompare(a):n?a-o:o-a}));for(var o=i.has("tbody")?"tbody":"",r=0;r<a.length;r++)t(o,i).append(a[r])})).appendTo(this)})),i},t.fn.pageMe=function(e){var i=t.extend({perPage:10,showPrevNext:!1,nextText:"Next",prevText:"Prev",hidePageNumbers:!1},e),n=this.find("tbody"),s=i.perPage,a=this.hasClass("sppb-no-table-header"),o=n.children(),r=t(".pager");void 0!==i.childSelector&&(o=n.find(i.childSelector)),void 0!==i.pagerSelector&&this.next().length&&(r=this.next().find(i.pagerSelector));var l=o.size(),p=Math.ceil(l/s);this.next().length&&this.next().find(".sppb-table-total-reg").html("Total Entries: "+l),r.data("curr",0),i.showPrevNext&&t('<li class="sppb-page-item"><a href="#" class="sppb-table-prev-link sppb-page-link" title="'+i.prevText+'"><i aria-hidden="true" class="fa fa-angle-left"></i></a></li>').appendTo(r);for(var d=0;p>d&&0==i.hidePageNumbers;)t('<li class="sppb-page-item"><a href="#" class="sppb-table-paginate-link sppb-page-link">'+(d+1)+"</a></li>").appendTo(r),d++;function h(t){var e=t*s,i=e+s;o.css("display","none").slice(e,i).show(),t>=1?r.find(".sppb-table-prev-link").show():r.find(".sppb-table-prev-link").hide(),t<p-1?r.find(".sppb-table-next-link").show():r.find(".sppb-table-next-link").hide(),r.data("curr",t),r.children().removeClass("active"),r.children().eq(t+1).addClass("active")}i.showPrevNext&&t('<li class="sppb-page-item"><a href="#" class="sppb-table-next-link sppb-page-link"  title="'+i.nextText+'"><i aria-hidden="true" class="fa fa-angle-right"></i></a></li>').appendTo(r),r.find(".sppb-table-prev-link").hide(),p<=1&&r.find(".sppb-table-next-link").hide(),r.children().eq(1).addClass("active"),o.hide(),o.slice(0,s).show(),r.find("li .sppb-table-paginate-link").click((function(){return h(t(this).html().valueOf()-1),a&&n.find("tr:first-child").show(),!1})),r.find("li .sppb-table-prev-link").click((function(){return h(parseInt(r.data("curr"))-1),a&&n.find("tr:first-child").show(),a&&n.find("tr:first-child").show(),!1})),r.find("li .sppb-table-next-link").click((function(){return goToPage=parseInt(r.data("curr"))+1,h(goToPage),a&&n.find("tr:first-child").show(),a&&n.find("tr:first-child").show(),!1}))},t(document).ready((function(){t(".sppb-addon-table-main").length>0&&t(".sppb-addon-table-main").each((function(e){var i=t(this).data("responsive"),n=!i;t(this).basictable({showEmptyCells:!1,forceResponsive:i,noResize:n});var s=t(this).data("searchable"),a=t(this).data("sortable"),o=t(this).data("search-limit");null!==o&&void 0!==typeof o&&(o=(o=String(o)).split(",").map((function(t){return t-1})).join(""));var r=this,l=t(r).parent().find(".sppb-pagination"),p=t(this).data("pagination-item"),d=t(r).hasClass("sppb-no-table-header");if(s){var h=t(this).parent().find("input");t(h).keyup((function(){!function(t,e,i){if(void 0===i&&(i="0"),0!=e.length&&/^[0-9]*$/.test(i))for(var n=0;n<e.length;n++){for(var s="false",a=0;a<i.length;a++)if(e.eq(n).children().length>i[a]&&-1!=e.eq(n).children().eq(i[a]).text().toLowerCase().indexOf(t)){s="success";break}"success"==s?e.eq(n).addClass("sppb-table-addon-item-search").show():e.eq(n).removeClass("sppb-table-addon-item-search").hide()}}(t(h).val().toLowerCase(),t(r).find("tbody tr"),o),d&&t(r).find("tr:first-child").show(),l.length>0&&(l.html(""),setTimeout((function(){t(r).pageMe({pagerSelector:".sppb-pagination",prevText:"Prev",nextText:"Next",childSelector:".sppb-table-addon-item-search",showPrevNext:!0,hidePageNumbers:!1,perPage:p})})))}))}a&&t(r).addSortWidget(),l.length>0&&t(this).pageMe({pagerSelector:".sppb-pagination",prevText:"Prev",nextText:"Next",showPrevNext:!0,hidePageNumbers:!1,perPage:p})}));new MutationObserver((function(e){e.forEach((function(e){var i=e.addedNodes;null!==i&&jQuery(i).each((function(){jQuery(this).find(".sppb-addon-table-main").each((function(){var e=t(this).data("responsive"),i=!e;t(this).basictable({showEmptyCells:!1,forceResponsive:e,noResize:i});t(this).data("sortable")&&t(this).addSortWidget();var n=t(this).parent().find(".sppb-pagination"),s=t(this).data("pagination-item");n.length>0&&t(this).pageMe({pagerSelector:".sppb-pagination",prevText:"Prev",nextText:"Next",showPrevNext:!0,hidePageNumbers:!1,perPage:s})}))}))}))})).observe(document.body,{childList:!0,subtree:!0})}))}(jQuery),window.addEventListener("DOMContentLoaded",(function(){var t=document.querySelectorAll(".sppb-element-lazy");function e(t){for(var e in t.children){"string"==typeof(e=t.children[e]).tagName&&"SOURCE"===e.tagName&&(e.src=e.dataset.large)}t.load()}function i(t,i){t.forEach((function(t){var n=t.target,s=n.querySelector(".section-bg-video"),a=document.querySelector(".sppb-youtube-iframe");t.intersectionRatio&&("IMG"!==n.tagName&&"IFRAME"!==n.tagName||(n.src=n.dataset.large),n.classList.contains("sppb-element-lazy")&&n.classList.add("sppb-element-loaded"),"VIDEO"===n.tagName&&e(n),null!==s&&e(s),a&&(a.src=a.dataset.src),i.unobserve(n))}))}if(t.length>0){!function(){if("IntersectionObserver"in window){var e=new IntersectionObserver(i,{root:null,rootMargin:"0px",threshold:.1});t.forEach((function(t){e.observe(t)}))}else t.forEach((function(t){t.src=t.dataset.src,t.classList.contains("sppb-element-lazy")&&t.classList.add("sppb-element-loaded")}))}()}}));var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}!function(t){"use strict";function e(t){this.actions=t,this.actionProperty=["move","rotate","scale","skew","opacity","blur"],this.actionSortList={}}e.prototype.bindCustomAnimation=function(){var t=this;this.actionProperty.map((function(e){t.actionSortList[e]=t.actions.filter((function(t){return t.name===e}))}))},e.prototype.getCustomAnimationActionByName=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e)return void 0!==this.actionSortList[t]?this.actionSortList[t]:[];var i={from:null,to:null},n=void 0!==this.actionSortList[t]?this.actionSortList[t]:[];if(0===n.length)return i;var s=!1;return n.map((function(t,a){e<parseInt(t.keyframe)&&null===i.to&&(void 0!==i.fixed&&delete i.fixed,t.toKF=0,i.to=t,void 0!==n[a-1]&&(n[a-1].scroll=0,i.from=n[a-1]),s=!0),a===n.length-1&&!1===s&&(i.fixed=!0,i.to=t,void 0!==n[a-1]&&(n[a-1].scroll=0,i.from=n[a-1]))})),i},e.prototype.getTAxis=function(t,e,i,n){var s=n.toKF,a=n.fromKF;return t-(t-e)/s*(0===a?i:i-a)},e.prototype.getMoveTransform=function(t,e,i){var n=e.to.keyframe,s=e.from.keyframe,a={toKF:isNaN(n)?100:Math.abs(s-n),fromKF:s,totalKF:n},o=e.from.x,r=e.to.x,l=e.from.y,p=e.to.y,d=e.from.z,h=e.to.z;return e.goal.x=this.getTAxis(o,r,i,a),e.goal.y=this.getTAxis(l,p,i,a),e.goal.z=this.getTAxis(d,h,i,a),e},e.prototype.getSkew=function(t,e,i){var n=e.to.keyframe,s=e.from.keyframe,a={toKF:isNaN(n)?100:Math.abs(s-n),fromKF:s,totalKF:n},o=e.from.x,r=e.to.x,l=e.from.y,p=e.to.y;return e.goal.x=this.getTAxis(o,r,i,a),e.goal.y=this.getTAxis(l,p,i,a),e},e.prototype.getOpacity=function(t,e,i){var n=e.to.keyframe,s=e.from.keyframe,a={toKF:isNaN(n)?100:Math.abs(s-n),fromKF:s,totalKF:n},o=e.from.value,r=e.to.value;return e.goal.value=this.getTAxis(o,r,i,a),e};var i=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,t),this.width=null,this.height=null,this.clientWidth=null,this.clientHeight=null,this.left=null,this.top=null,this.gammazero=null,this.betazero=null,this.lastgammazero=null,this.lastbetazero=null,this.transitionTimeout=null,this.updateCall=null,this.event=null,this.updateBind=this.update.bind(this),this.resetBind=this.reset.bind(this),this.element=e,this.settings=this.extendSettings(i),this.reverse=this.settings.reverse?-1:1,this.glare=t.isSettingTrue(this.settings.glare),this.glarePrerender=t.isSettingTrue(this.settings["glare-prerender"]),this.fullPageListening=t.isSettingTrue(this.settings["full-page-listening"]),this.gyroscope=t.isSettingTrue(this.settings.gyroscope),this.gyroscopeSamples=this.settings.gyroscopeSamples,this.elementListener=this.getElementListener(),this.glare&&this.prepareGlare(),this.fullPageListening&&this.updateClientSize(),this.addEventListeners(),this.updateInitialPosition()}return _createClass(t,[{key:"getElementListener",value:function(){return this.element}},{key:"addEventListeners",value:function(){this.onMouseEnterBind=this.onMouseEnter.bind(this),this.onMouseMoveBind=this.onMouseMove.bind(this),this.onMouseLeaveBind=this.onMouseLeave.bind(this),this.onWindowResizeBind=this.onWindowResize.bind(this),this.onDeviceOrientationBind=this.onDeviceOrientation.bind(this),this.elementListener.addEventListener("mouseenter",this.onMouseEnterBind),this.elementListener.addEventListener("mouseleave",this.onMouseLeaveBind),this.elementListener.addEventListener("mousemove",this.onMouseMoveBind),(this.glare||this.fullPageListening)&&window.addEventListener("resize",this.onWindowResizeBind),this.gyroscope&&window.addEventListener("deviceorientation",this.onDeviceOrientationBind)}},{key:"removeEventListeners",value:function(){this.elementListener.removeEventListener("mouseenter",this.onMouseEnterBind),this.elementListener.removeEventListener("mouseleave",this.onMouseLeaveBind),this.elementListener.removeEventListener("mousemove",this.onMouseMoveBind),this.gyroscope&&window.removeEventListener("deviceorientation",this.onDeviceOrientationBind),(this.glare||this.fullPageListening)&&window.removeEventListener("resize",this.onWindowResizeBind)}},{key:"destroy",value:function(){clearTimeout(this.transitionTimeout),null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.reset(),this.removeEventListeners(),this.element.vanillaTilt=null,delete this.element.vanillaTilt,this.element=null}},{key:"onDeviceOrientation",value:function(t){if(null!==t.gamma&&null!==t.beta){this.updateElementPosition(),this.gyroscopeSamples>0&&(this.lastgammazero=this.gammazero,this.lastbetazero=this.betazero,null===this.gammazero?(this.gammazero=t.gamma,this.betazero=t.beta):(this.gammazero=(t.gamma+this.lastgammazero)/2,this.betazero=(t.beta+this.lastbetazero)/2),this.gyroscopeSamples-=1);var e=this.settings.gyroscopeMaxAngleX-this.settings.gyroscopeMinAngleX,i=this.settings.gyroscopeMaxAngleY-this.settings.gyroscopeMinAngleY,n=e/this.width,s=i/this.height,a=(t.gamma-(this.settings.gyroscopeMinAngleX+this.gammazero))/n,o=(t.beta-(this.settings.gyroscopeMinAngleY+this.betazero))/s;null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.event={clientX:a+this.left,clientY:o+this.top},this.updateCall=requestAnimationFrame(this.updateBind)}}},{key:"wrapWithParent",value:function(){if(null!==this.element.parentElement&&"sppb-addon-wrapper"===this.element.parentElement.className&&(this.element=this.element.parentElement),"sppb-addon-wrapper"!==this.element.className){var t=document.createElement("div");t.setAttribute("class","sppb-addon-wrapper"),this.element.parentNode.insertBefore(t,this.element),t.appendChild(this.element),this.element=t}}},{key:"unWrapParent",value:function(){if("sppb-addon-wrapper"===this.element.className){var t=this.element.childNodes;if(t.length>0){var e=this.element.parentNode.insertBefore(t[0],this.element);this.element.parentElement.removeChild(this.element),this.element=e}}}},{key:"onMouseEnter",value:function(){this.updateElementPosition(),this.element.style.willChange="transform",this.setTransition()}},{key:"onMouseMove",value:function(t){null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.event=t,this.updateCall=requestAnimationFrame(this.updateBind)}},{key:"onMouseLeave",value:function(){this.setTransition(),this.settings.reset&&requestAnimationFrame(this.resetBind)}},{key:"reset",value:function(){this.event={clientX:this.left+this.width/2,clientY:this.top+this.height/2},null!==this.element.parentElement&&"sppb-addon-wrapper"===this.element.parentElement.className&&(this.element=this.element.parentElement),this.element&&"sppb-addon-wrapper"!==this.element.className||(this.element&&this.element.style&&(this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)"),this.resetGlare())}},{key:"resetGlare",value:function(){this.glare&&(this.glareElement.style.transform="rotate(180deg) translate(-50%, -50%)",this.glareElement.style.opacity="0")}},{key:"updateInitialPosition",value:function(){if(0!==this.settings.startX||0!==this.settings.startY){this.onMouseEnter(),this.fullPageListening?this.event={clientX:(this.settings.startX+this.settings.max)/(2*this.settings.max)*this.clientWidth,clientY:(this.settings.startY+this.settings.max)/(2*this.settings.max)*this.clientHeight}:this.event={clientX:this.left+(this.settings.startX+this.settings.max)/(2*this.settings.max)*this.width,clientY:this.top+(this.settings.startY+this.settings.max)/(2*this.settings.max)*this.height};var t=this.settings.scale;this.settings.scale=1,this.update(),this.settings.scale=t,this.resetGlare()}}},{key:"getValues",value:function(){var t=void 0,e=void 0;return this.fullPageListening?(t=this.event.clientX/this.clientWidth,e=this.event.clientY/this.clientHeight):(t=(this.event.clientX-this.left)/this.width,e=(this.event.clientY-this.top)/this.height),t=Math.min(Math.max(t,0),1),e=Math.min(Math.max(e,0),1),{tiltX:(this.reverse*(this.settings.max-t*this.settings.max*2)).toFixed(2),tiltY:(this.reverse*(e*this.settings.max*2-this.settings.max)).toFixed(2),percentageX:100*t,percentageY:100*e,angle:Math.atan2(this.event.clientX-(this.left+this.width/2),-(this.event.clientY-(this.top+this.height/2)))*(180/Math.PI)}}},{key:"updateElementPosition",value:function(){var t=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=t.left,this.top=t.top}},{key:"update",value:function(){var t=this.getValues();this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:t.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:t.tiltX)+"deg) scale3d("+this.settings.scale+", "+this.settings.scale+", "+this.settings.scale+")",this.glare&&(this.glareElement.style.transform="rotate("+t.angle+"deg) translate(-50%, -50%)",this.glareElement.style.opacity=""+t.percentageY*this.settings["max-glare"]/100),this.element.dispatchEvent(new CustomEvent("tiltChange",{detail:t})),this.updateCall=null}},{key:"prepareGlare",value:function(){if(!this.glarePrerender){var t=document.createElement("div");t.classList.add("js-tilt-glare");var e=document.createElement("div");e.classList.add("js-tilt-glare-inner"),t.appendChild(e),this.element.appendChild(t)}this.glareElementWrapper=this.element.querySelector(".js-tilt-glare"),this.glareElement=this.element.querySelector(".js-tilt-glare-inner"),this.glarePrerender||(Object.assign(this.glareElementWrapper.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}),Object.assign(this.glareElement.style,{position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:2*this.element.offsetWidth+"px",height:2*this.element.offsetWidth+"px",transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}},{key:"updateGlareSize",value:function(){this.glare&&Object.assign(this.glareElement.style,{width:""+2*this.element.offsetWidth,height:""+2*this.element.offsetWidth})}},{key:"updateClientSize",value:function(){this.clientWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.clientHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},{key:"onWindowResize",value:function(){this.updateGlareSize(),this.updateClientSize()}},{key:"setTransition",value:function(){var t=this;clearTimeout(this.transitionTimeout),this.element.style.transition=this.settings.speed+"ms "+this.settings.easing,this.glare&&(this.glareElement.style.transition="opacity "+this.settings.speed+"ms "+this.settings.easing),this.transitionTimeout=setTimeout((function(){t.element.style.transition="",t.glare&&(t.glareElement.style.transition="")}),this.settings.speed)}},{key:"extendSettings",value:function(t){var e={reverse:!1,max:15,startX:0,startY:0,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:1,speed:300,transition:!0,axis:null,glare:!1,"max-glare":1,"glare-prerender":!1,"full-page-listening":!1,"mouse-event-element":null,reset:!0,gyroscope:!0,gyroscopeMinAngleX:-45,gyroscopeMaxAngleX:45,gyroscopeMinAngleY:-45,gyroscopeMaxAngleY:45,gyroscopeSamples:10},i={};for(var n in e)if(n in t)i[n]=t[n];else if(this.element.hasAttribute("data-tilt-"+n)){var s=this.element.getAttribute("data-tilt-"+n);try{i[n]=JSON.parse(s)}catch(t){i[n]=s}}else i[n]=e[n];return i}}],[{key:"isSettingTrue",value:function(t){return""===t||!0===t||1===t}},{key:"init",value:function(e,i){e.vanillaTilt=new t(e,i)}}]),t}(),n=t(window),s=n.width();function a(e){var i=t(window).height(),s=n.scrollTop(),a=e.offset().top,o=e.height();if(a>s+i)return-1;if(a+o<s)return 101;var r=(s+i-a)/((i+o)/100);return r>100?100:r}var o={};function r(e){void 0!==addonInteraction.mouse_movement&&addonInteraction.mouse_movement.map((function(n){var s=t("#sppb-addon-"+n.addonId);if(s.parent().hasClass("sppb-addon-wrapper")||s.wrap('<div class="sppb-addon-wrapper"></div>'),e<768&&!1===n.enable_mobile)return void 0!==o[n.addonId]&&(o[n.addonId].tiltIntance.destroy(),delete o[n.addonId]),!1;if(e>767&&e<991&&!1===n.enable_tablet)return void 0!==o[n.addonId]&&(o[n.addonId].tiltIntance.destroy(),delete o[n.addonId]),!1;if(void 0!==o[n.addonId])return!1;var a=document.getElementById("sppb-addon-"+n.addonId);a=a.parentElement;var r={speed:1e3*parseFloat(n.animation.mouse_tilt_speed),max:parseFloat(n.animation.mouse_tilt_max),reverse:"opposite"===n.animation.mouse_tilt_direction,easing:"cubic-bezier(.03,.98,.52,.99)",scale:1.05,transition:!0,perspective:1e3},l=new i(a,r);o[n.addonId]={tiltIntance:l,enable_mobile:n.enable_mobile,enable_tablet:n.enable_tablet}}))}function l(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var s=p(e,i);s.transitionDuration=".1s",t.css(s)}i>-1&&i<=100&&t.css(p(e,i))}function p(t,i){var n={move:{from:{x:0,y:0,z:0,keyframe:0,f:!1},to:{x:0,y:0,z:0,keyframe:0,f:!1},goal:{x:0,y:0,z:0,keyframe:0}},scale:{from:{x:1,y:1,z:1,keyframe:0},to:{x:1,y:1,z:1,keyframe:0},goal:{x:1,y:1,z:1,keyframe:0}},skew:{from:{x:0,y:0,keyframe:0},to:{x:0,y:0,keyframe:0},goal:{x:0,y:0,keyframe:0}},rotate:{from:{x:0,y:0,z:0,keyframe:0},to:{x:0,y:0,z:0,keyframe:0},goal:{x:0,y:0,z:0,keyframe:0}},opacity:{from:{value:0,keyframe:0},to:{value:0,keyframe:0},goal:{value:1,keyframe:0}},blur:{from:{value:0,keyframe:0},to:{value:0,keyframe:0},goal:{value:0,keyframe:0}}},s=t.animation,a=t.origin,o=new e(s);return o.bindCustomAnimation(),o.actionProperty.map((function(t){var e=o.getCustomAnimationActionByName(t,i);null!==e.from&&(Object.assign(n[t].from,e.from.property),n[t].from.f=!0,n[t].from.keyframe=parseInt(e.from.keyframe),void 0!==n[t].from.x&&(n[t].from.x=""===n[t].from.x?0:parseFloat(n[t].from.x)),void 0!==n[t].from.y&&(n[t].from.y=""===n[t].from.y?0:parseFloat(n[t].from.y)),void 0!==n[t].from.z&&(n[t].from.z=""===n[t].from.z?0:parseFloat(n[t].from.z)),void 0!==n[t].from.value&&(n[t].from.value=""===n[t].from.value?0:parseFloat(n[t].from.value))),null!==e.to&&(Object.assign(n[t].to,e.to.property),void 0!==n[t].to.x&&(n[t].to.x=""===n[t].to.x?0:parseFloat(n[t].to.x),n[t].goal.x=n[t].to.x),void 0!==n[t].to.y&&(n[t].to.y=""===n[t].to.y?0:parseFloat(n[t].to.y),n[t].goal.y=n[t].to.y),void 0!==n[t].to.z&&(n[t].to.z=""===n[t].to.z?0:parseFloat(n[t].to.z),n[t].goal.z=n[t].to.z),void 0!==n[t].to.value&&(n[t].to.value=""===n[t].to.value?0:parseFloat(n[t].to.value),n[t].goal.value=n[t].to.value),n[t].to.keyframe=parseInt(e.to.keyframe),n[t].to.f=!0),!0===n[t].to.f&&!0===n[t].from.f&&void 0===e.fixed&&(n[t]="opacity"===t||"blur"===t?o.getOpacity(t,n[t],i):"skew"===t?o.getSkew(t,n[t],i):o.getMoveTransform(t,n[t],i))})),{willChange:"transform","-webkit-transition-timing-function":"ease",transitionDuration:"0.1s","transform-origin":a.x_offset+" "+a.y_offset,transformStyle:"preserve-3d",filter:"blur("+n.blur.goal.value+"px)","-webkit-filter":"blur("+n.blur.goal.value+"px)",opacity:n.opacity.goal.value,transform:"perspective(1000px) translate3d("+n.move.goal.x+"px, "+n.move.goal.y+"px, "+n.move.goal.z+"px) \n                scale3d("+n.scale.goal.x+", "+n.scale.goal.y+", "+n.scale.goal.z+")\n                rotateX("+n.rotate.goal.x+"deg) rotateY("+n.rotate.goal.y+"deg) rotateZ("+n.rotate.goal.z+"deg) \n                skew("+n.skew.goal.x+"deg, "+n.skew.goal.y+"deg)"}}window.addEventListener("DOMContentLoaded",(function(e){"undefined"!=typeof addonInteraction&&(r(s),function(){var e=addonInteraction.while_scroll_view,i=t(window),n={};t(document).ready((function(){e.map((function(e){if(s<768&&!1===e.enable_mobile)return!1;if(s>767&&s<991&&!1===e.enable_tablet)return!1;var i=t("#sppb-addon-"+e.addonId);i.parent().hasClass("sppb-addon-wrapper")||i.wrap('<div class="sppb-addon-wrapper"></div>'),n[e.addonId]=i,i.addClass("sppb-interaction-hide");var o=a(i.parent("div.sppb-addon-wrapper"));l(i,e,o,!0),setTimeout((function(){i.removeClass("sppb-interaction-hide")}),500)}))})),t(window).on("load",(function(){t(document).on("scroll",(function(){s=i.width(),e.map((function(e){var i=t("#sppb-addon-"+e.addonId);if(s<768&&!1===e.enable_mobile)return i.css({willChange:"transform","-webkit-transition-timing-function":"ease",transitionDuration:"0s","transform-origin":"center center",transformStyle:"preserve-3d",filter:"blur(0px)","-webkit-filter":"blur(0px)",opacity:1,transform:"perspective(1000px) translate3d(0px, 0px, 0px) \n                scale3d(1, 1, 1)\n                rotateX(0deg) rotateY(0deg) rotateZ(0deg) \n                skew(0deg, 0deg)"}),!1;if(s>767&&s<991&&!1===e.enable_tablet)return i.css({willChange:"transform","-webkit-transition-timing-function":"ease",transitionDuration:"0s","transform-origin":"center center",transformStyle:"preserve-3d",filter:"blur(0px)","-webkit-filter":"blur(0px)",opacity:1,transform:"perspective(1000px) translate3d(0px, 0px, 0px) \n                scale3d(1, 1, 1)\n                rotateX(0deg) rotateY(0deg) rotateZ(0deg) \n                skew(0deg, 0deg)"}),!1;var n=a(i.parent("div.sppb-addon-wrapper"),t(window));l(i,e,n)}))}))}))}())})),n.resize((function(){"undefined"!=typeof addonInteraction&&r(n.width())}))}(jQuery);


/*===============================
/1/components/com_sppagebuilder/assets/js/js_slider.js
================================================================================*/;
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(t){t.hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),i=document.createDocumentFragment();t.forEach((function(t){var e=t instanceof Node;i.appendChild(e?t:document.createTextNode(String(t)))})),this.appendChild(i)}})})),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),s=1;s<arguments.length;s++){var n=arguments[s];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},writable:!0,configurable:!0}),function(t,i,e,s){function n(i,e){this.element=i,this._name="jsSlider",this.item=null,this.delta=1,this.isAnimating=!1,this.isDragging=!1,this.timer=0,this._timeoutId1=0,this._timeoutId2=0,this._dotControllerTimeId=0,this._lastViewPort=0,this.video=this.videoUtils(),this.videoProps={},this.videoList={youtube:[],vimeo:[],html5:[]},this.player={},this.videoPlaying=!1,this.onMouseOver=!1,this.captionAnimationProperty={direction:"left",from:"100%",to:"0",type:"slide",duration:800,after:0,origin:"50% 50% 0",timing_function:"cubic-bezier(0, 0.46, 0, 0.63)"},this.videoAspectRatio=1.78,this.coordinate={x:0,y:0},this.prevCoordinate={x:0,y:0,diff:0,dragPointer:-1},this._defaults=t.fn.jsSlider.defaults,this.options=t.extend({},this._defaults,e),2!==this.options.nav_text.length&&(console.warn("navtext must be need two control element!"),this.options.nav_text=["<",">"]),this.init()}t.extend(n.prototype,{init:function(){this.buildCache(),this.createHtmlDom(),this.applyBasicStyle(),this.createVideoDom(),this.items>1&&this.bindEvents(),this.triggerOnStart(),this.options.autoplay&&this.startLoop()},triggerOnStart:function(){if(this.updateCaption(),this.options.indicator&&this.animateIndicator("start"),this.options.dot_indicator&&this.options.dots){var t=this.$dotContainer.find("li.active");this.animateDotIndicator(t,"start")}},destroy:function(){this.unbindEvents(),this.$element.removeData()},buildCache:function(){this.$element=t(this.element)},unbindEvents:function(){this.$element.off("."+this._name)},createHtmlDom:function(){if(this.createOuterStage(),0===this.$element.find(".sp-item.active").length&&this.$element.find(".sp-item:first-child").addClass("active"),this.item=this.$element.find(".sp-item.active"),this.options.nav&&this.createNavigationController(),this.options.dots&&this.createDotsController(),this.options.indicator&&this.createIndicator(),this.options.show_number&&this.createSliderNumber(),2===this.$element.find(".sp-item").length){var t=this.$element.find(".sp-item").clone();t.removeClass("active").addClass("sp-clone-item"),this.$outerStage.append(t)}},createOuterStage:function(){this.outerStage=e.createElement("div"),this.outerStage.setAttribute("class","sp-slider-outer-stage");var i=t(this.outerStage);this.$element.find(".sp-item").each((function(t,e){i.append(e)})),this.$element.append(i),this.$outerStage=i},createNavigationController:function(){var i=e.createElement("div");i.setAttribute("class","sp-nav-control"),this.$element.append(i),this.nextBtn=e.createElement("span"),this.nextBtn.setAttribute("class","next-control nav-control"),this.prevBtn=e.createElement("span"),this.prevBtn.setAttribute("class","prev-control nav-control"),i.append(this.nextBtn),i.append(this.prevBtn),this.nextBtn.innerHTML=this.options.nav_text[1],this.prevBtn.innerHTML=this.options.nav_text[0],this.$nextBtn=t(this.nextBtn),this.$prevBtn=t(this.prevBtn)},createDotsController:function(){if(void 0!==this.options.dots_class&&""===this.options.dots_class){var i=e.createElement("div");i.setAttribute("class","sp-dots"),this.$element.append(i);var s=this,n=e.createElement("ul");this.$element.find(".sp-item").each((function(i,o){var a=e.createElement("li");if(a.setAttribute("class","sp-dot-"+i),s.options.dot_indicator){var r=e.createElement("span");r.setAttribute("class","dot-indicator"),a.append(r)}t(o).hasClass("active")&&a.classList.add("active"),n.append(a)})),i.append(n),this.$element.append(i),this.$dotContainer=t(n)}else if(this.$dotContainer=this.$element.find(this.options.dots_class),this.$element.find(".sp-item.active")>0){var o=this.$element.find(".sp-item").index();this.$dotContainer.find("li")[o].addClass("active")}},createIndicator:function(){var i=this,s="circle"===this.options.indicator_type?"circles-indicator":"line-indicator",n=function(){var n=e.createElement("div");n.setAttribute("class","sp-indicator-container"),i.$element.append(n),i.indicator=e.createElement("div"),i.indicator.setAttribute("class","sp-indicator "+s),t(n).append(i.indicator),i.$indicator=t(i.indicator)};""===this.options.indicator_class?"circle"===this.options.indicator_type||n():this.$element.find(this.options.indicator_class).length>0?(this.$indicator=this.$element.find(this.options.indicator_class),this.$indicator.addClass(s)):n()},createSliderNumber:function(){var i=this,s=function(){var s=e.createElement("div");s.setAttribute("class","sp-slider_number"),i.$element.append(s),i.$slider_number=t(s)};""===this.options.slider_number_class?s():this.$element.find(this.options.slider_number_class).length>0?this.$slider_number=this.$element.find(this.options.slider_number_class):s(),this.$slider_number.append('<span class="sp-slider_current_number"> </span>')},updateSliderNumber:function(){if(!0===this.options.show_number){var t=this.$element.find(".sp-item").not(".sp-clone-item").length,i=this.item.index();this.item.hasClass("sp-clone-item")&&(i=i===this.items-1?1:0);var e=this.$slider_number.find(".sp-slider_current_number"),s=i+1>10?i+1:("0"+(i+1)).slice(-2),n=t>10?t:("0"+t).slice(-2);e.html(s+'<span class="sp-slider-current-number-slash">/</span><span class="sp-slider-current-number-right">'+n+"</span>")}},videoUtils:function(){var t={},i=this;return t.getVideoSrc=function(t){var i=t.match(/youtube|youtu\.be/),e=-1!==t.indexOf("vimeo"),s=!1,n=t.split(".").pop();return"mp4"!==n&&"webm"!==n&&"ogg"!==n||(s=!0),{isYouTube:i,isVimeo:e,html5:s,videoType:n}},t.getHtml5Type=function(t){return t.split(".").pop()},t.getYoutubeId=function(t){var i=t.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);return!(!i||11!=i[7].length)&&i[7]},t.hasVideo=function(t){return void 0!==i.player["item_"+t]},t.getPlayerType=function(t){var e="youtube";return"vimeo"===i.player["item_"+t].type&&(e="vimeo"),"html5"===i.player["item_"+t].type&&(e="html5"),e},t.getPlayer=function(t,e){void 0===e&&(e="youtube");var s=i.player["item_"+t];return void 0!==s&&s.type===e?s.player:null},t.uuid=function(){return"xxx-4xxx-yxxx-xxxxx".replace(/[xy]/g,(function(t){var i=16*Math.random()|0;return("x"==t?i:3&i|8).toString(16)}))},t},createVideoDom:function(){var t=this;this.videoList.youtube.length>0&&(i.YT?this.createYoutubeDom(this.videoList.youtube):i.onYouTubeIframeAPIReady=this.createYoutubeDom.bind(this,this.videoList.youtube)),this.videoList.vimeo.length>0&&this.createVimeoDom(this.videoList.vimeo),this.videoList.html5.length>0&&this.videoList.html5.map((function(i){t.createHtml5VideoDom(i)}))},createYoutubeDom:function(t){var i=this;t.map((function(t){i.createYoutubeVideoFrame(t)}))},createVimeoDom:function(t){var i=this;"undefined"==typeof Vimeo?setTimeout((function(){i.createVimeoDom(t)}),10):t.map((function(t){i.createVimeoVideoFrame(t)}))},checkVideoBackground:function(t){var i=t.find("div[data-video_src]");if(i.length>0){var s=i.attr("data-video_src"),n=this.video.getVideoSrc(s);if(n.isYouTube){if(null===e.getElementById("sp-youtube-script")){var o=e.createElement("script");o.setAttribute("id","sp-youtube-script"),o.src="https://www.youtube.com/iframe_api";var a=e.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}this.videoList.youtube.push(t)}if(n.isVimeo){if(null===e.getElementById("sp-vimeo-script")){var r=e.createElement("script");r.setAttribute("id","sp-vimeo-script"),r.src="https://player.vimeo.com/api/player.js";var d=e.getElementsByTagName("script")[0];d.parentNode.insertBefore(r,d)}this.videoList.vimeo.push(t)}n.html5&&this.videoList.html5.push(t)}},applyBasicStyle:function(){this.outerWidth=this.$outerStage.outerWidth();var i=0,e=this.options.speed,s=this.options.animations,n=this;this.$element.find(".sp-item").each((function(){if(i++,n.checkVideoBackground(t(this)),t(this).css({"-webkit-transition-duration":e+"ms"}),"fade"===s&&(t(this).css({opacity:0}),t(this).hasClass("active")&&t(this).css({opacity:1})),"zoomOut"===s&&(t(this).hasClass("active")||t(this).css({"-webkit-transform":"scale3D(.8,.8,.8)"})),"clip"===s&&(t(this).hasClass("active")?t(this).css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(0,0,0)",clip:"rect(auto, "+n.outerWidth+"px, auto, 0px)",zIndex:2,opacity:1}):t(this).css({"-webkit-transition-duration":n.options.speed+"ms","-webkit-transform":"translate3D(0,0,0)",clip:"rect(auto, 0, auto, 0px)",opacity:0,zIndex:1})),"bubble"===s)if(t(this).hasClass("active"))t(this).css({"-webkit-transition-duration":"0s","-webkit-transform":"scale3D(1,1,1)","clip-path":"circle(100% at 50% 50%)",zIndex:2,visibility:"visible",opacity:1});else{var o=Math.floor(50*Math.random())+20,a=Math.floor(40*Math.random())+20;t(this).css({"-webkit-transition-duration":"0s","-webkit-transform":"scale3D(0,0,0)","clip-path":"circle("+n.options.bubble_size+" at "+o+"% "+a+"%)",opacity:0,visibility:"visible",zIndex:1})}})),"3D"!==s&&"3d"!==s||(this.$element.addClass("on-3d-active"),this.add3DHook()),"clip"===s&&this.$element.addClass("sp-clip-slider"),"bubble"===s&&this.$element.addClass("sp-bubble-slider"),"stack"===s&&this.$element.addClass("sp-stack-slider"),"slide"===s&&this.$element.addClass("sp-basic-slider"),"fade"===s&&this.$element.addClass("sp-fade-slider"),this.items=i,this.updateResponsiveView(),this.updateSliderNumber()},add3DHook:function(){var t=this.options.rotate,i=this.$element.find(".sp-item.active");i.css({zIndex:3,"-webkit-transition-duration":"0s","-webkit-transform":"translate3d(0, 0, -200px)"}),i.next(".sp-item").addClass("next-3d").css({zIndex:2,opacity:1,visibility:"visible","-webkit-transition-duration":"0s","-webkit-transform":"translate3d(100%, 0,-400px) rotate3d(0,-1,0,"+t+"deg)"}),this.$element.find(".sp-item:last-child").addClass("prev-3d").css({zIndex:2,opacity:1,visibility:"visible","-webkit-transition-duration":"0s","-webkit-transform":"translate3d(-100%, 0,-400px) rotate3d(0,-1,0,"+-t+"deg)"})},startLoop:function(){var t=this;this.timer=setInterval((function(){!1===t.isAnimating&&t.Next()}),this.options.interval)},stopLoop:function(t){void 0===t&&(t=null),clearInterval(this.timer),this.timer=0},Next:function(){this.isAnimating=!0,-1===this.delta&&(this.delta=1);var t="",i="";"3D"!==this.options.animations&&((t=this.$element.find(".sp-item.active")).addClass("prev-item"),i=t.next(".sp-item").length?t.next(".sp-item").addClass("active next-item"):this.$element.find(".sp-item:first-child").addClass("active next-item")),"3d"!==this.options.animations&&"3D"!==this.options.animations||(t=this.$element.find(".sp-item.active"),i=this.$element.find(".next-3d")),this.item=i,this.updateSliderNumber(),this.updateDotsController(),"3D"!==this.options.animations&&this.updateItemStyle(t,i),"3D"===this.options.animations&&this.update3DItemStyle(t,i)},Prev:function(){this.isAnimating=!0,1===this.delta&&(this.delta=-1);var t="",i="";"3D"!==this.options.animations&&((i=this.$element.find(".sp-item.active")).addClass("prev-item"),t=i.prev(".sp-item").length?i.prev(".sp-item").addClass("active next-item"):this.$element.find(".sp-item:last-child").addClass("active next-item")),"3d"!==this.options.animations&&"3D"!==this.options.animations||(i=this.$element.find(".sp-item.active"),t=this.$element.find(".prev-3d")),this.item=t,this.updateSliderNumber(),this.updateDotsController(),"3D"!==this.options.animations&&this.updateItemStyle(i,t),"3D"===this.options.animations&&this.update3DItemStyle(i,t)},slideFromPosition:function(t,i){var e=this;this.isAnimating=!0;var s="",n="";if("3D"!==this.options.animations&&(s=this.$element.find(".sp-item.active").addClass("prev-item"),n=this.$element.find(".sp-item:nth-child("+t+")").addClass("active next-item")),"3D"===this.options.animations){var o=function(){if(1===i){s=e.$element.find(".sp-item.active"),n=e.$element.find(".next-3d");var o=s.index(),a=Math.abs(o-t);if(2===a)return e.Next(),{v:void 0};for(var r=function(t){setTimeout((function(){1!==t&&(s=e.$element.find(".sp-item.active"),n=e.$element.find(".next-3d")),e.update3DItemStyle(s,n,300)}),300*t)},d=1;d<a;d++)r(d)}if(-1===i){s=e.$element.find(".sp-item.active"),n=e.$element.find(".prev-3d");var l=s.index()+1,c=Math.abs(l-(t-1));if(2===c)return e.Prev(),{v:void 0};var h=function(t){setTimeout((function(){1!==t&&(s=e.$element.find(".sp-item.active"),n=e.$element.find(".prev-3d")),e.update3DItemStyle(s,n,300)}),300*t)};for(d=1;d<c;d++)h(d)}}();if("object"===_typeof(o))return o.v}this.item=n,this.updateSliderNumber(),this.delta=i,"3D"!==this.options.animations&&this.updateItemStyle(s,n)},updateDotsController:function(){var t=this;if(this.options.dots){var i=this.$dotContainer.find("li.active"),e="";i.removeClass("active"),1===this.delta&&(e=i.next("li").length?i.next("li").addClass("active"):this.$dotContainer.find("li:first-child").addClass("active")),-1===this.delta&&(e=i.prev("li").length?i.prev("li").addClass("active"):this.$dotContainer.find("li:last-child").addClass("active")),this.options.dot_indicator&&(this.animateDotIndicator(i,"stop"),this._dotControllerTimeId>0&&(clearTimeout(this._dotControllerTimeId),this._dotControllerTimeId=0),this._dotControllerTimeId=setTimeout((function(){t.animateDotIndicator(e,"start")}),this.options.speed)),e.css({"-webkit-transition":"all 0.5s linear 0s"})}},updateDotsFromPosition:function(t){var i=this,e=this.$dotContainer.find("li.active").removeClass("active"),s=this.$dotContainer.find("li:nth-child("+t+")").addClass("active");this.options.dot_indicator&&(this.animateDotIndicator(e,"stop"),this._dotControllerTimeId>0&&(clearTimeout(this._dotControllerTimeId),this._dotControllerTimeId=0),this._dotControllerTimeId=setTimeout((function(){i.animateDotIndicator(s,"start")}),this.options.speed)),s.css({"-webkit-transition":"all 0.5s linear 0s"})},animateDotIndicator:function(t,i){if(0!==t.find(".dot-indicator").length&&("stop"===i&&t.find(".dot-indicator").removeClass("active").css({"-webkit-transition-duration":"0s"}),"start"===i)){var e=Math.abs(this.options.interval-this.options.speed);t.find(".dot-indicator").addClass("active").css({"-webkit-transition-duration":e+"ms"})}},animateIndicator:function(t){if(this.options.indicator){var i=Math.abs(this.options.interval-this.options.speed);"line"===this.options.indicator_type&&("start"===t&&this.$indicator.css({"-webkit-transition-duration":i+"ms",width:"100%"}),"stop"===t&&this.$indicator.css({"-webkit-transition-duration":"0s",width:"0"})),"circle"===this.options.indicator_type&&"stop"===t&&this.$indicator.removeClass("start")}},update3DItemStyle:function(t,i,e){var s=this;void 0===e&&(e=null);var n=null===e?this.options.speed:e,o=this.options.rotate;if(this.animateIndicator("stop"),-1===this.delta){this.$element.find(".next-3d").removeClass("next-3d").css({opacity:0,visibility:"hidden"});(i.prev(".sp-item").length>0?i.prev(".sp-item"):this.$element.find(".sp-item:last-child")).addClass("prev-3d").css({opacity:1,zIndex:1,visibility:"visible","-webkit-transition-duration":"0s","-webkit-transform":"translate3d(-100%, 0,-400px) rotate3d(0,-1,0,"+-o+"deg)"}),i.addClass("active").removeClass("prev-3d").css({zIndex:3,opacity:1,visibility:"visible","-webkit-transition-duration":n+"ms","-webkit-transform":"translate3d(0, 0,-200px) rotate3d(0,0,0,0deg)"}),t.addClass("next-3d").removeClass("active").css({zIndex:1,opacity:1,visibility:"visible","-webkit-transition-duration":n+"ms","-webkit-transform":"translate3d(100%, 0,-400px) rotate3d(0,-1,0,"+o+"deg)"})}if(1===this.delta){this.$element.find(".prev-3d").removeClass("prev-3d").css({opacity:0,visibility:"hidden"});(i.next(".sp-item").length>0?i.next(".sp-item"):this.$element.find(".sp-item:first-child")).addClass("next-3d").css({opacity:1,visibility:"visible","-webkit-transition-duration":"0s","-webkit-transform":"translate3d(100%, 0,-400px) rotate3d(0,-1,0,"+o+"deg)"}),i.addClass("active").removeClass("next-3d").css({zIndex:3,opacity:1,visibility:"visible","-webkit-transition-duration":n+"ms","-webkit-transform":"translate3d(0, 0,-200px) rotate3d(0,0,0,0deg)"}),t.addClass("prev-3d").removeClass("active").css({zIndex:1,opacity:1,visibility:"visible","-webkit-transition-duration":n+"ms","-webkit-transform":"translate3d(-100%, 0,-400px) rotate3d(0,-1,0,"+-o+"deg)"})}this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){s.isAnimating=!1,s.animateIndicator("start")}),n),this.options.autoplay&&0===this.timer&&this.startLoop(),this.updateCaption()},createIframeMask:function(i,s,n){void 0===n&&(n="youtube");var o=e.createElement("div",{css:{position:"absolute",display:"block",minWidth:"100%"}}),a="sp-video-content-"+s+"-"+this.video.uuid();if("vimeo"===n)o.className="sp-video-container sp-vimeo-video-container",o.id=a,i.append(o);else{o.className="sp-video-container";var r=e.createElement("div");r.id=a,i.append(t(o).append(r))}var d=e.createElement("div");d.className="sp-video-background-mask",i.append(d);var l=e.createElement("div");return l.className="sp-video-control",t(l).append('<span data-type="'+n+'" data-index="'+s+'" class="sp-volumn-control fa fa-volume-off"></span>'),t(d).append(l),a},createYoutubeVideoFrame:function(t){var e=t.find("div[data-video_src]"),s=t.index(),n={active:t.hasClass("active")},o=this.createIframeMask(e,s),a=this.video.getYoutubeId(e.attr("data-video_src"));this.videoProps[s];var r=t.hasClass("active")?1:0,d=new YT.Player(o,{width:"100%",height:"100%",videoId:a,playerVars:{enablejsapi:1,autoplay:r,controls:0,rel:0,modestbranding:0,loop:1,showinfo:0,origin:i.location.origin},events:{onReady:this.onPlayerReady.bind(this,n),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}});return this.player["item_"+s]={player:d,type:"youtube"},this.resizeVideoIframeWithAspectRatio(e),d},onPlayerReady:function(t,i){i.target.mute(),this.videoReady=!0,this.options.autoplay&&this.timer>0&&this.stopLoop("onPlayerReady"),t.active&&(i.target.playVideo(),this.videoPlaying=!0)},onPlayerStateChange:function(t){t.data===YT.PlayerState.ENDED&&(this.options.autoplay&&!1===this.onMouseOver?this.Next():t.target.playVideo())},onPlayerError:function(t){console.warn("get video error",t),this.Next()},createVimeoVideoFrame:function(t){var i=t.find("div[data-video_src]"),e=t.index(),s=t.hasClass("active")?1:0,n=i.attr("data-video_src"),o=this.createIframeMask(i,e,"vimeo"),a=new Vimeo.Player(o,{url:n,title:0,byline:0,loop:s,sidedock:0,muted:1,transparent:1});this.player["item_"+e]={player:a,type:"vimeo"},a.on("bufferstart",function(){this.resizeVideoIframeWithAspectRatio(i)}.bind(this)),s&&(a.play(),a.on("ended",this.vimeoOnPlayEnd.bind(this,a)))},createHtml5VideoDom:function(i){var s=i.find("div[data-video_src]"),n=i.index(),o="sp-video-content-"+n+this.video.uuid(),a=i.hasClass("active"),r=s.attr("data-video_src"),d=e.createElement("div");d.className="sp-video-container sp-html5-video-container";var l=e.createElement("div");l.className="sp-video-background-mask";var c=e.createElement("div");c.className="sp-video-control",t(c).append('<span data-type="html5" data-index="'+n+'" class="sp-volumn-control fa fa-volume-off"></span>'),t(d).append(t(l).append(c));var h=e.createElement("video");h.id=o,h.muted=!0,h.playsinline="playsinline";var m=e.createElement("source");m.src=r,m.type="video/"+this.video.getHtml5Type(r),h.append(m),s.append(t(d).append(h)),this.player["item_"+n]={player:h,type:"html5"},this.resizeVideoIframeWithAspectRatio(s),a&&(h.play(),this.videoPlaying=!0,h.onended=this.html5OnPlayEnd.bind(this,h))},html5OnPlayEnd:function(t,i){this.options.autoplay&&!1===this.onMouseOver?this.Next():(t.play(),t.onended=this.html5OnPlayEnd.bind(this,t))},playVideoAnimation:function(t){var i=this,e=!1,s=t.find("div[data-video_src]");if(s.length>0){var n=t.index();if(this.video.hasVideo(n)){var o=this.video.getPlayerType(n);if("youtube"===o){var a=this.video.getPlayer(n,o);if("function"==typeof a.playVideo){var r=a.getPlayerState();this.resizeVideoIframeWithAspectRatio(s),5===r?(a.seekTo(0),a.playVideo()):a.playVideo(),e=!0}else e=!1}if("vimeo"===o){var d=this.video.getPlayer(n,o);this.resizeVideoIframeWithAspectRatio(s),"function"==typeof d.play?(d.play().then((function(){d.on("ended",i.vimeoOnPlayEnd.bind(i,d))})),d.on("play",(function(t){d.setCurrentTime(0)})),e=!0):e=!1}if("html5"===o){var l=this.video.getPlayer(n,o);l.paused&&l.readyState>0&&setTimeout((function(){l.currentTime=0,l.play(),l.onended=i.html5OnPlayEnd.bind(i,l)}),500),e=!0}this.options.autoplay&&e&&this.stopLoop("playVideoAnimation")}}this.videoPlaying=e},vimeoOnPlayEnd:function(t,i){this.options.autoplay&!1===this.onMouseOver?(this.Next(),t.off("ended")):(t.setCurrentTime(0),t.play(),t.on("ended",this.vimeoOnPlayEnd.bind(this,t)),t.off("ended"))},resizeVideoIframeWithAspectRatio:function(e){var s,n=this.video.getVideoSrc(e.attr("data-video_src")),o=t(i).width(),a=t(i).height(),r={width:this.$outerStage.innerWidth(),height:this.$outerStage.innerHeight()},d=16,l=9;(null!==n.isYouTube||n.isVimeo)&&(s=e.find(".sp-video-container")),n.html5&&(s=e.find(".sp-html5-video-container")),n.isVimeo&&(s.removeAttr("height"),s.removeAttr("width"));var c=d/l;c>r.width/r.height?a=(o=r.width)/c:o=(a=r.height)*c;var h=(r.height-a)/2,m=(r.width-o)/2;s.css({width:o,height:a,top:h,left:m})},resetItemVideoFrame:function(t){var i=t.index();if(this.video.hasVideo(i)){var e=this.video.getPlayerType(i);if("youtube"===e){var s=this.video.getPlayer(i,e);"function"==typeof s.stopVideo&&s.stopVideo()}if("vimeo"===e){var n=this.video.getPlayer(i,e);"function"==typeof n.pause&&n.pause()}if("html5"===e){var o=this.video.getPlayer(i,e);o.paused||o.pause()}}},updateItemStyle:function(t,i){var e=this;if(this.animateIndicator("stop"),this.playVideoAnimation(i),"fade"===this.options.animations&&(t.removeClass("active"),i.css({opacity:1}),this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){t.css({opacity:0}),i.removeClass("next-item"),t.removeClass("prev-item"),e.animateIndicator("start")}),this.options.speed),this.isAnimating=!1),"slide"===this.options.animations){var s=-1===this.prevCoordinate.dragPointer?0:this.prevCoordinate.dragPointer,n=-1===this.delta?"-"+(100-s):100-s,o=-1===this.delta?100:-100;i.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+n+"%,0,0)"}),this._timeoutId1&&(clearTimeout(this._timeoutId1),this._timeoutId1=0),this._timeoutId1=setTimeout((function(){i.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform":"translate3D(0,0,0)"}),t.css({"-webkit-transition-duration":e.options.speed+1500+"ms","-webkit-transform":"translate3D("+o+"%,0,0)"})}),50),this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){var i;e.isAnimating=!1,t.removeClass("active"),e.$element.find(".next-item").removeClass("next-item"),e.$element.find(".prev-item").removeClass("prev-item"),t.css(((i={"-webkit-transition-duration":"1s","-webkit-transform":"translateX(100%)"})["-webkit-transform"]="translate3D(100%,0,0)",i)),e.animateIndicator("start")}),this.options.speed+100)}if("zoomOut"===this.options.animations||"zoomIn"===this.options.animations){var a=this.options.animations;"zoomIn"===a&&(this.delta=-1*this.delta),this._timeoutId1&&(clearTimeout(this._timeoutId1),this._timeoutId1=0),-1===this.delta&&(i.css({"-webkit-transition-duration":"0s","-webkit-transform":"scale3d(1.4,1.4,1.4)",opacity:0}),this._timeoutId1=setTimeout((function(){t.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d(0.8,0.8,0.8) ",opacity:0,zIndex:2}),i.css({"-webkit-transition-duration":e.options.speed+"ms",opacity:1,"-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d(1,1,1)",zIndex:1})}),100)),1===this.delta&&(i.css({"-webkit-transition-duration":"0s","-webkit-transform":"scale3d(0.8,0.8,0.8)"}),this._timeoutId1=setTimeout((function(){t.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d(1.4,1.4,1.4) ",opacity:0,zIndex:1}),i.css({"-webkit-transition-duration":e.options.speed-100+"ms",opacity:1,"-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d(1,1,1)",zIndex:2})}),100)),this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){t.removeClass("active"),i.removeClass("next-item"),t.removeClass("prev-item"),e.isAnimating=!1,e.animateIndicator("start")}),this.options.speed+100)}if("stack"===this.options.animations){this._timeoutId1&&(clearTimeout(this._timeoutId1),this._timeoutId1=0);var r=-1===this.prevCoordinate.dragPointer?0:this.prevCoordinate.dragPointer;if(1===this.delta){var d=100-r,l={tx:d+"%",ty:0,tz:0,sx:1,sy:1,sz:1},c={tx:0,ty:0,tz:0,sx:1,sy:1,sz:1};!0===this.options.vertical_mode&&(l=Object.assign({},l,{tx:0,ty:d+"%",sx:1.2,sy:1.2,sz:1.2}),c=Object.assign({},c,{tx:0,ty:"-"+d+"%",sx:1.2,sy:1.2,sz:1.2})),i.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+l.tx+","+l.ty+","+l.tz+") scale3D("+l.sx+","+l.sy+","+l.sz+")"}),this._timeoutId1=setTimeout((function(){i.css({"-webkit-transition-duration":e.options.speed+"ms",opacity:1,"-webkit-transform":"translate3D(0,0,0) scale3d(1,1,1)",zIndex:2}),t.css({"-webkit-transition-duration":e.options.speed+200+"ms","-webkit-transform":"perspective(1000px) translate3D("+c.tx+","+c.ty+","+c.tz+") scale3d("+c.sx+","+c.sy+","+c.sz+")",opacity:.5,zIndex:1})}),50)}if(-1===this.delta){var h=r-100,m={tx:h+"%",ty:0,tz:0,sx:1,sy:1,sz:1},p={tx:0,ty:0,tz:0,sx:1,sy:1,sz:1};this.options.vertical_mode&&(m=Object.assign({},m,{tx:0,ty:h+"%",sx:1,sy:1,sz:1}),p=Object.assign({},p,{tx:0,ty:-h+"%",sx:1.2,sy:1.2,sz:1.2})),i.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+m.tx+","+m.ty+","+m.tz+") scale3D("+m.sx+","+m.sy+","+m.sz+")"}),this._timeoutId1=setTimeout((function(){i.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform":"translate3D(0,0,0) ",opacity:1,zIndex:2}),t.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform":"translate3D("+p.tx+","+p.ty+","+p.tz+") scale3d("+p.sx+","+p.sy+","+p.sz+")",opacity:.5,zIndex:1})}),50)}this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){t.removeClass("active"),i.removeClass("next-item"),t.removeClass("prev-item"),e.isAnimating=!1,e.animateIndicator("start")}),this.options.speed+100)}if("clip"===this.options.animations){var u=-1===this.prevCoordinate.dragPointer?0:this.prevCoordinate.dragPointer,f=0,v=5;if(-1!==this.prevCoordinate.dragPointer){f=(f=.001*u)>1?1:Math.abs(f);var b=v-Math.abs(u*(v/800));v=b>v?v:b<0?0:b}this._timeoutId1&&(clearTimeout(this._timeoutId1),this._timeoutId1=0),1===this.delta&&(i.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+v+"%,0,0)",clip:"rect(auto, "+this.outerWidth+"px, auto, 0px)",zIndex:2,opacity:f}),this._timeoutId1=setTimeout((function(){t.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform":"translate3D(0,0,0)",clip:"rect(auto, 0px, auto,  0px)",opacity:1,zIndex:3}),i.css({"-webkit-transition-duration":e.options.speed+"ms",opacity:1,"-webkit-transform":"translate3D(0,0,0)"})}),100)),-1===this.delta&&(i.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(-"+v+"%,0,0)",clip:"rect(auto, "+this.outerWidth+"px, auto, 0px)",zIndex:2,opacity:f}),this._timeoutId1=setTimeout((function(){t.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform":"translate3D(0,0,0)",clip:"rect(auto, "+e.outerWidth+"px, auto, "+e.outerWidth+"px)",opacity:1,zIndex:3}),i.css({"-webkit-transition-duration":e.options.speed+"ms",opacity:1,"-webkit-transform":"translate3D(0,0,0)"})}),100)),t.removeClass("active"),this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){i.removeClass("next-item"),t.removeClass("prev-item"),e.isAnimating=!1,e.animateIndicator("start")}),this.options.speed)}if("bubble"===this.options.animations){t.css({zIndex:1}),1===this.delta&&i.css({"-webkit-transition-duration":".25s","-webkit-transform":"scale3D(1,1,1)","-webkit-transition-timing-function":"cubic-bezier(1, 0.26, 0.18, 1.22)",zIndex:2,opacity:1}),-1===this.delta&&i.css({"-webkit-transition-duration":".25s","-webkit-transform":"scale3D(1,1,1)","-webkit-transition-timing-function":"cubic-bezier(1, 0.26, 0.18, 1.22)",zIndex:2,opacity:1}),this._timeoutId1=setTimeout((function(){i.css({"-webkit-transition-duration":e.options.speed+"ms","-webkit-transform":"scale3D(1,1,1)","-webkit-transition-timing-function":"linear",opacity:1,"clip-path":"circle(100% at 50% 50%)"})}),500),this._timeoutId2&&(clearTimeout(this._timeoutId2),this._timeoutId2=0),this._timeoutId2=setTimeout((function(){var s=Math.floor(50*Math.random())+20,n=Math.floor(40*Math.random())+20;t.css({"-webkit-transition-duration":"0s","-webkit-transform":"scale3D(0,0,0)","clip-path":"circle("+e.options.bubble_size+" at "+s+"% "+n+"%)",opacity:1,visibility:"visible",zIndex:1}),t.removeClass("active"),i.removeClass("next-item"),t.removeClass("prev-item"),e.isAnimating=!1,e.animateIndicator("start")}),this.options.speed+500)}this.resetItemVideoFrame(t),this.options.autoplay&&0===this.timer&&!1===this.videoPlaying&&this.startLoop(),this.updateCaption()},hideOtherItemCaptions:function(){var i=this,e=function(e){var s=t(e).find('[data-layer="true"]');s.length>0&&s.each((function(e,s){var n=i.options.speed;t(s).css({transition:"opacity "+n+"ms linear",opacity:0}),setTimeout((function(){t(s).css({visibility:"hidden"})}),i.options.speed)}))};this.item.next(".sp-item").length>0&&this.item.nextAll(".sp-item").each((function(t,i){e(i)}));this.item.prev(".sp-item").length>0&&this.item.prevAll(".sp-item").each((function(t,i){e(i)}))},updateCaption:function(){var i=this.item.find('[data-layer="true"]');if(this.hideOtherItemCaptions(),i.length>0){var e=this,s=this.captionAnimation();i.each((function(i){t(this).css({visibility:"visible"});var n=t(this).attr("data-animation");if(void 0!==n){var o=Object.assign({},e.captionAnimationProperty);void 0!==n&&(n=JSON.parse(n)),(n=Object.assign(o,n)).after=parseInt(n.after),"width"===n.type&&s.width(t(this),n),"text-animate"===n.type&&s.text(t(this),n),"slide"===n.type&&s.slider(t(this),n),"zoom"===n.type&&s.zoom(t(this),n),"rotate"===n.type&&s.rotate(t(this),n),"flip"===n.type&&s.flip(t(this),n)}}))}},captionAnimation:function(){var i={text:function(i,e){var s="0px",n="0px";if("top"===e.direction&&(n="-500px"),"bottom"===e.direction&&(n="500px"),"left"===e.direction&&(s="-500px"),"right"===e.direction&&(s="500px"),i.css({visibility:"visibile",opacity:1}),i.hasClass("sp-letter-trimed"))self=this,i.find("span").each((function(){t(this).css({transform:"translateY("+n+") translateX("+s+")",display:"inline-block",opacity:0})}));else{var o=i.text().trim().split("");i.empty(),t.each(o,(function(t,e){if(" "!==e){var o='<span class="sp-txt'+t+'" style="transform: translateY('+n+") translateX("+s+'); display:inline-block; opacity:0">'+e+"</span>";i.append(o)}else i.append("&nbsp;")})),i.addClass("sp-letter-trimed")}setTimeout((function(){var s=i.find("span");s.each((function(i,n){var o=this,a=(i+1)*(e.duration/s.length)+500;setTimeout((function(){t(o).css({opacity:1,"-webkit-transition-property":"opacity transform",transform:"translateY(0px) translateX(0)","-webkit-transition-duration":e.duration+"ms","-webkit-transition-timing-function":e.timing_function})}),a)}))}),e.after)},width:function(t,i){t.css({width:i.from,"-webkit-transition-duration":"0s",overflow:"hidden"}),setTimeout((function(){t.css({width:i.to,"-webkit-transition-duration":i.duration+"ms","-webkit-transition-timing-function":i.timing_function,"-webkit-transition-property":"width transform"})}),i.after)},slider:function(t,i){"left"===i.direction&&(t.css({opacity:"0","-webkit-transform":"translateX(-"+i.from+")","-webkit-transition-duration":"0s"}),this.sliderVertical(t,i)),"right"===i.direction&&(t.css({opacity:"0","-webkit-transform":"translateX("+i.from+")","-webkit-transition-duration":"0s"}),this.sliderVertical(t,i)),"top"===i.direction&&(t.css({opacity:"0","-webkit-transform":"translateY("+i.from+")","-webkit-transition-duration":"0s"}),this.sliderHorizontal(t,i)),"bottom"===i.direction&&(t.css({opacity:"0","-webkit-transform":"translateY("+i.from+")","-webkit-transition-duration":"0s"}),this.sliderHorizontal(t,i))},sliderVertical:function(t,i){setTimeout((function(){t.css({opacity:"1","-webkit-transition-duration":i.duration+"ms","-webkit-transition-timing-function":i.timing_function,"-webkit-transition-property":"opacity, transform, height, width","-webkit-transition-origin":"50% 50% 0","-webkit-transform":"translateX("+i.to+")"})}),i.after)},sliderHorizontal:function(t,i){setTimeout((function(){t.css({opacity:"1","-webkit-transition-duration":i.duration+"ms","-webkit-transition-timing-function":i.timing_function,"-webkit-transition-property":"opacity, transform, height, width","-webkit-transition-origin":"50% 50% 0","-webkit-transform":"translateY("+i.to+")"})}),i.after)},zoom:function(t,i){"zoomIn"===i.direction&&(t.css({opacity:1,"-webkit-transform":"scale("+i.from+")","-webkit-transition-duration":"0s"}),this.zooming(t,i)),"zoomOut"===i.direction&&(t.css({opacity:1,"-webkit-transform":"scale("+i.from+")","-webkit-transition-duration":"0s"}),this.zooming(t,i))},zooming:function(t,i){setTimeout((function(){t.css({opacity:1,"-webkit-transition-duration":i.duration+"ms","-webkit-transition-timing-function":i.timing_function,"-webkit-transition-property":"transform, scale","-webkit-transition-origin":"50% 50% 0","-webkit-transform":"scale("+i.to+")"})}),i.after)},rotate:function(t,i){t.css({"-webkit-transform":"rotate("+i.from+")","-webkit-transition-duration":"0s",opacity:0}),this.rotating(t,i)},rotating:function(t,i){setTimeout((function(){t.css({"-webkit-transition-duration":i.duration+"ms","-webkit-transition-timing-function":i.timing_function,"-webkit-transition-property":"transform,rotate","-webkit-transition-origin":i.origin,"-webkit-transform":"rotate("+i.to+")",opacity:1})}),i.after)},flip:function(t,i){var e=0,s=0,n=180;"x"===i.direction&&(e=1),"y"===i.direction&&(s=1,n*=-1),"x"!==i.direction&&"y"!==i.direction&&(e=1),t.css({"-webkit-transform":"perspective(400px) rotate3d("+e+", "+s+", 0, "+n+"deg)","-webkit-transition-duration":"0s","backface-visibility":"hidden",opacity:1}),this.fliping(t,i)},fliping:function(t,i){setTimeout((function(){t.css({"-webkit-transition-duration":i.duration+"ms","-webkit-transition-timing-function":i.timing_function,"-webkit-transition-property":"transform,rotate,opacity","-webkit-transition-origin":i.origin,"-webkit-transform":"perspective(400px) rotate3d(0, 0, 0, 0deg)",opacity:1})}),i.after)}};return i},dragoverActionToNextItem:function(t){if("fade"===this.options.animations){if(this.item.next(".sp-item").length)this.item.next(".sp-item").addClass("next-item").css({opacity:t});else this.$element.find(".sp-item:first-child").addClass("next-item").css({opacity:t});this.item.addClass("prev-item").css({opacity:1-t})}if("slide"===this.options.animations||"stack"===this.options.animations){this.$element.find(".dragenable").css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(0,0,0)"}).removeClass("dragenable next-item");var i=t>100?100:t;this.item.addClass("prev-item");var e="";e=this.item.next(".sp-item").length?this.item.next(".sp-item"):this.$element.find(".sp-item:first-child");var s={"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(-"+i+"%,0,0)"},n={x:100-i+"%",y:0,z:0};this.options.vertical_mode&&(n=Object.assign({},n,{x:0,y:100-i+"%"}));var o={"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+n.x+","+n.y+","+n.z+")"};"stack"===this.options.animations&&(o.opacity=1,o.zIndex=3),"slide"===this.options.animations&&this.item.css(s),e.addClass("dragenable next-item").css(o)}if("zoomIn"===this.options.animations||"zoomOut"===this.options.animations){var a=this.options.animations,r=.1*t;"zoomOut"===a&&(r=(r+=1)>2?2:r),"zoomIn"===a&&(r=(r=1-r)<0?0:r),this.item.addClass("prev-item");(this.item.next(".sp-item").length?this.item.next(".sp-item"):this.$element.find(".sp-item:first-child")).addClass("dragenable next-item").css({"-webkit-transition-duration":"0s","-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d(1,1,1)",opacity:1,zIndex:1}),this.item.css({"-webkit-transition-duration":"0s","-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d("+r+","+r+","+r+")",opacity:1-.1*t,zIndex:2})}if("clip"===this.options.animations){var d=.001*t;d=d>1?1:d;var l=t>this.outerWidth?this.outerWidth:t,c=15,h=c-Math.abs(l*(c/1e3));c=h>c?c:h<0?0:h,this.item.addClass("prev-item");var m="";m=this.item.next(".sp-item").length?this.item.next(".sp-item"):this.$element.find(".sp-item:first-child"),this.item.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(0,0,0)",clip:"rect(auto, "+(this.outerWidth-l)+"px, auto, 0px)",opacity:1,zIndex:3}),m.addClass("next-item").css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+c+"%,0,0)",clip:"rect(auto, "+this.outerWidth+"px, auto, 0px)",zIndex:2,opacity:d})}},dragoverActionToPrevItem:function(t){if("fade"===this.options.animations){if(this.item.prev(".sp-item").length)this.item.prev(".sp-item").addClass("next-item").css({opacity:t});else this.$element.find(".sp-item:last-child").addClass("next-item").css({opacity:t});this.item.addClass("prev-item").css({opacity:1-t})}if("slide"===this.options.animations||"stack"===this.options.animations){this.$element.find(".dragenable").css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(0,0,0)"}).removeClass("dragenable next-item");var i=t>100?100:t,e="";this.item.addClass("prev-item"),e=this.item.prev(".sp-item").length?this.item.prev(".sp-item"):this.$element.find(".sp-item:last-child");var s={x:i-100+"%",y:0,z:0};this.options.vertical_mode&&(s=Object.assign({},s,{x:0,y:i-100+"%"}));var n={"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+s.x+","+s.y+","+s.z+")"},o={"-webkit-transition-duration":"0s","-webkit-transform":"translate3D("+i+"%,0,0)"};"stack"===this.options.animations&&(n.opacity=1,n.zIndex=3),"slide"===this.options.animations&&this.item.css(o),e.addClass("dragenable next-item").css(n)}if("zoomIn"===this.options.animations||"zoomOut"===this.options.animations){var a=this.options.animations,r=.25*t;"zoomOut"===a&&(r=(r+=1)>2?2:r),"zoomIn"===a&&(r=(r=1-r)<.2?.2:r),this.item.addClass("prev-item");(this.item.prev(".sp-item").length?this.item.prev(".sp-item"):this.$element.find(".sp-item:last-child")).addClass("dragenable next-item").css({"-webkit-transition-duration":"0s","-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d(1,1,1)",opacity:1,zIndex:1}),this.item.css({"-webkit-transition-duration":"0s","-webkit-transform-origin":"50% 50% 50%","-webkit-transform":"scale3d("+r+","+r+","+r+")",opacity:1-.1*t,zIndex:2})}if("clip"===this.options.animations){var d=.001*t;d=d>1?1:Math.abs(d);var l=t>this.outerWidth?this.outerWidth:t;l=Math.abs(l);var c=5,h=c-Math.abs(l*(c/1e3));c=h>c?c:h<0?0:h,this.item.addClass("prev-item");var m="";m=this.item.prev(".sp-item").length?this.item.prev(".sp-item"):this.$element.find(".sp-item:last-child"),this.item.css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(0,0,0)",clip:"rect(auto, "+this.outerWidth+"px, auto, "+l+"px)",opacity:1,zIndex:3}),m.addClass("next-item").css({"-webkit-transition-duration":"0s","-webkit-transform":"translate3D(-"+c+"%,0,0)",clip:"rect(auto, "+this.outerWidth+"px, auto, 0px)",zIndex:2,opacity:d})}},resetCoordiante:function(){var t=this.prevCoordinate.diff;"fade"===this.options.animations&&(t>0&&(this.item.next(".sp-item").length?this.item.next(".sp-item").css({opacity:0}):this.$element.find(".sp-item:first-child").css({opacity:0})),t<0&&(this.item.prev(".sp-item").length?this.item.prev(".sp-item").css({opacity:0}):this.$element.find(".sp-item:last-child").css({opacity:0})),this.item.css({opacity:1})),this.$element.find(".dragenable").removeClass("dragenable"),this.prevCoordinate={x:0,y:0,diff:0,dragPointer:-1},this.coordinate={x:0,y:0},this.options.autoplay&&0===this.timer&&!1===this.videoPlaying&&this.startLoop()},backToStage:function(){var t=this,i=this.options.animations;if("zoomIn"!==i&&"zoomOut"!==i||this.item.css({"-webkit-transition-duration":this.options.speed+"ms","-webkit-transform":"scale3d(1,1,1)",opacity:1}),"slide"===i||"stack"===i){var e=this.$element.find(".next-item"),s=this.prevCoordinate.diff,n={x:"100%",y:0,z:0};this.options.vertical_mode&&(n=Object.assign({},n,{x:0,y:"100%"})),s>0&&e.css({"-webkit-transition-duration":this.options.speed+"ms","-webkit-transform":"translate3d("+n.x+","+n.y+","+n.z+")"}),s<0&&e.css({"-webkit-transition-duration":this.options.speed+"ms","-webkit-transform":"translate3d(-"+n.x+",-"+n.y+","+n.z+")"}),setTimeout((function(){e.removeClass("next-item"),t.item.removeClass("prev-item")}),this.options.speed),this.item.css({"-webkit-transition-duration":this.options.speed+"ms","-webkit-transform":"translate3d(0,0,0)"})}},bindEvents:function(){var s=this;s.options.nav&&(s.$nextBtn.on("click."+s._name,(function(t){!1===s.isAnimating&&(s.options.autoplay&&s.stopLoop("bindEvents"),s.Next(),s.checkCallBackMethod.call(s))})),s.$prevBtn.on("click."+s._name,(function(t){!1===s.isAnimating&&(s.Prev(),s.options.autoplay&&s.stopLoop("bindEvents"),s.checkCallBackMethod.call(s))}))),s.options.dots&&s.$dotContainer.find("li").each((function(i){t(this).on("click."+s._name,(function(e){if(t(this).hasClass("active")||!0===s.isAnimating)return!1;s.options.autoplay&&s.stopLoop("bindEvents");var n=t(this).parent().find("li.active"),o=s.$dotContainer.find("li").index(n)>i?-1:1;s.slideFromPosition(i+1,o),s.updateDotsFromPosition(i+1),s.checkCallBackMethod.call(s)}))})),t(e).on("click."+s._name,".sp-volumn-control",this.controlVideoVolumn.bind(this)),s.$outerStage.on("mouseenter."+s._name,t.proxy(s.onMouseEnter,s)),s.$outerStage.on("mouseleave."+s._name,t.proxy(s.onMouseLeave,s)),s.$outerStage.on("mousedown."+s._name,t.proxy(s.onDragStart,s)),s.$outerStage.on("mouseup."+s._name+" touchend."+s._name,t.proxy(s.onDragEnd,s)),s.$outerStage.on("touchstart."+s._name,t.proxy(s.onDragStart,s)),s.$outerStage.on("touchcancel."+s._name,t.proxy(s.onDragEnd,s)),t(i).focus((function(){s.options.autoplay&&0===s.timer&&!1===this.videoPlaying&&s.startLoop()})),t(i).blur((function(){s.options.autoplay&&s.stopLoop("window.blur"),s.destroy()})),t(i).on("resize."+s._name,t.proxy(s.windowResize,s))},windowResize:function(t){void 0!==t&&this.updateResponsiveView()},parseResponsiveViewPort:function(){if(void 0===this.options.responsive)return null;for(var t=this.options.responsive,e=null,s=i.innerWidth,n=0;n<t.length;n++)if(s>t[n].viewport){e=t[n];break}return null===e&&(e=t[t.length-1]),e},updateResponsiveView:function(){var t=i.innerHeight,e=this.item.find("div[data-video_src]");if(e.length>0&&this.resizeVideoIframeWithAspectRatio(e),void 0!==this.options.responsive){var s=this.parseResponsiveViewPort();if("full"===s.height){if(this._lastViewPort===t)return;this._lastViewPort=t,this.$outerStage.css({height:t+"px"})}else{if(this._lastViewPort===s.height)return;this._lastViewPort=s.height,this.$outerStage.css({height:s.height})}}else this.$outerStage.css({height:t+"px"})},getPosition:function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},onMouseEnter:function(t){this.options.autoplay_stop_on_hover&&(this.onMouseOver=!0),this.options.autoplay&&this.timer>0&&this.options.autoplay_stop_on_hover&&!1===this.videoPlaying&&this.stopLoop("onMouseEnter")},onMouseLeave:function(t){this.options.autoplay_stop_on_hover&&(this.onMouseOver=!1),this.options.autoplay&&0===this.timer&&!1===this.videoPlaying&&this.options.autoplay_stop_on_hover&&this.startLoop()},onDragStart:function(i){var s=this;if(3===i.which||2===i.which||!0===s.isAnimating)return!1;var n=s.getPosition(i);s.coordinate.x=n.x,s.coordinate.y=n.y,t(e).one("mousemove."+s._name+" touchmove."+s._name,t.proxy((function(i){t(e).on("mousemove."+s._name+" touchmove."+s._name,t.proxy(s.onDragMove,s)),i.preventDefault()}),this)),s.isDragging=!0},onDragMove:function(t){if(!1!==this.isDragging){this.options.autoplay&&this.stopLoop("onDragMove");var i=this.getPosition(t),e=this.coordinate,s=this.prevCoordinate,n=this.options.vertical_mode;if(s.x!==i.x&&!1===n||s.y!==i.y&&!0===n){var o=n?e.y-i.y:e.x-i.x,a=0;a="slide"===this.options.animations||"stack"===this.options.animations?(.099*Math.abs(o)).toFixed(0):"clip"===this.options.animations?o:(.005*Math.abs(o)).toFixed(2),this.prevCoordinate={x:i.x,y:i.y,diff:o,dragPointer:a},o>0&&this.dragoverActionToNextItem(a),o<0&&this.dragoverActionToPrevItem(a)}t.preventDefault()}},onDragEnd:function(t){if(this.isDragging){var i=this.prevCoordinate.diff;Math.abs(i)>100?(i>0&&this.Next(),i<0&&this.Prev()):this.backToStage(),this.isDragging=!1}this.resetCoordiante()},controlVideoVolumn:function(i){var e=t(i.target),s=e.attr("data-type"),n=e.attr("data-index"),o=this.player["item_"+n].player;"html5"===s&&(o.muted=!o.muted,o.volume=o.muted?0:1),"youtube"===s&&(o.isMuted()?o.unMute():o.mute()),"vimeo"===s&&o.getVolume().then((function(t){o.setVolume(t>0?0:1)})),e.hasClass("sp-sound-enabled")?e.removeClass("sp-sound-enabled fa-volume-up").addClass("fa-volume-off"):e.addClass("sp-sound-enabled fa-volume-up").removeClass("fa-volume-off")},checkCallBackMethod:function(){this.callback()},callback:function(){var t=this.options.onChange;if("function"==typeof t){var i=this.$element.find(".sp-item").length,e={item:this.item,items:i,element:this.$element};t.call(this.element,e)}}}),t.fn.jsSlider=function(i){return this.each((function(){t.data(this,"jsSlider")||t.data(this,"jsSlider",new n(this,i))})),this},t.fn.jsSlider.defaults={animations:"3D",rotate:10,autoplay:!1,autoplay_stop_on_hover:!1,bubble_size:"40px",indicator:!0,indicator_type:"line",indicator_class:"",speed:800,interval:4500,onChange:null,vertical_mode:!1,dots:!0,dots_class:"",dot_indicator:!0,show_number:!1,slider_number_class:"",nav:!0,nav_text:["<",">"]}}(jQuery,window,document),function(t){t(document).ready((function(){t(".sppb-addon-sp-slider").each((function(i){var e=t(this),s=e.data("height"),n=e.data("height-sm"),o=e.data("height-xs"),a=e.data("slider-animation"),r=e.data("slide-vertically"),d=e.data("3d-rotate"),l=e.data("autoplay"),c=e.data("pause-hover"),h=e.data("interval"),m=e.data("timer"),p=e.data("speed"),u=e.data("dot-control"),f=e.data("arrow-control"),v=e.data("indecator"),b=e.data("arrow-content"),y=e.data("dot-style");y="with_text"===y?".sp-slider-custom-dot-indecators":"";var g=e.data("slide-count"),w="",x="";if("icon_only"===b?(w='<i class="fa fa-angle-left"></i>',x='<i class="fa fa-angle-right"></i>'):"long_arrow"===b?(w='<i class="fa fa-long-arrow-left"></i>',x='<i class="fa fa-long-arrow-right"></i>'):"icon_with_text"===b?(w='<i class="fa fa-long-arrow-left"></i> Prev',x='Next <i class="fa fa-long-arrow-right"></i>'):(w="Prev",x="Next"),e.jsSlider({autoplay:l,autoplay_stop_on_hover:c,animations:a,rotate:d,vertical_mode:r,interval:h,indicator:m,speed:p,dots_class:y,dots:u,dot_indicator:v,nav:f,nav_text:[w,x],show_number:g,responsive:[{viewport:1170,height:s},{viewport:600,height:n},{viewport:480,height:"480px"},{viewport:320,height:o}]}),t(".sp-slider-custom-dot-indecators").length>0){var k=t(".sp-slider-custom-dot-indecators ul li"),_=k.outerWidth(!0),C=k.length,I=_*C;t(".sp-slider-custom-dot-indecators ul").css("width",I+"px"),t(".sp-slider-custom-dot-indecators").outerWidth(!0)<I&&t(".sp-slider-custom-dot-indecators").css("overflowX","scroll"),t(window).on("resize",(function(){var i=_*C;t(".sp-slider-custom-dot-indecators").outerWidth(!0)<i&&t(".sp-slider-custom-dot-indecators").css("overflowX","scroll")}))}}));new MutationObserver((function(i){i.forEach((function(i){var e=i.addedNodes;null!==e&&t(e).each((function(){t(this).find(".sppb-addon-sp-slider").each((function(){var i=t(this),e=i.data("height"),s=i.data("height-sm"),n=i.data("height-xs"),o=i.data("slider-animation"),a=i.data("slide-vertically"),r=i.data("3d-rotate"),d=i.data("autoplay"),l=i.data("pause-hover"),c=i.data("interval"),h=i.data("timer"),m=i.data("speed"),p=i.data("dot-control"),u=i.data("arrow-control"),f=i.data("indecator"),v=i.data("arrow-content"),b=i.data("dot-style");b="with_text"===b?".sp-slider-custom-dot-indecators":"";var y=i.data("slide-count"),g="",w="";if("icon_only"===v?(g='<i class="fa fa-angle-left"></i>',w='<i class="fa fa-angle-right"></i>'):"long_arrow"===v?(g='<i class="fa fa-long-arrow-left"></i>',w='<i class="fa fa-long-arrow-right"></i>'):"icon_with_text"===v?(g='<i class="fa fa-long-arrow-left"></i> Prev',w='Next <i class="fa fa-long-arrow-right"></i>'):(g="Prev",w="Next"),i.jsSlider({autoplay:d,autoplay_stop_on_hover:l,animations:o,vertical_mode:a,rotate:r,interval:c,indicator:h,speed:m,dots:p,dots_class:b,dot_indicator:f,nav:u,nav_text:[g,w],show_number:y,responsive:[{viewport:1170,height:e},{viewport:600,height:s},{viewport:480,height:"480px"},{viewport:320,height:n}]}),t(".sp-slider-custom-dot-indecators").length>0){var x=t(".sp-slider-custom-dot-indecators ul li"),k=x.outerWidth(!0),_=x.length,C=k*_;t(".sp-slider-custom-dot-indecators ul").css("width",C+"px"),t(".sp-slider-custom-dot-indecators").outerWidth(!0)<C&&t(".sp-slider-custom-dot-indecators").css("overflowX","scroll"),t(window).on("resize",(function(){var i=k*_;t(".sp-slider-custom-dot-indecators").outerWidth(!0)<i&&t(".sp-slider-custom-dot-indecators").css("overflowX","scroll")}))}}))}))}))})).observe(document.body,{childList:!0,subtree:!0})}))}(jQuery);


/*===============================
/1/components/com_sppagebuilder/assets/js/jquery.magnific-popup.min.js
================================================================================*/;
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}((function(e){var t,i,n,o,r,a,s="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",p="mfp",f=".mfp",m="mfp-ready",g="mfp-removing",v="mfp-prevent-close",h=function(){},y=!!window.jQuery,C=e(window),w=function(e,i){t.ev.on(p+e+f,i)},b=function(t,i,n,o){var r=document.createElement("div");return r.className="mfp-"+t,n&&(r.innerHTML=n),o?i&&i.appendChild(r):(r=e(r),i&&r.appendTo(i)),r},I=function(i,n){t.ev.triggerHandler(p+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},x=function(i){return i===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var a,s=i.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===i.el[0]){t.index=o;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],r="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=b("bg").on("click"+f,(function(){t.close()})),t.wrap=b("wrap").attr("tabindex",-1).on("click"+f,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=b("container",t.wrap)),t.contentContainer=b("content"),t.st.preloader&&(t.preloader=b("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var u=l[o];u=u.charAt(0).toUpperCase()+u.slice(1),t["init"+u].call(t)}I("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(w(c,(function(e,t,i,n){i.close_replaceWith=x(n.type)})),r+=" mfp-close-btn-in"):t.wrap.append(x())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:C.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup"+f,(function(e){27===e.keyCode&&t.close()})),C.on("resize"+f,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var p=t.wH=C.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(p)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),I("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),n.on("focusin"+f,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(p),I(d),i}t.updateItemHTML()},close:function(){t.isOpen&&(I(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){I(s);var i=g+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup.mfp focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,I("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||C.height();t.fixedContentPos||t.wrap.css("height",t.wH),I("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(I("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var r=!!t.st[n]&&t.st[n].markup;I("FirstMarkupParse",r),t.currTemplate[n]=!r||e(r)}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(a,n),i.preloaded=!0,I(u,i),o=i.type,t.container.prepend(t.contentContainer),I("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(x()):t.content=e:t.content="",I("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i];if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){n=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,I("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(C.width()<r)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),n||"loading"!==e||(n=t.st.tLoading);var o={status:e,text:n};I("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(v)){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,n){var o;n.data&&(i=e.extend(n.data,i)),I(c,[t,i,n]),e.each(i,(function(i,n){if(void 0===n||!1===n)return!0;if((o=i.split("_")).length>1){var r=t.find(f+"-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==n[0]&&r.replaceWith(n):"img"===a?r.is("img")?r.attr("src",n):r.replaceWith(e("<img>").attr("src",n).attr("class",r.attr("class"))):r.attr(o[1],n)}}else t.find(f+"-"+i).html(n)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,i){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){k();var n=e(this);if("string"==typeof i)if("open"===i){var o,r=y?n.data("magnificPopup"):n[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=n,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},n,r)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),y?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var T,_,P,S="inline",E=function(){P&&(_.after(P.addClass(T)).detach(),P=null)};e.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(S),w(s+"."+S,(function(){E()}))},getInline:function(i,n){if(E(),i.src){var o=t.st.inline,r=e(i.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(_||(T=o.hiddenClass,_=b(T),T="mfp-"+T),P=r.after(_).detach().removeClass(T)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return i.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var z,O="ajax",M=function(){z&&e(document.body).removeClass(z)},B=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(O),z=t.st.ajax.cursor,w(s+"."+O,B),w("BeforeChange."+O,B)},getAjax:function(i){z&&e(document.body).addClass(z),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,o,r){var a={data:n,xhr:r};I("ParseAjax",a),t.appendContent(e(a.data),O),i.finished=!0,M(),t._setFocus(),setTimeout((function(){t.wrap.addClass(m)}),16),t.updateStatus("ready"),I("AjaxContentAdded")},error:function(){M(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var L,H=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image";t.types.push("image"),w(d+n,(function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)})),w(s+n,(function(){i.cursor&&e(document.body).removeClass(i.cursor),C.off("resize"+f)})),w("Resize"+n,t.resizeImage),t.isLowIE&&w("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,L&&clearInterval(L),e.isCheckingImgSize=!1,I("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(r){L&&clearInterval(L),L=setInterval((function(){return n.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(L),void(3===++i?o(10):40===i?o(50):100===i&&o(500)))}),r)};o(1)},getImage:function(i,n){var o=0,r=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,I("ImageLoadComplete")):200>++o?setTimeout(r,100):a())},a=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=t.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:H(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(L&&clearInterval(L),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}});var A;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var o,r,a=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=n,t.css(o),t},d=function(){t.content.css("visibility","visible")};w("BuildControls"+n,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(r=c(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout((function(){r.css(t._getOffset(!0)),o=setTimeout((function(){d(),setTimeout((function(){r.remove(),e=r=null,I("ZoomAnimationEnded")}),16)}),a)}),16)}})),w(l+n,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),w(s+n,(function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n,o=(n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(n.css("padding-top"),10),a=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:n.width(),height:(y?n.innerHeight():n[0].offsetHeight)-a-r};return void 0===A&&(A=void 0!==document.createElement("p").style.MozTransform),A?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var F="iframe",j=function(e){if(t.currTemplate[F]){var i=t.currTemplate[F].find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(F),w("BeforeChange",(function(e,t,i){t!==i&&(t===F?j():i===F&&j(!0))})),w(s+"."+F,(function(){j()}))},getIframe:function(i,n){var o=i.src,r=t.st.iframe;e.each(r.patterns,(function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0}));var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(n,a,i),t.updateStatus("ready"),n}}});var N=function(e){var i=t.items.length;return e>i-1?e-i:0>e?i+e:e},W=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% / %total%"},proto:{initGallery:function(){var i=t.st.gallery,o=".mfp-gallery";return t.direction=!0,!(!i||!i.enabled)&&(r+=" mfp-gallery",w(d+o,(function(){i.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){return t.items.length>1?(t.next(),!1):void 0})),n.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),w("UpdateStatus"+o,(function(e,i){i.text&&(i.text=W(i.text,t.currItem.index,t.items.length))})),w(c+o,(function(e,n,o,r){var a=t.items.length;o.counter=a>1?W(i.tCounter,r.index,a):""})),w("BuildControls"+o,(function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,o=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(v),r=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(v);o.click((function(){t.prev()})),r.click((function(){t.next()})),t.container.append(o.add(r))}})),w(u+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),void w(s+o,(function(){n.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})))},next:function(){t.direction=!0,t.index=N(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=N(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),o=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=N(i),!t.items[i].preloaded){var n=t.items[i];n.parsed||(n=t.parseEl(i)),I("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){n.hasSize=!0})).on("error.mfploader",(function(){n.hasSize=!0,n.loadError=!0,I("LazyLoadError",n)})).attr("src",n.src)),n.preloaded=!0}}}});var Z="retina";e.magnificPopup.registerModule(Z,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(w("ImageHasSize."+Z,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})})),w("ElementParse."+Z,(function(t,n){n.src=e.replaceSrc(n,i)})))}}}}),k()}));


/*===============================
https://www.soulfood.gr/1/modules/mod_jmgarticleslider/assets/js/splide.js
================================================================================*/;
/*!
 * Splide.js
 * Version  : 2.4.20
 * License  : MIT
 * Copyright: 2020 Naotoshi Fujita
 */
(function(){"use strict";var __webpack_require__={};!function(){__webpack_require__.d=function(exports,definition){for(var key in definition){if(__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)){Object.defineProperty(exports,key,{enumerable:true,get:definition[key]});}}};}();!function(){__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);}}();!function(){__webpack_require__.r=function(exports){if(typeof Symbol!=='undefined'&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});}
Object.defineProperty(exports,'__esModule',{value:true});};}();var states_namespaceObject={};__webpack_require__.r(states_namespaceObject);__webpack_require__.d(states_namespaceObject,{"CREATED":function(){return CREATED;},"DESTROYED":function(){return DESTROYED;},"IDLE":function(){return IDLE;},"MOUNTED":function(){return MOUNTED;},"MOVING":function(){return MOVING;}});;var core_event=(function(){var data=[];var Event={on:function on(events,handler,elm,options){if(elm===void 0){elm=null;}
if(options===void 0){options={};}
events.split(' ').forEach(function(event){if(elm){elm.addEventListener(event,handler,options);}
data.push({event:event,handler:handler,elm:elm,options:options});});},off:function off(events,elm){if(elm===void 0){elm=null;}
events.split(' ').forEach(function(event){data=data.filter(function(item){if(item&&item.event===event&&item.elm===elm){unsubscribe(item);return false;}
return true;});});},emit:function emit(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}
data.forEach(function(item){if(!item.elm&&item.event.split('.')[0]===event){item.handler.apply(item,args);}});},destroy:function destroy(){data.forEach(unsubscribe);data=[];}};function unsubscribe(item){if(item.elm){item.elm.removeEventListener(item.event,item.handler,item.options);}}
return Event;});;var state=(function(initialState){var curr=initialState;return{set:function set(state){curr=state;},is:function is(state){return state===curr;}};});;function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}
var keys=Object.keys;function each(obj,callback){keys(obj).some(function(key,index){return callback(obj[key],key,index);});}
function values(obj){return keys(obj).map(function(key){return obj[key];});}
function isObject(subject){return typeof subject==='object';}
function merge(_ref,from){var to=_extends({},_ref);each(from,function(value,key){if(isObject(value)){if(!isObject(to[key])){to[key]={};}
to[key]=merge(to[key],value);}else{to[key]=value;}});return to;}
function object_assign(to,from){keys(from).forEach(function(key){if(!to[key]){Object.defineProperty(to,key,Object.getOwnPropertyDescriptor(from,key));}});return to;};function toArray(value){return Array.isArray(value)?value:[value];}
function between(value,m1,m2){return Math.min(Math.max(value,m1>m2?m2:m1),m1>m2?m1:m2);}
function sprintf(format,replacements){var i=0;return format.replace(/%s/g,function(){return toArray(replacements)[i++];});}
function unit(value){var type=typeof value;if(type==='number'&&value>0){return parseFloat(value)+'px';}
return type==='string'?value:'';}
function pad(number){return number<10?'0'+number:number;}
function toPixel(root,value){if(typeof value==='string'){var div=create('div',{});applyStyle(div,{position:'absolute',width:value});append(root,div);value=div.clientWidth;dom_remove(div);}
return+value||0;};function find(elm,selector){return elm?elm.querySelector(selector.split(' ')[0]):null;}
function child(parent,tagOrClassName){return children(parent,tagOrClassName)[0];}
function children(parent,tagOrClassName){if(parent){return values(parent.children).filter(function(child){return hasClass(child,tagOrClassName.split(' ')[0])||child.tagName===tagOrClassName;});}
return[];}
function create(tag,attrs){var elm=document.createElement(tag);each(attrs,function(value,key){return setAttribute(elm,key,value);});return elm;}
function domify(html){var div=create('div',{});div.innerHTML=html;return div.firstChild;}
function dom_remove(elms){toArray(elms).forEach(function(elm){if(elm){var parent=elm.parentElement;parent&&parent.removeChild(elm);}});}
function append(parent,child){if(parent){parent.appendChild(child);}}
function before(elm,ref){if(elm&&ref){var parent=ref.parentElement;parent&&parent.insertBefore(elm,ref);}}
function applyStyle(elm,styles){if(elm){each(styles,function(value,prop){if(value!==null){elm.style[prop]=value;}});}}
function addOrRemoveClasses(elm,classes,remove){if(elm){toArray(classes).forEach(function(name){if(name){elm.classList[remove?'remove':'add'](name);}});}}
function addClass(elm,classes){addOrRemoveClasses(elm,classes,false);}
function removeClass(elm,classes){addOrRemoveClasses(elm,classes,true);}
function hasClass(elm,className){return!!elm&&elm.classList.contains(className);}
function setAttribute(elm,name,value){if(elm){elm.setAttribute(name,value);}}
function getAttribute(elm,name){return elm?elm.getAttribute(name):'';}
function removeAttribute(elms,names){toArray(names).forEach(function(name){toArray(elms).forEach(function(elm){return elm&&elm.removeAttribute(name);});});}
function getRect(elm){return elm.getBoundingClientRect();}
function loaded(elm,callback){var images=elm.querySelectorAll('img');var length=images.length;if(length){var count=0;each(images,function(img){img.onload=img.onerror=function(){if(++count===length){callback();}};});}else{callback();}};var SLIDE='slide';var LOOP='loop';var FADE='fade';;var slide=(function(Splide,Components){var list;var endCallback;return{mount:function mount(){list=Components.Elements.list;Splide.on('transitionend',function(e){if(e.target===list&&endCallback){endCallback();}},list);},start:function start(destIndex,newIndex,prevIndex,coord,done){var options=Splide.options;var edgeIndex=Components.Controller.edgeIndex;var speed=options.speed;endCallback=done;if(Splide.is(SLIDE)){if(prevIndex===0&&newIndex>=edgeIndex||prevIndex>=edgeIndex&&newIndex===0){speed=options.rewindSpeed||speed;}}
applyStyle(list,{transition:"transform "+speed+"ms "+options.easing,transform:"translate("+coord.x+"px,"+coord.y+"px)"});}};});;var fade=(function(Splide,Components){var Fade={mount:function mount(){apply(Splide.index);},start:function start(destIndex,newIndex,prevIndex,coord,done){var track=Components.Elements.track;applyStyle(track,{height:unit(track.clientHeight)});apply(newIndex);setTimeout(function(){done();applyStyle(track,{height:''});});}};function apply(index){var options=Splide.options;applyStyle(Components.Elements.slides[index],{transition:"opacity "+options.speed+"ms "+options.easing});}
return Fade;});;;function compose(Splide,Components,Transition){var components={};each(Components,function(Component,name){components[name]=Component(Splide,components,name.toLowerCase());});if(!Transition){Transition=Splide.is(FADE)?fade:slide;}
components.Transition=Transition(Splide,components);return components;};var MESSAGE_PREFIX='[SPLIDE]';function error(message){console.error(MESSAGE_PREFIX+" "+message);}
function exist(subject,message){if(!subject){throw new Error(message);}};var ROOT='splide';var ELEMENT_CLASSES={root:ROOT,slider:ROOT+"__slider",track:ROOT+"__track",list:ROOT+"__list",slide:ROOT+"__slide",container:ROOT+"__slide__container",arrows:ROOT+"__arrows",arrow:ROOT+"__arrow",prev:ROOT+"__arrow--prev",next:ROOT+"__arrow--next",pagination:ROOT+"__pagination",page:ROOT+"__pagination__page",clone:ROOT+"__slide--clone",progress:ROOT+"__progress",bar:ROOT+"__progress__bar",autoplay:ROOT+"__autoplay",play:ROOT+"__play",pause:ROOT+"__pause",spinner:ROOT+"__spinner",sr:ROOT+"__sr"};var STATUS_CLASSES={active:'is-active',visible:'is-visible',loading:'is-loading'};;var I18N={prev:'Previous slide',next:'Next slide',first:'Go to first slide',last:'Go to last slide',slideX:'Go to slide %s',pageX:'Go to page %s',play:'Start autoplay',pause:'Pause autoplay'};;var DEFAULTS={type:'slide',rewind:false,speed:400,rewindSpeed:0,waitForTransition:true,width:0,height:0,fixedWidth:0,fixedHeight:0,heightRatio:0,autoWidth:false,autoHeight:false,perPage:1,perMove:0,clones:0,start:0,focus:false,gap:0,padding:0,arrows:true,arrowPath:'',pagination:true,autoplay:false,interval:5000,pauseOnHover:true,pauseOnFocus:true,resetProgress:true,lazyLoad:false,preloadPages:1,easing:'cubic-bezier(.42,.65,.27,.99)',keyboard:'global',drag:true,dragAngleThreshold:30,swipeDistanceThreshold:150,flickVelocityThreshold:.6,flickPower:600,flickMaxPages:1,direction:'ltr',cover:false,accessibility:true,slideFocus:true,isNavigation:false,trimSpace:true,updateOnMove:false,throttle:100,destroy:false,breakpoints:false,classes:ELEMENT_CLASSES,i18n:I18N};;var CREATED=1;var MOUNTED=2;var IDLE=3;var MOVING=4;var DESTROYED=5;;function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
var Splide=function(){function Splide(root,options,Components){if(options===void 0){options={};}
if(Components===void 0){Components={};}
this.root=root instanceof Element?root:document.querySelector(root);exist(this.root,'An invalid element/selector was given.');this.Components=null;this.Event=core_event();this.State=state(CREATED);this.STATES=states_namespaceObject;this._o=merge(DEFAULTS,options);this._i=0;this._c=Components;this._e={};this._t=null;}
var _proto=Splide.prototype;_proto.mount=function mount(Extensions,Transition){var _this=this;if(Extensions===void 0){Extensions=this._e;}
if(Transition===void 0){Transition=this._t;}
this.State.set(CREATED);this._e=Extensions;this._t=Transition;this.Components=compose(this,merge(this._c,Extensions),Transition);try{each(this.Components,function(component,key){var required=component.required;if(required===undefined||required){component.mount&&component.mount();}else{delete _this.Components[key];}});}catch(e){error(e.message);return;}
var State=this.State;State.set(MOUNTED);each(this.Components,function(component){component.mounted&&component.mounted();});this.emit('mounted');State.set(IDLE);this.emit('ready');applyStyle(this.root,{visibility:'visible'});this.on('move drag',function(){return State.set(MOVING);}).on('moved dragged',function(){return State.set(IDLE);});return this;};_proto.sync=function sync(splide){this.sibling=splide;return this;};_proto.on=function on(events,handler,elm,options){if(elm===void 0){elm=null;}
if(options===void 0){options={};}
this.Event.on(events,handler,elm,options);return this;};_proto.off=function off(events,elm){if(elm===void 0){elm=null;}
this.Event.off(events,elm);return this;};_proto.emit=function emit(event){var _this$Event;for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}
(_this$Event=this.Event).emit.apply(_this$Event,[event].concat(args));return this;};_proto.go=function go(control,wait){if(wait===void 0){wait=this.options.waitForTransition;}
if(this.State.is(IDLE)||this.State.is(MOVING)&&!wait){this.Components.Controller.go(control,false);}
return this;};_proto.is=function is(type){return type===this._o.type;};_proto.add=function add(slide,index){if(index===void 0){index=-1;}
this.Components.Elements.add(slide,index,this.refresh.bind(this));return this;};_proto.remove=function remove(index){this.Components.Elements.remove(index);this.refresh();return this;};_proto.refresh=function refresh(){this.emit('refresh:before').emit('refresh').emit('resize');return this;};_proto.destroy=function destroy(completely){var _this2=this;if(completely===void 0){completely=true;}
if(this.State.is(CREATED)){this.on('ready',function(){return _this2.destroy(completely);});return;}
values(this.Components).reverse().forEach(function(component){component.destroy&&component.destroy(completely);});this.emit('destroy',completely);this.Event.destroy();this.State.set(DESTROYED);return this;};_createClass(Splide,[{key:"index",get:function get(){return this._i;},set:function set(index){this._i=parseInt(index);}},{key:"length",get:function get(){return this.Components.Elements.length;}},{key:"options",get:function get(){return this._o;},set:function set(options){var created=this.State.is(CREATED);if(!created){this.emit('update');}
this._o=merge(this._o,options);if(!created){this.emit('updated',this._o);}}},{key:"classes",get:function get(){return this._o.classes;}},{key:"i18n",get:function get(){return this._o.i18n;}}]);return Splide;}();;var options=(function(Splide){var options=getAttribute(Splide.root,'data-splide');if(options){try{Splide.options=JSON.parse(options);}catch(e){error(e.message);}}
return{mount:function mount(){if(Splide.State.is(CREATED)){Splide.index=Splide.options.start;}}};});;var LTR='ltr';var RTL='rtl';var TTB='ttb';;var STYLE_RESTORE_EVENTS='update.slide';var elements_slide=(function(Splide,index,realIndex,slide){var updateOnMove=Splide.options.updateOnMove;var STATUS_UPDATE_EVENTS='ready.slide updated.slide resized.slide moved.slide'+(updateOnMove?' move.slide':'');var Slide={slide:slide,index:index,realIndex:realIndex,container:child(slide,Splide.classes.container),isClone:realIndex>-1,mount:function mount(){var _this=this;if(!this.isClone){slide.id=Splide.root.id+"-slide"+pad(index+1);}
Splide.on(STATUS_UPDATE_EVENTS,function(){return _this.update();}).on(STYLE_RESTORE_EVENTS,restoreStyles).on('click',function(){return Splide.emit('click',_this);},slide);if(updateOnMove){Splide.on('move.slide',function(newIndex){if(newIndex===realIndex){_update(true,false);}});}
applyStyle(slide,{display:''});this.styles=getAttribute(slide,'style')||'';},destroy:function destroy(){Splide.off(STATUS_UPDATE_EVENTS).off(STYLE_RESTORE_EVENTS).off('click',slide);removeClass(slide,values(STATUS_CLASSES));restoreStyles();removeAttribute(this.container,'style');},update:function update(){_update(this.isActive(),false);_update(this.isVisible(),true);},isActive:function isActive(){return Splide.index===index;},isVisible:function isVisible(){var active=this.isActive();if(Splide.is(FADE)||active){return active;}
var ceil=Math.ceil;var trackRect=getRect(Splide.Components.Elements.track);var slideRect=getRect(slide);if(Splide.options.direction===TTB){return trackRect.top<=slideRect.top&&slideRect.bottom<=ceil(trackRect.bottom);}
return trackRect.left<=slideRect.left&&slideRect.right<=ceil(trackRect.right);},isWithin:function isWithin(from,within){var diff=Math.abs(from-index);if(!Splide.is(SLIDE)&&!this.isClone){diff=Math.min(diff,Splide.length-diff);}
return diff<within;}};function _update(active,forVisibility){var type=forVisibility?'visible':'active';var className=STATUS_CLASSES[type];if(active){addClass(slide,className);Splide.emit(""+type,Slide);}else{if(hasClass(slide,className)){removeClass(slide,className);Splide.emit(""+(forVisibility?'hidden':'inactive'),Slide);}}}
function restoreStyles(){setAttribute(slide,'style',Slide.styles);}
return Slide;});;var UID_NAME='uid';var components_elements=(function(Splide,Components){var root=Splide.root;var classes=Splide.classes;var Slides=[];if(!root.id){window.splide=window.splide||{};var uid=window.splide[UID_NAME]||0;window.splide[UID_NAME]=++uid;root.id="splide"+pad(uid);}
var Elements={mount:function mount(){var _this=this;this.init();Splide.on('refresh',function(){_this.destroy();_this.init();}).on('updated',function(){removeClass(root,getClasses());addClass(root,getClasses());});},destroy:function destroy(){Slides.forEach(function(Slide){Slide.destroy();});Slides=[];removeClass(root,getClasses());},init:function init(){var _this2=this;collect();addClass(root,getClasses());this.slides.forEach(function(slide,index){_this2.register(slide,index,-1);});},register:function register(slide,index,realIndex){var SlideObject=elements_slide(Splide,index,realIndex,slide);SlideObject.mount();Slides.push(SlideObject);},getSlide:function getSlide(index){return Slides.filter(function(Slide){return Slide.index===index;})[0];},getSlides:function getSlides(includeClones){return includeClones?Slides:Slides.filter(function(Slide){return!Slide.isClone;});},getSlidesByPage:function getSlidesByPage(page){var idx=Components.Controller.toIndex(page);var options=Splide.options;var max=options.focus!==false?1:options.perPage;return Slides.filter(function(_ref){var index=_ref.index;return idx<=index&&index<idx+max;});},add:function add(slide,index,callback){if(typeof slide==='string'){slide=domify(slide);}
if(slide instanceof Element){var ref=this.slides[index];applyStyle(slide,{display:'none'});if(ref){before(slide,ref);this.slides.splice(index,0,slide);}else{append(this.list,slide);this.slides.push(slide);}
loaded(slide,function(){callback&&callback(slide);});}},remove:function remove(index){dom_remove(this.slides.splice(index,1)[0]);},each:function each(callback){Slides.forEach(callback);},get length(){return this.slides.length;},get total(){return Slides.length;}};function collect(){Elements.slider=child(root,classes.slider);Elements.track=find(root,"."+classes.track);Elements.list=child(Elements.track,classes.list);exist(Elements.track&&Elements.list,'Track or list was not found.');Elements.slides=children(Elements.list,classes.slide);var arrows=findParts(classes.arrows);Elements.arrows={prev:find(arrows,"."+classes.prev),next:find(arrows,"."+classes.next)};var autoplay=findParts(classes.autoplay);Elements.bar=find(findParts(classes.progress),"."+classes.bar);Elements.play=find(autoplay,"."+classes.play);Elements.pause=find(autoplay,"."+classes.pause);Elements.track.id=Elements.track.id||root.id+"-track";Elements.list.id=Elements.list.id||root.id+"-list";}
function getClasses(){var rootClass=classes.root;var options=Splide.options;return[rootClass+"--"+options.type,rootClass+"--"+options.direction,options.drag?rootClass+"--draggable":'',options.isNavigation?rootClass+"--nav":'',STATUS_CLASSES.active];}
function findParts(className){return child(root,className)||child(Elements.slider,className);}
return Elements;});;var floor=Math.floor;var controller=(function(Splide,Components){var options;var isLoop;var Controller={mount:function mount(){options=Splide.options;isLoop=Splide.is(LOOP);bind();},go:function go(control,silently){var destIndex=this.trim(this.parse(control));Components.Track.go(destIndex,this.rewind(destIndex),silently);},parse:function parse(control){var index=Splide.index;var matches=String(control).match(/([+\-<>]+)(\d+)?/);var indicator=matches?matches[1]:'';var number=matches?parseInt(matches[2]):0;switch(indicator){case'+':index+=number||1;break;case'-':index-=number||1;break;case'>':case'<':index=parsePage(number,index,indicator==='<');break;default:index=parseInt(control);}
return index;},toIndex:function toIndex(page){if(hasFocus()){return page;}
var length=Splide.length;var perPage=options.perPage;var index=page*perPage;index=index-(this.pageLength*perPage-length)*floor(index/length);if(length-perPage<=index&&index<length){index=length-perPage;}
return index;},toPage:function toPage(index){if(hasFocus()){return index;}
var length=Splide.length;var perPage=options.perPage;if(length-perPage<=index&&index<length){return floor((length-1)/perPage);}
return floor(index/perPage);},trim:function trim(index){if(!isLoop){index=options.rewind?this.rewind(index):between(index,0,this.edgeIndex);}
return index;},rewind:function rewind(index){var edge=this.edgeIndex;if(isLoop){while(index>edge){index-=edge+1;}
while(index<0){index+=edge+1;}}else{if(index>edge){index=0;}else if(index<0){index=edge;}}
return index;},isRtl:function isRtl(){return options.direction===RTL;},get pageLength(){var length=Splide.length;return hasFocus()?length:Math.ceil(length/options.perPage);},get edgeIndex(){var length=Splide.length;if(!length){return 0;}
if(hasFocus()||options.isNavigation||isLoop){return length-1;}
return length-options.perPage;},get prevIndex(){var prev=Splide.index-1;if(isLoop||options.rewind){prev=this.rewind(prev);}
return prev>-1?prev:-1;},get nextIndex(){var next=Splide.index+1;if(isLoop||options.rewind){next=this.rewind(next);}
return Splide.index<next&&next<=this.edgeIndex||next===0?next:-1;}};function bind(){Splide.on('move',function(newIndex){Splide.index=newIndex;}).on('updated refresh',function(newOptions){options=newOptions||options;Splide.index=between(Splide.index,0,Controller.edgeIndex);});}
function hasFocus(){return options.focus!==false;}
function parsePage(number,index,prev){if(number>-1){return Controller.toIndex(number);}
var perMove=options.perMove;var sign=prev?-1:1;if(perMove){return index+perMove*sign;}
return Controller.toIndex(Controller.toPage(index)+sign);}
return Controller;});;var abs=Math.abs;var track=(function(Splide,Components){var Layout;var Elements;var list;var isVertical=Splide.options.direction===TTB;var isFade=Splide.is(FADE);var isRTL=Splide.options.direction===RTL;var isLoopPending=false;var sign=isRTL?1:-1;var Track={sign:sign,mount:function mount(){Elements=Components.Elements;Layout=Components.Layout;list=Elements.list;},mounted:function mounted(){var _this=this;if(!isFade){this.jump(0);Splide.on('mounted resize updated',function(){_this.jump(Splide.index);});}},go:function go(destIndex,newIndex,silently){var newPosition=getTrimmedPosition(destIndex);var prevIndex=Splide.index;if(Splide.State.is(MOVING)&&isLoopPending){return;}
isLoopPending=destIndex!==newIndex;if(!silently){Splide.emit('move',newIndex,prevIndex,destIndex);}
if(Math.abs(newPosition-this.position)>=1||isFade){Components.Transition.start(destIndex,newIndex,prevIndex,this.toCoord(newPosition),function(){onTransitionEnd(destIndex,newIndex,prevIndex,silently);});}else{if(destIndex!==prevIndex&&Splide.options.trimSpace==='move'){Components.Controller.go(destIndex+destIndex-prevIndex,silently);}else{onTransitionEnd(destIndex,newIndex,prevIndex,silently);}}},jump:function jump(index){this.translate(getTrimmedPosition(index));},translate:function translate(position){applyStyle(list,{transform:"translate"+(isVertical?'Y':'X')+"("+position+"px)"});},cancel:function cancel(){if(Splide.is(LOOP)){this.shift();}else{this.translate(this.position);}
applyStyle(list,{transition:''});},shift:function shift(){var position=abs(this.position);var left=abs(this.toPosition(0));var right=abs(this.toPosition(Splide.length));var innerSize=right-left;if(position<left){position+=innerSize;}else if(position>right){position-=innerSize;}
this.translate(sign*position);},trim:function trim(position){if(!Splide.options.trimSpace||Splide.is(LOOP)){return position;}
var edge=sign*(Layout.totalSize()-Layout.size-Layout.gap);return between(position,edge,0);},toIndex:function toIndex(position){var _this2=this;var index=0;var minDistance=Infinity;Elements.getSlides(true).forEach(function(Slide){var slideIndex=Slide.index;var distance=abs(_this2.toPosition(slideIndex)-position);if(distance<minDistance){minDistance=distance;index=slideIndex;}});return index;},toCoord:function toCoord(position){return{x:isVertical?0:position,y:isVertical?position:0};},toPosition:function toPosition(index){var position=Layout.totalSize(index)-Layout.slideSize(index)-Layout.gap;return sign*(position+this.offset(index));},offset:function offset(index){var focus=Splide.options.focus;var slideSize=Layout.slideSize(index);if(focus==='center'){return-(Layout.size-slideSize)/2;}
return-(parseInt(focus)||0)*(slideSize+Layout.gap);},get position(){var prop=isVertical?'top':isRTL?'right':'left';return getRect(list)[prop]-(getRect(Elements.track)[prop]-Layout.padding[prop]*sign);}};function onTransitionEnd(destIndex,newIndex,prevIndex,silently){applyStyle(list,{transition:''});isLoopPending=false;if(!isFade){Track.jump(newIndex);}
if(!silently){Splide.emit('moved',newIndex,prevIndex,destIndex);}}
function getTrimmedPosition(index){return Track.trim(Track.toPosition(index));}
return Track;});;var clones=(function(Splide,Components){var clones=[];var cloneCount=0;var Elements=Components.Elements;var Clones={mount:function mount(){var _this=this;if(Splide.is(LOOP)){init();Splide.on('refresh:before',function(){_this.destroy();}).on('refresh',init).on('resize',function(){if(cloneCount!==getCloneCount()){_this.destroy();Splide.refresh();}});}},destroy:function destroy(){dom_remove(clones);clones=[];},get clones(){return clones;},get length(){return clones.length;}};function init(){Clones.destroy();cloneCount=getCloneCount();generateClones(cloneCount);}
function generateClones(count){var length=Elements.length,register=Elements.register;if(length){var slides=Elements.slides;while(slides.length<count){slides=slides.concat(slides);}
slides.slice(0,count).forEach(function(elm,index){var clone=cloneDeeply(elm);append(Elements.list,clone);clones.push(clone);register(clone,index+length,index%length);});slides.slice(-count).forEach(function(elm,index){var clone=cloneDeeply(elm);before(clone,slides[0]);clones.push(clone);register(clone,index-count,(length+index-count%length)%length);});}}
function getCloneCount(){var options=Splide.options;if(options.clones){return options.clones;}
var baseCount=options.autoWidth||options.autoHeight?Elements.length:options.perPage;var dimension=options.direction===TTB?'Height':'Width';var fixedSize=toPixel(Splide.root,options["fixed"+dimension]);if(fixedSize){baseCount=Math.ceil(Elements.track["client"+dimension]/fixedSize);}
return baseCount*(options.drag?options.flickMaxPages+1:1);}
function cloneDeeply(elm){var clone=elm.cloneNode(true);addClass(clone,Splide.classes.clone);removeAttribute(clone,'id');return clone;}
return Clones;});;var horizontal=(function(Splide,Components){var Elements=Components.Elements;var root=Splide.root;var track;var options=Splide.options;return{margin:'margin'+(options.direction===RTL?'Left':'Right'),height:0,init:function init(){this.resize();},resize:function resize(){options=Splide.options;track=Elements.track;this.gap=toPixel(root,options.gap);var padding=options.padding;var left=toPixel(root,padding.left||padding);var right=toPixel(root,padding.right||padding);this.padding={left:left,right:right};applyStyle(track,{paddingLeft:unit(left),paddingRight:unit(right)});},totalWidth:function totalWidth(index){if(index===void 0){index=Splide.length-1;}
var Slide=Elements.getSlide(index);var width=0;if(Slide){var slideRect=getRect(Slide.slide);var listRect=getRect(Elements.list);if(options.direction===RTL){width=listRect.right-slideRect.left;}else{width=slideRect.right-listRect.left;}
width+=this.gap;}
return width;},slideWidth:function slideWidth(index){if(options.autoWidth){var Slide=Elements.getSlide(index);return Slide?Slide.slide.offsetWidth:0;}
var width=options.fixedWidth||(this.width+this.gap)/options.perPage-this.gap;return toPixel(root,width);},slideHeight:function slideHeight(){var height=options.height||options.fixedHeight||this.width*options.heightRatio;return toPixel(root,height);},get width(){return track.clientWidth-this.padding.left-this.padding.right;}};});;var vertical=(function(Splide,Components){var Elements=Components.Elements;var root=Splide.root;var track;var options;return{margin:'marginBottom',init:function init(){this.resize();},resize:function resize(){options=Splide.options;track=Elements.track;this.gap=toPixel(root,options.gap);var padding=options.padding;var top=toPixel(root,padding.top||padding);var bottom=toPixel(root,padding.bottom||padding);this.padding={top:top,bottom:bottom};applyStyle(track,{paddingTop:unit(top),paddingBottom:unit(bottom)});},totalHeight:function totalHeight(index){if(index===void 0){index=Splide.length-1;}
var Slide=Elements.getSlide(index);if(Slide){return getRect(Slide.slide).bottom-getRect(Elements.list).top+this.gap;}
return 0;},slideWidth:function slideWidth(){return toPixel(root,options.fixedWidth||this.width);},slideHeight:function slideHeight(index){if(options.autoHeight){var Slide=Elements.getSlide(index);return Slide?Slide.slide.offsetHeight:0;}
var height=options.fixedHeight||(this.height+this.gap)/options.perPage-this.gap;return toPixel(root,height);},get width(){return track.clientWidth;},get height(){var height=options.height||this.width*options.heightRatio;exist(height,'"height" or "heightRatio" is missing.');return toPixel(root,height)-this.padding.top-this.padding.bottom;}};});;function throttle(func,wait){var timeout;return function(){if(!timeout){timeout=setTimeout(function(){func();timeout=null;},wait);}};}
function createInterval(callback,interval,progress){var _window=window,requestAnimationFrame=_window.requestAnimationFrame;var start,elapse,rate,_pause=true;var step=function step(timestamp){if(!_pause){if(!start){start=timestamp;if(rate&&rate<1){start-=rate*interval;}}
elapse=timestamp-start;rate=elapse/interval;if(elapse>=interval){start=0;rate=1;callback();}
if(progress){progress(rate);}
requestAnimationFrame(step);}};return{pause:function pause(){_pause=true;start=0;},play:function play(reset){start=0;if(reset){rate=0;}
if(_pause){_pause=false;requestAnimationFrame(step);}}};};var layout=(function(Splide,Components){var Elements=Components.Elements;var isVertical=Splide.options.direction===TTB;var Layout=object_assign({mount:function mount(){bind();init();this.totalSize=isVertical?this.totalHeight:this.totalWidth;this.slideSize=isVertical?this.slideHeight:this.slideWidth;},destroy:function destroy(){removeAttribute([Elements.list,Elements.track],'style');},get size(){return isVertical?this.height:this.width;}},isVertical?vertical(Splide,Components):horizontal(Splide,Components));function init(){Layout.init();applyStyle(Splide.root,{maxWidth:unit(Splide.options.width)});Elements.each(function(Slide){Slide.slide.style[Layout.margin]=unit(Layout.gap);});resize();}
function bind(){Splide.on('resize load',throttle(function(){Splide.emit('resize');},Splide.options.throttle),window).on('resize',resize).on('updated refresh',init);}
function resize(){var options=Splide.options;Layout.resize();applyStyle(Elements.track,{height:unit(Layout.height)});var slideHeight=options.autoHeight?null:unit(Layout.slideHeight());Elements.each(function(Slide){applyStyle(Slide.container,{height:slideHeight});applyStyle(Slide.slide,{width:options.autoWidth?null:unit(Layout.slideWidth(Slide.index)),height:Slide.container?null:slideHeight});});Splide.emit('resized');}
return Layout;});;var drag_abs=Math.abs;var MIN_VELOCITY=0.1;var FRICTION_REDUCER=7;var drag=(function(Splide,Components){var Track=Components.Track;var Controller=Components.Controller;var startCoord;var startInfo;var currentInfo;var isDragging;var isVertical=Splide.options.direction===TTB;var axis=isVertical?'y':'x';var Drag={disabled:false,mount:function mount(){var _this=this;var Elements=Components.Elements;var track=Elements.track;Splide.on('touchstart mousedown',start,track).on('touchmove mousemove',move,track,{passive:false}).on('touchend touchcancel mouseleave mouseup dragend',end,track).on('mounted refresh',function(){each(Elements.list.querySelectorAll('img, a'),function(elm){Splide.off('dragstart',elm).on('dragstart',function(e){e.preventDefault();},elm,{passive:false});});}).on('mounted updated',function(){_this.disabled=!Splide.options.drag;});}};function start(e){if(!Drag.disabled&&!isDragging){init(e);}}
function init(e){startCoord=Track.toCoord(Track.position);startInfo=analyze(e,{});currentInfo=startInfo;}
function move(e){if(startInfo){currentInfo=analyze(e,startInfo);if(isDragging){if(e.cancelable){e.preventDefault();}
if(!Splide.is(FADE)){var position=startCoord[axis]+currentInfo.offset[axis];Track.translate(resist(position));}}else{if(shouldMove(currentInfo)){Splide.emit('drag',startInfo);isDragging=true;Track.cancel();init(e);}}}}
function shouldMove(_ref){var offset=_ref.offset;if(Splide.State.is(MOVING)&&Splide.options.waitForTransition){return false;}
var angle=Math.atan(drag_abs(offset.y)/drag_abs(offset.x))*180/Math.PI;if(isVertical){angle=90-angle;}
return angle<Splide.options.dragAngleThreshold;}
function resist(position){if(Splide.is(SLIDE)){var sign=Track.sign;var _start=sign*Track.trim(Track.toPosition(0));var _end=sign*Track.trim(Track.toPosition(Controller.edgeIndex));position*=sign;if(position<_start){position=_start-FRICTION_REDUCER*Math.log(_start-position);}else if(position>_end){position=_end+FRICTION_REDUCER*Math.log(position-_end);}
position*=sign;}
return position;}
function end(){startInfo=null;if(isDragging){Splide.emit('dragged',currentInfo);go(currentInfo);isDragging=false;}}
function go(info){var velocity=info.velocity[axis];var absV=drag_abs(velocity);if(absV>0){var options=Splide.options;var index=Splide.index;var sign=velocity<0?-1:1;var destIndex=index;if(!Splide.is(FADE)){var destination=Track.position;if(absV>options.flickVelocityThreshold&&drag_abs(info.offset[axis])<options.swipeDistanceThreshold){destination+=sign*Math.min(absV*options.flickPower,Components.Layout.size*(options.flickMaxPages||1));}
destIndex=Track.toIndex(destination);}
if(destIndex===index&&absV>MIN_VELOCITY){destIndex=index+sign*Track.sign;}
if(Splide.is(SLIDE)){destIndex=between(destIndex,0,Controller.edgeIndex);}
Controller.go(destIndex,options.isNavigation);}}
function analyze(e,startInfo){var timeStamp=e.timeStamp,touches=e.touches;var _ref2=touches?touches[0]:e,clientX=_ref2.clientX,clientY=_ref2.clientY;var _ref3=startInfo.to||{},_ref3$x=_ref3.x,fromX=_ref3$x===void 0?clientX:_ref3$x,_ref3$y=_ref3.y,fromY=_ref3$y===void 0?clientY:_ref3$y;var startTime=startInfo.time||0;var offset={x:clientX-fromX,y:clientY-fromY};var duration=timeStamp-startTime;var velocity={x:offset.x/duration,y:offset.y/duration};return{to:{x:clientX,y:clientY},offset:offset,time:timeStamp,velocity:velocity};}
return Drag;});;var click=(function(Splide,Components){var disabled=false;var Click={required:Splide.options.drag,mount:function mount(){Splide.on('click',onClick,Components.Elements.track,{capture:true}).on('drag',function(){disabled=true;}).on('dragged',function(){setTimeout(function(){disabled=false;});});}};function onClick(e){if(disabled){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();}}
return Click;});;var PAUSE_FLAGS={HOVER:1,FOCUS:2,MANUAL:3};var autoplay=(function(Splide,Components,name){var flags=[];var interval;var Elements=Components.Elements;var Autoplay={required:Splide.options.autoplay,mount:function mount(){var options=Splide.options;if(Elements.slides.length>options.perPage){interval=createInterval(function(){Splide.go('>');},options.interval,function(rate){Splide.emit(name+":playing",rate);if(Elements.bar){applyStyle(Elements.bar,{width:rate*100+"%"});}});bind();this.play();}},play:function play(flag){if(flag===void 0){flag=0;}
flags=flags.filter(function(f){return f!==flag;});if(!flags.length){Splide.emit(name+":play");interval.play(Splide.options.resetProgress);}},pause:function pause(flag){if(flag===void 0){flag=0;}
interval.pause();if(flags.indexOf(flag)===-1){flags.push(flag);}
if(flags.length===1){Splide.emit(name+":pause");}}};function bind(){var options=Splide.options;var sibling=Splide.sibling;var elms=[Splide.root,sibling?sibling.root:null];if(options.pauseOnHover){switchOn(elms,'mouseleave',PAUSE_FLAGS.HOVER,true);switchOn(elms,'mouseenter',PAUSE_FLAGS.HOVER,false);}
if(options.pauseOnFocus){switchOn(elms,'focusout',PAUSE_FLAGS.FOCUS,true);switchOn(elms,'focusin',PAUSE_FLAGS.FOCUS,false);}
if(Elements.play){Splide.on('click',function(){Autoplay.play(PAUSE_FLAGS.FOCUS);Autoplay.play(PAUSE_FLAGS.MANUAL);},Elements.play);}
if(Elements.pause){switchOn([Elements.pause],'click',PAUSE_FLAGS.MANUAL,false);}
Splide.on('move refresh',function(){Autoplay.play();}).on('destroy',function(){Autoplay.pause();});}
function switchOn(elms,event,flag,play){elms.forEach(function(elm){Splide.on(event,function(){Autoplay[play?'play':'pause'](flag);},elm);});}
return Autoplay;});;var cover=(function(Splide,Components){var options=Splide.options;var Cover={required:options.cover,mount:function mount(){Splide.on('lazyload:loaded',function(img){cover(img,false);});Splide.on('mounted updated refresh',function(){return apply(false);});},destroy:function destroy(){apply(true);}};function apply(uncover){Components.Elements.each(function(Slide){var img=child(Slide.slide,'IMG')||child(Slide.container,'IMG');if(img&&img.src){cover(img,uncover);}});}
function cover(img,uncover){applyStyle(img.parentElement,{background:uncover?'':"center/cover no-repeat url(\""+img.src+"\")"});applyStyle(img,{display:uncover?'':'none'});}
return Cover;});;var XML_NAME_SPACE='http://www.w3.org/2000/svg';var PATH='m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z';var SIZE=40;;var arrows=(function(Splide,Components,name){var prev;var next;var classes=Splide.classes;var root=Splide.root;var created;var Elements=Components.Elements;var Arrows={required:Splide.options.arrows,mount:function mount(){prev=Elements.arrows.prev;next=Elements.arrows.next;if((!prev||!next)&&Splide.options.arrows){prev=createArrow(true);next=createArrow(false);created=true;appendArrows();}
if(prev&&next){bind();}
this.arrows={prev:prev,next:next};},mounted:function mounted(){Splide.emit(name+":mounted",prev,next);},destroy:function destroy(){removeAttribute([prev,next],'disabled');if(created){dom_remove(prev.parentElement);}}};function bind(){Splide.on('click',function(){Splide.go('<');},prev).on('click',function(){Splide.go('>');},next).on('mounted move updated refresh',updateDisabled);}
function updateDisabled(){var _Components$Controlle=Components.Controller,prevIndex=_Components$Controlle.prevIndex,nextIndex=_Components$Controlle.nextIndex;var isEnough=Splide.length>Splide.options.perPage||Splide.is(LOOP);prev.disabled=prevIndex<0||!isEnough;next.disabled=nextIndex<0||!isEnough;Splide.emit(name+":updated",prev,next,prevIndex,nextIndex);}
function appendArrows(){var wrapper=create('div',{"class":classes.arrows});append(wrapper,prev);append(wrapper,next);var slider=Elements.slider;var parent=Splide.options.arrows==='slider'&&slider?slider:root;before(wrapper,parent.firstElementChild);}
function createArrow(prev){var arrow="<button class=\""+classes.arrow+" "+(prev?classes.prev:classes.next)+"\" type=\"button\">"+("<svg xmlns=\""+XML_NAME_SPACE+"\"\tviewBox=\"0 0 "+SIZE+" "+SIZE+"\"\twidth=\""+SIZE+"\"\theight=\""+SIZE+"\">")+("<path d=\""+(Splide.options.arrowPath||PATH)+"\" />");return domify(arrow);}
return Arrows;});;var ATTRIBUTES_UPDATE_EVENT='move.page';var UPDATE_EVENT='updated.page refresh.page';var pagination=(function(Splide,Components,name){var data={};var Elements=Components.Elements;var Pagination={mount:function mount(){var pagination=Splide.options.pagination;if(pagination){data=createPagination();var slider=Elements.slider;var parent=pagination==='slider'&&slider?slider:Splide.root;append(parent,data.list);Splide.on(ATTRIBUTES_UPDATE_EVENT,updateAttributes);}
Splide.off(UPDATE_EVENT).on(UPDATE_EVENT,function(){Pagination.destroy();if(Splide.options.pagination){Pagination.mount();Pagination.mounted();}});},mounted:function mounted(){if(Splide.options.pagination){var index=Splide.index;Splide.emit(name+":mounted",data,this.getItem(index));updateAttributes(index,-1);}},destroy:function destroy(){dom_remove(data.list);if(data.items){data.items.forEach(function(item){Splide.off('click',item.button);});}
Splide.off(ATTRIBUTES_UPDATE_EVENT);data={};},getItem:function getItem(index){return data.items[Components.Controller.toPage(index)];},get data(){return data;}};function updateAttributes(index,prevIndex){var prev=Pagination.getItem(prevIndex);var curr=Pagination.getItem(index);var active=STATUS_CLASSES.active;if(prev){removeClass(prev.button,active);}
if(curr){addClass(curr.button,active);}
Splide.emit(name+":updated",data,prev,curr);}
function createPagination(){var options=Splide.options;var classes=Splide.classes;var list=create('ul',{"class":classes.pagination});var items=Elements.getSlides(false).filter(function(Slide){return options.focus!==false||Slide.index%options.perPage===0;}).map(function(Slide,page){var li=create('li',{});var button=create('button',{"class":classes.page,type:'button'});append(li,button);append(list,li);Splide.on('click',function(){Splide.go(">"+page);},button);return{li:li,button:button,page:page,Slides:Elements.getSlidesByPage(page)};});return{list:list,items:items};}
return Pagination;});;var SRC_DATA_NAME='data-splide-lazy';var SRCSET_DATA_NAME='data-splide-lazy-srcset';var lazyload=(function(Splide,Components,name){var nextIndex;var images;var options=Splide.options;var isSequential=options.lazyLoad==='sequential';var Lazyload={required:options.lazyLoad,mount:function mount(){Splide.on('mounted refresh',function(){init();Components.Elements.each(function(Slide){each(Slide.slide.querySelectorAll("["+SRC_DATA_NAME+"], ["+SRCSET_DATA_NAME+"]"),function(img){if(!img.src&&!img.srcset){images.push({img:img,Slide:Slide});applyStyle(img,{display:'none'});}});});if(isSequential){loadNext();}});if(!isSequential){Splide.on("mounted refresh moved."+name,check);}},destroy:init};function init(){images=[];nextIndex=0;}
function check(index){index=isNaN(index)?Splide.index:index;images=images.filter(function(image){if(image.Slide.isWithin(index,options.perPage*(options.preloadPages+1))){load(image.img,image.Slide);return false;}
return true;});if(!images[0]){Splide.off("moved."+name);}}
function load(img,Slide){addClass(Slide.slide,STATUS_CLASSES.loading);var spinner=create('span',{"class":Splide.classes.spinner});append(img.parentElement,spinner);img.onload=function(){loaded(img,spinner,Slide,false);};img.onerror=function(){loaded(img,spinner,Slide,true);};setAttribute(img,'srcset',getAttribute(img,SRCSET_DATA_NAME)||'');setAttribute(img,'src',getAttribute(img,SRC_DATA_NAME)||'');}
function loadNext(){if(nextIndex<images.length){var image=images[nextIndex];load(image.img,image.Slide);}
nextIndex++;}
function loaded(img,spinner,Slide,error){removeClass(Slide.slide,STATUS_CLASSES.loading);if(!error){dom_remove(spinner);applyStyle(img,{display:''});Splide.emit(name+":loaded",img).emit('resize');}
if(isSequential){loadNext();}}
return Lazyload;});;var ARIA_CURRENRT='aria-current';var ARIA_CONTROLS='aria-controls';var ARIA_LABEL='aria-label';var ARIA_LABELLEDBY='aria-labelledby';var ARIA_HIDDEN='aria-hidden';var TAB_INDEX='tabindex';;var KEY_MAP={ltr:{ArrowLeft:'<',ArrowRight:'>',Left:'<',Right:'>'},rtl:{ArrowLeft:'>',ArrowRight:'<',Left:'>',Right:'<'},ttb:{ArrowUp:'<',ArrowDown:'>',Up:'<',Down:'>'}};var keyboard=(function(Splide){var target;return{mount:function mount(){Splide.on('mounted updated',function(){var options=Splide.options;var root=Splide.root;var map=KEY_MAP[options.direction];var keyboard=options.keyboard;if(target){Splide.off('keydown',target);removeAttribute(root,TAB_INDEX);}
if(keyboard){if(keyboard==='focused'){target=root;setAttribute(root,TAB_INDEX,0);}else{target=document;}
Splide.on('keydown',function(e){if(map[e.key]){Splide.go(map[e.key]);}},target);}});}};});;var a11y=(function(Splide,Components){var i18n=Splide.i18n;var Elements=Components.Elements;var allAttributes=[ARIA_HIDDEN,TAB_INDEX,ARIA_CONTROLS,ARIA_LABEL,ARIA_CURRENRT,'role'];var A11y={required:Splide.options.accessibility,mount:function mount(){Splide.on('visible',function(Slide){updateSlide(Slide.slide,true);}).on('hidden',function(Slide){updateSlide(Slide.slide,false);}).on('arrows:mounted',initArrows).on('arrows:updated',updateArrows).on('pagination:mounted',initPagination).on('pagination:updated',updatePagination).on('refresh',function(){removeAttribute(Components.Clones.clones,allAttributes);});if(Splide.options.isNavigation){Splide.on('navigation:mounted navigation:updated',initNavigation).on('active',function(Slide){updateNavigation(Slide,true);}).on('inactive',function(Slide){updateNavigation(Slide,false);});}
initAutoplay();},destroy:function destroy(){var Arrows=Components.Arrows;var arrows=Arrows?Arrows.arrows:{};removeAttribute(Elements.slides.concat([arrows.prev,arrows.next,Elements.play,Elements.pause]),allAttributes);}};function updateSlide(slide,visible){setAttribute(slide,ARIA_HIDDEN,!visible);if(Splide.options.slideFocus){setAttribute(slide,TAB_INDEX,visible?0:-1);}}
function initArrows(prev,next){var controls=Elements.track.id;setAttribute(prev,ARIA_CONTROLS,controls);setAttribute(next,ARIA_CONTROLS,controls);}
function updateArrows(prev,next,prevIndex,nextIndex){var index=Splide.index;var prevLabel=prevIndex>-1&&index<prevIndex?i18n.last:i18n.prev;var nextLabel=nextIndex>-1&&index>nextIndex?i18n.first:i18n.next;setAttribute(prev,ARIA_LABEL,prevLabel);setAttribute(next,ARIA_LABEL,nextLabel);}
function initPagination(data,activeItem){if(activeItem){setAttribute(activeItem.button,ARIA_CURRENRT,true);}
data.items.forEach(function(item){var options=Splide.options;var text=options.focus===false&&options.perPage>1?i18n.pageX:i18n.slideX;var label=sprintf(text,item.page+1);var button=item.button;var controls=item.Slides.map(function(Slide){return Slide.slide.id;});setAttribute(button,ARIA_CONTROLS,controls.join(' '));setAttribute(button,ARIA_LABEL,label);});}
function updatePagination(data,prev,curr){if(prev){removeAttribute(prev.button,ARIA_CURRENRT);}
if(curr){setAttribute(curr.button,ARIA_CURRENRT,true);}}
function initAutoplay(){['play','pause'].forEach(function(name){var elm=Elements[name];if(elm){if(!isButton(elm)){setAttribute(elm,'role','button');}
setAttribute(elm,ARIA_CONTROLS,Elements.track.id);setAttribute(elm,ARIA_LABEL,i18n[name]);}});}
function initNavigation(main){Elements.each(function(Slide){var slide=Slide.slide;var realIndex=Slide.realIndex;if(!isButton(slide)){setAttribute(slide,'role','button');}
var slideIndex=realIndex>-1?realIndex:Slide.index;var label=sprintf(i18n.slideX,slideIndex+1);var mainSlide=main.Components.Elements.getSlide(slideIndex);setAttribute(slide,ARIA_LABEL,label);if(mainSlide){setAttribute(slide,ARIA_CONTROLS,mainSlide.slide.id);}});}
function updateNavigation(_ref,active){var slide=_ref.slide;if(active){setAttribute(slide,ARIA_CURRENRT,true);}else{removeAttribute(slide,ARIA_CURRENRT);}}
function isButton(elm){return elm.tagName==='BUTTON';}
return A11y;});;var SYNC_EVENT='move.sync';var CLICK_EVENTS='mouseup touchend';var TRIGGER_KEYS=[' ','Enter','Spacebar'];var sync=(function(Splide){var sibling=Splide.sibling;var isNavigation=sibling&&sibling.options.isNavigation;var Sync={required:!!sibling,mount:function mount(){syncMain();syncSibling();if(isNavigation){bind();Splide.on('refresh',function(){setTimeout(function(){bind();sibling.emit('navigation:updated',Splide);});});}},mounted:function mounted(){if(isNavigation){sibling.emit('navigation:mounted',Splide);}}};function syncMain(){Splide.on(SYNC_EVENT,function(newIndex,prevIndex,destIndex){sibling.off(SYNC_EVENT).go(sibling.is(LOOP)?destIndex:newIndex,false);syncSibling();});}
function syncSibling(){sibling.on(SYNC_EVENT,function(newIndex,prevIndex,destIndex){Splide.off(SYNC_EVENT).go(Splide.is(LOOP)?destIndex:newIndex,false);syncMain();});}
function bind(){sibling.Components.Elements.each(function(_ref){var slide=_ref.slide,index=_ref.index;Splide.off(CLICK_EVENTS,slide).on(CLICK_EVENTS,function(e){if(!e.button||e.button===0){moveSibling(index);}},slide);Splide.off('keyup',slide).on('keyup',function(e){if(TRIGGER_KEYS.indexOf(e.key)>-1){e.preventDefault();moveSibling(index);}},slide,{passive:false});});}
function moveSibling(index){if(Splide.State.is(IDLE)){sibling.go(index);}}
return Sync;});;var THROTTLE=50;var breakpoints=(function(Splide){var breakpoints=Splide.options.breakpoints;var throttledCheck=throttle(check,THROTTLE);var initialOptions;var map=[];var prevPoint;var Breakpoints={required:breakpoints&&matchMedia,mount:function mount(){map=Object.keys(breakpoints).sort(function(n,m){return+n-+m;}).map(function(point){return{point:point,mql:matchMedia("(max-width:"+point+"px)")};});this.destroy(true);addEventListener('resize',throttledCheck);initialOptions=Splide.options;check();},destroy:function destroy(completely){if(completely){removeEventListener('resize',throttledCheck);}}};function check(){var point=getPoint();if(point!==prevPoint){prevPoint=point;var State=Splide.State;var options=breakpoints[point]||initialOptions;var destroy=options.destroy;if(destroy){Splide.options=initialOptions;Splide.destroy(destroy==='completely');}else{if(State.is(DESTROYED)){Splide.mount();}
Splide.options=options;}}}
function getPoint(){var item=map.filter(function(item){return item.mql.matches;})[0];return item?item.point:-1;}
return Breakpoints;});;var COMPLETE={Options:options,Breakpoints:breakpoints,Controller:controller,Elements:components_elements,Track:track,Clones:clones,Layout:layout,Drag:drag,Click:click,Autoplay:autoplay,Cover:cover,Arrows:arrows,Pagination:pagination,LazyLoad:lazyload,Keyboard:keyboard,Sync:sync,A11y:a11y};var LIGHT={Options:options,Controller:controller,Elements:components_elements,Track:track,Clones:clones,Layout:layout,Drag:drag,Click:click,Arrows:arrows,Pagination:pagination,A11y:a11y};;function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}
var complete_Splide=function(_Core){_inheritsLoose(Splide,_Core);function Splide(root,options){return _Core.call(this,root,options,COMPLETE)||this;}
return Splide;}(Splide);window.Splide=complete_Splide;})();


/*===============================
/1/plugins/system/t3/base-bs3/bootstrap/js/bootstrap.js
================================================================================*/;
/*!
 * Bootstrap v3.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */
if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}
+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.')
if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>3)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')}}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap')
var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}
return false}
$.fn.emulateTransitionEnd=function(duration){var called=false
var $el=this
$(this).one('bsTransitionEnd',function(){called=true})
var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
setTimeout(callback,duration)
return this}
$(function(){$.support.transition=transitionEnd()
if(!$.support.transition)return
$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]'
var Alert=function(el){$(el).on('click',dismiss,this.close)}
Alert.VERSION='3.4.1'
Alert.TRANSITION_DURATION=150
Alert.prototype.close=function(e){var $this=$(this)
var selector=$this.attr('data-target')
if(!selector){selector=$this.attr('href')
selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
selector=selector==='#'?[]:selector
var $parent=$(document).find(selector)
if(e)e.preventDefault()
if(!$parent.length){$parent=$this.closest('.alert')}
$parent.trigger(e=$.Event('close.bs.alert'))
if(e.isDefaultPrevented())return
$parent.removeClass('in')
function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()}
$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.alert')
if(!data)$this.data('bs.alert',(data=new Alert(this)))
if(typeof option=='string')data[option].call($this)})}
var old=$.fn.alert
$.fn.alert=Plugin
$.fn.alert.Constructor=Alert
$.fn.alert.noConflict=function(){$.fn.alert=old
return this}
$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element)
this.options=$.extend({},Button.DEFAULTS,options)
this.isLoading=false}
Button.VERSION='3.4.1'
Button.DEFAULTS={loadingText:'loading...'}
Button.prototype.setState=function(state){var d='disabled'
var $el=this.$element
var val=$el.is('input')?'val':'html'
var data=$el.data()
state+='Text'
if(data.resetText==null)$el.data('resetText',$el[val]())
setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state])
if(state=='loadingText'){this.isLoading=true
$el.addClass(d).attr(d,d).prop(d,true)}else if(this.isLoading){this.isLoading=false
$el.removeClass(d).removeAttr(d).prop(d,false)}},this),0)}
Button.prototype.toggle=function(){var changed=true
var $parent=this.$element.closest('[data-toggle="buttons"]')
if($parent.length){var $input=this.$element.find('input')
if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false
$parent.find('.active').removeClass('active')
this.$element.addClass('active')}else if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false
this.$element.toggleClass('active')}
$input.prop('checked',this.$element.hasClass('active'))
if(changed)$input.trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'))
this.$element.toggleClass('active')}}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.button')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.button',(data=new Button(this,options)))
if(option=='toggle')data.toggle()
else if(option)data.setState(option)})}
var old=$.fn.button
$.fn.button=Plugin
$.fn.button.Constructor=Button
$.fn.button.noConflict=function(){$.fn.button=old
return this}
$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn')
Plugin.call($btn,'toggle')
if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault()
if($btn.is('input,button'))$btn.trigger('focus')
else $btn.find('input:visible,button:visible').first().trigger('focus')}}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element)
this.$indicators=this.$element.find('.carousel-indicators')
this.options=options
this.paused=null
this.sliding=null
this.interval=null
this.$active=null
this.$items=null
this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this))
this.options.pause=='hover'&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this))}
Carousel.VERSION='3.4.1'
Carousel.TRANSITION_DURATION=600
Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true}
Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return
switch(e.which){case 37:this.prev();break
case 39:this.next();break
default:return}
e.preventDefault()}
Carousel.prototype.cycle=function(e){e||(this.paused=false)
this.interval&&clearInterval(this.interval)
this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval))
return this}
Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item')
return this.$items.index(item||this.$active)}
Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active)
var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1))
if(willWrap&&!this.options.wrap)return active
var delta=direction=='prev'?-1:1
var itemIndex=(activeIndex+delta)%this.$items.length
return this.$items.eq(itemIndex)}
Carousel.prototype.to=function(pos){var that=this
var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'))
if(pos>(this.$items.length-1)||pos<0)return
if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)})
if(activeIndex==pos)return this.pause().cycle()
return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))}
Carousel.prototype.pause=function(e){e||(this.paused=true)
if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end)
this.cycle(true)}
this.interval=clearInterval(this.interval)
return this}
Carousel.prototype.next=function(){if(this.sliding)return
return this.slide('next')}
Carousel.prototype.prev=function(){if(this.sliding)return
return this.slide('prev')}
Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active')
var $next=next||this.getItemForDirection(type,$active)
var isCycling=this.interval
var direction=type=='next'?'left':'right'
var that=this
if($next.hasClass('active'))return(this.sliding=false)
var relatedTarget=$next[0]
var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
this.$element.trigger(slideEvent)
if(slideEvent.isDefaultPrevented())return
this.sliding=true
isCycling&&this.pause()
if(this.$indicators.length){this.$indicators.find('.active').removeClass('active')
var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)])
$nextIndicator&&$nextIndicator.addClass('active')}
var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type)
if(typeof $next==='object'&&$next.length){$next[0].offsetWidth}
$active.addClass(direction)
$next.addClass(direction)
$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active')
$active.removeClass(['active',direction].join(' '))
that.sliding=false
setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active')
$next.addClass('active')
this.sliding=false
this.$element.trigger(slidEvent)}
isCycling&&this.cycle()
return this}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.carousel')
var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option)
var action=typeof option=='string'?option:options.slide
if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)))
if(typeof option=='number')data.to(option)
else if(action)data[action]()
else if(options.interval)data.pause().cycle()})}
var old=$.fn.carousel
$.fn.carousel=Plugin
$.fn.carousel.Constructor=Carousel
$.fn.carousel.noConflict=function(){$.fn.carousel=old
return this}
var clickHandler=function(e){var $this=$(this)
var href=$this.attr('href')
if(href){href=href.replace(/.*(?=#[^\s]+$)/,'')}
var target=$this.attr('data-target')||href
var $target=$(document).find(target)
if(!$target.hasClass('carousel'))return
var options=$.extend({},$target.data(),$this.data())
var slideIndex=$this.attr('data-slide-to')
if(slideIndex)options.interval=false
Plugin.call($target,options)
if(slideIndex){$target.data('bs.carousel').to(slideIndex)}
e.preventDefault()}
$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler)
$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this)
Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element)
this.options=$.extend({},Collapse.DEFAULTS,options)
this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]')
this.transitioning=null
if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}
if(this.options.toggle)this.toggle()}
Collapse.VERSION='3.4.1'
Collapse.TRANSITION_DURATION=350
Collapse.DEFAULTS={toggle:true}
Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width')
return hasWidth?'width':'height'}
Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return
var activesData
var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing')
if(actives&&actives.length){activesData=actives.data('bs.collapse')
if(activesData&&activesData.transitioning)return}
var startEvent=$.Event('show.bs.collapse')
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented())return
if(actives&&actives.length){Plugin.call(actives,'hide')
activesData||actives.data('bs.collapse',null)}
var dimension=this.dimension()
this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true)
this.$trigger.removeClass('collapsed').attr('aria-expanded',true)
this.transitioning=1
var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('')
this.transitioning=0
this.$element.trigger('shown.bs.collapse')}
if(!$.support.transition)return complete.call(this)
var scrollSize=$.camelCase(['scroll',dimension].join('-'))
this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])}
Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return
var startEvent=$.Event('hide.bs.collapse')
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented())return
var dimension=this.dimension()
this.$element[dimension](this.$element[dimension]())[0].offsetHeight
this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false)
this.$trigger.addClass('collapsed').attr('aria-expanded',false)
this.transitioning=1
var complete=function(){this.transitioning=0
this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')}
if(!$.support.transition)return complete.call(this)
this.$element
[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)}
Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()}
Collapse.prototype.getParent=function(){return $(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element)
this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()}
Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in')
$element.attr('aria-expanded',isOpen)
$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)}
function getTargetFromTrigger($trigger){var href
var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')
return $(document).find(target)}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.collapse')
var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option)
if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false
if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.collapse
$.fn.collapse=Plugin
$.fn.collapse.Constructor=Collapse
$.fn.collapse.noConflict=function(){$.fn.collapse=old
return this}
$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this)
if(!$this.attr('data-target'))e.preventDefault()
var $target=getTargetFromTrigger($this)
var data=$target.data('bs.collapse')
var option=data?'toggle':$this.data()
Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop'
var toggle='[data-toggle="dropdown"]'
var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)}
Dropdown.VERSION='3.4.1'
function getParent($this){var selector=$this.attr('data-target')
if(!selector){selector=$this.attr('href')
selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}
var $parent=selector!=='#'?$(document).find(selector):null
return $parent&&$parent.length?$parent:$this.parent()}
function clearMenus(e){if(e&&e.which===3)return
$(backdrop).remove()
$(toggle).each(function(){var $this=$(this)
var $parent=getParent($this)
var relatedTarget={relatedTarget:this}
if(!$parent.hasClass('open'))return
if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return
$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget))
if(e.isDefaultPrevented())return
$this.attr('aria-expanded','false')
$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget))})}
Dropdown.prototype.toggle=function(e){var $this=$(this)
if($this.is('.disabled, :disabled'))return
var $parent=getParent($this)
var isActive=$parent.hasClass('open')
clearMenus()
if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus)}
var relatedTarget={relatedTarget:this}
$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget))
if(e.isDefaultPrevented())return
$this.trigger('focus').attr('aria-expanded','true')
$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget))}
return false}
Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return
var $this=$(this)
e.preventDefault()
e.stopPropagation()
if($this.is('.disabled, :disabled'))return
var $parent=getParent($this)
var isActive=$parent.hasClass('open')
if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus')
return $this.trigger('click')}
var desc=' li:not(.disabled):visible a'
var $items=$parent.find('.dropdown-menu'+desc)
if(!$items.length)return
var index=$items.index(e.target)
if(e.which==38&&index>0)index--
if(e.which==40&&index<$items.length-1)index++
if(!~index)index=0
$items.eq(index).trigger('focus')}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.dropdown')
if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)))
if(typeof option=='string')data[option].call($this)})}
var old=$.fn.dropdown
$.fn.dropdown=Plugin
$.fn.dropdown.Constructor=Dropdown
$.fn.dropdown.noConflict=function(){$.fn.dropdown=old
return this}
$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown)}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options
this.$body=$(document.body)
this.$element=$(element)
this.$dialog=this.$element.find('.modal-dialog')
this.$backdrop=null
this.isShown=null
this.originalBodyPad=null
this.scrollbarWidth=0
this.ignoreBackdropClick=false
this.fixedContent='.navbar-fixed-top, .navbar-fixed-bottom'
if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}}
Modal.VERSION='3.4.1'
Modal.TRANSITION_DURATION=300
Modal.BACKDROP_TRANSITION_DURATION=150
Modal.DEFAULTS={backdrop:true,keyboard:true,show:true}
Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)}
Modal.prototype.show=function(_relatedTarget){var that=this
var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget})
this.$element.trigger(e)
if(this.isShown||e.isDefaultPrevented())return
this.isShown=true
this.checkScrollbar()
this.setScrollbar()
this.$body.addClass('modal-open')
this.escape()
this.resize()
this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this))
this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true})})
this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade')
if(!that.$element.parent().length){that.$element.appendTo(that.$body)}
that.$element.show().scrollTop(0)
that.adjustDialog()
if(transition){that.$element[0].offsetWidth}
that.$element.addClass('in')
that.enforceFocus()
var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget})
transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})}
Modal.prototype.hide=function(e){if(e)e.preventDefault()
e=$.Event('hide.bs.modal')
this.$element.trigger(e)
if(!this.isShown||e.isDefaultPrevented())return
this.isShown=false
this.escape()
this.resize()
$(document).off('focusin.bs.modal')
this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal')
this.$dialog.off('mousedown.dismiss.bs.modal')
$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()}
Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))}
Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}}
Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}}
Modal.prototype.hideModal=function(){var that=this
this.$element.hide()
this.backdrop(function(){that.$body.removeClass('modal-open')
that.resetAdjustments()
that.resetScrollbar()
that.$element.trigger('hidden.bs.modal')})}
Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove()
this.$backdrop=null}
Modal.prototype.backdrop=function(callback){var that=this
var animate=this.$element.hasClass('fade')?'fade':''
if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate
this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body)
this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false
return}
if(e.target!==e.currentTarget)return
this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this))
if(doAnimate)this.$backdrop[0].offsetWidth
this.$backdrop.addClass('in')
if(!callback)return
doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in')
var callbackRemove=function(){that.removeBackdrop()
callback&&callback()}
$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}}
Modal.prototype.handleUpdate=function(){this.adjustDialog()}
Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight
this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})}
Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})}
Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth
if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect()
fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)}
this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth
this.scrollbarWidth=this.measureScrollbar()}
Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10)
this.originalBodyPad=document.body.style.paddingRight||''
var scrollbarWidth=this.scrollbarWidth
if(this.bodyIsOverflowing){this.$body.css('padding-right',bodyPad+scrollbarWidth)
$(this.fixedContent).each(function(index,element){var actualPadding=element.style.paddingRight
var calculatedPadding=$(element).css('padding-right')
$(element).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+scrollbarWidth+'px')})}}
Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)
$(this.fixedContent).each(function(index,element){var padding=$(element).data('padding-right')
$(element).removeData('padding-right')
element.style.paddingRight=padding?padding:''})}
Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div')
scrollDiv.className='modal-scrollbar-measure'
this.$body.append(scrollDiv)
var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth
this.$body[0].removeChild(scrollDiv)
return scrollbarWidth}
function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this)
var data=$this.data('bs.modal')
var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option)
if(!data)$this.data('bs.modal',(data=new Modal(this,options)))
if(typeof option=='string')data[option](_relatedTarget)
else if(options.show)data.show(_relatedTarget)})}
var old=$.fn.modal
$.fn.modal=Plugin
$.fn.modal.Constructor=Modal
$.fn.modal.noConflict=function(){$.fn.modal=old
return this}
$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this)
var href=$this.attr('href')
var target=$this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''))
var $target=$(document).find(target)
var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data())
if($this.is('a'))e.preventDefault()
$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return
$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})})
Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var DISALLOWED_ATTRIBUTES=['sanitize','whiteList','sanitizeFn']
var uriAttrs=['background','cite','href','itemtype','longdesc','poster','src','xlink:href']
var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i
var DefaultWhitelist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],a:['target','href','title','rel'],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:['src','alt','title','width','height'],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}
var SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi
var DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i
function allowedAttribute(attr,allowedAttributeList){var attrName=attr.nodeName.toLowerCase()
if($.inArray(attrName,allowedAttributeList)!==-1){if($.inArray(attrName,uriAttrs)!==-1){return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN)||attr.nodeValue.match(DATA_URL_PATTERN))}
return true}
var regExp=$(allowedAttributeList).filter(function(index,value){return value instanceof RegExp})
for(var i=0,l=regExp.length;i<l;i++){if(attrName.match(regExp[i])){return true}}
return false}
function sanitizeHtml(unsafeHtml,whiteList,sanitizeFn){if(unsafeHtml.length===0){return unsafeHtml}
if(sanitizeFn&&typeof sanitizeFn==='function'){return sanitizeFn(unsafeHtml)}
if(!document.implementation||!document.implementation.createHTMLDocument){return unsafeHtml}
var createdDocument=document.implementation.createHTMLDocument('sanitization')
createdDocument.body.innerHTML=unsafeHtml
var whitelistKeys=$.map(whiteList,function(el,i){return i})
var elements=$(createdDocument.body).find('*')
for(var i=0,len=elements.length;i<len;i++){var el=elements[i]
var elName=el.nodeName.toLowerCase()
if($.inArray(elName,whitelistKeys)===-1){el.parentNode.removeChild(el)
continue}
var attributeList=$.map(el.attributes,function(el){return el})
var whitelistedAttributes=[].concat(whiteList['*']||[],whiteList[elName]||[])
for(var j=0,len2=attributeList.length;j<len2;j++){if(!allowedAttribute(attributeList[j],whitelistedAttributes)){el.removeAttribute(attributeList[j].nodeName)}}}
return createdDocument.body.innerHTML}
var Tooltip=function(element,options){this.type=null
this.options=null
this.enabled=null
this.timeout=null
this.hoverState=null
this.$element=null
this.inState=null
this.init('tooltip',element,options)}
Tooltip.VERSION='3.4.1'
Tooltip.TRANSITION_DURATION=150
Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0},sanitize:true,sanitizeFn:null,whiteList:DefaultWhitelist}
Tooltip.prototype.init=function(type,element,options){this.enabled=true
this.type=type
this.$element=$(element)
this.options=this.getOptions(options)
this.$viewport=this.options.viewport&&$(document).find($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport))
this.inState={click:false,hover:false,focus:false}
if(this.$element[0]instanceof document.constructor&&!this.options.selector){throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!')}
var triggers=this.options.trigger.split(' ')
for(var i=triggers.length;i--;){var trigger=triggers[i]
if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin'
var eventOut=trigger=='hover'?'mouseleave':'focusout'
this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this))
this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}}
this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()}
Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS}
Tooltip.prototype.getOptions=function(options){var dataAttributes=this.$element.data()
for(var dataAttr in dataAttributes){if(dataAttributes.hasOwnProperty(dataAttr)&&$.inArray(dataAttr,DISALLOWED_ATTRIBUTES)!==-1){delete dataAttributes[dataAttr]}}
options=$.extend({},this.getDefaults(),dataAttributes,options)
if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}}
if(options.sanitize){options.template=sanitizeHtml(options.template,options.whiteList,options.sanitizeFn)}
return options}
Tooltip.prototype.getDelegateOptions=function(){var options={}
var defaults=this.getDefaults()
this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value})
return options}
Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
$(obj.currentTarget).data('bs.'+this.type,self)}
if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focus':'hover']=true}
if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in'
return}
clearTimeout(self.timeout)
self.hoverState='in'
if(!self.options.delay||!self.options.delay.show)return self.show()
self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)}
Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return true}
return false}
Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
$(obj.currentTarget).data('bs.'+this.type,self)}
if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=false}
if(self.isInStateTrue())return
clearTimeout(self.timeout)
self.hoverState='out'
if(!self.options.delay||!self.options.delay.hide)return self.hide()
self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)}
Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type)
if(this.hasContent()&&this.enabled){this.$element.trigger(e)
var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0])
if(e.isDefaultPrevented()||!inDom)return
var that=this
var $tip=this.tip()
var tipId=this.getUID(this.type)
this.setContent()
$tip.attr('id',tipId)
this.$element.attr('aria-describedby',tipId)
if(this.options.animation)$tip.addClass('fade')
var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement
var autoToken=/\s?auto?\s?/i
var autoPlace=autoToken.test(placement)
if(autoPlace)placement=placement.replace(autoToken,'')||'top'
$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this)
this.options.container?$tip.appendTo($(document).find(this.options.container)):$tip.insertAfter(this.$element)
this.$element.trigger('inserted.bs.'+this.type)
var pos=this.getPosition()
var actualWidth=$tip[0].offsetWidth
var actualHeight=$tip[0].offsetHeight
if(autoPlace){var orgPlacement=placement
var viewportDim=this.getPosition(this.$viewport)
placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement
$tip.removeClass(orgPlacement).addClass(placement)}
var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight)
this.applyPlacement(calculatedOffset,placement)
var complete=function(){var prevHoverState=that.hoverState
that.$element.trigger('shown.bs.'+that.type)
that.hoverState=null
if(prevHoverState=='out')that.leave(that)}
$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}}
Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip()
var width=$tip[0].offsetWidth
var height=$tip[0].offsetHeight
var marginTop=parseInt($tip.css('margin-top'),10)
var marginLeft=parseInt($tip.css('margin-left'),10)
if(isNaN(marginTop))marginTop=0
if(isNaN(marginLeft))marginLeft=0
offset.top+=marginTop
offset.left+=marginLeft
$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)})}},offset),0)
$tip.addClass('in')
var actualWidth=$tip[0].offsetWidth
var actualHeight=$tip[0].offsetHeight
if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight}
var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight)
if(delta.left)offset.left+=delta.left
else offset.top+=delta.top
var isVertical=/top|bottom/.test(placement)
var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight
var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight'
$tip.offset(offset)
this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)}
Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')}
Tooltip.prototype.setContent=function(){var $tip=this.tip()
var title=this.getTitle()
if(this.options.html){if(this.options.sanitize){title=sanitizeHtml(title,this.options.whiteList,this.options.sanitizeFn)}
$tip.find('.tooltip-inner').html(title)}else{$tip.find('.tooltip-inner').text(title)}
$tip.removeClass('fade in top bottom left right')}
Tooltip.prototype.hide=function(callback){var that=this
var $tip=$(this.$tip)
var e=$.Event('hide.bs.'+this.type)
function complete(){if(that.hoverState!='in')$tip.detach()
if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)}
callback&&callback()}
this.$element.trigger(e)
if(e.isDefaultPrevented())return
$tip.removeClass('in')
$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()
this.hoverState=null
return this}
Tooltip.prototype.fixTitle=function(){var $e=this.$element
if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}}
Tooltip.prototype.hasContent=function(){return this.getTitle()}
Tooltip.prototype.getPosition=function($element){$element=$element||this.$element
var el=$element[0]
var isBody=el.tagName=='BODY'
var elRect=el.getBoundingClientRect()
if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})}
var isSvg=window.SVGElement&&el instanceof window.SVGElement
var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset())
var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()}
var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null
return $.extend({},elRect,scroll,outerDims,elOffset)}
Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}}
Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0}
if(!this.$viewport)return delta
var viewportPadding=this.options.viewport&&this.options.viewport.padding||0
var viewportDimensions=this.getPosition(this.$viewport)
if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll
var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight
if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding
var rightEdgeOffset=pos.left+viewportPadding+actualWidth
if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}}
return delta}
Tooltip.prototype.getTitle=function(){var title
var $e=this.$element
var o=this.options
title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title)
return title}
Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000)
while(document.getElementById(prefix))
return prefix}
Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template)
if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}}
return this.$tip}
Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))}
Tooltip.prototype.enable=function(){this.enabled=true}
Tooltip.prototype.disable=function(){this.enabled=false}
Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled}
Tooltip.prototype.toggle=function(e){var self=this
if(e){self=$(e.currentTarget).data('bs.'+this.type)
if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions())
$(e.currentTarget).data('bs.'+this.type,self)}}
if(e){self.inState.click=!self.inState.click
if(self.isInStateTrue())self.enter(self)
else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}}
Tooltip.prototype.destroy=function(){var that=this
clearTimeout(this.timeout)
this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type)
if(that.$tip){that.$tip.detach()}
that.$tip=null
that.$arrow=null
that.$viewport=null
that.$element=null})}
Tooltip.prototype.sanitizeHtml=function(unsafeHtml){return sanitizeHtml(unsafeHtml,this.options.whiteList,this.options.sanitizeFn)}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.tooltip')
var options=typeof option=='object'&&option
if(!data&&/destroy|hide/.test(option))return
if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.tooltip
$.fn.tooltip=Plugin
$.fn.tooltip.Constructor=Tooltip
$.fn.tooltip.noConflict=function(){$.fn.tooltip=old
return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)}
if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js')
Popover.VERSION='3.4.1'
Popover.DEFAULTS=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'})
Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype)
Popover.prototype.constructor=Popover
Popover.prototype.getDefaults=function(){return Popover.DEFAULTS}
Popover.prototype.setContent=function(){var $tip=this.tip()
var title=this.getTitle()
var content=this.getContent()
if(this.options.html){var typeContent=typeof content
if(this.options.sanitize){title=this.sanitizeHtml(title)
if(typeContent==='string'){content=this.sanitizeHtml(content)}}
$tip.find('.popover-title').html(title)
$tip.find('.popover-content').children().detach().end()[typeContent==='string'?'html':'append'](content)}else{$tip.find('.popover-title').text(title)
$tip.find('.popover-content').children().detach().end().text(content)}
$tip.removeClass('fade top bottom left right in')
if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()}
Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()}
Popover.prototype.getContent=function(){var $e=this.$element
var o=this.options
return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)}
Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.popover')
var options=typeof option=='object'&&option
if(!data&&/destroy|hide/.test(option))return
if(!data)$this.data('bs.popover',(data=new Popover(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.popover
$.fn.popover=Plugin
$.fn.popover.Constructor=Popover
$.fn.popover.noConflict=function(){$.fn.popover=old
return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body)
this.$scrollElement=$(element).is(document.body)?$(window):$(element)
this.options=$.extend({},ScrollSpy.DEFAULTS,options)
this.selector=(this.options.target||'')+' .nav li > a'
this.offsets=[]
this.targets=[]
this.activeTarget=null
this.scrollHeight=0
this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this))
this.refresh()
this.process()}
ScrollSpy.VERSION='3.4.1'
ScrollSpy.DEFAULTS={offset:10}
ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)}
ScrollSpy.prototype.refresh=function(){var that=this
var offsetMethod='offset'
var offsetBase=0
this.offsets=[]
this.targets=[]
this.scrollHeight=this.getScrollHeight()
if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position'
offsetBase=this.$scrollElement.scrollTop()}
this.$body.find(this.selector).map(function(){var $el=$(this)
var href=$el.data('target')||$el.attr('href')
var $href=/^#./.test(href)&&$(href)
return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){that.offsets.push(this[0])
that.targets.push(this[1])})}
ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset
var scrollHeight=this.getScrollHeight()
var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height()
var offsets=this.offsets
var targets=this.targets
var activeTarget=this.activeTarget
var i
if(this.scrollHeight!=scrollHeight){this.refresh()}
if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)}
if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null
return this.clear()}
for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i])}}
ScrollSpy.prototype.activate=function(target){this.activeTarget=target
this.clear()
var selector=this.selector+'[data-target="'+target+'"],'+
this.selector+'[href="'+target+'"]'
var active=$(selector).parents('li').addClass('active')
if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')}
active.trigger('activate.bs.scrollspy')}
ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.scrollspy')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.scrollspy
$.fn.scrollspy=Plugin
$.fn.scrollspy.Constructor=ScrollSpy
$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old
return this}
$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this)
Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)}
Tab.VERSION='3.4.1'
Tab.TRANSITION_DURATION=150
Tab.prototype.show=function(){var $this=this.element
var $ul=$this.closest('ul:not(.dropdown-menu)')
var selector=$this.data('target')
if(!selector){selector=$this.attr('href')
selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
if($this.parent('li').hasClass('active'))return
var $previous=$ul.find('.active:last a')
var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]})
var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]})
$previous.trigger(hideEvent)
$this.trigger(showEvent)
if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return
var $target=$(document).find(selector)
this.activate($this.closest('li'),$ul)
this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]})
$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})}
Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active')
var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length)
function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false)
element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true)
if(transition){element[0].offsetWidth
element.addClass('in')}else{element.removeClass('fade')}
if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)}
callback&&callback()}
$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next()
$active.removeClass('in')}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.tab')
if(!data)$this.data('bs.tab',(data=new Tab(this)))
if(typeof option=='string')data[option]()})}
var old=$.fn.tab
$.fn.tab=Plugin
$.fn.tab.Constructor=Tab
$.fn.tab.noConflict=function(){$.fn.tab=old
return this}
var clickHandler=function(e){e.preventDefault()
Plugin.call($(this),'show')}
$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options)
var target=this.options.target===Affix.DEFAULTS.target?$(this.options.target):$(document).find(this.options.target)
this.$target=target.on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this))
this.$element=$(element)
this.affixed=null
this.unpin=null
this.pinnedOffset=null
this.checkPosition()}
Affix.VERSION='3.4.1'
Affix.RESET='affix affix-top affix-bottom'
Affix.DEFAULTS={offset:0,target:window}
Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
var targetHeight=this.$target.height()
if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false
if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?false:'bottom'
return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom'}
var initializing=this.affixed==null
var colliderTop=initializing?scrollTop:position.top
var colliderHeight=initializing?targetHeight:height
if(offsetTop!=null&&scrollTop<=offsetTop)return'top'
if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom'
return false}
Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
this.$element.removeClass(Affix.RESET).addClass('affix')
var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
return(this.pinnedOffset=position.top-scrollTop)}
Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)}
Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return
var height=this.$element.height()
var offset=this.options.offset
var offsetTop=offset.top
var offsetBottom=offset.bottom
var scrollHeight=Math.max($(document).height(),$(document.body).height())
if(typeof offset!='object')offsetBottom=offsetTop=offset
if(typeof offsetTop=='function')offsetTop=offset.top(this.$element)
if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element)
var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom)
if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','')
var affixType='affix'+(affix?'-'+affix:'')
var e=$.Event(affixType+'.bs.affix')
this.$element.trigger(e)
if(e.isDefaultPrevented())return
this.affixed=affix
this.unpin=affix=='bottom'?this.getPinnedOffset():null
this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')}
if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.affix')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.affix',(data=new Affix(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.affix
$.fn.affix=Plugin
$.fn.affix.Constructor=Affix
$.fn.affix.noConflict=function(){$.fn.affix=old
return this}
$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this)
var data=$spy.data()
data.offset=data.offset||{}
if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom
if(data.offsetTop!=null)data.offset.top=data.offsetTop
Plugin.call($spy,data)})})}(jQuery);


/*===============================
/1/plugins/system/t3/base-bs3/js/jquery.tap.min.js
================================================================================*/;
!function(a,b){"use strict";var c,d,e,f="._tap",g="._tapActive",h="tap",i="clientX clientY screenX screenY pageX pageY".split(" "),j={count:0,event:0},k=function(a,c){var d=c.originalEvent,e=b.Event(d);e.type=a;for(var f=0,g=i.length;g>f;f++)e[i[f]]=c[i[f]];return e},l=function(a){if(a.isTrigger)return!1;var c=j.event,d=Math.abs(a.pageX-c.pageX),e=Math.abs(a.pageY-c.pageY),f=Math.max(d,e);return a.timeStamp-c.timeStamp<b.tap.TIME_DELTA&&f<b.tap.POSITION_DELTA&&(!c.touches||1===j.count)&&o.isTracking},m=function(a){if(!e)return!1;var c=Math.abs(a.pageX-e.pageX),d=Math.abs(a.pageY-e.pageY),f=Math.max(c,d);return Math.abs(a.timeStamp-e.timeStamp)<750&&f<b.tap.POSITION_DELTA},n=function(a){if(0===a.type.indexOf("touch")){a.touches=a.originalEvent.changedTouches;for(var b=a.touches[0],c=0,d=i.length;d>c;c++)a[i[c]]=b[i[c]]}a.timeStamp=Date.now?Date.now():+new Date},o={isEnabled:!1,isTracking:!1,enable:function(){o.isEnabled||(o.isEnabled=!0,c=b(a.body).on("touchstart"+f,o.onStart).on("mousedown"+f,o.onStart).on("click"+f,o.onClick))},disable:function(){o.isEnabled&&(o.isEnabled=!1,c.off(f))},onStart:function(a){a.isTrigger||(n(a),(!b.tap.LEFT_BUTTON_ONLY||a.touches||1===a.which)&&(a.touches&&(j.count=a.touches.length),o.isTracking||(a.touches||!m(a))&&(o.isTracking=!0,j.event=a,a.touches?(e=a,c.on("touchend"+f+g,o.onEnd).on("touchcancel"+f+g,o.onCancel)):c.on("mouseup"+f+g,o.onEnd))))},onEnd:function(a){var c;a.isTrigger||(n(a),l(a)&&(c=k(h,a),d=c,b(j.event.target).trigger(c)),o.onCancel(a))},onCancel:function(a){a&&"touchcancel"===a.type&&a.preventDefault(),o.isTracking=!1,c.off(g)},onClick:function(a){return!a.isTrigger&&d&&d.isDefaultPrevented()&&d.target===a.target&&d.pageX===a.pageX&&d.pageY===a.pageY&&a.timeStamp-d.timeStamp<750?(d=null,!1):void 0}};b(a).ready(o.enable),b.tap={POSITION_DELTA:10,TIME_DELTA:400,LEFT_BUTTON_ONLY:!0}}(document,jQuery);


/*===============================
/1/plugins/system/t3/base-bs3/js/off-canvas.js
================================================================================*/;
jQuery(document).ready(function($){function getAndroidVersion(ua){var ua=ua||navigator.userAgent;var match=ua.match(/Android\s([0-9\.]*)/);return match?match[1]:false;};if(parseInt(getAndroidVersion())==4){$('#t3-mainnav').addClass('t3-mainnav-android');}
var JA_isLoading=false;if(/MSIE\s([\d.]+)/.test(navigator.userAgent)?new Number(RegExp.$1)<10:false){$('html').addClass('old-ie');}else if(/constructor/i.test(window.HTMLElement)){$('html').addClass('safari');}
var $wrapper=$('body'),$inner=$('.t3-wrapper'),$toggles=$('.off-canvas-toggle'),$offcanvas=$('.t3-off-canvas'),$close=$('.t3-off-canvas .close'),$btn=null,$nav=null,direction='left',$fixed=null;if(!$wrapper.length)return;$toggles.each(function(){var $this=$(this),$nav=$($this.data('nav')),effect=$this.data('effect'),direction=($('html').attr('dir')=='rtl'&&$this.data('pos')!='right')||($('html').attr('dir')!='rtl'&&$this.data('pos')=='right')?'right':'left';$nav.addClass(effect).addClass('off-canvas-'+direction);var inside_effect=['off-canvas-effect-3','off-canvas-effect-16','off-canvas-effect-7','off-canvas-effect-8','off-canvas-effect-14'];if($.inArray(effect,inside_effect)==-1){$inner.before($nav);}else{$inner.prepend($nav);}});$toggles.on('tap',function(e){stopBubble(e);if($wrapper.hasClass('off-canvas-open')){oc_hide(e);return false;}
$btn=$(this);$nav=$($btn.data('nav'));if(!$fixed)$fixed=$inner.find('*').filter(function(){return $(this).css("position")==='fixed';});else $fixed=$fixed.filter(function(){return $(this).css("position")==='fixed';}).add($inner.find('.affix'));$nav.addClass('off-canvas-current');direction=($('html').attr('dir')=='rtl'&&$btn.data('pos')!='right')||($('html').attr('dir')!='rtl'&&$btn.data('pos')=='right')?'right':'left';$offcanvas.height($(window).height());var events=$(window).data('events');if(events&&events.scroll&&events.scroll.length){var handlers=[];for(var i=0;i<events.scroll.length;i++){handlers[i]=events.scroll[i].handler;}
$(window).data('scroll-events',handlers);$(window).off('scroll');}
var scrollTop=($('html').scrollTop())?$('html').scrollTop():$('body').scrollTop();$('html').addClass('noscroll').css('top',-scrollTop).data('top',scrollTop);$('.t3-off-canvas').css('top',scrollTop);$fixed.each(function(){var $this=$(this),$parent=$this.parent(),mtop=0;while(!$parent.is($inner)&&$parent.css("position")==='static')$parent=$parent.parent();mtop=-$parent.offset().top;$this.css({'position':'absolute','margin-top':mtop});});$wrapper.scrollTop(scrollTop);$wrapper[0].className=$.trim($wrapper[0].className.replace(/\s*off\-canvas\-effect\-\d+\s*/g,' '))+' '+$btn.data('effect')+' '+'off-canvas-'+direction;setTimeout(oc_show,50);return false;});var oc_show=function(){if(JA_isLoading==true){return;}
JA_isLoading=true;$wrapper.addClass('off-canvas-open');$inner.on('click',oc_hide);$close.on('click',oc_hide);$offcanvas.on('click',handleClick);if($.browser.msie&&$.browser.version<10){var p1={},p2={};p1['padding-'+direction]=$('.t3-off-canvas').width();p2[direction]=0;$inner.animate(p1);$nav.animate(p2);}
setTimeout(function(){JA_isLoading=false;},200);};var oc_hide=function(){if(JA_isLoading==true){return;}
JA_isLoading=true;$inner.off('click',oc_hide);$close.off('click',oc_hide);$offcanvas.off('click',handleClick);setTimeout(function(){$wrapper.removeClass('off-canvas-open');},100);setTimeout(function(){$wrapper.removeClass($btn.data('effect')).removeClass('off-canvas-'+direction);$wrapper.scrollTop(0);$('html').removeClass('noscroll').css('top','');$('html,body').scrollTop($('html').data('top'));$nav.removeClass('off-canvas-current');$fixed.css({'position':'','margin-top':''});if($(window).data('scroll-events')){var handlers=$(window).data('scroll-events');for(var i=0;i<handlers.length;i++){$(window).on('scroll',handlers[i]);}
$(window).data('scroll-events',null);}
JA_isLoading=false;},700);if($('html').hasClass('old-ie')){var p1={},p2={};p1['padding-'+direction]=0;p2[direction]=-$('.t3-off-canvas').width();$inner.animate(p1);$nav.animate(p2);}};var handleClick=function(e){if($(e.target).closest('a').length){if(!e.target.href)return;var arr1=e.target.href.split('#'),arr2=location.href.split('#');if(arr1[0]==arr2[0]&&arr1.length>1&&arr1[1].length){oc_hide();setTimeout(function(){var anchor=$("a[name='"+arr1[1]+"']");if(!anchor.length)anchor=$('#'+arr1[1]);if(anchor.length)
$('html,body').animate({scrollTop:anchor.offset().top},'slow');},1000);}
if(e.target.href.search('#')!==-1)return;}
stopBubble(e);return true;}
var stopBubble=function(e){e.stopPropagation();}
$(window).on('load',function(){setTimeout(function(){$fixed=$inner.find('*').filter(function(){return $(this).css("position")==='fixed';});},100);});})


/*===============================
/1/plugins/system/t3/base-bs3/js/script.js
================================================================================*/;
!function($){if($.browser==undefined||$.browser.msie==undefined){$.browser={msie:false,version:0};if(match=navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)||navigator.userAgent.match(/Trident.*rv:([0-9]{1,}[\.0-9]{0,})/)){$.browser.msie=true;$.browser.version=match[1];}}
if($.browser.msie){$('html').addClass('ie'+Math.floor($.browser.version));}
$(document).ready(function(){if(!window.getComputedStyle){window.getComputedStyle=function(el,pseudo){this.el=el;this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;if(prop=='float')prop='styleFloat';if(re.test(prop)){prop=prop.replace(re,function(){return arguments[2].toUpperCase();});}
return el.currentStyle[prop]?el.currentStyle[prop]:null;}
return this;}}
var fromClass='body-data-holder',prop='content',$inspector=$('<div>').css('display','none').addClass(fromClass).appendTo($('body'));try{var computedStyle=window.getComputedStyle($inspector[0],':before');if(computedStyle){var attrs=computedStyle.getPropertyValue(prop);if(attrs){var matches=attrs.match(/([\da-z\-]+)/gi),data={};if(matches&&matches.length){for(var i=0;i<matches.length;i++){data[matches[i++]]=i<matches.length?matches[i]:null;}}
$('body').data(data);}}}finally{$inspector.remove();}});(function(){$.support.t3transform=(function(){var style=document.createElement('div').style,vendors=['t','webkitT','MozT','msT','OT'],transform,i=0,l=vendors.length;for(;i<l;i++){transform=vendors[i]+'ransform';if(transform in style){return transform;}}
return false;})();})();(function(){$('html').addClass('ontouchstart'in window?'touch':'no-touch');})();$(document).ready(function(){(function(){if(window.MooTools&&window.MooTools.More&&Element&&Element.implement){var mthide=Element.prototype.hide,mtshow=Element.prototype.show,mtslide=Element.prototype.slide;Element.implement({show:function(args){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
return $.isFunction(mtshow)&&mtshow.apply(this,args);},hide:function(){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
return $.isFunction(mthide)&&mthide.apply(this,arguments);},slide:function(args){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
return $.isFunction(mtslide)&&mtslide.apply(this,args);}})}})();$.fn.tooltip.Constructor&&$.fn.tooltip.Constructor.DEFAULTS&&($.fn.tooltip.Constructor.DEFAULTS.html=true);$.fn.popover.Constructor&&$.fn.popover.Constructor.DEFAULTS&&($.fn.popover.Constructor.DEFAULTS.html=true);$.fn.tooltip.defaults&&($.fn.tooltip.defaults.html=true);$.fn.popover.defaults&&($.fn.popover.defaults.html=true);(function(){if(window.jomsQuery&&jomsQuery.fn.collapse){$('[data-toggle="collapse"]').on('click',function(e){$($(this).attr('data-target')).eq(0).collapse('toggle');e.stopPropagation();return false;});jomsQuery('html, body').off('touchstart.dropdown.data-api');}})();(function(){if($.fn.chosen&&$(document.documentElement).attr('dir')=='rtl'){$('select').addClass('chzn-rtl');}})();});$(window).on('load',function(){if(!$(document.documentElement).hasClass('off-canvas-ready')&&($('.navbar-collapse-fixed-top').length||$('.navbar-collapse-fixed-bottom').length)){var btn=$('.btn-navbar[data-toggle="collapse"]');if(!btn.length){return;}
if(btn.data('target')){var nav=$(btn.data('target'));if(!nav.length){return;}
var fixedtop=nav.closest('.navbar-collapse-fixed-top').length;btn.on('click',function(){var wheight=(window.innerHeight||$(window).height());if(!$.support.transition){nav.parent().css('height',!btn.hasClass('collapsed')&&btn.data('t3-clicked')?'':wheight);btn.data('t3-clicked',1);}
nav.addClass('animate').css('max-height',wheight-
(fixedtop?(parseFloat(nav.css('top'))||0):(parseFloat(nav.css('bottom'))||0)));});nav.on('shown hidden',function(){nav.removeClass('animate');});}}});}(jQuery);


/*===============================
/1/plugins/system/t3/base-bs3/js/menu.js
================================================================================*/;
;(function($){var T3Menu=function(elm,options){this.$menu=$(elm);if(!this.$menu.length){return;}
this.options=$.extend({},$.fn.t3menu.defaults,options);this.child_open=[];this.loaded=false;this.start();};T3Menu.prototype={constructor:T3Menu,start:function(){if(this.loaded){return;}
this.loaded=true;var self=this,options=this.options,$menu=this.$menu;this.$items=$menu.find('li');this.$items.each(function(idx,li){var $item=$(this),$child=$item.children('.dropdown-menu'),$link=$item.children('a'),item={$item:$item,child:$child.length,link:$link.length,clickable:!($link.length&&$child.length),mega:$item.hasClass('mega'),status:'close',timer:null,atimer:null};$item.data('t3menu.item',item);if($child.length&&!options.hover){$item.on('click',function(e){e.stopPropagation();if($item.hasClass('group')){return;}
if(item.status=='close'){e.preventDefault();self.show(item);}});}else{$item.on('click',function(e){if($(e.target).data('toggle'))return;e.stopPropagation()});}
$item.find('a > .caret').on('click tap',function(e){item.clickable=false;});if(options.hover){$item.on('mouseover',function(e){if($item.hasClass('group'))
return;var $target=$(e.target);if($target.data('show-processed'))
return;$target.data('show-processed',true);setTimeout(function(){$target.data('show-processed',false);},10);self.show(item);}).on('mouseleave',function(e){if($item.hasClass('group'))
return;var $target=$(e.target);if($target.data('hide-processed'))
return;$target.data('hide-processed',true);setTimeout(function(){$target.data('hide-processed',false);},10);self.hide(item,$target);});if($link.length&&$child.length){$link.on('click',function(e){if(item.clickable){e.stopPropagation();}
return item.clickable;});}}});$(document.body).on('tap hideall.t3menu',function(e){clearTimeout(self.timer);self.timer=setTimeout($.proxy(self.hide_alls,self),e.type=='tap'?500:self.options.hidedelay);});$menu.find('.mega-dropdown-menu').on('hideall.t3menu',function(e){e.stopPropagation();e.preventDefault();return false;});$menu.find('input, select, textarea, label').on('click tap',function(e){e.stopPropagation();});var $megatab=$menu.find('.mega-tab');if($megatab.length){$megatab.each(function(){var $tabul=$(this).find('>div>ul'),$tabItems=$tabul.children('.dropdown-submenu'),$tabs=$tabul.find('>li>.dropdown-menu'),tabheight=0,$parentItem=$(this).closest('li');$tabItems.data('mega-tab-item',1);var megatabs=$parentItem.data('mega-tabs')?$parentItem.data('mega-tabs'):[];megatabs.push($tabul);$parentItem.data('mega-tabs',megatabs);$tabItems.first().data('mega-tab-active',true).addClass('open');var $p=$tabul.parents('.dropdown-menu');$p.each(function(){var $this=$(this);$this.data('prev-style',$this.attr('style')).css({visibility:"visible",display:"block"});})
$tabs.each(function(){var $this=$(this),thisstyle=$this.attr('style');$this.css({visibility:"hidden",display:"block"});tabheight=Math.max(tabheight,$this.children().innerHeight());if(thisstyle){$this.attr('style',thisstyle);}else{$this.removeAttr('style');}});$tabul.css('min-height',tabheight);$p.each(function(){var $this=$(this);if($this.data('prev-style'))
$this.attr('style',$this.data('prev-style'));else
$this.removeAttr('style');$this.removeData('prev-style');})})}
$menu.find('.modal').appendTo('body');},show:function(item){if(item.$item.data('mega-tab-item')){item.$item.parent().children().removeClass('open').data('mega-tab-active',false);item.$item.addClass('open').data('mega-tab-active',true);}
if($.inArray(item,this.child_open)<this.child_open.length-1){this.hide_others(item);}
$(document.body).trigger('hideall.t3menu',[this]);clearTimeout(this.timer);clearTimeout(item.timer);clearTimeout(item.ftimer);clearTimeout(item.ctimer);if(item.status!='open'||!item.$item.hasClass('open')||!this.child_open.length){if(item.mega){clearTimeout(item.astimer);clearTimeout(item.atimer);this.position(item.$item);item.astimer=setTimeout(function(){item.$item.addClass('animating')},10);item.atimer=setTimeout(function(){item.$item.removeClass('animating')},this.options.duration+50);item.timer=setTimeout(function(){item.$item.addClass('open');},100);}else{item.$item.addClass('open');}
item.status='open';if(item.child&&$.inArray(item,this.child_open)==-1){this.child_open.push(item);}}
item.ctimer=setTimeout($.proxy(this.clickable,this,item),300);},hide:function(item,$target){clearTimeout(this.timer);clearTimeout(item.timer);clearTimeout(item.astimer);clearTimeout(item.atimer);clearTimeout(item.ftimer);if($target&&$target.is('input',item.$item)){return;}
if(item.mega){item.$item.addClass('animating');item.atimer=setTimeout(function(){item.$item.removeClass('animating')},this.options.duration);item.timer=setTimeout(function(){if(!item.$item.data('mega-tab-active'))
item.$item.removeClass('open')},100);}else{item.timer=setTimeout(function(){if(!item.$item.data('mega-tab-active'))
item.$item.removeClass('open');},100);}
item.status='close';for(var i=this.child_open.length;i--;){if(this.child_open[i]===item){this.child_open.splice(i,1);}}
item.ftimer=setTimeout($.proxy(this.hidden,this,item),this.options.duration);this.timer=setTimeout($.proxy(this.hide_alls,this),this.options.hidedelay);},hidden:function(item){if(item.status=='close'){item.clickable=false;}},hide_others:function(item){var self=this;$.each(this.child_open.slice(),function(idx,open){if(!item||(open!=item&&!open.$item.has(item.$item).length)){self.hide(open);}});},hide_alls:function(e,inst){if(!e||e.type=='tap'||(e.type=='hideall'&&this!=inst)){var self=this;$.each(this.child_open.slice(),function(idx,item){item&&self.hide(item);});}},clickable:function(item){item.clickable=true;},position:function($item){var sub=$item.children('.mega-dropdown-menu'),is_show=sub.is(':visible');if(!is_show){sub.show();}
var offset=$item.offset(),width=$item.outerWidth(),screen_width=$(window).width()
-this.options.sb_width,sub_width=sub.outerWidth(),level=$item.data('level');if(!is_show){sub.css('display','');}
sub.css({left:'',right:''});if(level==1){var align=$item.data('alignsub'),align_offset=0,align_delta=0,align_trans=0;if(align=='justify'){return;}
if(!align){align='left';}
if(align=='center'){align_offset=offset.left+(width/2);if(!$.support.t3transform){align_trans=-sub_width/2;sub.css(this.options.rtl?'right':'left',align_trans+width/2);}}else{align_offset=offset.left
+((align=='left'&&this.options.rtl||align=='right'&&!this.options.rtl)?width:0);}
if(this.options.rtl){if(align=='right'){if(align_offset+sub_width>screen_width){align_delta=screen_width-align_offset
-sub_width;sub.css('left',align_delta);if(screen_width<sub_width){sub.css('left',align_delta+sub_width
-screen_width);}}}else{if(align_offset<(align=='center'?sub_width/2:sub_width)){align_delta=align_offset
-(align=='center'?sub_width/2:sub_width);sub.css('right',align_delta+align_trans);}
if(align_offset
+(align=='center'?sub_width/2:0)
-align_delta>screen_width){sub.css('right',align_offset
+(align=='center'?(sub_width+width)/2:0)+align_trans
-screen_width);}}}else{if(align=='right'){if(align_offset<sub_width){align_delta=align_offset-sub_width;sub.css('right',align_delta);if(sub_width>screen_width){sub.css('right',sub_width-screen_width
+align_delta);}}}else{if(align_offset
+(align=='center'?sub_width/2:sub_width)>screen_width){align_delta=screen_width
-align_offset
-(align=='center'?sub_width/2:sub_width);sub.css('left',align_delta+align_trans);}
if(align_offset
-(align=='center'?sub_width/2:0)
+align_delta<0){sub.css('left',(align=='center'?(sub_width+width)/2:0)
+align_trans
-align_offset);}}}}else{if(this.options.rtl){if($item.closest('.mega-dropdown-menu').parent().hasClass('mega-align-right')){if(offset.left+width+sub_width>screen_width){$item.removeClass('mega-align-right');if(offset.left-sub_width<0){sub.css('right',offset.left+width
-sub_width);}}}else{if(offset.left-sub_width<0){$item.removeClass('mega-align-left').addClass('mega-align-right');if(offset.left+width+sub_width>screen_width){sub.css('left',screen_width-offset.left
-sub_width);}}}}else{if($item.closest('.mega-dropdown-menu').parent().hasClass('mega-align-right')){if(offset.left-sub_width<0){$item.removeClass('mega-align-right');if(offset.left+width+sub_width>screen_width){sub.css('left',screen_width-offset.left
-sub_width);}}}else{if(offset.left+width+sub_width>screen_width){$item.removeClass('mega-align-left').addClass('mega-align-right');if(offset.left-sub_width<0){sub.css('right',offset.left+width
-sub_width);}}}}}}};$.fn.t3menu=function(option){return this.each(function(){var $this=$(this),data=$this.data('megamenu'),options=typeof option=='object'&&option;if($this.parents('#off-canvas-nav').length)
return;if($this.parents('#t3-off-canvas').length)
return;if(!data){$this.data('megamenu',(data=new T3Menu(this,options)));}else{if(typeof option=='string'&&data[option]){data[option]()}}})};$.fn.t3menu.defaults={duration:400,timeout:100,hidedelay:200,hover:true,sb_width:20};$(document).ready(function(){var mm_duration=$('.t3-megamenu').data('duration')||0;if(mm_duration){$('<style type="text/css">'
+'.t3-megamenu.animate .animating > .mega-dropdown-menu,'
+'.t3-megamenu.animate.slide .animating > .mega-dropdown-menu > div {'
+'transition-duration: '
+mm_duration+'ms !important;'
+'-webkit-transition-duration: '
+mm_duration+'ms !important;'
+'}'+'</style>').appendTo('head');}
var mm_timeout=mm_duration?100+mm_duration:500,mm_rtl=$(document.documentElement).attr('dir')=='rtl',mm_trigger=$(document.documentElement).hasClass('mm-hover'),sb_width=(function(){var parent=$('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),child=parent.children(),width=child.innerWidth()
-child.height(100).innerWidth();parent.remove();return width;})();if(!$.support.transition){$('.t3-megamenu').removeClass('animate');mm_timeout=100;}
$('ul.nav').has('.dropdown-menu').t3menu({duration:mm_duration,timeout:mm_timeout,rtl:mm_rtl,sb_width:sb_width,hover:mm_trigger});$(window).on('load',function(){$('ul.nav').has('.dropdown-menu').t3menu({duration:mm_duration,timeout:mm_timeout,rtl:mm_rtl,sb_width:sb_width,hover:mm_trigger});});});})(jQuery);


/*===============================
/1/plugins/system/t3/base-bs3/js/frontend-edit.js
================================================================================*/;
!function($){$(document).ready(function(){$('fieldset.radio').filter(function(){return $(this).find('input').length==2&&$(this).find('input').filter(function(){return $.inArray(this.value+'',['0','1'])!==-1;}).length==2;}).addClass('t3onoff').removeClass('btn-group');$('fieldset.t3onoff').find('label').addClass(function(){var $this=$(this),$input=$this.prev('input'),cls=$this.hasClass('off')||$input.val()=='0'?'off':'on';cls+=$input.prop('checked')?' active':'';return cls;});$('fieldset.radio').find('label').unbind('click').click(function(){var label=$(this),input=$('#'+label.attr('for'));if(!input.prop('checked')){label.addClass('active').siblings().removeClass('active');input.prop('checked',true).trigger('change');}
if(input.val()==''){label.addClass('active btn-primary');}else if(input.val()==0){label.addClass('active btn-danger');}else{label.addClass('active btn-success');}});$(".btn-group input[checked=checked]").each(function()
{if($(this).val()==''){$("label[for="+$(this).attr('id')+"]").addClass('active btn-primary');}else if($(this).val()==0){$("label[for="+$(this).attr('id')+"]").addClass('active btn-danger');}else{$("label[for="+$(this).attr('id')+"]").addClass('active btn-success');}});});}(jQuery);


/*===============================
/1/templates/ja_oslo/js/swiper/swiper.min.js
================================================================================*/;
/**
 * Swiper 3.4.1
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * 
 * http://www.idangero.us/swiper/
 * 
 * Copyright 2016, Vladimir Kharlampidi
 * The iDangero.us
 * http://www.idangero.us/
 * 
 * Licensed under MIT
 * 
 * Released on: December 13, 2016
 */
!function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,i){function r(e){return Math.floor(e)}function n(){var e=b.params.autoplay,a=b.slides.eq(b.activeIndex);a.attr("data-swiper-autoplay")&&(e=a.attr("data-swiper-autoplay")||b.params.autoplay),b.autoplayTimeoutId=setTimeout(function(){b.params.loop?(b.fixLoop(),b._slideNext(),b.emit("onAutoplay",b)):b.isEnd?i.autoplayStopOnLast?b.stopAutoplay():(b._slideTo(0),b.emit("onAutoplay",b)):(b._slideNext(),b.emit("onAutoplay",b))},e)}function o(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodeType){var i;return s.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==s.length)return s[0]}function l(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,s=new t(function(e){e.forEach(function(e){b.onResize(!0),b.emit("onObserverUpdate",b,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes||a.attributes,childList:"undefined"==typeof a.childList||a.childList,characterData:"undefined"==typeof a.characterData||a.characterData}),b.observers.push(s)}function p(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;if(!b.params.allowSwipeToNext&&(b.isHorizontal()&&39===a||!b.isHorizontal()&&40===a))return!1;if(!b.params.allowSwipeToPrev&&(b.isHorizontal()&&37===a||!b.isHorizontal()&&38===a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(b.container.parents("."+b.params.slideClass).length>0&&0===b.container.parents("."+b.params.slideActiveClass).length)return;var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,r=window.innerHeight,n=b.container.offset();b.rtl&&(n.left=n.left-b.container[0].scrollLeft);for(var o=[[n.left,n.top],[n.left+b.width,n.top],[n.left,n.top+b.height],[n.left+b.width,n.top+b.height]],l=0;l<o.length;l++){var p=o[l];p[0]>=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+r&&(t=!0)}if(!t)return}b.isHorizontal()?(37!==a&&39!==a||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!b.rtl||37===a&&b.rtl)&&b.slideNext(),(37===a&&!b.rtl||39===a&&b.rtl)&&b.slidePrev()):(38!==a&&40!==a||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&b.slideNext(),38===a&&b.slidePrev())}}function d(){var e="onwheel",a=e in document;if(!a){var t=document.createElement("div");t.setAttribute(e,"return;"),a="function"==typeof t[e]}return!a&&document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}function u(e){e.originalEvent&&(e=e.originalEvent);var a=0,t=b.rtl?-1:1,s=c(e);if(b.params.mousewheelForceToAxis)if(b.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return;a=s.pixelX*t}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return;a=s.pixelY}else a=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*t:-s.pixelY;if(0!==a){if(b.params.mousewheelInvert&&(a=-a),b.params.freeMode){var i=b.getWrapperTranslate()+a*b.params.mousewheelSensitivity,r=b.isBeginning,n=b.isEnd;if(i>=b.minTranslate()&&(i=b.minTranslate()),i<=b.maxTranslate()&&(i=b.maxTranslate()),b.setWrapperTransition(0),b.setWrapperTranslate(i),b.updateProgress(),b.updateActiveIndex(),(!r&&b.isBeginning||!n&&b.isEnd)&&b.updateClasses(),b.params.freeModeSticky?(clearTimeout(b.mousewheel.timeout),b.mousewheel.timeout=setTimeout(function(){b.slideReset()},300)):b.params.lazyLoading&&b.lazy&&b.lazy.load(),b.emit("onScroll",b,e),b.params.autoplay&&b.params.autoplayDisableOnInteraction&&b.stopAutoplay(),0===i||i===b.maxTranslate())return}else{if((new window.Date).getTime()-b.mousewheel.lastScrollTime>60)if(a<0)if(b.isEnd&&!b.params.loop||b.animating){if(b.params.mousewheelReleaseOnEdges)return!0}else b.slideNext(),b.emit("onScroll",b,e);else if(b.isBeginning&&!b.params.loop||b.animating){if(b.params.mousewheelReleaseOnEdges)return!0}else b.slidePrev(),b.emit("onScroll",b,e);b.mousewheel.lastScrollTime=(new window.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function c(e){var a=10,t=40,s=800,i=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=r,r=0),n=i*a,o=r*a,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(1===e.deltaMode?(n*=t,o*=t):(n*=s,o*=s)),n&&!i&&(i=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:i,spinY:r,pixelX:n,pixelY:o}}function m(e,t){e=a(e);var s,i,r,n=b.rtl?-1:1;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),r=e.attr("data-swiper-parallax-y"),i||r?(i=i||"0",r=r||"0"):b.isHorizontal()?(i=s,r="0"):(r=s,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t*n+"%":i*t*n+"px",r=r.indexOf("%")>=0?parseInt(r,10)*t+"%":r*t+"px",e.transform("translate3d("+i+", "+r+",0px)")}function h(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,i);var g={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},f=i&&i.virtualTranslate;i=i||{};var v={};for(var w in i)if("object"!=typeof i[w]||null===i[w]||(i[w].nodeType||i[w]===window||i[w]===document||"undefined"!=typeof s&&i[w]instanceof s||"undefined"!=typeof jQuery&&i[w]instanceof jQuery))v[w]=i[w];else{v[w]={};for(var y in i[w])v[w][y]=i[w][y]}for(var x in g)if("undefined"==typeof i[x])i[x]=g[x];else if("object"==typeof i[x])for(var T in g[x])"undefined"==typeof i[x][T]&&(i[x][T]=g[x][T]);var b=this;if(b.params=i,b.originalParams=v,b.classNames=[],"undefined"!=typeof a&&"undefined"!=typeof s&&(a=s),("undefined"!=typeof a||(a="undefined"==typeof s?window.Dom7||window.Zepto||window.jQuery:s))&&(b.$=a,b.currentBreakpoint=void 0,b.getActiveBreakpoint=function(){if(!b.params.breakpoints)return!1;var e,a=!1,t=[];for(e in b.params.breakpoints)b.params.breakpoints.hasOwnProperty(e)&&t.push(e);t.sort(function(e,a){return parseInt(e,10)>parseInt(a,10)});for(var s=0;s<t.length;s++)e=t[s],e>=window.innerWidth&&!a&&(a=e);return a||"max"},b.setBreakpoint=function(){var e=b.getActiveBreakpoint();if(e&&b.currentBreakpoint!==e){var a=e in b.params.breakpoints?b.params.breakpoints[e]:b.originalParams,t=b.params.loop&&a.slidesPerView!==b.params.slidesPerView;for(var s in a)b.params[s]=a[s];b.currentBreakpoint=e,t&&b.destroyLoop&&b.reLoop(!0)}},b.params.breakpoints&&b.setBreakpoint(),b.container=a(e),0!==b.container.length)){if(b.container.length>1){var S=[];return b.container.each(function(){S.push(new t(this,i))}),S}b.container[0].swiper=b,b.container.data("swiper",b),b.classNames.push(b.params.containerModifierClass+b.params.direction),b.params.freeMode&&b.classNames.push(b.params.containerModifierClass+"free-mode"),b.support.flexbox||(b.classNames.push(b.params.containerModifierClass+"no-flexbox"),b.params.slidesPerColumn=1),b.params.autoHeight&&b.classNames.push(b.params.containerModifierClass+"autoheight"),(b.params.parallax||b.params.watchSlidesVisibility)&&(b.params.watchSlidesProgress=!0),b.params.touchReleaseOnEdges&&(b.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(b.params.effect)>=0&&(b.support.transforms3d?(b.params.watchSlidesProgress=!0,b.classNames.push(b.params.containerModifierClass+"3d")):b.params.effect="slide"),"slide"!==b.params.effect&&b.classNames.push(b.params.containerModifierClass+b.params.effect),"cube"===b.params.effect&&(b.params.resistanceRatio=0,b.params.slidesPerView=1,b.params.slidesPerColumn=1,b.params.slidesPerGroup=1,b.params.centeredSlides=!1,b.params.spaceBetween=0,b.params.virtualTranslate=!0,b.params.setWrapperSize=!1),"fade"!==b.params.effect&&"flip"!==b.params.effect||(b.params.slidesPerView=1,b.params.slidesPerColumn=1,b.params.slidesPerGroup=1,b.params.watchSlidesProgress=!0,b.params.spaceBetween=0,b.params.setWrapperSize=!1,"undefined"==typeof f&&(b.params.virtualTranslate=!0)),b.params.grabCursor&&b.support.touch&&(b.params.grabCursor=!1),b.wrapper=b.container.children("."+b.params.wrapperClass),b.params.pagination&&(b.paginationContainer=a(b.params.pagination),b.params.uniqueNavElements&&"string"==typeof b.params.pagination&&b.paginationContainer.length>1&&1===b.container.find(b.params.pagination).length&&(b.paginationContainer=b.container.find(b.params.pagination)),"bullets"===b.params.paginationType&&b.params.paginationClickable?b.paginationContainer.addClass(b.params.paginationModifierClass+"clickable"):b.params.paginationClickable=!1,b.paginationContainer.addClass(b.params.paginationModifierClass+b.params.paginationType)),(b.params.nextButton||b.params.prevButton)&&(b.params.nextButton&&(b.nextButton=a(b.params.nextButton),b.params.uniqueNavElements&&"string"==typeof b.params.nextButton&&b.nextButton.length>1&&1===b.container.find(b.params.nextButton).length&&(b.nextButton=b.container.find(b.params.nextButton))),b.params.prevButton&&(b.prevButton=a(b.params.prevButton),b.params.uniqueNavElements&&"string"==typeof b.params.prevButton&&b.prevButton.length>1&&1===b.container.find(b.params.prevButton).length&&(b.prevButton=b.container.find(b.params.prevButton)))),b.isHorizontal=function(){return"horizontal"===b.params.direction},b.rtl=b.isHorizontal()&&("rtl"===b.container[0].dir.toLowerCase()||"rtl"===b.container.css("direction")),b.rtl&&b.classNames.push(b.params.containerModifierClass+"rtl"),b.rtl&&(b.wrongRTL="-webkit-box"===b.wrapper.css("display")),b.params.slidesPerColumn>1&&b.classNames.push(b.params.containerModifierClass+"multirow"),b.device.android&&b.classNames.push(b.params.containerModifierClass+"android"),b.container.addClass(b.classNames.join(" ")),b.translate=0,b.progress=0,b.velocity=0,b.lockSwipeToNext=function(){b.params.allowSwipeToNext=!1,b.params.allowSwipeToPrev===!1&&b.params.grabCursor&&b.unsetGrabCursor()},b.lockSwipeToPrev=function(){b.params.allowSwipeToPrev=!1,b.params.allowSwipeToNext===!1&&b.params.grabCursor&&b.unsetGrabCursor()},b.lockSwipes=function(){b.params.allowSwipeToNext=b.params.allowSwipeToPrev=!1,b.params.grabCursor&&b.unsetGrabCursor()},b.unlockSwipeToNext=function(){b.params.allowSwipeToNext=!0,b.params.allowSwipeToPrev===!0&&b.params.grabCursor&&b.setGrabCursor()},b.unlockSwipeToPrev=function(){b.params.allowSwipeToPrev=!0,b.params.allowSwipeToNext===!0&&b.params.grabCursor&&b.setGrabCursor()},b.unlockSwipes=function(){b.params.allowSwipeToNext=b.params.allowSwipeToPrev=!0,b.params.grabCursor&&b.setGrabCursor()},b.setGrabCursor=function(e){b.container[0].style.cursor="move",b.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",b.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",b.container[0].style.cursor=e?"grabbing":"grab"},b.unsetGrabCursor=function(){b.container[0].style.cursor=""},b.params.grabCursor&&b.setGrabCursor(),b.imagesToLoad=[],b.imagesLoaded=0,b.loadImage=function(e,a,t,s,i,r){function n(){r&&r()}var o;e.complete&&i?n():a?(o=new window.Image,o.onload=n,o.onerror=n,s&&(o.sizes=s),t&&(o.srcset=t),a&&(o.src=a)):n()},b.preloadImages=function(){function e(){"undefined"!=typeof b&&null!==b&&b&&(void 0!==b.imagesLoaded&&b.imagesLoaded++,b.imagesLoaded===b.imagesToLoad.length&&(b.params.updateOnImagesReady&&b.update(),b.emit("onImagesReady",b)))}b.imagesToLoad=b.container.find("img");for(var a=0;a<b.imagesToLoad.length;a++)b.loadImage(b.imagesToLoad[a],b.imagesToLoad[a].currentSrc||b.imagesToLoad[a].getAttribute("src"),b.imagesToLoad[a].srcset||b.imagesToLoad[a].getAttribute("srcset"),b.imagesToLoad[a].sizes||b.imagesToLoad[a].getAttribute("sizes"),!0,e)},b.autoplayTimeoutId=void 0,b.autoplaying=!1,b.autoplayPaused=!1,b.startAutoplay=function(){return"undefined"==typeof b.autoplayTimeoutId&&(!!b.params.autoplay&&(!b.autoplaying&&(b.autoplaying=!0,b.emit("onAutoplayStart",b),void n())))},b.stopAutoplay=function(e){b.autoplayTimeoutId&&(b.autoplayTimeoutId&&clearTimeout(b.autoplayTimeoutId),b.autoplaying=!1,b.autoplayTimeoutId=void 0,b.emit("onAutoplayStop",b))},b.pauseAutoplay=function(e){b.autoplayPaused||(b.autoplayTimeoutId&&clearTimeout(b.autoplayTimeoutId),b.autoplayPaused=!0,0===e?(b.autoplayPaused=!1,n()):b.wrapper.transitionEnd(function(){b&&(b.autoplayPaused=!1,b.autoplaying?n():b.stopAutoplay())}))},b.minTranslate=function(){return-b.snapGrid[0]},b.maxTranslate=function(){return-b.snapGrid[b.snapGrid.length-1]},b.updateAutoHeight=function(){var e,a=[],t=0;if("auto"!==b.params.slidesPerView&&b.params.slidesPerView>1)for(e=0;e<Math.ceil(b.params.slidesPerView);e++){var s=b.activeIndex+e;if(s>b.slides.length)break;a.push(b.slides.eq(s)[0])}else a.push(b.slides.eq(b.activeIndex)[0]);for(e=0;e<a.length;e++)if("undefined"!=typeof a[e]){var i=a[e].offsetHeight;t=i>t?i:t}t&&b.wrapper.css("height",t+"px")},b.updateContainerSize=function(){var e,a;e="undefined"!=typeof b.params.width?b.params.width:b.container[0].clientWidth,a="undefined"!=typeof b.params.height?b.params.height:b.container[0].clientHeight,0===e&&b.isHorizontal()||0===a&&!b.isHorizontal()||(e=e-parseInt(b.container.css("padding-left"),10)-parseInt(b.container.css("padding-right"),10),a=a-parseInt(b.container.css("padding-top"),10)-parseInt(b.container.css("padding-bottom"),10),b.width=e,b.height=a,b.size=b.isHorizontal()?b.width:b.height)},b.updateSlidesSize=function(){b.slides=b.wrapper.children("."+b.params.slideClass),b.snapGrid=[],b.slidesGrid=[],b.slidesSizesGrid=[];var e,a=b.params.spaceBetween,t=-b.params.slidesOffsetBefore,s=0,i=0;if("undefined"!=typeof b.size){"string"==typeof a&&a.indexOf("%")>=0&&(a=parseFloat(a.replace("%",""))/100*b.size),b.virtualSize=-a,b.rtl?b.slides.css({marginLeft:"",marginTop:""}):b.slides.css({marginRight:"",marginBottom:""});var n;b.params.slidesPerColumn>1&&(n=Math.floor(b.slides.length/b.params.slidesPerColumn)===b.slides.length/b.params.slidesPerColumn?b.slides.length:Math.ceil(b.slides.length/b.params.slidesPerColumn)*b.params.slidesPerColumn,"auto"!==b.params.slidesPerView&&"row"===b.params.slidesPerColumnFill&&(n=Math.max(n,b.params.slidesPerView*b.params.slidesPerColumn)));var o,l=b.params.slidesPerColumn,p=n/l,d=p-(b.params.slidesPerColumn*p-b.slides.length);for(e=0;e<b.slides.length;e++){o=0;var u=b.slides.eq(e);if(b.params.slidesPerColumn>1){var c,m,h;"column"===b.params.slidesPerColumnFill?(m=Math.floor(e/l),h=e-m*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),c=m+h*n/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(h=Math.floor(e/p),m=e-h*p),u.css("margin-"+(b.isHorizontal()?"top":"left"),0!==h&&b.params.spaceBetween&&b.params.spaceBetween+"px").attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===b.params.slidesPerView?(o=b.isHorizontal()?u.outerWidth(!0):u.outerHeight(!0),b.params.roundLengths&&(o=r(o))):(o=(b.size-(b.params.slidesPerView-1)*a)/b.params.slidesPerView,b.params.roundLengths&&(o=r(o)),b.isHorizontal()?b.slides[e].style.width=o+"px":b.slides[e].style.height=o+"px"),b.slides[e].swiperSlideSize=o,b.slidesSizesGrid.push(o),b.params.centeredSlides?(t=t+o/2+s/2+a,0===e&&(t=t-b.size/2-a),Math.abs(t)<.001&&(t=0),i%b.params.slidesPerGroup===0&&b.snapGrid.push(t),b.slidesGrid.push(t)):(i%b.params.slidesPerGroup===0&&b.snapGrid.push(t),b.slidesGrid.push(t),t=t+o+a),b.virtualSize+=o+a,s=o,i++)}b.virtualSize=Math.max(b.virtualSize,b.size)+b.params.slidesOffsetAfter;var g;if(b.rtl&&b.wrongRTL&&("slide"===b.params.effect||"coverflow"===b.params.effect)&&b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}),b.support.flexbox&&!b.params.setWrapperSize||(b.isHorizontal()?b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}):b.wrapper.css({height:b.virtualSize+b.params.spaceBetween+"px"})),b.params.slidesPerColumn>1&&(b.virtualSize=(o+b.params.spaceBetween)*n,b.virtualSize=Math.ceil(b.virtualSize/b.params.slidesPerColumn)-b.params.spaceBetween,b.isHorizontal()?b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}):b.wrapper.css({height:b.virtualSize+b.params.spaceBetween+"px"}),b.params.centeredSlides)){for(g=[],e=0;e<b.snapGrid.length;e++)b.snapGrid[e]<b.virtualSize+b.snapGrid[0]&&g.push(b.snapGrid[e]);b.snapGrid=g}if(!b.params.centeredSlides){for(g=[],e=0;e<b.snapGrid.length;e++)b.snapGrid[e]<=b.virtualSize-b.size&&g.push(b.snapGrid[e]);b.snapGrid=g,Math.floor(b.virtualSize-b.size)-Math.floor(b.snapGrid[b.snapGrid.length-1])>1&&b.snapGrid.push(b.virtualSize-b.size)}0===b.snapGrid.length&&(b.snapGrid=[0]),0!==b.params.spaceBetween&&(b.isHorizontal()?b.rtl?b.slides.css({marginLeft:a+"px"}):b.slides.css({marginRight:a+"px"}):b.slides.css({marginBottom:a+"px"})),b.params.watchSlidesProgress&&b.updateSlidesOffset()}},b.updateSlidesOffset=function(){for(var e=0;e<b.slides.length;e++)b.slides[e].swiperSlideOffset=b.isHorizontal()?b.slides[e].offsetLeft:b.slides[e].offsetTop},b.currentSlidesPerView=function(){var e,a,t=1;if(b.params.centeredSlides){var s,i=b.slides[b.activeIndex].swiperSlideSize;for(e=b.activeIndex+1;e<b.slides.length;e++)b.slides[e]&&!s&&(i+=b.slides[e].swiperSlideSize,t++,i>b.size&&(s=!0));for(a=b.activeIndex-1;a>=0;a--)b.slides[a]&&!s&&(i+=b.slides[a].swiperSlideSize,t++,i>b.size&&(s=!0))}else for(e=b.activeIndex+1;e<b.slides.length;e++)b.slidesGrid[e]-b.slidesGrid[b.activeIndex]<b.size&&t++;return t},b.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=b.translate||0),0!==b.slides.length){"undefined"==typeof b.slides[0].swiperSlideOffset&&b.updateSlidesOffset();var a=-e;b.rtl&&(a=e),b.slides.removeClass(b.params.slideVisibleClass);for(var t=0;t<b.slides.length;t++){var s=b.slides[t],i=(a+(b.params.centeredSlides?b.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+b.params.spaceBetween);if(b.params.watchSlidesVisibility){var r=-(a-s.swiperSlideOffset),n=r+b.slidesSizesGrid[t],o=r>=0&&r<b.size||n>0&&n<=b.size||r<=0&&n>=b.size;o&&b.slides.eq(t).addClass(b.params.slideVisibleClass)}s.progress=b.rtl?-i:i}}},b.updateProgress=function(e){"undefined"==typeof e&&(e=b.translate||0);var a=b.maxTranslate()-b.minTranslate(),t=b.isBeginning,s=b.isEnd;0===a?(b.progress=0,b.isBeginning=b.isEnd=!0):(b.progress=(e-b.minTranslate())/a,b.isBeginning=b.progress<=0,b.isEnd=b.progress>=1),b.isBeginning&&!t&&b.emit("onReachBeginning",b),b.isEnd&&!s&&b.emit("onReachEnd",b),b.params.watchSlidesProgress&&b.updateSlidesProgress(e),b.emit("onProgress",b,b.progress)},b.updateActiveIndex=function(){var e,a,t,s=b.rtl?b.translate:-b.translate;for(a=0;a<b.slidesGrid.length;a++)"undefined"!=typeof b.slidesGrid[a+1]?s>=b.slidesGrid[a]&&s<b.slidesGrid[a+1]-(b.slidesGrid[a+1]-b.slidesGrid[a])/2?e=a:s>=b.slidesGrid[a]&&s<b.slidesGrid[a+1]&&(e=a+1):s>=b.slidesGrid[a]&&(e=a);b.params.normalizeSlideIndex&&(e<0||"undefined"==typeof e)&&(e=0),t=Math.floor(e/b.params.slidesPerGroup),t>=b.snapGrid.length&&(t=b.snapGrid.length-1),e!==b.activeIndex&&(b.snapIndex=t,b.previousIndex=b.activeIndex,b.activeIndex=e,b.updateClasses(),b.updateRealIndex())},b.updateRealIndex=function(){b.realIndex=parseInt(b.slides.eq(b.activeIndex).attr("data-swiper-slide-index")||b.activeIndex,10)},b.updateClasses=function(){b.slides.removeClass(b.params.slideActiveClass+" "+b.params.slideNextClass+" "+b.params.slidePrevClass+" "+b.params.slideDuplicateActiveClass+" "+b.params.slideDuplicateNextClass+" "+b.params.slideDuplicatePrevClass);var e=b.slides.eq(b.activeIndex);e.addClass(b.params.slideActiveClass),i.loop&&(e.hasClass(b.params.slideDuplicateClass)?b.wrapper.children("."+b.params.slideClass+":not(."+b.params.slideDuplicateClass+')[data-swiper-slide-index="'+b.realIndex+'"]').addClass(b.params.slideDuplicateActiveClass):b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass+'[data-swiper-slide-index="'+b.realIndex+'"]').addClass(b.params.slideDuplicateActiveClass));var t=e.next("."+b.params.slideClass).addClass(b.params.slideNextClass);b.params.loop&&0===t.length&&(t=b.slides.eq(0),t.addClass(b.params.slideNextClass));var s=e.prev("."+b.params.slideClass).addClass(b.params.slidePrevClass);if(b.params.loop&&0===s.length&&(s=b.slides.eq(-1),s.addClass(b.params.slidePrevClass)),i.loop&&(t.hasClass(b.params.slideDuplicateClass)?b.wrapper.children("."+b.params.slideClass+":not(."+b.params.slideDuplicateClass+')[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addClass(b.params.slideDuplicateNextClass):b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass+'[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addClass(b.params.slideDuplicateNextClass),s.hasClass(b.params.slideDuplicateClass)?b.wrapper.children("."+b.params.slideClass+":not(."+b.params.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(b.params.slideDuplicatePrevClass):b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(b.params.slideDuplicatePrevClass)),b.paginationContainer&&b.paginationContainer.length>0){var r,n=b.params.loop?Math.ceil((b.slides.length-2*b.loopedSlides)/b.params.slidesPerGroup):b.snapGrid.length;if(b.params.loop?(r=Math.ceil((b.activeIndex-b.loopedSlides)/b.params.slidesPerGroup),r>b.slides.length-1-2*b.loopedSlides&&(r-=b.slides.length-2*b.loopedSlides),r>n-1&&(r-=n),r<0&&"bullets"!==b.params.paginationType&&(r=n+r)):r="undefined"!=typeof b.snapIndex?b.snapIndex:b.activeIndex||0,"bullets"===b.params.paginationType&&b.bullets&&b.bullets.length>0&&(b.bullets.removeClass(b.params.bulletActiveClass),b.paginationContainer.length>1?b.bullets.each(function(){a(this).index()===r&&a(this).addClass(b.params.bulletActiveClass)}):b.bullets.eq(r).addClass(b.params.bulletActiveClass)),"fraction"===b.params.paginationType&&(b.paginationContainer.find("."+b.params.paginationCurrentClass).text(r+1),b.paginationContainer.find("."+b.params.paginationTotalClass).text(n)),"progress"===b.params.paginationType){var o=(r+1)/n,l=o,p=1;b.isHorizontal()||(p=o,l=1),b.paginationContainer.find("."+b.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+l+") scaleY("+p+")").transition(b.params.speed)}"custom"===b.params.paginationType&&b.params.paginationCustomRender&&(b.paginationContainer.html(b.params.paginationCustomRender(b,r+1,n)),b.emit("onPaginationRendered",b,b.paginationContainer[0]))}b.params.loop||(b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.isBeginning?(b.prevButton.addClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.disable(b.prevButton)):(b.prevButton.removeClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.enable(b.prevButton))),b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.isEnd?(b.nextButton.addClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.disable(b.nextButton)):(b.nextButton.removeClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.enable(b.nextButton))))},b.updatePagination=function(){if(b.params.pagination&&b.paginationContainer&&b.paginationContainer.length>0){var e="";if("bullets"===b.params.paginationType){for(var a=b.params.loop?Math.ceil((b.slides.length-2*b.loopedSlides)/b.params.slidesPerGroup):b.snapGrid.length,t=0;t<a;t++)e+=b.params.paginationBulletRender?b.params.paginationBulletRender(b,t,b.params.bulletClass):"<"+b.params.paginationElement+' class="'+b.params.bulletClass+'"></'+b.params.paginationElement+">";b.paginationContainer.html(e),b.bullets=b.paginationContainer.find("."+b.params.bulletClass),b.params.paginationClickable&&b.params.a11y&&b.a11y&&b.a11y.initPagination()}"fraction"===b.params.paginationType&&(e=b.params.paginationFractionRender?b.params.paginationFractionRender(b,b.params.paginationCurrentClass,b.params.paginationTotalClass):'<span class="'+b.params.paginationCurrentClass+'"></span> / <span class="'+b.params.paginationTotalClass+'"></span>',b.paginationContainer.html(e)),"progress"===b.params.paginationType&&(e=b.params.paginationProgressRender?b.params.paginationProgressRender(b,b.params.paginationProgressbarClass):'<span class="'+b.params.paginationProgressbarClass+'"></span>',b.paginationContainer.html(e)),"custom"!==b.params.paginationType&&b.emit("onPaginationRendered",b,b.paginationContainer[0])}},b.update=function(e){function a(){b.rtl?-b.translate:b.translate;s=Math.min(Math.max(b.translate,b.maxTranslate()),b.minTranslate()),b.setWrapperTranslate(s),b.updateActiveIndex(),b.updateClasses()}if(b)if(b.updateContainerSize(),b.updateSlidesSize(),b.updateProgress(),b.updatePagination(),b.updateClasses(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),e){var t,s;b.controller&&b.controller.spline&&(b.controller.spline=void 0),b.params.freeMode?(a(),b.params.autoHeight&&b.updateAutoHeight()):(t=("auto"===b.params.slidesPerView||b.params.slidesPerView>1)&&b.isEnd&&!b.params.centeredSlides?b.slideTo(b.slides.length-1,0,!1,!0):b.slideTo(b.activeIndex,0,!1,!0),t||a())}else b.params.autoHeight&&b.updateAutoHeight()},b.onResize=function(e){b.params.breakpoints&&b.setBreakpoint();var a=b.params.allowSwipeToPrev,t=b.params.allowSwipeToNext;b.params.allowSwipeToPrev=b.params.allowSwipeToNext=!0,b.updateContainerSize(),b.updateSlidesSize(),("auto"===b.params.slidesPerView||b.params.freeMode||e)&&b.updatePagination(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),b.controller&&b.controller.spline&&(b.controller.spline=void 0);var s=!1;if(b.params.freeMode){var i=Math.min(Math.max(b.translate,b.maxTranslate()),b.minTranslate());b.setWrapperTranslate(i),b.updateActiveIndex(),b.updateClasses(),b.params.autoHeight&&b.updateAutoHeight()}else b.updateClasses(),s=("auto"===b.params.slidesPerView||b.params.slidesPerView>1)&&b.isEnd&&!b.params.centeredSlides?b.slideTo(b.slides.length-1,0,!1,!0):b.slideTo(b.activeIndex,0,!1,!0);b.params.lazyLoading&&!s&&b.lazy&&b.lazy.load(),b.params.allowSwipeToPrev=a,b.params.allowSwipeToNext=t},b.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?b.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(b.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),b.touchEvents={start:b.support.touch||!b.params.simulateTouch?"touchstart":b.touchEventsDesktop.start,move:b.support.touch||!b.params.simulateTouch?"touchmove":b.touchEventsDesktop.move,end:b.support.touch||!b.params.simulateTouch?"touchend":b.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===b.params.touchEventsTarget?b.container:b.wrapper).addClass("swiper-wp8-"+b.params.direction),b.initEvents=function(e){var a=e?"off":"on",t=e?"removeEventListener":"addEventListener",s="container"===b.params.touchEventsTarget?b.container[0]:b.wrapper[0],r=b.support.touch?s:document,n=!!b.params.nested;if(b.browser.ie)s[t](b.touchEvents.start,b.onTouchStart,!1),r[t](b.touchEvents.move,b.onTouchMove,n),r[t](b.touchEvents.end,b.onTouchEnd,!1);else{if(b.support.touch){var o=!("touchstart"!==b.touchEvents.start||!b.support.passiveListener||!b.params.passiveListeners)&&{passive:!0,capture:!1};s[t](b.touchEvents.start,b.onTouchStart,o),s[t](b.touchEvents.move,b.onTouchMove,n),s[t](b.touchEvents.end,b.onTouchEnd,o)}(i.simulateTouch&&!b.device.ios&&!b.device.android||i.simulateTouch&&!b.support.touch&&b.device.ios)&&(s[t]("mousedown",b.onTouchStart,!1),document[t]("mousemove",b.onTouchMove,n),document[t]("mouseup",b.onTouchEnd,!1))}window[t]("resize",b.onResize),b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.nextButton[a]("click",b.onClickNext),b.params.a11y&&b.a11y&&b.nextButton[a]("keydown",b.a11y.onEnterKey)),b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.prevButton[a]("click",b.onClickPrev),b.params.a11y&&b.a11y&&b.prevButton[a]("keydown",b.a11y.onEnterKey)),b.params.pagination&&b.params.paginationClickable&&(b.paginationContainer[a]("click","."+b.params.bulletClass,b.onClickIndex),b.params.a11y&&b.a11y&&b.paginationContainer[a]("keydown","."+b.params.bulletClass,b.a11y.onEnterKey)),(b.params.preventClicks||b.params.preventClicksPropagation)&&s[t]("click",b.preventClicks,!0);
},b.attachEvents=function(){b.initEvents()},b.detachEvents=function(){b.initEvents(!0)},b.allowClick=!0,b.preventClicks=function(e){b.allowClick||(b.params.preventClicks&&e.preventDefault(),b.params.preventClicksPropagation&&b.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},b.onClickNext=function(e){e.preventDefault(),b.isEnd&&!b.params.loop||b.slideNext()},b.onClickPrev=function(e){e.preventDefault(),b.isBeginning&&!b.params.loop||b.slidePrev()},b.onClickIndex=function(e){e.preventDefault();var t=a(this).index()*b.params.slidesPerGroup;b.params.loop&&(t+=b.loopedSlides),b.slideTo(t)},b.updateClickedSlide=function(e){var t=o(e,"."+b.params.slideClass),s=!1;if(t)for(var i=0;i<b.slides.length;i++)b.slides[i]===t&&(s=!0);if(!t||!s)return b.clickedSlide=void 0,void(b.clickedIndex=void 0);if(b.clickedSlide=t,b.clickedIndex=a(t).index(),b.params.slideToClickedSlide&&void 0!==b.clickedIndex&&b.clickedIndex!==b.activeIndex){var r,n=b.clickedIndex,l="auto"===b.params.slidesPerView?b.currentSlidesPerView():b.params.slidesPerView;if(b.params.loop){if(b.animating)return;r=parseInt(a(b.clickedSlide).attr("data-swiper-slide-index"),10),b.params.centeredSlides?n<b.loopedSlides-l/2||n>b.slides.length-b.loopedSlides+l/2?(b.fixLoop(),n=b.wrapper.children("."+b.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.'+b.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){b.slideTo(n)},0)):b.slideTo(n):n>b.slides.length-l?(b.fixLoop(),n=b.wrapper.children("."+b.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.'+b.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){b.slideTo(n)},0)):b.slideTo(n)}else b.slideTo(n)}};var C,z,M,E,P,I,k,L,D,B,H="input, select, textarea, button, video",G=Date.now(),X=[];b.animating=!1,b.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var Y,A;b.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),Y="touchstart"===e.type,Y||!("which"in e)||3!==e.which){if(b.params.noSwiping&&o(e,"."+b.params.noSwipingClass))return void(b.allowClick=!0);if(!b.params.swipeHandler||o(e,b.params.swipeHandler)){var t=b.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s=b.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(b.device.ios&&b.params.iOSEdgeSwipeDetection&&t<=b.params.iOSEdgeSwipeThreshold)){if(C=!0,z=!1,M=!0,P=void 0,A=void 0,b.touches.startX=t,b.touches.startY=s,E=Date.now(),b.allowClick=!0,b.updateContainerSize(),b.swipeDirection=void 0,b.params.threshold>0&&(L=!1),"touchstart"!==e.type){var i=!0;a(e.target).is(H)&&(i=!1),document.activeElement&&a(document.activeElement).is(H)&&document.activeElement.blur(),i&&e.preventDefault()}b.emit("onTouchStart",b,e)}}}},b.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!Y||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return b.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(b.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(b.params.onlyExternal)return b.allowClick=!1,void(C&&(b.touches.startX=b.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,b.touches.startY=b.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,E=Date.now()));if(Y&&b.params.touchReleaseOnEdges&&!b.params.loop)if(b.isHorizontal()){if(b.touches.currentX<b.touches.startX&&b.translate<=b.maxTranslate()||b.touches.currentX>b.touches.startX&&b.translate>=b.minTranslate())return}else if(b.touches.currentY<b.touches.startY&&b.translate<=b.maxTranslate()||b.touches.currentY>b.touches.startY&&b.translate>=b.minTranslate())return;if(Y&&document.activeElement&&e.target===document.activeElement&&a(e.target).is(H))return z=!0,void(b.allowClick=!1);if(M&&b.emit("onTouchMove",b,e),!(e.targetTouches&&e.targetTouches.length>1)){if(b.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,b.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof P){var t;b.isHorizontal()&&b.touches.currentY===b.touches.startY||!b.isHorizontal()&&b.touches.currentX===b.touches.startX?P=!1:(t=180*Math.atan2(Math.abs(b.touches.currentY-b.touches.startY),Math.abs(b.touches.currentX-b.touches.startX))/Math.PI,P=b.isHorizontal()?t>b.params.touchAngle:90-t>b.params.touchAngle)}if(P&&b.emit("onTouchMoveOpposite",b,e),"undefined"==typeof A&&b.browser.ieTouch&&(b.touches.currentX===b.touches.startX&&b.touches.currentY===b.touches.startY||(A=!0)),C){if(P)return void(C=!1);if(A||!b.browser.ieTouch){b.allowClick=!1,b.emit("onSliderMove",b,e),e.preventDefault(),b.params.touchMoveStopPropagation&&!b.params.nested&&e.stopPropagation(),z||(i.loop&&b.fixLoop(),k=b.getWrapperTranslate(),b.setWrapperTransition(0),b.animating&&b.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),b.params.autoplay&&b.autoplaying&&(b.params.autoplayDisableOnInteraction?b.stopAutoplay():b.pauseAutoplay()),B=!1,!b.params.grabCursor||b.params.allowSwipeToNext!==!0&&b.params.allowSwipeToPrev!==!0||b.setGrabCursor(!0)),z=!0;var s=b.touches.diff=b.isHorizontal()?b.touches.currentX-b.touches.startX:b.touches.currentY-b.touches.startY;s*=b.params.touchRatio,b.rtl&&(s=-s),b.swipeDirection=s>0?"prev":"next",I=s+k;var r=!0;if(s>0&&I>b.minTranslate()?(r=!1,b.params.resistance&&(I=b.minTranslate()-1+Math.pow(-b.minTranslate()+k+s,b.params.resistanceRatio))):s<0&&I<b.maxTranslate()&&(r=!1,b.params.resistance&&(I=b.maxTranslate()+1-Math.pow(b.maxTranslate()-k-s,b.params.resistanceRatio))),r&&(e.preventedByNestedSwiper=!0),!b.params.allowSwipeToNext&&"next"===b.swipeDirection&&I<k&&(I=k),!b.params.allowSwipeToPrev&&"prev"===b.swipeDirection&&I>k&&(I=k),b.params.threshold>0){if(!(Math.abs(s)>b.params.threshold||L))return void(I=k);if(!L)return L=!0,b.touches.startX=b.touches.currentX,b.touches.startY=b.touches.currentY,I=k,void(b.touches.diff=b.isHorizontal()?b.touches.currentX-b.touches.startX:b.touches.currentY-b.touches.startY)}b.params.followFinger&&((b.params.freeMode||b.params.watchSlidesProgress)&&b.updateActiveIndex(),b.params.freeMode&&(0===X.length&&X.push({position:b.touches[b.isHorizontal()?"startX":"startY"],time:E}),X.push({position:b.touches[b.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),b.updateProgress(I),b.setWrapperTranslate(I))}}}}},b.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),M&&b.emit("onTouchEnd",b,e),M=!1,C){b.params.grabCursor&&z&&C&&(b.params.allowSwipeToNext===!0||b.params.allowSwipeToPrev===!0)&&b.setGrabCursor(!1);var t=Date.now(),s=t-E;if(b.allowClick&&(b.updateClickedSlide(e),b.emit("onTap",b,e),s<300&&t-G>300&&(D&&clearTimeout(D),D=setTimeout(function(){b&&(b.params.paginationHide&&b.paginationContainer.length>0&&!a(e.target).hasClass(b.params.bulletClass)&&b.paginationContainer.toggleClass(b.params.paginationHiddenClass),b.emit("onClick",b,e))},300)),s<300&&t-G<300&&(D&&clearTimeout(D),b.emit("onDoubleTap",b,e))),G=Date.now(),setTimeout(function(){b&&(b.allowClick=!0)},0),!C||!z||!b.swipeDirection||0===b.touches.diff||I===k)return void(C=z=!1);C=z=!1;var i;if(i=b.params.followFinger?b.rtl?b.translate:-b.translate:-I,b.params.freeMode){if(i<-b.minTranslate())return void b.slideTo(b.activeIndex);if(i>-b.maxTranslate())return void(b.slides.length<b.snapGrid.length?b.slideTo(b.snapGrid.length-1):b.slideTo(b.slides.length-1));if(b.params.freeModeMomentum){if(X.length>1){var r=X.pop(),n=X.pop(),o=r.position-n.position,l=r.time-n.time;b.velocity=o/l,b.velocity=b.velocity/2,Math.abs(b.velocity)<b.params.freeModeMinimumVelocity&&(b.velocity=0),(l>150||(new window.Date).getTime()-r.time>300)&&(b.velocity=0)}else b.velocity=0;b.velocity=b.velocity*b.params.freeModeMomentumVelocityRatio,X.length=0;var p=1e3*b.params.freeModeMomentumRatio,d=b.velocity*p,u=b.translate+d;b.rtl&&(u=-u);var c,m=!1,h=20*Math.abs(b.velocity)*b.params.freeModeMomentumBounceRatio;if(u<b.maxTranslate())b.params.freeModeMomentumBounce?(u+b.maxTranslate()<-h&&(u=b.maxTranslate()-h),c=b.maxTranslate(),m=!0,B=!0):u=b.maxTranslate();else if(u>b.minTranslate())b.params.freeModeMomentumBounce?(u-b.minTranslate()>h&&(u=b.minTranslate()+h),c=b.minTranslate(),m=!0,B=!0):u=b.minTranslate();else if(b.params.freeModeSticky){var g,f=0;for(f=0;f<b.snapGrid.length;f+=1)if(b.snapGrid[f]>-u){g=f;break}u=Math.abs(b.snapGrid[g]-u)<Math.abs(b.snapGrid[g-1]-u)||"next"===b.swipeDirection?b.snapGrid[g]:b.snapGrid[g-1],b.rtl||(u=-u)}if(0!==b.velocity)p=b.rtl?Math.abs((-u-b.translate)/b.velocity):Math.abs((u-b.translate)/b.velocity);else if(b.params.freeModeSticky)return void b.slideReset();b.params.freeModeMomentumBounce&&m?(b.updateProgress(c),b.setWrapperTransition(p),b.setWrapperTranslate(u),b.onTransitionStart(),b.animating=!0,b.wrapper.transitionEnd(function(){b&&B&&(b.emit("onMomentumBounce",b),b.setWrapperTransition(b.params.speed),b.setWrapperTranslate(c),b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd()}))})):b.velocity?(b.updateProgress(u),b.setWrapperTransition(p),b.setWrapperTranslate(u),b.onTransitionStart(),b.animating||(b.animating=!0,b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd()}))):b.updateProgress(u),b.updateActiveIndex()}return void((!b.params.freeModeMomentum||s>=b.params.longSwipesMs)&&(b.updateProgress(),b.updateActiveIndex()))}var v,w=0,y=b.slidesSizesGrid[0];for(v=0;v<b.slidesGrid.length;v+=b.params.slidesPerGroup)"undefined"!=typeof b.slidesGrid[v+b.params.slidesPerGroup]?i>=b.slidesGrid[v]&&i<b.slidesGrid[v+b.params.slidesPerGroup]&&(w=v,y=b.slidesGrid[v+b.params.slidesPerGroup]-b.slidesGrid[v]):i>=b.slidesGrid[v]&&(w=v,y=b.slidesGrid[b.slidesGrid.length-1]-b.slidesGrid[b.slidesGrid.length-2]);var x=(i-b.slidesGrid[w])/y;if(s>b.params.longSwipesMs){if(!b.params.longSwipes)return void b.slideTo(b.activeIndex);"next"===b.swipeDirection&&(x>=b.params.longSwipesRatio?b.slideTo(w+b.params.slidesPerGroup):b.slideTo(w)),"prev"===b.swipeDirection&&(x>1-b.params.longSwipesRatio?b.slideTo(w+b.params.slidesPerGroup):b.slideTo(w))}else{if(!b.params.shortSwipes)return void b.slideTo(b.activeIndex);"next"===b.swipeDirection&&b.slideTo(w+b.params.slidesPerGroup),"prev"===b.swipeDirection&&b.slideTo(w)}}},b._slideTo=function(e,a){return b.slideTo(e,a,!0,!0)},b.slideTo=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),b.snapIndex=Math.floor(e/b.params.slidesPerGroup),b.snapIndex>=b.snapGrid.length&&(b.snapIndex=b.snapGrid.length-1);var i=-b.snapGrid[b.snapIndex];if(b.params.autoplay&&b.autoplaying&&(s||!b.params.autoplayDisableOnInteraction?b.pauseAutoplay(a):b.stopAutoplay()),b.updateProgress(i),b.params.normalizeSlideIndex)for(var r=0;r<b.slidesGrid.length;r++)-Math.floor(100*i)>=Math.floor(100*b.slidesGrid[r])&&(e=r);return!(!b.params.allowSwipeToNext&&i<b.translate&&i<b.minTranslate())&&(!(!b.params.allowSwipeToPrev&&i>b.translate&&i>b.maxTranslate()&&(b.activeIndex||0)!==e)&&("undefined"==typeof a&&(a=b.params.speed),b.previousIndex=b.activeIndex||0,b.activeIndex=e,b.updateRealIndex(),b.rtl&&-i===b.translate||!b.rtl&&i===b.translate?(b.params.autoHeight&&b.updateAutoHeight(),b.updateClasses(),"slide"!==b.params.effect&&b.setWrapperTranslate(i),!1):(b.updateClasses(),b.onTransitionStart(t),0===a||b.browser.lteIE9?(b.setWrapperTranslate(i),b.setWrapperTransition(0),b.onTransitionEnd(t)):(b.setWrapperTranslate(i),b.setWrapperTransition(a),b.animating||(b.animating=!0,b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd(t)}))),!0)))},b.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),b.params.autoHeight&&b.updateAutoHeight(),b.lazy&&b.lazy.onTransitionStart(),e&&(b.emit("onTransitionStart",b),b.activeIndex!==b.previousIndex&&(b.emit("onSlideChangeStart",b),b.activeIndex>b.previousIndex?b.emit("onSlideNextStart",b):b.emit("onSlidePrevStart",b)))},b.onTransitionEnd=function(e){b.animating=!1,b.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),b.lazy&&b.lazy.onTransitionEnd(),e&&(b.emit("onTransitionEnd",b),b.activeIndex!==b.previousIndex&&(b.emit("onSlideChangeEnd",b),b.activeIndex>b.previousIndex?b.emit("onSlideNextEnd",b):b.emit("onSlidePrevEnd",b))),b.params.history&&b.history&&b.history.setHistory(b.params.history,b.activeIndex),b.params.hashnav&&b.hashnav&&b.hashnav.setHash()},b.slideNext=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixLoop();b.container[0].clientLeft;return b.slideTo(b.activeIndex+b.params.slidesPerGroup,a,e,t)}return b.slideTo(b.activeIndex+b.params.slidesPerGroup,a,e,t)},b._slideNext=function(e){return b.slideNext(!0,e,!0)},b.slidePrev=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixLoop();b.container[0].clientLeft;return b.slideTo(b.activeIndex-1,a,e,t)}return b.slideTo(b.activeIndex-1,a,e,t)},b._slidePrev=function(e){return b.slidePrev(!0,e,!0)},b.slideReset=function(e,a,t){return b.slideTo(b.activeIndex,a,e)},b.disableTouchControl=function(){return b.params.onlyExternal=!0,!0},b.enableTouchControl=function(){return b.params.onlyExternal=!1,!0},b.setWrapperTransition=function(e,a){b.wrapper.transition(e),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].setTransition(e),b.params.parallax&&b.parallax&&b.parallax.setTransition(e),b.params.scrollbar&&b.scrollbar&&b.scrollbar.setTransition(e),b.params.control&&b.controller&&b.controller.setTransition(e,a),b.emit("onSetTransition",b,e)},b.setWrapperTranslate=function(e,a,t){var s=0,i=0,n=0;b.isHorizontal()?s=b.rtl?-e:e:i=e,b.params.roundLengths&&(s=r(s),i=r(i)),b.params.virtualTranslate||(b.support.transforms3d?b.wrapper.transform("translate3d("+s+"px, "+i+"px, "+n+"px)"):b.wrapper.transform("translate("+s+"px, "+i+"px)")),b.translate=b.isHorizontal()?s:i;var o,l=b.maxTranslate()-b.minTranslate();o=0===l?0:(e-b.minTranslate())/l,o!==b.progress&&b.updateProgress(e),a&&b.updateActiveIndex(),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].setTranslate(b.translate),b.params.parallax&&b.parallax&&b.parallax.setTranslate(b.translate),b.params.scrollbar&&b.scrollbar&&b.scrollbar.setTranslate(b.translate),b.params.control&&b.controller&&b.controller.setTranslate(b.translate,t),b.emit("onSetTranslate",b,b.translate)},b.getTranslate=function(e,a){var t,s,i,r;return"undefined"==typeof a&&(a="x"),b.params.virtualTranslate?b.rtl?-b.translate:b.translate:(i=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(s=i.transform||i.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new window.WebKitCSSMatrix("none"===s?"":s)):(r=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=r.toString().split(",")),"x"===a&&(s=window.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===a&&(s=window.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),b.rtl&&s&&(s=-s),s||0)},b.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=b.isHorizontal()?"x":"y"),b.getTranslate(b.wrapper[0],e)},b.observers=[],b.initObservers=function(){if(b.params.observeParents)for(var e=b.container.parents(),a=0;a<e.length;a++)l(e[a]);l(b.container[0],{childList:!1}),l(b.wrapper[0],{attributes:!1})},b.disconnectObservers=function(){for(var e=0;e<b.observers.length;e++)b.observers[e].disconnect();b.observers=[]},b.createLoop=function(){b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass).remove();var e=b.wrapper.children("."+b.params.slideClass);"auto"!==b.params.slidesPerView||b.params.loopedSlides||(b.params.loopedSlides=e.length),b.loopedSlides=parseInt(b.params.loopedSlides||b.params.slidesPerView,10),b.loopedSlides=b.loopedSlides+b.params.loopAdditionalSlides,b.loopedSlides>e.length&&(b.loopedSlides=e.length);var t,s=[],i=[];for(e.each(function(t,r){var n=a(this);t<b.loopedSlides&&i.push(r),t<e.length&&t>=e.length-b.loopedSlides&&s.push(r),n.attr("data-swiper-slide-index",t)}),t=0;t<i.length;t++)b.wrapper.append(a(i[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass));for(t=s.length-1;t>=0;t--)b.wrapper.prepend(a(s[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass))},b.destroyLoop=function(){b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass).remove(),b.slides.removeAttr("data-swiper-slide-index")},b.reLoop=function(e){var a=b.activeIndex-b.loopedSlides;b.destroyLoop(),b.createLoop(),b.updateSlidesSize(),e&&b.slideTo(a+b.loopedSlides,0,!1)},b.fixLoop=function(){var e;b.activeIndex<b.loopedSlides?(e=b.slides.length-3*b.loopedSlides+b.activeIndex,e+=b.loopedSlides,b.slideTo(e,0,!1,!0)):("auto"===b.params.slidesPerView&&b.activeIndex>=2*b.loopedSlides||b.activeIndex>b.slides.length-2*b.params.slidesPerView)&&(e=-b.slides.length+b.activeIndex+b.loopedSlides,e+=b.loopedSlides,b.slideTo(e,0,!1,!0))},b.appendSlide=function(e){if(b.params.loop&&b.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a<e.length;a++)e[a]&&b.wrapper.append(e[a]);else b.wrapper.append(e);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0)},b.prependSlide=function(e){b.params.loop&&b.destroyLoop();var a=b.activeIndex+1;if("object"==typeof e&&e.length){for(var t=0;t<e.length;t++)e[t]&&b.wrapper.prepend(e[t]);a=b.activeIndex+e.length}else b.wrapper.prepend(e);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0),b.slideTo(a,0,!1)},b.removeSlide=function(e){b.params.loop&&(b.destroyLoop(),b.slides=b.wrapper.children("."+b.params.slideClass));var a,t=b.activeIndex;if("object"==typeof e&&e.length){for(var s=0;s<e.length;s++)a=e[s],b.slides[a]&&b.slides.eq(a).remove(),a<t&&t--;t=Math.max(t,0)}else a=e,b.slides[a]&&b.slides.eq(a).remove(),a<t&&t--,t=Math.max(t,0);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0),b.params.loop?b.slideTo(t+b.loopedSlides,0,!1):b.slideTo(t,0,!1)},b.removeAllSlides=function(){for(var e=[],a=0;a<b.slides.length;a++)e.push(a);b.removeSlide(e)},b.effects={fade:{setTranslate:function(){for(var e=0;e<b.slides.length;e++){var a=b.slides.eq(e),t=a[0].swiperSlideOffset,s=-t;b.params.virtualTranslate||(s-=b.translate);var i=0;b.isHorizontal()||(i=s,s=0);var r=b.params.fade.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:r}).transform("translate3d("+s+"px, "+i+"px, 0px)")}},setTransition:function(e){if(b.slides.transition(e),b.params.virtualTranslate&&0!==e){var a=!1;b.slides.transitionEnd(function(){if(!a&&b){a=!0,b.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<e.length;t++)b.wrapper.trigger(e[t])}})}}},flip:{setTranslate:function(){for(var e=0;e<b.slides.length;e++){var t=b.slides.eq(e),s=t[0].progress;b.params.flip.limitRotation&&(s=Math.max(Math.min(t[0].progress,1),-1));var i=t[0].swiperSlideOffset,r=-180*s,n=r,o=0,l=-i,p=0;if(b.isHorizontal()?b.rtl&&(n=-n):(p=l,l=0,o=-n,n=0),t[0].style.zIndex=-Math.abs(Math.round(s))+b.slides.length,b.params.flip.slideShadows){var d=b.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),u=b.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===d.length&&(d=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"left":"top")+'"></div>'),t.append(d)),0===u.length&&(u=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"right":"bottom")+'"></div>'),t.append(u)),d.length&&(d[0].style.opacity=Math.max(-s,0)),u.length&&(u[0].style.opacity=Math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){if(b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.virtualTranslate&&0!==e){var t=!1;b.slides.eq(b.activeIndex).transitionEnd(function(){if(!t&&b&&a(this).hasClass(b.params.slideActiveClass)){t=!0,b.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=0;s<e.length;s++)b.wrapper.trigger(e[s])}})}}},cube:{setTranslate:function(){var e,t=0;b.params.cube.shadow&&(b.isHorizontal()?(e=b.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=a('<div class="swiper-cube-shadow"></div>'),b.wrapper.append(e)),e.css({height:b.width+"px"})):(e=b.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('<div class="swiper-cube-shadow"></div>'),b.container.append(e))));for(var s=0;s<b.slides.length;s++){var i=b.slides.eq(s),r=90*s,n=Math.floor(r/360);b.rtl&&(r=-r,n=Math.floor(-r/360));var o=Math.max(Math.min(i[0].progress,1),-1),l=0,p=0,d=0;s%4===0?(l=4*-n*b.size,d=0):(s-1)%4===0?(l=0,d=4*-n*b.size):(s-2)%4===0?(l=b.size+4*n*b.size,d=b.size):(s-3)%4===0&&(l=-b.size,d=3*b.size+4*b.size*n),b.rtl&&(l=-l),b.isHorizontal()||(p=l,l=0);var u="rotateX("+(b.isHorizontal()?0:-r)+"deg) rotateY("+(b.isHorizontal()?r:0)+"deg) translate3d("+l+"px, "+p+"px, "+d+"px)";if(o<=1&&o>-1&&(t=90*s+90*o,b.rtl&&(t=90*-s-90*o)),i.transform(u),b.params.cube.slideShadows){var c=b.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=b.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"left":"top")+'"></div>'),i.append(c)),0===m.length&&(m=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"right":"bottom")+'"></div>'),i.append(m)),c.length&&(c[0].style.opacity=Math.max(-o,0)),m.length&&(m[0].style.opacity=Math.max(o,0))}}if(b.wrapper.css({"-webkit-transform-origin":"50% 50% -"+b.size/2+"px","-moz-transform-origin":"50% 50% -"+b.size/2+"px","-ms-transform-origin":"50% 50% -"+b.size/2+"px","transform-origin":"50% 50% -"+b.size/2+"px"}),b.params.cube.shadow)if(b.isHorizontal())e.transform("translate3d(0px, "+(b.width/2+b.params.cube.shadowOffset)+"px, "+-b.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+b.params.cube.shadowScale+")");else{var h=Math.abs(t)-90*Math.floor(Math.abs(t)/90),g=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),f=b.params.cube.shadowScale,v=b.params.cube.shadowScale/g,w=b.params.cube.shadowOffset;e.transform("scale3d("+f+", 1, "+v+") translate3d(0px, "+(b.height/2+w)+"px, "+-b.height/2/v+"px) rotateX(-90deg)")}var y=b.isSafari||b.isUiWebView?-b.size/2:0;b.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(b.isHorizontal()?0:t)+"deg) rotateY("+(b.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.cube.shadow&&!b.isHorizontal()&&b.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=b.translate,t=b.isHorizontal()?-e+b.width/2:-e+b.height/2,s=b.isHorizontal()?b.params.coverflow.rotate:-b.params.coverflow.rotate,i=b.params.coverflow.depth,r=0,n=b.slides.length;r<n;r++){var o=b.slides.eq(r),l=b.slidesSizesGrid[r],p=o[0].swiperSlideOffset,d=(t-p-l/2)/l*b.params.coverflow.modifier,u=b.isHorizontal()?s*d:0,c=b.isHorizontal()?0:s*d,m=-i*Math.abs(d),h=b.isHorizontal()?0:b.params.coverflow.stretch*d,g=b.isHorizontal()?b.params.coverflow.stretch*d:0;Math.abs(g)<.001&&(g=0),Math.abs(h)<.001&&(h=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var f="translate3d("+g+"px,"+h+"px,"+m+"px)  rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(f),o[0].style.zIndex=-Math.abs(Math.round(d))+1,b.params.coverflow.slideShadows){var v=b.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),w=b.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===v.length&&(v=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"left":"top")+'"></div>'),o.append(v)),0===w.length&&(w=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"right":"bottom")+'"></div>'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(b.browser.ie){var y=b.wrapper[0].style;y.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},b.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==b.slides.length)){var s=b.slides.eq(e),i=s.find("."+b.params.lazyLoadingClass+":not(."+b.params.lazyStatusLoadedClass+"):not(."+b.params.lazyStatusLoadingClass+")");!s.hasClass(b.params.lazyLoadingClass)||s.hasClass(b.params.lazyStatusLoadedClass)||s.hasClass(b.params.lazyStatusLoadingClass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){var e=a(this);e.addClass(b.params.lazyStatusLoadingClass);var i=e.attr("data-background"),r=e.attr("data-src"),n=e.attr("data-srcset"),o=e.attr("data-sizes");b.loadImage(e[0],r||i,n,o,!1,function(){if(i?(e.css("background-image",'url("'+i+'")'),e.removeAttr("data-background")):(n&&(e.attr("srcset",n),e.removeAttr("data-srcset")),o&&(e.attr("sizes",o),e.removeAttr("data-sizes")),r&&(e.attr("src",r),e.removeAttr("data-src"))),e.addClass(b.params.lazyStatusLoadedClass).removeClass(b.params.lazyStatusLoadingClass),s.find("."+b.params.lazyPreloaderClass+", ."+b.params.preloaderClass).remove(),b.params.loop&&t){var a=s.attr("data-swiper-slide-index");if(s.hasClass(b.params.slideDuplicateClass)){var l=b.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+b.params.slideDuplicateClass+")");b.lazy.loadImageInSlide(l.index(),!1)}else{var p=b.wrapper.children("."+b.params.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]');b.lazy.loadImageInSlide(p.index(),!1)}}b.emit("onLazyImageReady",b,s[0],e[0])}),b.emit("onLazyImageLoad",b,s[0],e[0])})}},load:function(){var e,t=b.params.slidesPerView;if("auto"===t&&(t=0),b.lazy.initialImageLoaded||(b.lazy.initialImageLoaded=!0),b.params.watchSlidesVisibility)b.wrapper.children("."+b.params.slideVisibleClass).each(function(){b.lazy.loadImageInSlide(a(this).index())});else if(t>1)for(e=b.activeIndex;e<b.activeIndex+t;e++)b.slides[e]&&b.lazy.loadImageInSlide(e);else b.lazy.loadImageInSlide(b.activeIndex);if(b.params.lazyLoadingInPrevNext)if(t>1||b.params.lazyLoadingInPrevNextAmount&&b.params.lazyLoadingInPrevNextAmount>1){var s=b.params.lazyLoadingInPrevNextAmount,i=t,r=Math.min(b.activeIndex+i+Math.max(s,i),b.slides.length),n=Math.max(b.activeIndex-Math.max(i,s),0);for(e=b.activeIndex+t;e<r;e++)b.slides[e]&&b.lazy.loadImageInSlide(e);for(e=n;e<b.activeIndex;e++)b.slides[e]&&b.lazy.loadImageInSlide(e)}else{var o=b.wrapper.children("."+b.params.slideNextClass);o.length>0&&b.lazy.loadImageInSlide(o.index());var l=b.wrapper.children("."+b.params.slidePrevClass);l.length>0&&b.lazy.loadImageInSlide(l.index())}},onTransitionStart:function(){b.params.lazyLoading&&(b.params.lazyLoadingOnTransitionStart||!b.params.lazyLoadingOnTransitionStart&&!b.lazy.initialImageLoaded)&&b.lazy.load()},onTransitionEnd:function(){b.params.lazyLoading&&!b.params.lazyLoadingOnTransitionStart&&b.lazy.load()}},b.scrollbar={isTouched:!1,setDragPosition:function(e){var a=b.scrollbar,t=b.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,s=t-a.track.offset()[b.isHorizontal()?"left":"top"]-a.dragSize/2,i=-b.minTranslate()*a.moveDivider,r=-b.maxTranslate()*a.moveDivider;s<i?s=i:s>r&&(s=r),s=-s/a.moveDivider,b.updateProgress(s),b.setWrapperTranslate(s,!0)},dragStart:function(e){var a=b.scrollbar;a.isTouched=!0,e.preventDefault(),e.stopPropagation(),a.setDragPosition(e),clearTimeout(a.dragTimeout),a.track.transition(0),b.params.scrollbarHide&&a.track.css("opacity",1),b.wrapper.transition(100),a.drag.transition(100),b.emit("onScrollbarDragStart",b)},dragMove:function(e){var a=b.scrollbar;a.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),b.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),b.emit("onScrollbarDragMove",b))},dragEnd:function(e){var a=b.scrollbar;a.isTouched&&(a.isTouched=!1,b.params.scrollbarHide&&(clearTimeout(a.dragTimeout),a.dragTimeout=setTimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),b.emit("onScrollbarDragEnd",b),b.params.scrollbarSnapOnRelease&&b.slideReset())},draggableEvents:function(){return b.params.simulateTouch!==!1||b.support.touch?b.touchEvents:b.touchEventsDesktop}(),enableDraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).on(e.draggableEvents.start,e.dragStart),a(t).on(e.draggableEvents.move,e.dragMove),a(t).on(e.draggableEvents.end,e.dragEnd)},disableDraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).off(e.draggableEvents.start,e.dragStart),a(t).off(e.draggableEvents.move,e.dragMove),a(t).off(e.draggableEvents.end,e.dragEnd)},set:function(){if(b.params.scrollbar){var e=b.scrollbar;e.track=a(b.params.scrollbar),b.params.uniqueNavElements&&"string"==typeof b.params.scrollbar&&e.track.length>1&&1===b.container.find(b.params.scrollbar).length&&(e.track=b.container.find(b.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=b.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=b.size/b.virtualSize,e.moveDivider=e.divider*(e.trackSize/b.size),e.dragSize=e.trackSize*e.divider,b.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",b.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(b.params.scrollbar){var e,a=b.scrollbar,t=(b.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*b.progress,b.rtl&&b.isHorizontal()?(e=-e,e>0?(t=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(t=a.trackSize+e)):e<0?(t=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(t=a.trackSize-e),b.isHorizontal()?(b.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translateX("+e+"px)"),a.drag[0].style.width=t+"px"):(b.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translateY("+e+"px)"),a.drag[0].style.height=t+"px"),b.params.scrollbarHide&&(clearTimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=setTimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},setTransition:function(e){b.params.scrollbar&&b.scrollbar.drag.transition(e)}},b.controller={LinearSpline:function(e,a){this.x=e,this.y=a,this.lastIndex=e.length-1;var t,s;this.x.length;this.interpolate=function(e){return e?(s=i(this.x,e),t=s-1,(e-this.x[t])*(this.y[s]-this.y[t])/(this.x[s]-this.x[t])+this.y[t]):0};var i=function(){var e,a,t;return function(s,i){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=i?a=t:e=t;return e}}()},getInterpolateFunction:function(e){b.controller.spline||(b.controller.spline=b.params.loop?new b.controller.LinearSpline(b.slidesGrid,e.slidesGrid):new b.controller.LinearSpline(b.snapGrid,e.snapGrid))},setTranslate:function(e,a){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-b.translate:b.translate,"slide"===b.params.controlBy&&(b.controller.getInterpolateFunction(a),r=-b.controller.spline.interpolate(-e)),r&&"container"!==b.params.controlBy||(i=(a.maxTranslate()-a.minTranslate())/(b.maxTranslate()-b.minTranslate()),r=(e-b.minTranslate())*i+a.minTranslate()),b.params.controlInverse&&(r=a.maxTranslate()-r),a.updateProgress(r),a.setWrapperTranslate(r,!1,b),a.updateActiveIndex()}var i,r,n=b.params.control;if(b.isArray(n))for(var o=0;o<n.length;o++)n[o]!==a&&n[o]instanceof t&&s(n[o]);else n instanceof t&&a!==n&&s(n)},setTransition:function(e,a){function s(a){
a.setWrapperTransition(e,b),0!==e&&(a.onTransitionStart(),a.wrapper.transitionEnd(function(){r&&(a.params.loop&&"slide"===b.params.controlBy&&a.fixLoop(),a.onTransitionEnd())}))}var i,r=b.params.control;if(b.isArray(r))for(i=0;i<r.length;i++)r[i]!==a&&r[i]instanceof t&&s(r[i]);else r instanceof t&&a!==r&&s(r)}},b.hashnav={onHashCange:function(e,a){var t=document.location.hash.replace("#",""),s=b.slides.eq(b.activeIndex).attr("data-hash");t!==s&&b.slideTo(b.wrapper.children("."+b.params.slideClass+'[data-hash="'+t+'"]').index())},attachEvents:function(e){var t=e?"off":"on";a(window)[t]("hashchange",b.hashnav.onHashCange)},setHash:function(){if(b.hashnav.initialized&&b.params.hashnav)if(b.params.replaceState&&window.history&&window.history.replaceState)window.history.replaceState(null,null,"#"+b.slides.eq(b.activeIndex).attr("data-hash")||"");else{var e=b.slides.eq(b.activeIndex),a=e.attr("data-hash")||e.attr("data-history");document.location.hash=a||""}},init:function(){if(b.params.hashnav&&!b.params.history){b.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var a=0,t=0,s=b.slides.length;t<s;t++){var i=b.slides.eq(t),r=i.attr("data-hash")||i.attr("data-history");if(r===e&&!i.hasClass(b.params.slideDuplicateClass)){var n=i.index();b.slideTo(n,a,b.params.runCallbacksOnInit,!0)}}b.params.hashnavWatchState&&b.hashnav.attachEvents()}},destroy:function(){b.params.hashnavWatchState&&b.hashnav.attachEvents(!0)}},b.history={init:function(){if(b.params.history){if(!window.history||!window.history.pushState)return b.params.history=!1,void(b.params.hashnav=!0);b.history.initialized=!0,this.paths=this.getPathValues(),(this.paths.key||this.paths.value)&&(this.scrollToSlide(0,this.paths.value,b.params.runCallbacksOnInit),b.params.replaceState||window.addEventListener("popstate",this.setHistoryPopState))}},setHistoryPopState:function(){b.history.paths=b.history.getPathValues(),b.history.scrollToSlide(b.params.speed,b.history.paths.value,!1)},getPathValues:function(){var e=window.location.pathname.slice(1).split("/"),a=e.length,t=e[a-2],s=e[a-1];return{key:t,value:s}},setHistory:function(e,a){if(b.history.initialized&&b.params.history){var t=b.slides.eq(a),s=this.slugify(t.attr("data-history"));window.location.pathname.includes(e)||(s=e+"/"+s),b.params.replaceState?window.history.replaceState(null,null,s):window.history.pushState(null,null,s)}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,a,t){if(a)for(var s=0,i=b.slides.length;s<i;s++){var r=b.slides.eq(s),n=this.slugify(r.attr("data-history"));if(n===a&&!r.hasClass(b.params.slideDuplicateClass)){var o=r.index();b.slideTo(o,e,t)}}else b.slideTo(0,e,t)}},b.disableKeyboardControl=function(){b.params.keyboardControl=!1,a(document).off("keydown",p)},b.enableKeyboardControl=function(){b.params.keyboardControl=!0,a(document).on("keydown",p)},b.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},b.params.mousewheelControl&&(b.mousewheel.event=navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":d()?"wheel":"mousewheel"),b.disableMousewheelControl=function(){if(!b.mousewheel.event)return!1;var e=b.container;return"container"!==b.params.mousewheelEventsTarged&&(e=a(b.params.mousewheelEventsTarged)),e.off(b.mousewheel.event,u),!0},b.enableMousewheelControl=function(){if(!b.mousewheel.event)return!1;var e=b.container;return"container"!==b.params.mousewheelEventsTarged&&(e=a(b.params.mousewheelEventsTarged)),e.on(b.mousewheel.event,u),!0},b.parallax={setTranslate:function(){b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){m(this,b.progress)}),b.slides.each(function(){var e=a(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);m(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=b.params.speed),b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),s=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.transition(s)})}},b.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:b.params.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var a=e.targetTouches[0].pageX,t=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY,r=Math.sqrt(Math.pow(s-a,2)+Math.pow(i-t,2));return r},onGestureStart:function(e){var t=b.zoom;if(!b.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;t.gesture.scaleStart=t.getDistanceBetweenTouches(e)}return t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=a(this),0===t.gesture.slide.length&&(t.gesture.slide=b.slides.eq(b.activeIndex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imageWrap=t.gesture.image.parent("."+b.params.zoomContainerClass),t.gesture.zoomMax=t.gesture.imageWrap.attr("data-swiper-zoom")||b.params.zoomMax,0!==t.gesture.imageWrap.length)?(t.gesture.image.transition(0),void(t.isScaling=!0)):void(t.gesture.image=void 0)},onGestureChange:function(e){var a=b.zoom;if(!b.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;a.gesture.scaleMove=a.getDistanceBetweenTouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(b.support.gestures?a.scale=e.scale*a.currentScale:a.scale=a.gesture.scaleMove/a.gesture.scaleStart*a.currentScale,a.scale>a.gesture.zoomMax&&(a.scale=a.gesture.zoomMax-1+Math.pow(a.scale-a.gesture.zoomMax+1,.5)),a.scale<b.params.zoomMin&&(a.scale=b.params.zoomMin+1-Math.pow(b.params.zoomMin-a.scale+1,.5)),a.gesture.image.transform("translate3d(0,0,0) scale("+a.scale+")"))},onGestureEnd:function(e){var a=b.zoom;!b.support.gestures&&("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2)||a.gesture.image&&0!==a.gesture.image.length&&(a.scale=Math.max(Math.min(a.scale,a.gesture.zoomMax),b.params.zoomMin),a.gesture.image.transition(b.params.speed).transform("translate3d(0,0,0) scale("+a.scale+")"),a.currentScale=a.scale,a.isScaling=!1,1===a.scale&&(a.gesture.slide=void 0))},onTouchStart:function(e,a){var t=e.zoom;t.gesture.image&&0!==t.gesture.image.length&&(t.image.isTouched||("android"===e.device.os&&a.preventDefault(),t.image.isTouched=!0,t.image.touchesStart.x="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,t.image.touchesStart.y="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY))},onTouchMove:function(e){var a=b.zoom;if(a.gesture.image&&0!==a.gesture.image.length&&(b.allowClick=!1,a.image.isTouched&&a.gesture.slide)){a.image.isMoved||(a.image.width=a.gesture.image[0].offsetWidth,a.image.height=a.gesture.image[0].offsetHeight,a.image.startX=b.getTranslate(a.gesture.imageWrap[0],"x")||0,a.image.startY=b.getTranslate(a.gesture.imageWrap[0],"y")||0,a.gesture.slideWidth=a.gesture.slide[0].offsetWidth,a.gesture.slideHeight=a.gesture.slide[0].offsetHeight,a.gesture.imageWrap.transition(0),b.rtl&&(a.image.startX=-a.image.startX),b.rtl&&(a.image.startY=-a.image.startY));var t=a.image.width*a.scale,s=a.image.height*a.scale;if(!(t<a.gesture.slideWidth&&s<a.gesture.slideHeight)){if(a.image.minX=Math.min(a.gesture.slideWidth/2-t/2,0),a.image.maxX=-a.image.minX,a.image.minY=Math.min(a.gesture.slideHeight/2-s/2,0),a.image.maxY=-a.image.minY,a.image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a.image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!a.image.isMoved&&!a.isScaling){if(b.isHorizontal()&&Math.floor(a.image.minX)===Math.floor(a.image.startX)&&a.image.touchesCurrent.x<a.image.touchesStart.x||Math.floor(a.image.maxX)===Math.floor(a.image.startX)&&a.image.touchesCurrent.x>a.image.touchesStart.x)return void(a.image.isTouched=!1);if(!b.isHorizontal()&&Math.floor(a.image.minY)===Math.floor(a.image.startY)&&a.image.touchesCurrent.y<a.image.touchesStart.y||Math.floor(a.image.maxY)===Math.floor(a.image.startY)&&a.image.touchesCurrent.y>a.image.touchesStart.y)return void(a.image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),a.image.isMoved=!0,a.image.currentX=a.image.touchesCurrent.x-a.image.touchesStart.x+a.image.startX,a.image.currentY=a.image.touchesCurrent.y-a.image.touchesStart.y+a.image.startY,a.image.currentX<a.image.minX&&(a.image.currentX=a.image.minX+1-Math.pow(a.image.minX-a.image.currentX+1,.8)),a.image.currentX>a.image.maxX&&(a.image.currentX=a.image.maxX-1+Math.pow(a.image.currentX-a.image.maxX+1,.8)),a.image.currentY<a.image.minY&&(a.image.currentY=a.image.minY+1-Math.pow(a.image.minY-a.image.currentY+1,.8)),a.image.currentY>a.image.maxY&&(a.image.currentY=a.image.maxY-1+Math.pow(a.image.currentY-a.image.maxY+1,.8)),a.velocity.prevPositionX||(a.velocity.prevPositionX=a.image.touchesCurrent.x),a.velocity.prevPositionY||(a.velocity.prevPositionY=a.image.touchesCurrent.y),a.velocity.prevTime||(a.velocity.prevTime=Date.now()),a.velocity.x=(a.image.touchesCurrent.x-a.velocity.prevPositionX)/(Date.now()-a.velocity.prevTime)/2,a.velocity.y=(a.image.touchesCurrent.y-a.velocity.prevPositionY)/(Date.now()-a.velocity.prevTime)/2,Math.abs(a.image.touchesCurrent.x-a.velocity.prevPositionX)<2&&(a.velocity.x=0),Math.abs(a.image.touchesCurrent.y-a.velocity.prevPositionY)<2&&(a.velocity.y=0),a.velocity.prevPositionX=a.image.touchesCurrent.x,a.velocity.prevPositionY=a.image.touchesCurrent.y,a.velocity.prevTime=Date.now(),a.gesture.imageWrap.transform("translate3d("+a.image.currentX+"px, "+a.image.currentY+"px,0)")}}},onTouchEnd:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.isTouched||!t.image.isMoved)return t.image.isTouched=!1,void(t.image.isMoved=!1);t.image.isTouched=!1,t.image.isMoved=!1;var s=300,i=300,r=t.velocity.x*s,n=t.image.currentX+r,o=t.velocity.y*i,l=t.image.currentY+o;0!==t.velocity.x&&(s=Math.abs((n-t.image.currentX)/t.velocity.x)),0!==t.velocity.y&&(i=Math.abs((l-t.image.currentY)/t.velocity.y));var p=Math.max(s,i);t.image.currentX=n,t.image.currentY=l;var d=t.image.width*t.scale,u=t.image.height*t.scale;t.image.minX=Math.min(t.gesture.slideWidth/2-d/2,0),t.image.maxX=-t.image.minX,t.image.minY=Math.min(t.gesture.slideHeight/2-u/2,0),t.image.maxY=-t.image.minY,t.image.currentX=Math.max(Math.min(t.image.currentX,t.image.maxX),t.image.minX),t.image.currentY=Math.max(Math.min(t.image.currentY,t.image.maxY),t.image.minY),t.gesture.imageWrap.transition(p).transform("translate3d("+t.image.currentX+"px, "+t.image.currentY+"px,0)")}},onTransitionEnd:function(e){var a=e.zoom;a.gesture.slide&&e.previousIndex!==e.activeIndex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imageWrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imageWrap=void 0,a.scale=a.currentScale=1)},toggleZoom:function(e,t){var s=e.zoom;if(s.gesture.slide||(s.gesture.slide=e.clickedSlide?a(e.clickedSlide):e.slides.eq(e.activeIndex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imageWrap=s.gesture.image.parent("."+e.params.zoomContainerClass)),s.gesture.image&&0!==s.gesture.image.length){var i,r,n,o,l,p,d,u,c,m,h,g,f,v,w,y,x,T;"undefined"==typeof s.image.touchesStart.x&&t?(i="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,r="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(i=s.image.touchesStart.x,r=s.image.touchesStart.y),s.scale&&1!==s.scale?(s.scale=s.currentScale=1,s.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentScale=s.gesture.imageWrap.attr("data-swiper-zoom")||e.params.zoomMax,t?(x=s.gesture.slide[0].offsetWidth,T=s.gesture.slide[0].offsetHeight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-i,p=o+T/2-r,c=s.gesture.image[0].offsetWidth,m=s.gesture.image[0].offsetHeight,h=c*s.scale,g=m*s.scale,f=Math.min(x/2-h/2,0),v=Math.min(T/2-g/2,0),w=-f,y=-v,d=l*s.scale,u=p*s.scale,d<f&&(d=f),d>w&&(d=w),u<v&&(u=v),u>y&&(u=y)):(d=0,u=0),s.gesture.imageWrap.transition(300).transform("translate3d("+d+"px, "+u+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachEvents:function(e){var t=e?"off":"on";if(b.params.zoom){var s=(b.slides,!("touchstart"!==b.touchEvents.start||!b.support.passiveListener||!b.params.passiveListeners)&&{passive:!0,capture:!1});b.support.gestures?(b.slides[t]("gesturestart",b.zoom.onGestureStart,s),b.slides[t]("gesturechange",b.zoom.onGestureChange,s),b.slides[t]("gestureend",b.zoom.onGestureEnd,s)):"touchstart"===b.touchEvents.start&&(b.slides[t](b.touchEvents.start,b.zoom.onGestureStart,s),b.slides[t](b.touchEvents.move,b.zoom.onGestureChange,s),b.slides[t](b.touchEvents.end,b.zoom.onGestureEnd,s)),b[t]("touchStart",b.zoom.onTouchStart),b.slides.each(function(e,s){a(s).find("."+b.params.zoomContainerClass).length>0&&a(s)[t](b.touchEvents.move,b.zoom.onTouchMove)}),b[t]("touchEnd",b.zoom.onTouchEnd),b[t]("transitionEnd",b.zoom.onTransitionEnd),b.params.zoomToggle&&b.on("doubleTap",b.zoom.toggleZoom)}},init:function(){b.zoom.attachEvents()},destroy:function(){b.zoom.attachEvents(!0)}},b._plugins=[];for(var O in b.plugins){var N=b.plugins[O](b,b.params[O]);N&&b._plugins.push(N)}return b.callPlugins=function(e){for(var a=0;a<b._plugins.length;a++)e in b._plugins[a]&&b._plugins[a][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},b.emitterEventListeners={},b.emit=function(e){b.params[e]&&b.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var a;if(b.emitterEventListeners[e])for(a=0;a<b.emitterEventListeners[e].length;a++)b.emitterEventListeners[e][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);b.callPlugins&&b.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},b.on=function(e,a){return e=h(e),b.emitterEventListeners[e]||(b.emitterEventListeners[e]=[]),b.emitterEventListeners[e].push(a),b},b.off=function(e,a){var t;if(e=h(e),"undefined"==typeof a)return b.emitterEventListeners[e]=[],b;if(b.emitterEventListeners[e]&&0!==b.emitterEventListeners[e].length){for(t=0;t<b.emitterEventListeners[e].length;t++)b.emitterEventListeners[e][t]===a&&b.emitterEventListeners[e].splice(t,1);return b}},b.once=function(e,a){e=h(e);var t=function(){a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),b.off(e,t)};return b.on(e,t),b},b.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,a){return e.attr("role",a),e},addLabel:function(e,a){return e.attr("aria-label",a),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(a(e.target).is(b.params.nextButton)?(b.onClickNext(e),b.isEnd?b.a11y.notify(b.params.lastSlideMessage):b.a11y.notify(b.params.nextSlideMessage)):a(e.target).is(b.params.prevButton)&&(b.onClickPrev(e),b.isBeginning?b.a11y.notify(b.params.firstSlideMessage):b.a11y.notify(b.params.prevSlideMessage)),a(e.target).is("."+b.params.bulletClass)&&a(e.target)[0].click())},liveRegion:a('<span class="'+b.params.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var a=b.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},init:function(){b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.a11y.makeFocusable(b.nextButton),b.a11y.addRole(b.nextButton,"button"),b.a11y.addLabel(b.nextButton,b.params.nextSlideMessage)),b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.a11y.makeFocusable(b.prevButton),b.a11y.addRole(b.prevButton,"button"),b.a11y.addLabel(b.prevButton,b.params.prevSlideMessage)),a(b.container).append(b.a11y.liveRegion)},initPagination:function(){b.params.pagination&&b.params.paginationClickable&&b.bullets&&b.bullets.length&&b.bullets.each(function(){var e=a(this);b.a11y.makeFocusable(e),b.a11y.addRole(e,"button"),b.a11y.addLabel(e,b.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){b.a11y.liveRegion&&b.a11y.liveRegion.length>0&&b.a11y.liveRegion.remove()}},b.init=function(){b.params.loop&&b.createLoop(),b.updateContainerSize(),b.updateSlidesSize(),b.updatePagination(),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.set(),b.params.scrollbarDraggable&&b.scrollbar.enableDraggable()),"slide"!==b.params.effect&&b.effects[b.params.effect]&&(b.params.loop||b.updateProgress(),b.effects[b.params.effect].setTranslate()),b.params.loop?b.slideTo(b.params.initialSlide+b.loopedSlides,0,b.params.runCallbacksOnInit):(b.slideTo(b.params.initialSlide,0,b.params.runCallbacksOnInit),0===b.params.initialSlide&&(b.parallax&&b.params.parallax&&b.parallax.setTranslate(),b.lazy&&b.params.lazyLoading&&(b.lazy.load(),b.lazy.initialImageLoaded=!0))),b.attachEvents(),b.params.observer&&b.support.observer&&b.initObservers(),b.params.preloadImages&&!b.params.lazyLoading&&b.preloadImages(),b.params.zoom&&b.zoom&&b.zoom.init(),b.params.autoplay&&b.startAutoplay(),b.params.keyboardControl&&b.enableKeyboardControl&&b.enableKeyboardControl(),b.params.mousewheelControl&&b.enableMousewheelControl&&b.enableMousewheelControl(),b.params.hashnavReplaceState&&(b.params.replaceState=b.params.hashnavReplaceState),b.params.history&&b.history&&b.history.init(),b.params.hashnav&&b.hashnav&&b.hashnav.init(),b.params.a11y&&b.a11y&&b.a11y.init(),b.emit("onInit",b)},b.cleanupStyles=function(){b.container.removeClass(b.classNames.join(" ")).removeAttr("style"),b.wrapper.removeAttr("style"),b.slides&&b.slides.length&&b.slides.removeClass([b.params.slideVisibleClass,b.params.slideActiveClass,b.params.slideNextClass,b.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),b.paginationContainer&&b.paginationContainer.length&&b.paginationContainer.removeClass(b.params.paginationHiddenClass),b.bullets&&b.bullets.length&&b.bullets.removeClass(b.params.bulletActiveClass),b.params.prevButton&&a(b.params.prevButton).removeClass(b.params.buttonDisabledClass),b.params.nextButton&&a(b.params.nextButton).removeClass(b.params.buttonDisabledClass),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.track&&b.scrollbar.track.length&&b.scrollbar.track.removeAttr("style"),b.scrollbar.drag&&b.scrollbar.drag.length&&b.scrollbar.drag.removeAttr("style"))},b.destroy=function(e,a){b.detachEvents(),b.stopAutoplay(),b.params.scrollbar&&b.scrollbar&&b.params.scrollbarDraggable&&b.scrollbar.disableDraggable(),b.params.loop&&b.destroyLoop(),a&&b.cleanupStyles(),b.disconnectObservers(),b.params.zoom&&b.zoom&&b.zoom.destroy(),b.params.keyboardControl&&b.disableKeyboardControl&&b.disableKeyboardControl(),b.params.mousewheelControl&&b.disableMousewheelControl&&b.disableMousewheelControl(),b.params.a11y&&b.a11y&&b.a11y.destroy(),b.params.history&&!b.params.replaceState&&window.removeEventListener("popstate",b.history.setHistoryPopState),b.params.hashnav&&b.hashnav&&b.hashnav.destroy(),b.emit("onDestroy"),e!==!1&&(b=null)},b.init(),b}};t.prototype={isSafari:function(){var e=window.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var e=document.createElement("div");return e.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}()},device:function(){var e=window.navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),s=e.match(/(iPod)(.*OS\s([\d_]+))?/),i=!t&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);return{ios:t||i||s,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),t=0;t<a.length;t++)if(a[t]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function(){var e=!1;try{var a=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveListener",null,a)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in window}()},plugins:{}};for(var s=(function(){var e=function(e){var a=this,t=0;for(t=0;t<e.length;t++)a[t]=e[t];return a.length=e.length,this},a=function(a,t){var s=[],i=0;if(a&&!t&&a instanceof e)return a;if(a)if("string"==typeof a){var r,n,o=a.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf("<li")&&(l="ul"),0===o.indexOf("<tr")&&(l="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(l="tr"),0===o.indexOf("<tbody")&&(l="table"),0===o.indexOf("<option")&&(l="select"),n=document.createElement(l),n.innerHTML=a,i=0;i<n.childNodes.length;i++)s.push(n.childNodes[i])}else for(r=t||"#"!==a[0]||a.match(/[ .<>:~]/)?(t||document).querySelectorAll(a):[document.getElementById(a.split("#")[1])],i=0;i<r.length;i++)r[i]&&s.push(r[i])}else if(a.nodeType||a===window||a===document)s.push(a);else if(a.length>0&&a[0].nodeType)for(i=0;i<a.length;i++)s.push(a[i]);return new e(s)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var a=e.split(" "),t=0;t<a.length;t++)for(var s=0;s<this.length;s++)this[s].classList.add(a[t]);return this},removeClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var s=0;s<this.length;s++)this[s].classList.remove(a[t]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var s=0;s<this.length;s++)this[s].classList.toggle(a[t]);return this},attr:function(e,a){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var t=0;t<this.length;t++)if(2===arguments.length)this[t].setAttribute(e,a);else for(var s in e)this[t][s]=e[s],this[t].setAttribute(s,e[s]);return this},removeAttr:function(e){for(var a=0;a<this.length;a++)this[a].removeAttribute(e);return this},data:function(e,a){if("undefined"!=typeof a){for(var t=0;t<this.length;t++){var s=this[t];s.dom7ElementDataStorage||(s.dom7ElementDataStorage={}),s.dom7ElementDataStorage[e]=a}return this}if(this[0]){var i=this[0].getAttribute("data-"+e);return i?i:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}},transform:function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this},on:function(e,t,s,i){function r(e){var i=e.target;if(a(i).is(t))s.call(i,e);else for(var r=a(i).parents(),n=0;n<r.length;n++)a(r[n]).is(t)&&s.call(r[n],e)}var n,o,l=e.split(" ");for(n=0;n<this.length;n++)if("function"==typeof t||t===!1)for("function"==typeof t&&(s=arguments[1],i=arguments[2]||!1),o=0;o<l.length;o++)this[n].addEventListener(l[o],s,i);else for(o=0;o<l.length;o++)this[n].dom7LiveListeners||(this[n].dom7LiveListeners=[]),this[n].dom7LiveListeners.push({listener:s,liveListener:r}),this[n].addEventListener(l[o],r,i);return this},off:function(e,a,t,s){for(var i=e.split(" "),r=0;r<i.length;r++)for(var n=0;n<this.length;n++)if("function"==typeof a||a===!1)"function"==typeof a&&(t=arguments[1],s=arguments[2]||!1),this[n].removeEventListener(i[r],t,s);else if(this[n].dom7LiveListeners)for(var o=0;o<this[n].dom7LiveListeners.length;o++)this[n].dom7LiveListeners[o].listener===t&&this[n].removeEventListener(i[r],this[n].dom7LiveListeners[o].liveListener,s);return this},once:function(e,a,t,s){function i(n){t(n),r.off(e,a,i,s)}var r=this;"function"==typeof a&&(a=!1,t=arguments[1],s=arguments[2]),r.on(e,a,i,s)},trigger:function(e,a){for(var t=0;t<this.length;t++){var s;try{s=new window.CustomEvent(e,{detail:a,bubbles:!0,cancelable:!0})}catch(t){s=document.createEvent("Event"),s.initEvent(e,!0,!0),s.detail=a}this[t].dispatchEvent(s)}return this},transitionEnd:function(e){function a(r){if(r.target===this)for(e.call(this,r),t=0;t<s.length;t++)i.off(s[t],a)}var t,s=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(t=0;t<s.length;t++)i.on(s[t],a);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getBoundingClientRect(),t=document.body,s=e.clientTop||t.clientTop||0,i=e.clientLeft||t.clientLeft||0,r=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:a.top+r-s,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;t<this.length;t++)for(var s in e)this[t].style[s]=e[s];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(t=0;t<this.length;t++)this[t].style[e]=a;return this}return this},each:function(e){for(var a=0;a<this.length;a++)e.call(this[a],a,this[a]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var a=0;a<this.length;a++)this[a].innerHTML=e;return this},text:function(e){if("undefined"==typeof e)return this[0]?this[0].textContent.trim():null;for(var a=0;a<this.length;a++)this[a].textContent=e;return this},is:function(t){if(!this[0])return!1;var s,i;if("string"==typeof t){var r=this[0];if(r===document)return t===document;if(r===window)return t===window;if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector)return r.mozMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(s=a(t),i=0;i<s.length;i++)if(s[i]===this[0])return!0;return!1}if(t===document)return this[0]===document;if(t===window)return this[0]===window;if(t.nodeType||t instanceof e){for(s=t.nodeType?[t]:t,i=0;i<s.length;i++)if(s[i]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],a=0;null!==(e=e.previousSibling);)1===e.nodeType&&a++;return a}},eq:function(a){if("undefined"==typeof a)return this;var t,s=this.length;return a>s-1?new e([]):a<0?(t=s+a,new e(t<0?[]:[this[t]])):new e([this[a]])},append:function(a){var t,s;for(t=0;t<this.length;t++)if("string"==typeof a){var i=document.createElement("div");for(i.innerHTML=a;i.firstChild;)this[t].appendChild(i.firstChild)}else if(a instanceof e)for(s=0;s<a.length;s++)this[t].appendChild(a[s]);else this[t].appendChild(a);return this},prepend:function(a){var t,s;for(t=0;t<this.length;t++)if("string"==typeof a){var i=document.createElement("div");for(i.innerHTML=a,s=i.childNodes.length-1;s>=0;s--)this[t].insertBefore(i.childNodes[s],this[t].childNodes[0])}else if(a instanceof e)for(s=0;s<a.length;s++)this[t].insertBefore(a[s],this[t].childNodes[0]);else this[t].insertBefore(a,this[t].childNodes[0]);return this},insertBefore:function(e){for(var t=a(e),s=0;s<this.length;s++)if(1===t.length)t[0].parentNode.insertBefore(this[s],t[0]);else if(t.length>1)for(var i=0;i<t.length;i++)t[i].parentNode.insertBefore(this[s].cloneNode(!0),t[i])},insertAfter:function(e){for(var t=a(e),s=0;s<this.length;s++)if(1===t.length)t[0].parentNode.insertBefore(this[s],t[0].nextSibling);else if(t.length>1)for(var i=0;i<t.length;i++)t[i].parentNode.insertBefore(this[s].cloneNode(!0),t[i].nextSibling)},next:function(t){return new e(this.length>0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.nextElementSibling;){var r=i.nextElementSibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},prev:function(t){return new e(this.length>0?t?this[0].previousElementSibling&&a(this[0].previousElementSibling).is(t)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.previousElementSibling;){var r=i.previousElementSibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},parent:function(e){for(var t=[],s=0;s<this.length;s++)e?a(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode);return a(a.unique(t))},parents:function(e){for(var t=[],s=0;s<this.length;s++)for(var i=this[s].parentNode;i;)e?a(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return a(a.unique(t))},find:function(a){for(var t=[],s=0;s<this.length;s++)for(var i=this[s].querySelectorAll(a),r=0;r<i.length;r++)t.push(i[r]);return new e(t)},children:function(t){for(var s=[],i=0;i<this.length;i++)for(var r=this[i].childNodes,n=0;n<r.length;n++)t?1===r[n].nodeType&&a(r[n]).is(t)&&s.push(r[n]):1===r[n].nodeType&&s.push(r[n]);return new e(a.unique(s))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,t,s=this;for(e=0;e<arguments.length;e++){var i=a(arguments[e]);for(t=0;t<i.length;t++)s[s.length]=i[t],s.length++}return s}},a.fn=e.prototype,a.unique=function(e){for(var a=[],t=0;t<e.length;t++)a.indexOf(e[t])===-1&&a.push(e[t]);return a},a}()),i=["jQuery","Zepto","Dom7"],r=0;r<i.length;r++)window[i[r]]&&e(window[i[r]]);var n;n="undefined"==typeof s?window.Dom7||window.Zepto||window.jQuery:s,n&&("transitionEnd"in n.fn||(n.fn.transitionEnd=function(e){function a(r){if(r.target===this)for(e.call(this,r),t=0;t<s.length;t++)i.off(s[t],a)}var t,s=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(t=0;t<s.length;t++)i.on(s[t],a);return this}),"transform"in n.fn||(n.fn.transform=function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this}),"transition"in n.fn||(n.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e;
}return this}),"outerWidth"in n.fn||(n.fn.outerWidth=function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null})),window.Swiper=t}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper});
//# sourceMappingURL=maps/swiper.min.js.map


/*===============================
/1/templates/ja_oslo/js/imagesloaded.pkgd.min.js
================================================================================*/;
/*!
 * imagesLoaded PACKAGED v3.1.8
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */

(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});


/*===============================
/1/templates/ja_oslo/js/script.js
================================================================================*/;
(function($){$(window).on('load',function(){var data=[];$('.t3-content-bottom ').each(function(){var $elm=$(this);var id=$elm.attr('id');var title=$elm.attr('data-title');data.push({href:'#'+id,title:title})});if(data.length){var html='';html+='<div class="t3-menu-sidebar">';html+='<ul class="nav nav-pills nav-stacked">';html+='<li class="active"><a href="#t3-content" title="'+Joomla.JText._('TPL_HIGHLIGHT')+'">'+Joomla.JText._('TPL_HIGHLIGHT')+'</a></li>';for(var i=0;i<data.length;i++){var item=data[i];html+='<li class=""><a href="'+item.href+'" title="'+item.title+'">'+item.title+'</a></li>';}
html+='</ul>';html+='</div>';$(html).insertBefore('.t3-content');}
var nav_pills=$('.t3-menu-sidebar .nav-pills');if(nav_pills.length){setTimeout(function(){nav_pills.affix({offset:{top:$('#t3-header').height()+$('.t3-slideshow').height()+30}});},1000);$(window).on('resize',function(){nav_pills.data('bs.affix').options.offset.top=$('#t3-header').height()+$('.t3-slideshow').height()+30;});$(".t3-menu-sidebar .nav-pills a").on('click',function(event){if(this.hash!==""){event.preventDefault();var hash=this.hash;$('html, body').stop().animate({scrollTop:$(hash).offset().top},800,function(){window.location.hash=hash;});}});var $scrollArray=new Array();$(".t3-menu-sidebar .nav-pills a").each(function(){$scrollArray.push($(this).attr('href').replace(/^(.*?)#/,''));});$(window).scroll(function(){for($i=0;$i<$scrollArray.length;$i++){if($('#'+$scrollArray[$i]).length){if($('#'+$scrollArray[$i]).offset().top-200<$(window).scrollTop()){$(".t3-menu-sidebar .nav-pills a").each(function(){if($(this).attr('href').match($scrollArray[$i])){$(".t3-menu-sidebar .nav-pills a").parent().removeClass('active');$(this).parent().addClass('active');return false;}});continue;}}}});}});})(jQuery);(function($){$(document).ready(function(){var ehArray=[],i=0;$('.equal-height').each(function(i){var $ehc=$(this);if($ehc.has('.equal-height')){ehArray[i]=$ehc;}});var equalHeight=function(){for(i=0;i<ehArray.length;i++){var $cols=ehArray[i].children().filter('.col'),maxHeight=0,equalChildHeight=ehArray[i].hasClass('equal-height-child');if(equalChildHeight){$cols.each(function(){$(this).children().first().css('min-height',0)});}else{$cols.css('min-height',0);}
$cols.each(function(){maxHeight=Math.max(maxHeight,equalChildHeight?$(this).children().first().innerHeight():$(this).innerHeight()+1);});if(equalChildHeight){$cols.each(function(){$(this).children().first().css('min-height',maxHeight)});}else{$cols.css('min-height',maxHeight);}}
$('.equal-height > .col').each(function(){var $col=$(this);$col.data('old-width',$col.width()).data('old-height',$col.innerHeight());});};equalHeight();setInterval(function(){$('.equal-height > .col').each(function(){var $col=$(this);if($col.data('old-width')===undefined)$col.data('old-width',($col.width()-100));if($col.data('old-height')===undefined)$col.data('old-height',($col.innerHeight()-100));if(($col.data('old-width')&&$col.data('old-width')!=$col.width())||($col.data('old-height')&&$col.data('old-height')!=$col.innerHeight())){equalHeight();return false;}});},500);$('.btn-search').click(function(){if($('.t3-header-wrap').hasClass('cpanel-close')){$('.t3-header-wrap').addClass('cpanel-open');$('.t3-header-wrap').removeClass('cpanel-close');}else{$('.t3-header-wrap').removeClass('cpanel-open');$('.t3-header-wrap').addClass('cpanel-close');}});});})(jQuery);(function($){$(document).ready(function(){if($('.head-search-wrap').length>0){$('.btn-search').click(function(){$('.head-search').toggleClass('btn-open');$('.head-search-wrap').toggleClass('btn-open');$('.head-right').toggleClass('btn-open');$('.has-search').toggleClass('has-search-open');if($('.head-search-wrap').hasClass('btn-open')){$('#mod-search-searchword').focus();}});}});})(jQuery);


/*===============================
/1/templates/ja_oslo/js/affix.js
================================================================================*/;
+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options)
this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this))
this.$element=$(element)
this.affixed=null
this.unpin=null
this.pinnedOffset=null
this.checkPosition()}
Affix.VERSION='3.3.6'
Affix.RESET='affix affix-top affix-bottom'
Affix.DEFAULTS={offset:0,target:window}
Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
var targetHeight=this.$target.height()
if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false
if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?false:'bottom'
return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom'}
var initializing=this.affixed==null
var colliderTop=initializing?scrollTop:position.top
var colliderHeight=initializing?targetHeight:height
if(offsetTop!=null&&scrollTop<=offsetTop)return'top'
if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom'
return false}
Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
this.$element.removeClass(Affix.RESET).addClass('affix')
var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
return(this.pinnedOffset=position.top-scrollTop)}
Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)}
Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return
var height=this.$element.height()
var offset=this.options.offset
var offsetTop=offset.top
var offsetBottom=offset.bottom
var scrollHeight=Math.max($(document).height(),$(document.body).height())
if(typeof offset!='object')offsetBottom=offsetTop=offset
if(typeof offsetTop=='function')offsetTop=offset.top(this.$element)
if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element)
var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom)
if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','')
var affixType='affix'+(affix?'-'+affix:'')
var e=$.Event(affixType+'.bs.affix')
this.$element.trigger(e)
if(e.isDefaultPrevented())return
this.affixed=affix
this.unpin=affix=='bottom'?this.getPinnedOffset():null
this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')}
if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.affix')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.affix',(data=new Affix(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.affix
$.fn.affix=Plugin
$.fn.affix.Constructor=Affix
$.fn.affix.noConflict=function(){$.fn.affix=old
return this}
$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this)
var data=$spy.data()
data.offset=data.offset||{}
if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom
if(data.offsetTop!=null)data.offset.top=data.offsetTop
Plugin.call($spy,data)})})}(jQuery);


/*===============================
/1/plugins/system/t3/base-bs3/js/nav-collapse.js
================================================================================*/;
jQuery(document).ready(function($){$('.t3-navbar').each(function(){var $navwrapper=$(this),$menu=null,$placeholder=null;if($navwrapper.find('.t3-megamenu').length){$menu=$navwrapper.find('ul.level0').clone(),$placeholder=$navwrapper.prev('.navbar-collapse');if(!$placeholder.length){$placeholder=$navwrapper.closest('.container, .t3-mainnav').find('.navbar-collapse:empty');}
var lis=$menu.find('li[data-id]'),liactive=lis.filter('.current');lis.removeClass('mega dropdown mega-align-left mega-align-right mega-align-center mega-align-adjust');lis.each(function(){var $li=$(this),$child=$li.find('>:first-child');if($child[0].nodeName=='DIV'){$child.find('>:first-child').prependTo($li);$child.remove();}
if($li.data('hidewcol')){$child.find('.caret').remove();$child.nextAll().remove();return;}
var subul=$li.find('ul.level'+$li.data('level'));if(subul.length){$ul=$('<ul class="level'+$li.data('level')+' dropdown-menu">');subul.each(function(){if($(this).parents('.mega-col-nav').data('hidewcol'))return;$(this).find('>li').appendTo($ul);});if($ul.children().length){$ul.appendTo($li);}}
$li.find('>div').remove();if(!$li.children('ul').length){$child.find('.caret').remove();}
var divider=$li.hasClass('divider');for(var x in $li.data()){$li.removeAttr('data-'+x)}
$child.removeAttr('class');for(var x in $child.data()){$child.removeAttr('data-'+x)}
if(divider){$li.addClass('divider');}});liactive.addClass('current active');}else{$menu=$navwrapper.find('ul.nav').clone();$placeholder=$('.t3-navbar-collapse:empty, .navbar-collapse:empty').eq(0);}
$menu.find('a[data-toggle="dropdown"]').removeAttr('data-toggle').removeAttr('data-target');$menu.find('> li > ul.dropdown-menu').prev().attr('data-toggle','dropdown').attr('data-target','#').parent('li').addClass(function(){return'dropdown'+($(this).data('level')>1?' dropdown-submenu':'');});$menu.appendTo($placeholder);});});


/*===============================
/1/plugins/system/t3/base-bs3/js/frontediting.js
================================================================================*/;
(function($){$.fn.extend({jEditMakeAbsolute:function(rebase){return this.each(function(){var el=$(this);var pos;if(rebase){pos=el.offset();}else{pos=el.position();}
el.css({position:"absolute",marginLeft:0,marginTop:0,top:pos.top,left:pos.left,bottom:'auto',right:'auto'});if(rebase){el.detach().appendTo("body");}});}});$(document).ready(function(){var actualWidth=200;var actualHeight=100;var tooltipPlacer=function(tip,element){var $element,above,below,boundBottom,boundLeft,boundRight,boundTop,elementAbove,elementBelow,elementLeft,elementRight,isWithinBounds,left,pos,right;isWithinBounds=function(elementPosition){return boundTop<elementPosition.top&&boundLeft<elementPosition.left&&boundRight>(elementPosition.left+actualWidth)&&boundBottom>(elementPosition.top+actualHeight);};$element=$(element);pos=$.extend({},$element.offset(),{width:element.offsetWidth,height:element.offsetHeight});boundTop=$(document).scrollTop();boundLeft=$(document).scrollLeft();boundRight=boundLeft+$(window).width();boundBottom=boundTop+$(window).height();elementAbove={top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2};elementBelow={top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2};elementLeft={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth};elementRight={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width};above=isWithinBounds(elementAbove);below=isWithinBounds(elementBelow);left=isWithinBounds(elementLeft);right=isWithinBounds(elementRight);if(above){return"top";}else{if(below){return"bottom";}else{if(left){return"left";}else{if(right){return"right";}else{return"right";}}}}};$('.jmoddiv').on({mouseenter:function(){var moduleEditUrl=$(this).data('jmodediturl');var moduleTip=$(this).data('jmodtip');var moduleTarget=$(this).data('target');$('body>.btn.jmodedit').clearQueue().tooltip('dispose').remove();$(this).addClass('jmodinside').prepend('<a class="btn jmodedit" href="#" target="'+moduleTarget+'"><span class="icon-edit"></span></a>').children(":first").attr('href',moduleEditUrl).attr('title',moduleTip).tooltip({"container":false,html:true,placement:tooltipPlacer}).jEditMakeAbsolute(true);$('.btn.jmodedit').on({mouseenter:function(){$('body>.tooltip.bs-tooltip-top').addClass('in');$(this).clearQueue();},mouseleave:function(){$(this).delay(500).queue(function(next){$(this).tooltip('dispose').remove();next();});}});},mouseleave:function(){$('body>.btn.jmodedit').delay(500).queue(function(next){$(this).tooltip('dispose').remove();next();});}});var activePopover=null;$('.jmoddiv[data-jmenuedittip] .nav li,.jmoddiv[data-jmenuedittip].nav li,.jmoddiv[data-jmenuedittip] .nav .nav-child li,.jmoddiv[data-jmenuedittip].nav .nav-child li').on({mouseenter:function(){var itemids=/\bitem-(\d+)\b/.exec($(this).attr('class'));if(typeof itemids[1]=='string'){var enclosingModuleDiv=$(this).closest('.jmoddiv');var moduleEditUrl=enclosingModuleDiv.data('jmodediturl');var menuitemEditUrl=moduleEditUrl.replace(/\/index.php\?option=com_config&controller=config.display.modules([^\d]+).+$/,'/administrator/index.php?option=com_menus&view=item&layout=edit$1'+itemids[1]);}
var menuEditTip=enclosingModuleDiv.data('jmenuedittip').replace('%s',itemids[1]);var content=$('<div><a class="btn jfedit-menu" href="#" target="_blank"><span class="icon-edit"></span></a></div>');content.children('a.jfedit-menu').prop('href',menuitemEditUrl).prop('title',menuEditTip);if(activePopover){$(activePopover).popover('hide');}
$(this).popover({html:true,content:content.html(),container:'body',trigger:'manual',animation:false,placement:'bottom'}).popover('show');activePopover=this;$('body>div.popover').on({mouseenter:function(){if(activePopover){$(activePopover).clearQueue();}},mouseleave:function(){if(activePopover){$(activePopover).popover('hide');}}}).find('a.jfedit-menu').tooltip({"container":false,html:true,placement:'bottom'});},mouseleave:function(){$(this).delay(1500).queue(function(next){$(this).popover('hide');next()});}});});})(jQuery);