+function(a){"use strict";function b(){var c=document.createElement("bootstrap"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},b;for(b in a)if(void 0!==c.style[b])return{end:a[b]};return!1}a.fn.emulateTransitionEnd=function(c){var b=!1,d=this,e;return a(this).one("bsTransitionEnd",function(){b=!0}),e=function(){b||a(d).trigger(a.support.transition.end)},setTimeout(e,c),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";var c,b,d;function e(c){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new b(this)),"string"==typeof c&&e[c].call(d)})}c='[data-dismiss="alert"]',b=function(b){a(b).on("click",c,this.close)},b.VERSION="3.3.6",b.TRANSITION_DURATION=150,b.prototype.close=function(e){var f,d,c;function g(){c.detach().trigger("closed.bs.alert").remove()}f=a(this),d=f.attr("data-target"),d||(d=f.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),c=a(d),e&&e.preventDefault(),c.length||(c=f.closest(".alert")),c.trigger(e=a.Event("close.bs.alert")),e.isDefaultPrevented()||(c.removeClass("in"),a.support.transition&&c.hasClass("fade")?c.one("bsTransitionEnd",g).emulateTransitionEnd(b.TRANSITION_DURATION):g())},d=a.fn.alert,a.fn.alert=e,a.fn.alert.Constructor=b,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",c,b.prototype.close)}(jQuery),+function(a){"use strict";var b,d;function c(c){return this.each(function(){var e=a(this),d=e.data("bs.button"),f="object"==typeof c&&c;d||e.data("bs.button",d=new b(this,f)),"toggle"==c?d.toggle():c&&d.setState(c)})}b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1},b.VERSION="3.3.6",b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(c){var d="disabled",b=this.$element,f=b.is("input")?"val":"html",e=b.data();c+="Text",null==e.resetText&&b.data("resetText",b[f]()),setTimeout(a.proxy(function(){b[f](null==e[c]?this.options[c]:e[c]),"loadingText"==c?(this.isLoading=!0,b.addClass(d).attr(d,d)):this.isLoading&&(this.isLoading=!1,b.removeClass(d).removeAttr(d))},this),0)},b.prototype.toggle=function(){var b=!0,c=this.$element.closest('[data-toggle="buttons"]'),a;c.length?(a=this.$element.find("input"),"radio"==a.prop("type")?(a.prop("checked")&&(b=!1),c.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==a.prop("type")&&(a.prop("checked")!==this.$element.hasClass("active")&&(b=!1),this.$element.toggleClass("active")),a.prop("checked",this.$element.hasClass("active")),b&&a.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))},d=a.fn.button,a.fn.button=c,a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(b){var d=a(b.target);d.hasClass("btn")||(d=d.closest(".btn")),c.call(d,"toggle"),a(b.target).is('input[type="radio"]')||a(b.target).is('input[type="checkbox"]')||b.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";var b,e,d;function c(c){return this.each(function(){var e=a(this),d=e.data("bs.carousel"),f=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;d||e.data("bs.carousel",d=new b(this,f)),"number"==typeof c?d.to(c):g?d[g]():f.interval&&d.pause().cycle()})}b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))},b.VERSION="3.3.6",b.TRANSITION_DURATION=600,b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},b.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},b.prototype.getItemForDirection=function(a,c){var b=this.getItemIndex(c),d="prev"==a&&0===b||"next"==a&&b==this.$items.length-1,e,f;return d&&!this.options.wrap?c:(e="prev"==a?-1:1,f=(b+e)%this.$items.length,this.$items.eq(f))},b.prototype.to=function(a){var c=this,b=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(a)}):b==a?this.pause().cycle():this.slide(a>b?"next":"prev",this.$items.eq(a))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){if(!this.sliding)return this.slide("next")},b.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},b.prototype.slide=function(f,m){var e=this.$element.find(".item.active"),c=m||this.getItemForDirection(f,e),h=this.interval,d="next"==f?"left":"right",i=this,g,j,k,l;if(c.hasClass("active"))return this.sliding=!1;if(g=c[0],j=a.Event("slide.bs.carousel",{relatedTarget:g,direction:d}),this.$element.trigger(j),!j.isDefaultPrevented())return this.sliding=!0,h&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),k=a(this.$indicators.children()[this.getItemIndex(c)]),k&&k.addClass("active")),l=a.Event("slid.bs.carousel",{relatedTarget:g,direction:d}),a.support.transition&&this.$element.hasClass("slide")?(c.addClass(f),c[0].offsetWidth,e.addClass(d),c.addClass(d),e.one("bsTransitionEnd",function(){c.removeClass([f,d].join(" ")).addClass("active"),e.removeClass(["active",d].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(l)},0)}).emulateTransitionEnd(b.TRANSITION_DURATION)):(e.removeClass("active"),c.addClass("active"),this.sliding=!1,this.$element.trigger(l)),h&&this.cycle(),this},e=a.fn.carousel,a.fn.carousel=c,a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=e,this},d=function(h){var f,b=a(this),d=a(b.attr("data-target")||(f=b.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),g,e;d.hasClass("carousel")&&(g=a.extend({},d.data(),b.data()),e=b.attr("data-slide-to"),e&&(g.interval=!1),c.call(d,g),e&&d.data("bs.carousel").to(e),h.preventDefault())},a(document).on("click.bs.carousel.data-api","[data-slide]",d).on("click.bs.carousel.data-api","[data-slide-to]",d),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";var b,e;function d(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(c){return this.each(function(){var e=a(this),d=e.data("bs.collapse"),f=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);!d&&f.toggle&&/show|hide/.test(c)&&(f.toggle=!1),d||e.data("bs.collapse",d=new b(this,f)),"string"==typeof c&&d[c]()})}b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.$trigger=a('[data-toggle="collapse"][href="#'+c.id+'"],[data-toggle="collapse"][data-target="#'+c.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()},b.VERSION="3.3.6",b.TRANSITION_DURATION=350,b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){var e,d,g,f,h,i;if(!this.transitioning&&!this.$element.hasClass("in"))if(d=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(d&&d.length&&(e=d.data("bs.collapse"),e&&e.transitioning)))if(g=a.Event("show.bs.collapse"),this.$element.trigger(g),!g.isDefaultPrevented()){if(d&&d.length&&(c.call(d,"hide"),e||d.data("bs.collapse",null)),f=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[f](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[f](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")},!a.support.transition)return h.call(this);i=a.camelCase(["scroll",f].join("-")),this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(b.TRANSITION_DURATION)[f](this.$element[0][i])}},b.prototype.hide=function(){var d,c,e;if(!this.transitioning&&this.$element.hasClass("in"))if(d=a.Event("hide.bs.collapse"),this.$element.trigger(d),!d.isDefaultPrevented())return c=this.dimension(),this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(b.TRANSITION_DURATION):e.call(this)},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},b.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(e,c){var b=a(c);this.addAriaAndCollapsedClass(d(b),b)},this)).end()},b.prototype.addAriaAndCollapsedClass=function(b,c){var a=b.hasClass("in");b.attr("aria-expanded",a),c.toggleClass("collapsed",!a).attr("aria-expanded",a)},e=a.fn.collapse,a.fn.collapse=c,a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(f){var b=a(this),e,g,h;b.attr("data-target")||f.preventDefault(),e=d(b),g=e.data("bs.collapse"),h=g?"toggle":b.data(),c.call(e,h)})}(jQuery),+function(a){"use strict";var f,c,b,g;function d(c){var b=c.attr("data-target"),d;return b||(b=c.attr("href"),b=b&&/#[A-Za-z]/.test(b)&&b.replace(/.*(?=#[^\s]*$)/,"")),d=b&&a(b),d&&d.length?d:c.parent()}function e(b){b&&3===b.which||(a(f).remove(),a(c).each(function(){var e=a(this),c=d(e),f={relatedTarget:this};c.hasClass("open")&&(b&&"click"==b.type&&/input|textarea/i.test(b.target.tagName)&&a.contains(c[0],b.target)||(c.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(e.attr("aria-expanded","false"),c.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function h(c){return this.each(function(){var d=a(this),e=d.data("bs.dropdown");e||d.data("bs.dropdown",e=new b(this)),"string"==typeof c&&e[c].call(d)})}f=".dropdown-backdrop",c='[data-toggle="dropdown"]',b=function(b){a(b).on("click.bs.dropdown",this.toggle)},b.VERSION="3.3.6",b.prototype.toggle=function(f){var c=a(this),b,h,g;if(!c.is(".disabled, :disabled")){if(b=d(c),h=b.hasClass("open"),e(),!h){if("ontouchstart"in document.documentElement&&!b.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",e),g={relatedTarget:this},b.trigger(f=a.Event("show.bs.dropdown",g)),f.isDefaultPrevented())return;c.trigger("focus").attr("aria-expanded","true"),b.toggleClass("open").trigger(a.Event("shown.bs.dropdown",g))}return!1}},b.prototype.keydown=function(b){var g,h,i,j,f,e;if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName))if(g=a(this),b.preventDefault(),b.stopPropagation(),!g.is(".disabled, :disabled")){if(h=d(g),i=h.hasClass("open"),!i&&27!=b.which||i&&27==b.which)return 27==b.which&&h.find(c).trigger("focus"),g.trigger("click");j=" li:not(.disabled):visible a",f=h.find(".dropdown-menu"+j),f.length&&(e=f.index(b.target),38==b.which&&e>0&&e--,40==b.which&&e<f.length-1&&e++,~e||(e=0),f.eq(e).trigger("focus"))}},g=a.fn.dropdown,a.fn.dropdown=h,a.fn.dropdown.Constructor=b,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",c,b.prototype.toggle).on("keydown.bs.dropdown.data-api",c,b.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",b.prototype.keydown)}(jQuery),+function(a){"use strict";var b,d;function c(c,d){return this.each(function(){var f=a(this),e=f.data("bs.modal"),g=a.extend({},b.DEFAULTS,f.data(),"object"==typeof c&&c);e||f.data("bs.modal",e=new b(this,g)),"string"==typeof c?e[c](d):g.show&&e.show(d)})}b=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},b.VERSION="3.3.6",b.TRANSITION_DURATION=300,b.BACKDROP_TRANSITION_DURATION=150,b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},b.prototype.show=function(d){var c=this,e=a.Event("show.bs.modal",{relatedTarget:d});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){c.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(c.$element)&&(c.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&c.$element.hasClass("fade"),f;c.$element.parent().length||c.$element.appendTo(c.$body),c.$element.show().scrollTop(0),c.adjustDialog(),e&&c.$element[0].offsetWidth,c.$element.addClass("in"),c.enforceFocus(),f=a.Event("shown.bs.modal",{relatedTarget:d}),e?c.$dialog.one("bsTransitionEnd",function(){c.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(b.TRANSITION_DURATION):c.$element.trigger("focus").trigger(f)}))},b.prototype.hide=function(c){c&&c.preventDefault(),c=a.Event("hide.bs.modal"),this.$element.trigger(c),this.isShown&&!c.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(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"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(b.TRANSITION_DURATION):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},b.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(c){var g=this,d=this.$element.hasClass("fade")?"fade":"",e,f;if(this.isShown&&this.options.backdrop){if(e=a.support.transition&&d,this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+d).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!c)return;e?this.$backdrop.one("bsTransitionEnd",c).emulateTransitionEnd(b.BACKDROP_TRANSITION_DURATION):c()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),f=function(){g.removeBackdrop(),c&&c()},a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",f).emulateTransitionEnd(b.BACKDROP_TRANSITION_DURATION):f()):c&&c()},b.prototype.handleUpdate=function(){this.adjustDialog()},b.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},b.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},b.prototype.checkScrollbar=function(){var a=window.innerWidth,b;a||(b=document.documentElement.getBoundingClientRect(),a=b.right-Math.abs(b.left)),this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},b.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},b.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},b.prototype.measureScrollbar=function(){var a=document.createElement("div"),b;return a.className="modal-scrollbar-measure",this.$body.append(a),b=a.offsetWidth-a.clientWidth,this.$body[0].removeChild(a),b},d=a.fn.modal,a.fn.modal=c,a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(f){var b=a(this),e=b.attr("href"),d=a(b.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=d.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},d.data(),b.data());b.is("a")&&f.preventDefault(),d.one("show.bs.modal",function(a){a.isDefaultPrevented()||d.one("hidden.bs.modal",function(){b.is(":visible")&&b.trigger("focus")})}),c.call(d,g,this)})}(jQuery),+function(a){"use strict";var b,c;function d(c){return this.each(function(){var e=a(this),d=e.data("bs.tooltip"),f="object"==typeof c&&c;!d&&/destroy|hide/.test(c)||(d||e.data("bs.tooltip",d=new b(this,f)),"string"==typeof c&&d[c]())})}b=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)},b.VERSION="3.3.6",b.TRANSITION_DURATION=150,b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},b.prototype.init=function(h,i,g){var c,d,b,e,f;if(this.enabled=!0,this.type=h,this.$element=a(i),this.options=this.getOptions(g),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},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!");for(c=this.options.trigger.split(" "),d=c.length;d--;)b=c[d],"click"==b?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):"manual"!=b&&(e="hover"==b?"mouseenter":"focusin",f="hover"==b?"mouseleave":"focusout",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this)));this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(c){var b=c instanceof this.constructor?c:a(c.currentTarget).data("bs."+this.type);return b||(b=new this.constructor(c.currentTarget,this.getDelegateOptions()),a(c.currentTarget).data("bs."+this.type,b)),c instanceof a.Event&&(b.inState["focusin"==c.type?"focus":"hover"]=!0),b.tip().hasClass("in")||"in"==b.hoverState?void(b.hoverState="in"):(clearTimeout(b.timeout),b.hoverState="in",b.options.delay&&b.options.delay.show?void(b.timeout=setTimeout(function(){"in"==b.hoverState&&b.show()},b.options.delay.show)):b.show())},b.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},b.prototype.leave=function(c){var b=c instanceof this.constructor?c:a(c.currentTarget).data("bs."+this.type);if(b||(b=new this.constructor(c.currentTarget,this.getDelegateOptions()),a(c.currentTarget).data("bs."+this.type,b)),c instanceof a.Event&&(b.inState["focusout"==c.type?"focus":"hover"]=!1),!b.isInStateTrue())return clearTimeout(b.timeout),b.hoverState="out",b.options.delay&&b.options.delay.hide?void(b.timeout=setTimeout(function(){"out"==b.hoverState&&b.hide()},b.options.delay.hide)):b.hide()},b.prototype.show=function(){var j=a.Event("show.bs."+this.type),p,e,d,m,c,l,k,f,i,h,o,g,q,n;if(this.hasContent()&&this.enabled){if(this.$element.trigger(j),p=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),j.isDefaultPrevented()||!p)return;e=this,d=this.tip(),m=this.getUID(this.type),this.setContent(),d.attr("id",m),this.$element.attr("aria-describedby",m),this.options.animation&&d.addClass("fade"),c="function"==typeof this.options.placement?this.options.placement.call(this,d[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,k=l.test(c),k&&(c=c.replace(l,"")||"top"),d.detach().css({top:0,left:0,display:"block"}).addClass(c).data("bs."+this.type,this),this.options.container?d.appendTo(this.options.container):d.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),f=this.getPosition(),i=d[0].offsetWidth,h=d[0].offsetHeight,k&&(o=c,g=this.getPosition(this.$viewport),c="bottom"==c&&f.bottom+h>g.bottom?"top":"top"==c&&f.top-h<g.top?"bottom":"right"==c&&f.right+i>g.width?"left":"left"==c&&f.left-i<g.left?"right":c,d.removeClass(o).addClass(c)),q=this.getCalculatedOffset(c,f,i,h),this.applyPlacement(q,c),n=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)},a.support.transition&&this.$tip.hasClass("fade")?d.one("bsTransitionEnd",n).emulateTransitionEnd(b.TRANSITION_DURATION):n()}},b.prototype.applyPlacement=function(c,j){var b=this.tip(),l=b[0].offsetWidth,h=b[0].offsetHeight,g=parseInt(b.css("margin-top"),10),f=parseInt(b.css("margin-left"),10),k,e,d,i,m,n;isNaN(g)&&(g=0),isNaN(f)&&(f=0),c.top+=g,c.left+=f,a.offset.setOffset(b[0],a.extend({using:function(a){b.css({top:Math.round(a.top),left:Math.round(a.left)})}},c),0),b.addClass("in"),k=b[0].offsetWidth,e=b[0].offsetHeight,"top"==j&&e!=h&&(c.top=c.top+h-e),d=this.getViewportAdjustedDelta(j,c,k,e),d.left?c.left+=d.left:c.top+=d.top,i=/top|bottom/.test(j),m=i?2*d.left-l+k:2*d.top-h+e,n=i?"offsetWidth":"offsetHeight",b.offset(c),this.replaceArrow(m,b[0][n],i)},b.prototype.replaceArrow=function(b,c,a){this.arrow().css(a?"left":"top",50*(1-b/c)+"%").css(a?"top":"left","")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(e){function f(){"in"!=d.hoverState&&c.detach(),d.$element.removeAttr("aria-describedby").trigger("hidden.bs."+d.type),e&&e()}var d=this,c=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return c.removeClass("in"),a.support.transition&&c.hasClass("fade")?c.one("bsTransitionEnd",f).emulateTransitionEnd(b.TRANSITION_DURATION):f(),this.hoverState=null,this},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(c){var e,d,b,f,g,h;return c=c||this.$element,e=c[0],d="BODY"==e.tagName,b=e.getBoundingClientRect(),null==b.width&&(b=a.extend({},b,{width:b.right-b.left,height:b.bottom-b.top})),f=d?{top:0,left:0}:c.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:c.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null,a.extend({},b,g,h,f)},b.prototype.getCalculatedOffset=function(b,a,c,d){return"bottom"==b?{top:a.top+a.height,left:a.left+a.width/2-c/2}:"top"==b?{top:a.top-d,left:a.left+a.width/2-c/2}:"left"==b?{top:a.top+a.height/2-d/2,left:a.left-c}:{top:a.top+a.height/2-d/2,left:a.left+a.width}},b.prototype.getViewportAdjustedDelta=function(i,c,j,k){var b={top:0,left:0},d,a,g,e,f,h;return this.$viewport?(d=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport),/right|left/.test(i)?(g=c.top-d-a.scroll,e=c.top+d-a.scroll+k,g<a.top?b.top=a.top-g:e>a.top+a.height&&(b.top=a.top+a.height-e)):(f=c.left-d,h=c.left+d+j,f<a.left?b.left=a.left-f:h>a.right&&(b.left=a.left+a.width-h)),b):b},b.prototype.getTitle=function(){var c,b=this.$element,a=this.options;return c=b.attr("data-original-title")||("function"==typeof a.title?a.title.call(b[0]):a.title)},b.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a))return a},b.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(c){var b=this;c&&(b=a(c.currentTarget).data("bs."+this.type),b||(b=new this.constructor(c.currentTarget,this.getDelegateOptions()),a(c.currentTarget).data("bs."+this.type,b))),c?(b.inState.click=!b.inState.click,b.isInStateTrue()?b.enter(b):b.leave(b)):b.tip().hasClass("in")?b.leave(b):b.enter(b)},b.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})},c=a.fn.tooltip,a.fn.tooltip=d,a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(jQuery),+function(b){"use strict";var a,c;function d(c){return this.each(function(){var e=b(this),d=e.data("bs.popover"),f="object"==typeof c&&c;!d&&/destroy|hide/.test(c)||(d||e.data("bs.popover",d=new a(this,f)),"string"==typeof c&&d[c]())})}if(a=function(a,b){this.init("popover",a,b)},!b.fn.tooltip)throw new Error("Popover requires tooltip.js");a.VERSION="3.3.6",a.DEFAULTS=b.extend({},b.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>'}),a.prototype=b.extend({},b.fn.tooltip.Constructor.prototype),a.prototype.constructor=a,a.prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.setContent=function(){var a=this.tip(),c=this.getTitle(),b=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](c),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof b?"html":"append":"text"](b),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},a.prototype.hasContent=function(){return this.getTitle()||this.getContent()},a.prototype.getContent=function(){var b=this.$element,a=this.options;return b.attr("data-content")||("function"==typeof a.content?a.content.call(b[0]):a.content)},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},c=b.fn.popover,b.fn.popover=d,b.fn.popover.Constructor=a,b.fn.popover.noConflict=function(){return b.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var e=a(this),d=e.data("bs.scrollspy"),f="object"==typeof c&&c;d||e.data("bs.scrollspy",d=new b(this,f)),"string"==typeof c&&d[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var f=a(this),e=f.data("target")||f.attr("href"),b=/^#./.test(e)&&a(e);return b&&b.length&&b.is(":visible")&&[[b[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,c=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),g=this.options.offset+f-this.$scrollElement.height(),b=this.offsets,d=this.targets,e=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),c>=g)return e!=(a=d[d.length-1])&&this.activate(a);if(e&&c<b[0])return this.activeTarget=null,this.clear();for(a=b.length;a--;)e!=d[a]&&c>=b[a]&&(void 0===b[a+1]||c<b[a+1])&&this.activate(d[a])},b.prototype.activate=function(c){this.activeTarget=c,this.clear();var d=this.selector+'[data-target="'+c+'"],'+this.selector+'[href="'+c+'"]',b=a(d).parents("li").addClass("active");b.parent(".dropdown-menu").length&&(b=b.closest("li.dropdown").addClass("active")),b.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";var b,e,c;function d(c){return this.each(function(){var e=a(this),d=e.data("bs.tab");d||e.data("bs.tab",d=new b(this)),"string"==typeof c&&d[c]()})}b=function(b){this.element=a(b)},b.VERSION="3.3.6",b.TRANSITION_DURATION=150,b.prototype.show=function(){var b=this.element,e=b.closest("ul:not(.dropdown-menu)"),c=b.data("target"),d,f,g,h;c||(c=b.attr("href"),c=c&&c.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")&&(d=e.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:d[0]}),(d.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented())&&(h=a(c),this.activate(b.closest("li"),e),this.activate(h,h.parent(),function(){d.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:d[0]})})))},b.prototype.activate=function(c,f,e){function g(){d.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),c.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(c[0].offsetWidth,c.addClass("in")):c.removeClass("fade"),c.parent(".dropdown-menu").length&&c.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var d=f.find("> .active"),h=e&&a.support.transition&&(d.length&&d.hasClass("fade")||!!f.find("> .fade").length);d.length&&h?d.one("bsTransitionEnd",g).emulateTransitionEnd(b.TRANSITION_DURATION):g(),d.removeClass("in")},e=a.fn.tab,a.fn.tab=d,a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=e,this},c=function(b){b.preventDefault(),d.call(a(this),"show")},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',c).on("click.bs.tab.data-api",'[data-toggle="pill"]',c)}(jQuery),+function(a){"use strict";var b,d;function c(c){return this.each(function(){var e=a(this),d=e.data("bs.affix"),f="object"==typeof c&&c;d||e.data("bs.affix",d=new b(this,f)),"string"==typeof c&&d[c]()})}b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()},b.VERSION="3.3.6",b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0,target:window},b.prototype.getState=function(d,h,a,c){var b=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height(),e,i,j;return null!=a&&"top"==this.affixed?b<a&&"top":"bottom"==this.affixed?null!=a?!(b+this.unpin<=f.top)&&"bottom":!(b+g<=d-c)&&"bottom":(e=null==this.affixed,i=e?b:f.top,j=e?g:h,null!=a&&b<=a?"top":null!=c&&i+j>=d-c&&"bottom")},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$target.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){var i,c,f,e,h,d,g,j;if(this.$element.is(":visible")){if(i=this.$element.height(),c=this.options.offset,f=c.top,e=c.bottom,h=Math.max(a(document).height(),a(document.body).height()),"object"!=typeof c&&(e=f=c),"function"==typeof f&&(f=c.top(this.$element)),"function"==typeof e&&(e=c.bottom(this.$element)),d=this.getState(h,i,f,e),this.affixed!=d){if(null!=this.unpin&&this.$element.css("top",""),g="affix"+(d?"-"+d:""),j=a.Event(g+".bs.affix"),this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=d,this.unpin="bottom"==d?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(g).trigger(g.replace("affix","affixed")+".bs.affix")}"bottom"==d&&this.$element.offset({top:h-i-e})}},d=a.fn.affix,a.fn.affix=c,a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var d=a(this),b=d.data();b.offset=b.offset||{},null!=b.offsetBottom&&(b.offset.bottom=b.offsetBottom),null!=b.offsetTop&&(b.offset.top=b.offsetTop),c.call(d,b)})})}(jQuery),!function(a){var b={},c={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};a.fn.bxSlider=function(x){var d,e,w,u,s,P,O,L,k,I,p,j,g,h,t,f,v,H,Q,G,F,A,B,C,D,E,m,o,n,y,J,K,l,M,N,q,r,z;return 0==this.length?this:this.length>1?(this.each(function(){a(this).bxSlider(x)}),this):(d={},e=this,b.el=this,w=a(window).width(),u=a(window).height(),s=function(){d.settings=a.extend({},c,x),d.settings.slideWidth=parseInt(d.settings.slideWidth),d.children=e.children(d.settings.slideSelector),d.children.length<d.settings.minSlides&&(d.settings.minSlides=d.children.length),d.children.length<d.settings.maxSlides&&(d.settings.maxSlides=d.children.length),d.settings.randomStart&&(d.settings.startSlide=Math.floor(Math.random()*d.children.length)),d.active={index:d.settings.startSlide},d.carousel=d.settings.minSlides>1||d.settings.maxSlides>1,d.carousel&&(d.settings.preloadImages="all"),d.minThreshold=d.settings.minSlides*d.settings.slideWidth+(d.settings.minSlides-1)*d.settings.slideMargin,d.maxThreshold=d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin,d.working=!1,d.controls={},d.interval=null,d.animProp="vertical"==d.settings.mode?"top":"left",d.usingCSS=d.settings.useCSS&&"fade"!=d.settings.mode&&function(){var c=document.createElement("div"),a=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],b;for(b in a)if(void 0!==c.style[a[b]])return d.cssPrefix=a[b].replace("Perspective","").toLowerCase(),d.animProp="-"+d.cssPrefix+"-transform",!0;return!1}(),"vertical"==d.settings.mode&&(d.settings.maxSlides=d.settings.minSlides),e.data("origStyle",e.attr("style")),e.children(d.settings.slideSelector).each(function(){a(this).data("origStyle",a(this).attr("style"))}),P()},P=function(){e.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),d.viewport=e.parent(),d.loader=a('<div class="bx-loading" />'),d.viewport.prepend(d.loader),e.css({width:"horizontal"==d.settings.mode?100*d.children.length+215+"%":"auto",position:"relative"}),d.usingCSS&&d.settings.easing?e.css("-"+d.cssPrefix+"-transition-timing-function",d.settings.easing):d.settings.easing||(d.settings.easing="swing"),j(),d.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),d.viewport.parent().css({maxWidth:I()}),d.settings.pager||d.viewport.parent().css({margin:"0 auto 0px"}),d.children.css({float:"horizontal"==d.settings.mode?"left":"none",listStyle:"none",position:"relative"}),d.children.css("width",p()),"horizontal"==d.settings.mode&&d.settings.slideMargin>0&&d.children.css("marginRight",d.settings.slideMargin),"vertical"==d.settings.mode&&d.settings.slideMargin>0&&d.children.css("marginBottom",d.settings.slideMargin),"fade"==d.settings.mode&&(d.children.css({position:"absolute",zIndex:0,display:"none"}),d.children.eq(d.settings.startSlide).css({zIndex:d.settings.slideZIndex,display:"block"})),d.controls.el=a('<div class="bx-controls" />'),d.settings.captions&&F(),d.active.last=d.settings.startSlide==g()-1,d.settings.video&&e.fitVids();var b=d.children.eq(d.settings.startSlide);"all"==d.settings.preloadImages&&(b=d.children),d.settings.ticker?d.settings.pager=!1:(d.settings.pager&&H(),d.settings.controls&&Q(),d.settings.auto&&d.settings.autoControls&&G(),(d.settings.controls||d.settings.autoControls||d.settings.pager)&&d.viewport.after(d.controls.el)),O(b,L)},O=function(b,c){var d=b.find("img, iframe").length,e;if(0==d)return void c();e=0,b.find("img, iframe").each(function(){a(this).one("load",function(){++e==d&&c()}).each(function(){this.complete&&a(this).load()})})},L=function(){if(d.settings.infiniteLoop&&"fade"!=d.settings.mode&&!d.settings.ticker){var b="vertical"==d.settings.mode?d.settings.minSlides:d.settings.maxSlides,c=d.children.slice(0,b).clone().addClass("bx-clone"),f=d.children.slice(-b).clone().addClass("bx-clone");e.append(c).prepend(f)}d.loader.remove(),t(),"vertical"==d.settings.mode&&(d.settings.adaptiveHeight=!0),d.viewport.height(k()),e.redrawSlider(),d.settings.onSliderLoad(d.active.index),d.initialized=!0,d.settings.responsive&&a(window).bind("resize",z),d.settings.auto&&d.settings.autoStart&&J(),d.settings.ticker&&K(),d.settings.pager&&m(d.settings.startSlide),d.settings.controls&&y(),d.settings.touchEnabled&&!d.settings.ticker&&M()},k=function(){var c=0,b=a(),e;if("vertical"==d.settings.mode||d.settings.adaptiveHeight)if(d.carousel){e=1==d.settings.moveSlides?d.active.index:d.active.index*h();for(b=d.children.eq(e),i=1;i<=d.settings.maxSlides-1;i++)b=e+i>=d.children.length?b.add(d.children.eq(i-1)):b.add(d.children.eq(e+i))}else b=d.children.eq(d.active.index);else b=d.children;return"vertical"==d.settings.mode?(b.each(function(){c+=a(this).outerHeight()}),d.settings.slideMargin>0&&(c+=d.settings.slideMargin*(d.settings.minSlides-1))):c=Math.max.apply(Math,b.map(function(){return a(this).outerHeight(!1)}).get()),c},I=function(){var a="100%";return d.settings.slideWidth>0&&(a="horizontal"==d.settings.mode?d.settings.maxSlides*d.settings.slideWidth+(d.settings.maxSlides-1)*d.settings.slideMargin:d.settings.slideWidth),a},p=function(){var b=d.settings.slideWidth,a=d.viewport.width();return 0==d.settings.slideWidth||d.settings.slideWidth>a&&!d.carousel||"vertical"==d.settings.mode?b=a:d.settings.maxSlides>1&&"horizontal"==d.settings.mode&&(a>d.maxThreshold||a<d.minThreshold&&(b=(a-d.settings.slideMargin*(d.settings.minSlides-1))/d.settings.minSlides)),b},j=function(){var a=1,b;return"horizontal"==d.settings.mode&&d.settings.slideWidth>0?d.viewport.width()<d.minThreshold?a=d.settings.minSlides:d.viewport.width()>d.maxThreshold?a=d.settings.maxSlides:(b=d.children.first().width(),a=Math.floor(d.viewport.width()/b)):"vertical"==d.settings.mode&&(a=d.settings.minSlides),a},g=function(){var a=0,b,c;if(d.settings.moveSlides>0)if(d.settings.infiniteLoop)a=d.children.length/h();else for(b=0,c=0;b<d.children.length;)++a,b=c+j(),c+=d.settings.moveSlides<=j()?d.settings.moveSlides:j();else a=Math.ceil(d.children.length/j());return a},h=function(){return d.settings.moveSlides>0&&d.settings.moveSlides<=j()?d.settings.moveSlides:j()},t=function(){var b,a,c;d.children.length>d.settings.maxSlides&&d.active.last&&!d.settings.infiniteLoop?"horizontal"==d.settings.mode?(b=d.children.last(),a=b.position(),f(-(a.left-(d.viewport.width()-b.width())),"reset",0)):"vertical"==d.settings.mode&&(c=d.children.length-d.settings.minSlides,a=d.children.eq(c).position(),f(-a.top,"reset",0)):(a=d.children.eq(d.active.index*h()).position(),d.active.index==g()-1&&(d.active.last=!0),void 0!=a&&("horizontal"==d.settings.mode?f(-a.left,"reset",0):"vertical"==d.settings.mode&&f(-a.top,"reset",0)))},f=function(b,a,h,i){var c,g;d.usingCSS?(c="vertical"==d.settings.mode?"translate3d(0, "+b+"px, 0)":"translate3d("+b+"px, 0, 0)",e.css("-"+d.cssPrefix+"-transition-duration",h/1e3+"s"),"slide"==a?(e.css(d.animProp,c),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),o()})):"reset"==a?e.css(d.animProp,c):"ticker"==a&&(e.css("-"+d.cssPrefix+"-transition-timing-function","linear"),e.css(d.animProp,c),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),f(i.resetValue,"reset",0),l()}))):(g={},g[d.animProp]=b,"slide"==a?e.animate(g,h,d.settings.easing,function(){o()}):"reset"==a?e.css(d.animProp,b):"ticker"==a&&e.animate(g,speed,"linear",function(){f(i.resetValue,"reset",0),l()}))},v=function(){for(var e="",f=g(),b=0,c;f>b;b++)c="",d.settings.buildPager&&a.isFunction(d.settings.buildPager)?(c=d.settings.buildPager(b),d.pagerEl.addClass("bx-custom-pager")):(c=b+1,d.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+b+'" class="bx-pager-link">'+c+"</a></div>";d.pagerEl.html(e)},H=function(){d.settings.pagerCustom?d.pagerEl=a(d.settings.pagerCustom):(d.pagerEl=a('<div class="bx-pager" />'),d.settings.pagerSelector?a(d.settings.pagerSelector).html(d.pagerEl):d.controls.el.addClass("bx-has-pager").append(d.pagerEl),v()),d.pagerEl.on("click","a",E)},Q=function(){d.controls.next=a('<a class="bx-next" href="">'+d.settings.nextText+"</a>"),d.controls.prev=a('<a class="bx-prev" href="">'+d.settings.prevText+"</a>"),d.controls.next.bind("click",A),d.controls.prev.bind("click",B),d.settings.nextSelector&&a(d.settings.nextSelector).append(d.controls.next),d.settings.prevSelector&&a(d.settings.prevSelector).append(d.controls.prev),d.settings.nextSelector||d.settings.prevSelector||(d.controls.directionEl=a('<div class="bx-controls-direction" />'),d.controls.directionEl.append(d.controls.prev).append(d.controls.next),d.controls.el.addClass("bx-has-controls-direction").append(d.controls.directionEl))},G=function(){d.controls.start=a('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+d.settings.startText+"</a></div>"),d.controls.stop=a('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+d.settings.stopText+"</a></div>"),d.controls.autoEl=a('<div class="bx-controls-auto" />'),d.controls.autoEl.on("click",".bx-start",C),d.controls.autoEl.on("click",".bx-stop",D),d.settings.autoControlsCombine?d.controls.autoEl.append(d.controls.start):d.controls.autoEl.append(d.controls.start).append(d.controls.stop),d.settings.autoControlsSelector?a(d.settings.autoControlsSelector).html(d.controls.autoEl):d.controls.el.addClass("bx-has-controls-auto").append(d.controls.autoEl),n(d.settings.autoStart?"stop":"start")},F=function(){d.children.each(function(){var b=a(this).find("img:first").attr("title");void 0!=b&&(""+b).length&&a(this).append('<div class="bx-caption"><span>'+b+"</span></div>")})},A=function(a){d.settings.auto&&e.stopAuto(),e.goToNextSlide(),a.preventDefault()},B=function(a){d.settings.auto&&e.stopAuto(),e.goToPrevSlide(),a.preventDefault()},C=function(a){e.startAuto(),a.preventDefault()},D=function(a){e.stopAuto(),a.preventDefault()},E=function(b){d.settings.auto&&e.stopAuto();var f=a(b.currentTarget),c=parseInt(f.attr("data-slide-index"));c!=d.active.index&&e.goToSlide(c),b.preventDefault()},m=function(b){var c=d.children.length;return"short"==d.settings.pagerType?(d.settings.maxSlides>1&&(c=Math.ceil(d.children.length/d.settings.maxSlides)),void d.pagerEl.html(b+1+d.settings.pagerShortSeparator+c)):(d.pagerEl.find("a").removeClass("active"),void d.pagerEl.each(function(d,c){a(c).find("a").eq(b).addClass("active")}))},o=function(){if(d.settings.infiniteLoop){var a="";0==d.active.index?a=d.children.eq(0).position():d.active.index==g()-1&&d.carousel?a=d.children.eq((g()-1)*h()).position():d.active.index==d.children.length-1&&(a=d.children.eq(d.children.length-1).position()),a&&("horizontal"==d.settings.mode?f(-a.left,"reset",0):"vertical"==d.settings.mode&&f(-a.top,"reset",0))}d.working=!1,d.settings.onSlideAfter(d.children.eq(d.active.index),d.oldIndex,d.active.index)},n=function(a){d.settings.autoControlsCombine?d.controls.autoEl.html(d.controls[a]):(d.controls.autoEl.find("a").removeClass("active"),d.controls.autoEl.find("a:not(.bx-"+a+")").addClass("active"))},y=function(){1==g()?(d.controls.prev.addClass("disabled"),d.controls.next.addClass("disabled")):!d.settings.infiniteLoop&&d.settings.hideControlOnEnd&&(0==d.active.index?(d.controls.prev.addClass("disabled"),d.controls.next.removeClass("disabled")):d.active.index==g()-1?(d.controls.next.addClass("disabled"),d.controls.prev.removeClass("disabled")):(d.controls.prev.removeClass("disabled"),d.controls.next.removeClass("disabled")))},J=function(){d.settings.autoDelay>0?setTimeout(e.startAuto,d.settings.autoDelay):e.startAuto(),d.settings.autoHover&&e.hover(function(){d.interval&&(e.stopAuto(!0),d.autoPaused=!0)},function(){d.autoPaused&&(e.startAuto(!0),d.autoPaused=null)})},K=function(){var b=0,c;"next"==d.settings.autoDirection?e.append(d.children.clone().addClass("bx-clone")):(e.prepend(d.children.clone().addClass("bx-clone")),c=d.children.first().position(),b="horizontal"==d.settings.mode?-c.left:-c.top),f(b,"reset",0),d.settings.pager=!1,d.settings.controls=!1,d.settings.autoControls=!1,d.settings.tickerHover&&!d.usingCSS&&d.viewport.hover(function(){e.stop()},function(){var b=0,c,f,g;d.children.each(function(){b+="horizontal"==d.settings.mode?a(this).outerWidth(!0):a(this).outerHeight(!0)}),c=d.settings.speed/b,f="horizontal"==d.settings.mode?"left":"top",g=c*(b-Math.abs(parseInt(e.css(f)))),l(g)}),l()},l=function(c){var a,b,g,h,i;speed=c||d.settings.speed,a={left:0,top:0},b={left:0,top:0},"next"==d.settings.autoDirection?a=e.find(".bx-clone").first().position():b=d.children.first().position(),g="horizontal"==d.settings.mode?-a.left:-a.top,h="horizontal"==d.settings.mode?-b.left:-b.top,i={resetValue:h},f(g,"ticker",speed,i)},M=function(){d.touch={start:{x:0,y:0},end:{x:0,y:0}},d.viewport.bind("touchstart",N)},N=function(a){if(d.working)a.preventDefault();else{d.touch.originalPos=e.position();var b=a.originalEvent;d.touch.start.x=b.changedTouches[0].pageX,d.touch.start.y=b.changedTouches[0].pageY,d.viewport.bind("touchmove",q),d.viewport.bind("touchend",r)}},q=function(b){var a=b.originalEvent,g=Math.abs(a.changedTouches[0].pageX-d.touch.start.x),h=Math.abs(a.changedTouches[0].pageY-d.touch.start.y),c,e;3*g>h&&d.settings.preventDefaultSwipeX?b.preventDefault():3*h>g&&d.settings.preventDefaultSwipeY&&b.preventDefault(),"fade"!=d.settings.mode&&d.settings.oneToOneTouch&&(c=0,"horizontal"==d.settings.mode?(e=a.changedTouches[0].pageX-d.touch.start.x,c=d.touch.originalPos.left+e):(e=a.changedTouches[0].pageY-d.touch.start.y,c=d.touch.originalPos.top+e),f(c,"reset",0))},r=function(g){var c,b,a;d.viewport.unbind("touchmove",q),c=g.originalEvent,b=0,(d.touch.end.x=c.changedTouches[0].pageX,d.touch.end.y=c.changedTouches[0].pageY,"fade"==d.settings.mode)?(a=Math.abs(d.touch.start.x-d.touch.end.x),a>=d.settings.swipeThreshold&&(d.touch.start.x>d.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):(a=0,"horizontal"==d.settings.mode?(a=d.touch.end.x-d.touch.start.x,b=d.touch.originalPos.left):(a=d.touch.end.y-d.touch.start.y,b=d.touch.originalPos.top),!d.settings.infiniteLoop&&(0==d.active.index&&a>0||d.active.last&&0>a)?f(b,"reset",200):Math.abs(a)>=d.settings.swipeThreshold?(0>a?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):f(b,"reset",200)),d.viewport.unbind("touchend",r)},z=function(){var b=a(window).width(),c=a(window).height();(w!=b||u!=c)&&(w=b,u=c,e.redrawSlider(),d.settings.onSliderResize.call(e,d.active.index))},e.goToSlide=function(c,j){var l,b,i,n,p,q,r;!d.working&&d.active.index!=c&&(d.working=!0,d.oldIndex=d.active.index,d.active.index=0>c?g()-1:c>=g()?0:c,d.settings.onSlideBefore(d.children.eq(d.active.index),d.oldIndex,d.active.index),"next"==j?d.settings.onSlideNext(d.children.eq(d.active.index),d.oldIndex,d.active.index):"prev"==j&&d.settings.onSlidePrev(d.children.eq(d.active.index),d.oldIndex,d.active.index),d.active.last=d.active.index>=g()-1,d.settings.pager&&m(d.active.index),d.settings.controls&&y(),"fade"==d.settings.mode?(d.settings.adaptiveHeight&&d.viewport.height()!=k()&&d.viewport.animate({height:k()},d.settings.adaptiveHeightSpeed),d.children.filter(":visible").fadeOut(d.settings.speed).css({zIndex:0}),d.children.eq(d.active.index).css("zIndex",d.settings.slideZIndex+1).fadeIn(d.settings.speed,function(){a(this).css("zIndex",d.settings.slideZIndex),o()})):(d.settings.adaptiveHeight&&d.viewport.height()!=k()&&d.viewport.animate({height:k()},d.settings.adaptiveHeightSpeed),l=0,b={left:0,top:0},!d.settings.infiniteLoop&&d.carousel&&d.active.last?"horizontal"==d.settings.mode?(i=d.children.eq(d.children.length-1),b=i.position(),l=d.viewport.width()-i.outerWidth()):(n=d.children.length-d.settings.minSlides,b=d.children.eq(n).position()):d.carousel&&d.active.last&&"prev"==j?(p=1==d.settings.moveSlides?d.settings.maxSlides-h():(g()-1)*h()-(d.children.length-d.settings.maxSlides),i=e.children(".bx-clone").eq(p),b=i.position()):"next"==j&&0==d.active.index?(b=e.find("> .bx-clone").eq(d.settings.maxSlides).position(),d.active.last=!1):c>=0&&(q=c*h(),b=d.children.eq(q).position()),"undefined"!=typeof b&&(r="horizontal"==d.settings.mode?-(b.left-l):-b.top,f(r,"slide",d.settings.speed))))},e.goToNextSlide=function(){if(d.settings.infiniteLoop||!d.active.last){var a=parseInt(d.active.index)+1;e.goToSlide(a,"next")}},e.goToPrevSlide=function(){if(d.settings.infiniteLoop||0!=d.active.index){var a=parseInt(d.active.index)-1;e.goToSlide(a,"prev")}},e.startAuto=function(a){d.interval||(d.interval=setInterval(function(){"next"==d.settings.autoDirection?e.goToNextSlide():e.goToPrevSlide()},d.settings.pause),d.settings.autoControls&&1!=a&&n("stop"))},e.stopAuto=function(a){d.interval&&(clearInterval(d.interval),d.interval=null,d.settings.autoControls&&1!=a&&n("start"))},e.getCurrentSlide=function(){return d.active.index},e.getCurrentSlideElement=function(){return d.children.eq(d.active.index)},e.getSlideCount=function(){return d.children.length},e.redrawSlider=function(){d.children.add(e.find(".bx-clone")).outerWidth(p()),d.viewport.css("height",k()),d.settings.ticker||t(),d.active.last&&(d.active.index=g()-1),d.active.index>=g()&&(d.active.last=!0),d.settings.pager&&!d.settings.pagerCustom&&(v(),m(d.active.index))},e.destroySlider=function(){d.initialized&&(d.initialized=!1,a(".bx-clone",this).remove(),d.children.each(function(){void 0!=a(this).data("origStyle")?a(this).attr("style",a(this).data("origStyle")):a(this).removeAttr("style")}),void 0!=a(this).data("origStyle")?this.attr("style",a(this).data("origStyle")):a(this).removeAttr("style"),a(this).unwrap().unwrap(),d.controls.el&&d.controls.el.remove(),d.controls.next&&d.controls.next.remove(),d.controls.prev&&d.controls.prev.remove(),d.pagerEl&&d.settings.controls&&d.pagerEl.remove(),a(".bx-caption",this).remove(),d.controls.autoEl&&d.controls.autoEl.remove(),clearInterval(d.interval),d.settings.responsive&&a(window).unbind("resize",z))},e.reloadSlider=function(a){void 0!=a&&(x=a),e.destroySlider(),s()},s(),this)}}(jQuery),function(b){var a=b(window),c=a.height();a.resize(function(){c=a.height()}),b.fn.parallax=function(h,e,f){function g(){var f=a.scrollTop();d.each(function(){var a=b(this),g=a.offset().top,k=i(a);g+k<f||g>f+c||d.css("backgroundPosition",h+" "+Math.round((j-f)*e)+"px")})}var i,j,d=b(this);d.each(function(){j=d.offset().top}),i=f?function(a){return a.outerHeight(!0)}:function(a){return a.height()},(arguments.length<1||null===h)&&(h="50%"),(arguments.length<2||null===e)&&(e=.1),(arguments.length<3||null===f)&&(f=!0),a.bind("scroll",g).resize(g),g()}}(jQuery),function(a){var c={common:{init:function(){a(document).ready(function(){}),a(document).on("click","body",function(b){a("body ._list-toggle").removeClass("_active")}),a(document).on("click","._list-toggle",function(b){b.preventDefault(),b.stopPropagation(),a("body ._list-toggle").removeClass("_active"),a(this).toggleClass("_active")}),a(document).on("click","._mobile-menu-toggle span",function(b){a(this).parent().toggleClass("_active"),a("._header ._menu").slideToggle("fast")})},finalize:function(){}},home:{init:function(){a(document).ready(function(){a("._showcase").bxSlider({pager:!1,easing:"swing",auto:!0,autoHover:!0,autoDelay:"5000"}),a("._masthead").parallax("50%",-.1)})},finalize:function(){}},about_us:{init:function(){}}},b={fire:function(d,b,f){var a,e=c;b=void 0===b?"init":b,a=""!==d,a=a&&e[d],a=a&&"function"==typeof e[d][b],a&&e[d][b](f)},loadEvents:function(){b.fire("common"),a.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(c,a){b.fire(a),b.fire(a,"finalize")}),b.fire("common","finalize")}};a(document).ready(b.loadEvents)}(jQuery)