/*!
* Bootstrap v3.2.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
;if("undefined"==typeof jQuery){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(d){function c(){var f=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var g in e){if(void 0!==f.style[g]){return{end:e[g]}}}return !1}d.fn.emulateTransitionEnd=function(a){var h=!1,g=this;d(this).one("bsTransitionEnd",function(){h=!0});var f=function(){h||d(g).trigger(d.support.transition.end)};return setTimeout(f,a),this},d(function(){d.support.transition=c(),d.support.transition&&(d.event.special.bsTransitionEnd={bindType:d.support.transition.end,delegateType:d.support.transition.end,handle:function(a){return d(a.target).is(this)?a.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(g){function f(a){return this.each(function(){var d=g(this),b=d.data("bs.alert");b||d.data("bs.alert",b=new i(this)),"string"==typeof a&&b[a].call(d)})}var j='[data-dismiss="alert"]',i=function(a){g(a).on("click",j,this.close)};i.VERSION="3.2.0",i.prototype.close=function(a){function n(){k.detach().trigger("closed.bs.alert").remove()}var m=g(this),l=m.attr("data-target");l||(l=m.attr("href"),l=l&&l.replace(/.*(?=#[^\s]*$)/,""));var k=g(l);a&&a.preventDefault(),k.length||(k=m.hasClass("alert")?m:m.parent()),k.trigger(a=g.Event("close.bs.alert")),a.isDefaultPrevented()||(k.removeClass("in"),g.support.transition&&k.hasClass("fade")?k.one("bsTransitionEnd",n).emulateTransitionEnd(150):n())};var h=g.fn.alert;g.fn.alert=f,g.fn.alert.Constructor=i,g.fn.alert.noConflict=function(){return g.fn.alert=h,this},g(document).on("click.bs.alert.data-api",j,i.prototype.close)}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.button"),b="object"==typeof a&&a;c||i.data("bs.button",c=new h(this,b)),"toggle"==a?c.toggle():a&&c.setState(a)})}var h=function(a,c){this.$element=f(a),this.options=f.extend({},h.DEFAULTS,c),this.isLoading=!1};h.VERSION="3.2.0",h.DEFAULTS={loadingText:"loading..."},h.prototype.setState=function(a){var l="disabled",k=this.$element,j=k.is("input")?"val":"html",i=k.data();a+="Text",null==i.resetText&&k.data("resetText",k[j]()),k[j](null==i[a]?this.options[a]:i[a]),setTimeout(f.proxy(function(){"loadingText"==a?(this.isLoading=!0,k.addClass(l).attr(l,l)):this.isLoading&&(this.isLoading=!1,k.removeClass(l).removeAttr(l))},this),0)},h.prototype.toggle=function(){var i=!0,d=this.$element.closest('[data-toggle="buttons"]');if(d.length){var j=this.$element.find("input");"radio"==j.prop("type")&&(j.prop("checked")&&this.$element.hasClass("active")?i=!1:d.find(".active").removeClass("active")),i&&j.prop("checked",!this.$element.hasClass("active")).trigger("change")}i&&this.$element.toggleClass("active")};var g=f.fn.button;f.fn.button=e,f.fn.button.Constructor=h,f.fn.button.noConflict=function(){return f.fn.button=g,this},f(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(b){var a=f(b.target);a.hasClass("btn")||(a=a.closest(".btn")),e.call(a,"toggle"),b.preventDefault()})}(jQuery),+function(f){function e(a){return this.each(function(){var j=f(this),i=j.data("bs.carousel"),c=f.extend({},h.DEFAULTS,j.data(),"object"==typeof a&&a),b="string"==typeof a?a:c.slide;i||j.data("bs.carousel",i=new h(this,c)),"number"==typeof a?i.to(a):b?i[b]():c.interval&&i.pause().cycle()})}var h=function(a,d){this.$element=f(a).on("keydown.bs.carousel",f.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=d,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",f.proxy(this.pause,this)).on("mouseleave.bs.carousel",f.proxy(this.cycle,this))};h.VERSION="3.2.0",h.DEFAULTS={interval:5000,pause:"hover",wrap:!0},h.prototype.keydown=function(b){switch(b.which){case 37:this.prev();break;case 39:this.next();break;default:return}b.preventDefault()},h.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(f.proxy(this.next,this),this.options.interval)),this},h.prototype.getItemIndex=function(b){return this.$items=b.parent().children(".item"),this.$items.index(b||this.$active)},h.prototype.to=function(a){var j=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){j.to(a)}):i==a?this.pause().cycle():this.slide(a>i?"next":"prev",f(this.$items[a]))},h.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&f.support.transition&&(this.$element.trigger(f.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},h.prototype.next=function(){return this.sliding?void 0:this.slide("next")},h.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},h.prototype.slide=function(x,w){var v=this.$element.find(".item.active"),u=w||v[x](),t=this.interval,s="next"==x?"left":"right",r="next"==x?"first":"last",q=this;if(!u.length){if(!this.options.wrap){return}u=this.$element.find(".item")[r]()}if(u.hasClass("active")){return this.sliding=!1}var p=u[0],o=f.Event("slide.bs.carousel",{relatedTarget:p,direction:s});if(this.$element.trigger(o),!o.isDefaultPrevented()){if(this.sliding=!0,t&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var n=f(this.$indicators.children()[this.getItemIndex(u)]);n&&n.addClass("active")}var a=f.Event("slid.bs.carousel",{relatedTarget:p,direction:s});return f.support.transition&&this.$element.hasClass("slide")?(u.addClass(x),u[0].offsetWidth,v.addClass(s),u.addClass(s),v.one("bsTransitionEnd",function(){u.removeClass([x,s].join(" ")).addClass("active"),v.removeClass(["active",s].join(" ")),q.sliding=!1,setTimeout(function(){q.$element.trigger(a)},0)}).emulateTransitionEnd(1000*v.css("transition-duration").slice(0,-1))):(v.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(a)),t&&this.cycle(),this}};var g=f.fn.carousel;f.fn.carousel=e,f.fn.carousel.Constructor=h,f.fn.carousel.noConflict=function(){return f.fn.carousel=g,this},f(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(l){var k,j=f(this),i=f(j.attr("data-target")||(k=j.attr("href"))&&k.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var b=f.extend({},i.data(),j.data()),a=j.attr("data-slide-to");a&&(b.interval=!1),e.call(i,b),a&&i.data("bs.carousel").to(a),l.preventDefault()}}),f(window).on("load",function(){f('[data-ride="carousel"]').each(function(){var a=f(this);e.call(a,a.data())})})}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.collapse"),b=f.extend({},h.DEFAULTS,i.data(),"object"==typeof a&&a);!c&&b.toggle&&"show"==a&&(a=!a),c||i.data("bs.collapse",c=new h(this,b)),"string"==typeof a&&c[a]()})}var h=function(a,c){this.$element=f(a),this.options=f.extend({},h.DEFAULTS,c),this.transitioning=null,this.options.parent&&(this.$parent=f(this.options.parent)),this.options.toggle&&this.toggle()};h.VERSION="3.2.0",h.DEFAULTS={toggle:!0},h.prototype.dimension=function(){var b=this.$element.hasClass("width");return b?"width":"height"},h.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var l=f.Event("show.bs.collapse");if(this.$element.trigger(l),!l.isDefaultPrevented()){var k=this.$parent&&this.$parent.find("> .panel > .in");if(k&&k.length){var j=k.data("bs.collapse");if(j&&j.transitioning){return}e.call(k,"hide"),j||k.data("bs.collapse",null)}var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1;var b=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!f.support.transition){return b.call(this)}var a=f.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",f.proxy(b,this)).emulateTransitionEnd(350)[i](this.$element[0][a])}}},h.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=f.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var j=this.dimension();this.$element[j](this.$element[j]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return f.support.transition?void this.$element[j](0).one("bsTransitionEnd",f.proxy(i,this)).emulateTransitionEnd(350):i.call(this)}}},h.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var g=f.fn.collapse;f.fn.collapse=e,f.fn.collapse.Constructor=h,f.fn.collapse.noConflict=function(){return f.fn.collapse=g,this},f(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(r){var q,p=f(this),o=p.attr("data-target")||r.preventDefault()||(q=p.attr("href"))&&q.replace(/.*(?=#[^\s]+$)/,""),n=f(o),m=n.data("bs.collapse"),l=m?"toggle":p.data(),b=p.attr("data-parent"),a=b&&f(b);m&&m.transitioning||(a&&a.find('[data-toggle="collapse"][data-parent="'+b+'"]').not(p).addClass("collapsed"),p[n.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(n,l)})}(jQuery),+function(j){function i(a){a&&3===a.which||(j(n).remove(),j(m).each(function(){var c=p(j(this)),b={relatedTarget:this};c.hasClass("open")&&(c.trigger(a=j.Event("hide.bs.dropdown",b)),a.isDefaultPrevented()||c.removeClass("open").trigger("hidden.bs.dropdown",b))}))}function p(a){var f=a.attr("data-target");f||(f=a.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,""));var e=f&&j(f);return e&&e.length?e:a.parent()}function o(a){return this.each(function(){var e=j(this),b=e.data("bs.dropdown");b||e.data("bs.dropdown",b=new l(this)),"string"==typeof a&&b[a].call(e)})}var n=".dropdown-backdrop",m='[data-toggle="dropdown"]',l=function(a){j(a).on("click.bs.dropdown",this.toggle)};l.VERSION="3.2.0",l.prototype.toggle=function(r){var q=j(this);if(!q.is(".disabled, :disabled")){var c=p(q),b=c.hasClass("open");if(i(),!b){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&j('
').insertAfter(j(this)).on("click",i);var a={relatedTarget:this};if(c.trigger(r=j.Event("show.bs.dropdown",a)),r.isDefaultPrevented()){return}q.trigger("focus"),c.toggleClass("open").trigger("shown.bs.dropdown",a)}return !1}},l.prototype.keydown=function(a){if(/(38|40|27)/.test(a.keyCode)){var t=j(this);if(a.preventDefault(),a.stopPropagation(),!t.is(".disabled, :disabled")){var s=p(t),r=s.hasClass("open");if(!r||r&&27==a.keyCode){return 27==a.which&&s.find(m).trigger("focus"),t.trigger("click")}var q=" li:not(.divider):visible a",f=s.find('[role="menu"]'+q+', [role="listbox"]'+q);if(f.length){var c=f.index(f.filter(":focus"));38==a.keyCode&&c>0&&c--,40==a.keyCode&&c').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",f.proxy(function(b){b.target===b.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),j&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!a){return}j?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(150):a()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){l.removeBackdrop(),a&&a()};f.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(150):i()}else{a&&a()}}},h.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},h.prototype.setScrollbar=function(){var b=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",b+this.scrollbarWidth)},h.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},h.prototype.measureScrollbar=function(){var d=document.createElement("div");d.className="modal-scrollbar-measure",this.$body.append(d);var c=d.offsetWidth-d.clientWidth;return this.$body[0].removeChild(d),c};var g=f.fn.modal;f.fn.modal=e,f.fn.modal.Constructor=h,f.fn.modal.noConflict=function(){return f.fn.modal=g,this},f(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(k){var j=f(this),i=j.attr("href"),b=f(j.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=b.data("bs.modal")?"toggle":f.extend({remote:!/#/.test(i)&&i},b.data(),j.data());j.is("a")&&k.preventDefault(),b.one("show.bs.modal",function(c){c.isDefaultPrevented()||b.one("hidden.bs.modal",function(){j.is(":visible")&&j.trigger("focus")})}),e.call(b,a,this)})}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.tooltip"),b="object"==typeof a&&a;(c||"destroy"!=a)&&(c||i.data("bs.tooltip",c=new h(this,b)),"string"==typeof a&&c[a]())})}var h=function(d,c){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",d,c)};h.VERSION="3.2.0",h.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(a,p,o){this.enabled=!0,this.type=a,this.$element=f(p),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&f(this.options.viewport.selector||this.options.viewport);for(var n=this.options.trigger.split(" "),m=n.length;m--;){var l=n[m];if("click"==l){this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this))}else{if("manual"!=l){var k="hover"==l?"mouseenter":"focusin",j="hover"==l?"mouseleave":"focusout";this.$element.on(k+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(j+"."+this.type,this.options.selector,f.proxy(this.leave,this))}}}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(a){return a=f.extend({},this.getDefaults(),this.$element.data(),a),a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a},h.prototype.getDelegateOptions=function(){var a={},d=this.getDefaults();return this._options&&f.each(this._options,function(b,c){d[b]!=c&&(a[b]=c)}),a},h.prototype.enter=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),clearTimeout(d.timeout),d.hoverState="in",d.options.delay&&d.options.delay.show?void (d.timeout=setTimeout(function(){"in"==d.hoverState&&d.show()},d.options.delay.show)):d.show()},h.prototype.leave=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),clearTimeout(d.timeout),d.hoverState="out",d.options.delay&&d.options.delay.hide?void (d.timeout=setTimeout(function(){"out"==d.hoverState&&d.hide()},d.options.delay.hide)):d.hide()},h.prototype.show=function(){var F=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(F);var E=f.contains(document.documentElement,this.$element[0]);if(F.isDefaultPrevented()||!E){return}var D=this,C=this.tip(),B=this.getUID(this.type);this.setContent(),C.attr("id",B),this.$element.attr("aria-describedby",B),this.options.animation&&C.addClass("fade");var A="function"==typeof this.options.placement?this.options.placement.call(this,C[0],this.$element[0]):this.options.placement,z=/\s?auto?\s?/i,y=z.test(A);y&&(A=A.replace(z,"")||"top"),C.detach().css({top:0,left:0,display:"block"}).addClass(A).data("bs."+this.type,this),this.options.container?C.appendTo(this.options.container):C.insertAfter(this.$element);var x=this.getPosition(),w=C[0].offsetWidth,v=C[0].offsetHeight;if(y){var u=A,t=this.$element.parent(),s=this.getPosition(t);A="bottom"==A&&x.top+x.height+v-s.scroll>s.height?"top":"top"==A&&x.top-s.scroll-v<0?"bottom":"right"==A&&x.right+w>s.width?"left":"left"==A&&x.left-wp.top+p.height&&(r.top=p.top+p.height-n)}else{var m=u.left-q,l=u.left+q+t;mp.width&&(r.left=p.left+p.width-l)}return r},h.prototype.getTitle=function(){var i,d=this.$element,j=this.options;return i=d.attr("data-original-title")||("function"==typeof j.title?j.title.call(d[0]):j.title)},h.prototype.getUID=function(b){do{b+=~~(1000000*Math.random())}while(document.getElementById(b));return b},h.prototype.tip=function(){return this.$tip=this.$tip||f(this.options.template)},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(a){var d=this;a&&(d=f(a.currentTarget).data("bs."+this.type),d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d))),d.tip().hasClass("in")?d.leave(d):d.enter(d)},h.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var g=f.fn.tooltip;f.fn.tooltip=e,f.fn.tooltip.Constructor=h,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=g,this}}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.popover"),b="object"==typeof a&&a;(c||"destroy"!=a)&&(c||i.data("bs.popover",c=new h(this,b)),"string"==typeof a&&c[a]())})}var h=function(d,c){this.init("popover",d,c)};if(!f.fn.tooltip){throw new Error("Popover requires tooltip.js")}h.VERSION="3.2.0",h.DEFAULTS=f.extend({},f.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),h.prototype=f.extend({},f.fn.tooltip.Constructor.prototype),h.prototype.constructor=h,h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.setContent=function(){var i=this.tip(),d=this.getTitle(),j=this.getContent();i.find(".popover-title")[this.options.html?"html":"text"](d),i.find(".popover-content").empty()[this.options.html?"string"==typeof j?"html":"append":"text"](j),i.removeClass("fade top bottom left right in"),i.find(".popover-title").html()||i.find(".popover-title").hide()},h.prototype.hasContent=function(){return this.getTitle()||this.getContent()},h.prototype.getContent=function(){var d=this.$element,c=this.options;return d.attr("data-content")||("function"==typeof c.content?c.content.call(d[0]):c.content)},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},h.prototype.tip=function(){return this.$tip||(this.$tip=f(this.options.template)),this.$tip};var g=f.fn.popover;f.fn.popover=e,f.fn.popover.Constructor=h,f.fn.popover.noConflict=function(){return f.fn.popover=g,this}}(jQuery),+function(f){function e(i,b){var a=f.proxy(this.process,this);this.$body=f("body"),this.$scrollElement=f(f(i).is("body")?window:i),this.options=f.extend({},e.DEFAULTS,b),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),this.refresh(),this.process()}function h(a){return this.each(function(){var i=f(this),c=i.data("bs.scrollspy"),b="object"==typeof a&&a;c||i.data("bs.scrollspy",c=new e(this,b)),"string"==typeof a&&c[a]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var a="offset",j=0;f.isWindow(this.$scrollElement[0])||(a="position",j=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var k=f(this),c=k.data("target")||k.attr("href"),b=/^#./.test(c)&&f(c);return b&&b.length&&b.is(":visible")&&[[b[a]().top+j,c]]||null}).sort(function(d,c){return d[0]-c[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},e.prototype.process=function(){var j,i=this.$scrollElement.scrollTop()+this.options.offset,o=this.getScrollHeight(),n=this.options.offset+o-this.$scrollElement.height(),m=this.offsets,l=this.targets,k=this.activeTarget;if(this.scrollHeight!=o&&this.refresh(),i>=n){return k!=(j=l[l.length-1])&&this.activate(j)}if(k&&i<=m[0]){return k!=(j=l[0])&&this.activate(j)}for(j=m.length;j--;){k!=l[j]&&i>=m[j]&&(!m[j+1]||i<=m[j+1])&&this.activate(l[j])}},e.prototype.activate=function(a){this.activeTarget=a,f(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var j=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',i=f(j).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")};var g=f.fn.scrollspy;f.fn.scrollspy=h,f.fn.scrollspy.Constructor=e,f.fn.scrollspy.noConflict=function(){return f.fn.scrollspy=g,this},f(window).on("load.bs.scrollspy.data-api",function(){f('[data-spy="scroll"]').each(function(){var a=f(this);h.call(a,a.data())})})}(jQuery),+function(f){function e(a){return this.each(function(){var c=f(this),b=c.data("bs.tab");b||c.data("bs.tab",b=new h(this)),"string"==typeof a&&b[a]()})}var h=function(a){this.element=f(a)};h.VERSION="3.2.0",h.prototype.show=function(){var a=this.element,m=a.closest("ul:not(.dropdown-menu)"),l=a.data("target");if(l||(l=a.attr("href"),l=l&&l.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var k=m.find(".active:last a")[0],j=f.Event("show.bs.tab",{relatedTarget:k});if(a.trigger(j),!j.isDefaultPrevented()){var i=f(l);this.activate(a.closest("li"),m),this.activate(i,i.parent(),function(){a.trigger({type:"shown.bs.tab",relatedTarget:k})})}}},h.prototype.activate=function(a,m,l){function k(){j.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),a.addClass("active"),i?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu")&&a.closest("li.dropdown").addClass("active"),l&&l()}var j=m.find("> .active"),i=l&&f.support.transition&&j.hasClass("fade");i?j.one("bsTransitionEnd",k).emulateTransitionEnd(150):k(),j.removeClass("in")};var g=f.fn.tab;f.fn.tab=e,f.fn.tab.Constructor=h,f.fn.tab.noConflict=function(){return f.fn.tab=g,this},f(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(a){a.preventDefault(),e.call(f(this),"show")})}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.affix"),b="object"==typeof a&&a;c||i.data("bs.affix",c=new h(this,b)),"string"==typeof a&&c[a]()})}var h=function(a,c){this.options=f.extend({},h.DEFAULTS,c),this.$target=f(this.options.target).on("scroll.bs.affix.data-api",f.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",f.proxy(this.checkPositionWithEventLoop,this)),this.$element=f(a),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};h.VERSION="3.2.0",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(h.RESET).addClass("affix");var d=this.$target.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-d},h.prototype.checkPositionWithEventLoop=function(){setTimeout(f.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=f(document).height(),q=this.$target.scrollTop(),p=this.$element.offset(),o=this.options.offset,n=o.top,m=o.bottom;"object"!=typeof o&&(m=n=o),"function"==typeof n&&(n=o.top(this.$element)),"function"==typeof m&&(m=o.bottom(this.$element));var l=null!=this.unpin&&q+this.unpin<=p.top?!1:null!=m&&p.top+this.$element.height()>=r-m?"bottom":null!=n&&n>=q?"top":!1;if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var c="affix"+(l?"-"+l:""),a=f.Event(c+".bs.affix");this.$element.trigger(a),a.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(c).trigger(f.Event(c.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:r-this.$element.height()-m}))}}};var g=f.fn.affix;f.fn.affix=e,f.fn.affix.Constructor=h,f.fn.affix.noConflict=function(){return f.fn.affix=g,this},f(window).on("load",function(){f('[data-spy="affix"]').each(function(){var b=f(this),a=b.data();a.offset=a.offset||{},a.offsetBottom&&(a.offset.bottom=a.offsetBottom),a.offsetTop&&(a.offset.top=a.offsetTop),e.call(b,a)})})}(jQuery);