/*
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
if("undefined"==typeof jQuery){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(c){var d=c.fn.jquery.split(" ")[0].split(".");if(d[0]<2&&d[1]<9||1==d[0]&&9==d[1]&&d[2]<1||d[0]>3){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}}(jQuery),+function(c){function d(){var e=document.createElement("bootstrap"),f={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var g in f){if(void 0!==e.style[g]){return{end:f[g]}}}return !1}c.fn.emulateTransitionEnd=function(a){var f=!1,g=this;c(this).one("bsTransitionEnd",function(){f=!0});var h=function(){f||c(g).trigger(c.support.transition.end)};return setTimeout(h,a),this},c(function(){c.support.transition=d(),c.support.transition&&(c.event.special.bsTransitionEnd={bindType:c.support.transition.end,delegateType:c.support.transition.end,handle:function(a){if(c(a.target).is(this)){return a.handleObj.handler.apply(this,arguments)}}})})}(jQuery),+function(f){function g(a){return this.each(function(){var b=f(this),d=b.data("bs.alert");d||b.data("bs.alert",d=new i(this)),"string"==typeof a&&d[a].call(b)})}var h='[data-dismiss="alert"]',i=function(a){f(a).on("click",h,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(a){function d(){m.detach().trigger("closed.bs.alert").remove()}var k=f(this),l=k.attr("data-target");l||(l=k.attr("href"),l=l&&l.replace(/.*(?=#[^\s]*$)/,""));var m=f("#"===l?[]:l);a&&a.preventDefault(),m.length||(m=k.closest(".alert")),m.trigger(a=f.Event("close.bs.alert")),a.isDefaultPrevented()||(m.removeClass("in"),f.support.transition&&m.hasClass("fade")?m.one("bsTransitionEnd",d).emulateTransitionEnd(i.TRANSITION_DURATION):d())};var j=f.fn.alert;f.fn.alert=g,f.fn.alert.Constructor=i,f.fn.alert.noConflict=function(){return f.fn.alert=j,this},f(document).on("click.bs.alert.data-api",h,i.prototype.close)}(jQuery),+function(e){function f(a){return this.each(function(){var b=e(this),c=b.data("bs.button"),i="object"==typeof a&&a;c||b.data("bs.button",c=new g(this,i)),"toggle"==a?c.toggle():a&&c.setState(a)})}var g=function(a,c){this.$element=e(a),this.options=e.extend({},g.DEFAULTS,c),this.isLoading=!1};g.VERSION="3.3.7",g.DEFAULTS={loadingText:"loading..."},g.prototype.setState=function(a){var i="disabled",j=this.$element,k=j.is("input")?"val":"html",l=j.data();a+="Text",null==l.resetText&&j.data("resetText",j[k]()),setTimeout(e.proxy(function(){j[k](null==l[a]?this.options[a]:l[a]),"loadingText"==a?(this.isLoading=!0,j.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,j.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},g.prototype.toggle=function(){var d=!0,i=this.$element.closest('[data-toggle="buttons"]');if(i.length){var j=this.$element.find("input");"radio"==j.prop("type")?(j.prop("checked")&&(d=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==j.prop("type")&&(j.prop("checked")!==this.$element.hasClass("active")&&(d=!1),this.$element.toggleClass("active")),j.prop("checked",this.$element.hasClass("active")),d&&j.trigger("change")}else{this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")}};var h=e.fn.button;e.fn.button=f,e.fn.button.Constructor=g,e.fn.button.noConflict=function(){return e.fn.button=h,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(a){var b=e(a.target).closest(".btn");f.call(b,"toggle"),e(a.target).is('input[type="radio"], input[type="checkbox"]')||(a.preventDefault(),b.is("input,button")?b.trigger("focus"):b.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(a){e(a.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(a.type))})}(jQuery),+function(f){function g(a){return this.each(function(){var b=f(this),c=b.data("bs.carousel"),k=f.extend({},h.DEFAULTS,b.data(),"object"==typeof a&&a),l="string"==typeof a?a:k.slide;c||b.data("bs.carousel",c=new h(this,k)),"number"==typeof a?c.to(a):l?c[l]():k.interval&&c.pause().cycle()})}var h=function(a,d){this.$element=f(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=d,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",f.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",f.proxy(this.pause,this)).on("mouseleave.bs.carousel",f.proxy(this.cycle,this))};h.VERSION="3.3.7",h.TRANSITION_DURATION=600,h.DEFAULTS={interval:5000,pause:"hover",wrap:!0,keyboard:!0},h.prototype.keydown=function(b){if(!/input|textarea/i.test(b.target.tagName)){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.getItemForDirection=function(k,l){var m=this.getItemIndex(l),n="prev"==k&&0===m||"next"==k&&m==this.$items.length-1;if(n&&!this.options.wrap){return l}var o="prev"==k?-1:1,p=(m+o)%this.$items.length;return this.$items.eq(p)},h.prototype.to=function(d){var e=this,k=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(d>this.$items.length-1||d<0)){return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(d)}):k==d?this.pause().cycle():this.slide(d>k?"next":"prev",this.$items.eq(d))}},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(){if(!this.sliding){return this.slide("next")}},h.prototype.prev=function(){if(!this.sliding){return this.slide("prev")}},h.prototype.slide=function(a,c){var n=this.$element.find(".item.active"),o=c||this.getItemForDirection(a,n),p=this.interval,q="next"==a?"left":"right",r=this;if(o.hasClass("active")){return this.sliding=!1}var s=o[0],t=f.Event("slide.bs.carousel",{relatedTarget:s,direction:q});if(this.$element.trigger(t),!t.isDefaultPrevented()){if(this.sliding=!0,p&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=f(this.$indicators.children()[this.getItemIndex(o)]);u&&u.addClass("active")}var v=f.Event("slid.bs.carousel",{relatedTarget:s,direction:q});return f.support.transition&&this.$element.hasClass("slide")?(o.addClass(a),o[0].offsetWidth,n.addClass(q),o.addClass(q),n.one("bsTransitionEnd",function(){o.removeClass([a,q].join(" ")).addClass("active"),n.removeClass(["active",q].join(" ")),r.sliding=!1,setTimeout(function(){r.$element.trigger(v)},0)}).emulateTransitionEnd(h.TRANSITION_DURATION)):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(v)),p&&this.cycle(),this}};var i=f.fn.carousel;f.fn.carousel=g,f.fn.carousel.Constructor=h,f.fn.carousel.noConflict=function(){return f.fn.carousel=i,this};var j=function(a){var b,k=f(this),l=f(k.attr("data-target")||(b=k.attr("href"))&&b.replace(/.*(?=#[^\s]+$)/,""));if(l.hasClass("carousel")){var m=f.extend({},l.data(),k.data()),n=k.attr("data-slide-to");n&&(m.interval=!1),g.call(l,m),n&&l.data("bs.carousel").to(n),a.preventDefault()}};f(document).on("click.bs.carousel.data-api","[data-slide]",j).on("click.bs.carousel.data-api","[data-slide-to]",j),f(window).on("load",function(){f('[data-ride="carousel"]').each(function(){var a=f(this);g.call(a,a.data())})})}(jQuery),+function(f){function g(a){var e,k=a.attr("data-target")||(e=a.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return f(k)}function h(a){return this.each(function(){var b=f(this),d=b.data("bs.collapse"),k=f.extend({},i.DEFAULTS,b.data(),"object"==typeof a&&a);!d&&k.toggle&&/show|hide/.test(a)&&(k.toggle=!1),d||b.data("bs.collapse",d=new i(this,k)),"string"==typeof a&&d[a]()})}var i=function(a,d){this.$element=f(a),this.options=f.extend({},i.DEFAULTS,d),this.$trigger=f('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var b=this.$element.hasClass("width");return b?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a,c=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(c&&c.length&&(a=c.data("bs.collapse"),a&&a.transitioning))){var d=f.Event("show.bs.collapse");if(this.$element.trigger(d),!d.isDefaultPrevented()){c&&c.length&&(h.call(c,"hide"),a||c.data("bs.collapse",null));var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var l=function(){this.$element.removeClass("collapsing").addClass("collapse in")[k](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!f.support.transition){return l.call(this)}var m=f.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",f.proxy(l,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[k](this.$element[0][m])}}}},i.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 d=this.dimension();this.$element[d](this.$element[d]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var k=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return f.support.transition?void this.$element[d](0).one("bsTransitionEnd",f.proxy(k,this)).emulateTransitionEnd(i.TRANSITION_DURATION):k.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return f(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(f.proxy(function(a,b){var k=f(b);this.addAriaAndCollapsedClass(g(k),k)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(d,e){var k=d.hasClass("in");d.attr("aria-expanded",k),e.toggleClass("collapsed",!k).attr("aria-expanded",k)};var j=f.fn.collapse;f.fn.collapse=h,f.fn.collapse.Constructor=i,f.fn.collapse.noConflict=function(){return f.fn.collapse=j,this},f(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(a){var b=f(this);b.attr("data-target")||a.preventDefault();var c=g(b),k=c.data("bs.collapse"),l=k?"toggle":b.data();h.call(c,l)})}(jQuery),+function(i){function j(a){var e=a.attr("data-target");e||(e=a.attr("href"),e=e&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var f=e&&i(e);return f&&f.length?f:a.parent()}function k(a){a&&3===a.which||(i(m).remove(),i(n).each(function(){var b=i(this),c=j(b),g={relatedTarget:this};c.hasClass("open")&&(a&&"click"==a.type&&/input|textarea/i.test(a.target.tagName)&&i.contains(c[0],a.target)||(c.trigger(a=i.Event("hide.bs.dropdown",g)),a.isDefaultPrevented()||(b.attr("aria-expanded","false"),c.removeClass("open").trigger(i.Event("hidden.bs.dropdown",g)))))}))}function l(a){return this.each(function(){var b=i(this),e=b.data("bs.dropdown");e||b.data("bs.dropdown",e=new o(this)),"string"==typeof a&&e[a].call(b)})}var m=".dropdown-backdrop",n='[data-toggle="dropdown"]',o=function(a){i(a).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.7",o.prototype.toggle=function(a){var b=i(this);if(!b.is(".disabled, :disabled")){var c=j(b),q=c.hasClass("open");if(k(),!q){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&i(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(i(this)).on("click",k);var r={relatedTarget:this};if(c.trigger(a=i.Event("show.bs.dropdown",r)),a.isDefaultPrevented()){return}b.trigger("focus").attr("aria-expanded","true"),c.toggleClass("open").trigger(i.Event("shown.bs.dropdown",r))}return !1}},o.prototype.keydown=function(a){if(/(38|40|27|32)/.test(a.which)&&!/input|textarea/i.test(a.target.tagName)){var b=i(this);if(a.preventDefault(),a.stopPropagation(),!b.is(".disabled, :disabled")){var f=j(b),q=f.hasClass("open");if(!q&&27!=a.which||q&&27==a.which){return 27==a.which&&f.find(n).trigger("focus"),b.trigger("click")}var r=" li:not(.disabled):visible a",s=f.find(".dropdown-menu"+r);if(s.length){var t=s.index(a.target);38==a.which&&t>0&&t--,40==a.which&&t<s.length-1&&t++,~t||(t=0),s.eq(t).trigger("focus")}}}};var p=i.fn.dropdown;i.fn.dropdown=l,i.fn.dropdown.Constructor=o,i.fn.dropdown.noConflict=function(){return i.fn.dropdown=p,this},i(document).on("click.bs.dropdown.data-api",k).on("click.bs.dropdown.data-api",".dropdown form",function(b){b.stopPropagation()}).on("click.bs.dropdown.data-api",n,o.prototype.toggle).on("keydown.bs.dropdown.data-api",n,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),+function(e){function f(a,c){return this.each(function(){var b=e(this),d=b.data("bs.modal"),i=e.extend({},g.DEFAULTS,b.data(),"object"==typeof a&&a);d||b.data("bs.modal",d=new g(this,i)),"string"==typeof a?d[a](c):i.show&&d.show(c)})}var g=function(a,d){this.options=d,this.$body=e(document.body),this.$element=e(a),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,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};g.VERSION="3.3.7",g.TRANSITION_DURATION=300,g.BACKDROP_TRANSITION_DURATION=150,g.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},g.prototype.toggle=function(b){return this.isShown?this.hide():this.show(b)},g.prototype.show=function(a){var c=this,i=e.Event("show.bs.modal",{relatedTarget:a});this.$element.trigger(i),this.isShown||i.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"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){c.$element.one("mouseup.dismiss.bs.modal",function(d){e(d.target).is(c.$element)&&(c.ignoreBackdropClick=!0)})}),this.backdrop(function(){var b=e.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(c.$body),c.$element.show().scrollTop(0),c.adjustDialog(),b&&c.$element[0].offsetWidth,c.$element.addClass("in"),c.enforceFocus();var d=e.Event("shown.bs.modal",{relatedTarget:a});b?c.$dialog.one("bsTransitionEnd",function(){c.$element.trigger("focus").trigger(d)}).emulateTransitionEnd(g.TRANSITION_DURATION):c.$element.trigger("focus").trigger(d)}))},g.prototype.hide=function(a){a&&a.preventDefault(),a=e.Event("hide.bs.modal"),this.$element.trigger(a),this.isShown&&!a.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(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"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(g.TRANSITION_DURATION):this.hideModal())},g.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(b){document===b.target||this.$element[0]===b.target||this.$element.has(b.target).length||this.$element.trigger("focus")},this))},g.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(b){27==b.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},g.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},g.prototype.hideModal=function(){var b=this;this.$element.hide(),this.backdrop(function(){b.$body.removeClass("modal-open"),b.resetAdjustments(),b.resetScrollbar(),b.$element.trigger("hidden.bs.modal")})},g.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},g.prototype.backdrop=function(a){var c=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var j=e.support.transition&&i;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(b){return this.ignoreBackdropClick?void (this.ignoreBackdropClick=!1):void (b.target===b.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),j&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!a){return}j?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(g.BACKDROP_TRANSITION_DURATION):a()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var k=function(){c.removeBackdrop(),a&&a()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",k).emulateTransitionEnd(g.BACKDROP_TRANSITION_DURATION):k()}else{a&&a()}}},g.prototype.handleUpdate=function(){this.adjustDialog()},g.prototype.adjustDialog=function(){var b=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&b?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!b?this.scrollbarWidth:""})},g.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},g.prototype.checkScrollbar=function(){var c=window.innerWidth;if(!c){var d=document.documentElement.getBoundingClientRect();c=d.right-Math.abs(d.left)}this.bodyIsOverflowing=document.body.clientWidth<c,this.scrollbarWidth=this.measureScrollbar()},g.prototype.setScrollbar=function(){var b=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",b+this.scrollbarWidth)},g.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},g.prototype.measureScrollbar=function(){var c=document.createElement("div");c.className="modal-scrollbar-measure",this.$body.append(c);var d=c.offsetWidth-c.clientWidth;return this.$body[0].removeChild(c),d};var h=e.fn.modal;e.fn.modal=f,e.fn.modal.Constructor=g,e.fn.modal.noConflict=function(){return e.fn.modal=h,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(a){var b=e(this),i=b.attr("href"),j=e(b.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),k=j.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},j.data(),b.data());b.is("a")&&a.preventDefault(),j.one("show.bs.modal",function(c){c.isDefaultPrevented()||j.one("hidden.bs.modal",function(){b.is(":visible")&&b.trigger("focus")})}),f.call(j,k,this)})}(jQuery),+function(e){function f(a){return this.each(function(){var b=e(this),c=b.data("bs.tooltip"),i="object"==typeof a&&a;!c&&/destroy|hide/.test(a)||(c||b.data("bs.tooltip",c=new g(this,i)),"string"==typeof a&&c[a]())})}var g=function(c,d){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",c,d)};g.VERSION="3.3.7",g.TRANSITION_DURATION=150,g.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}},g.prototype.init=function(a,j,k){if(this.enabled=!0,this.type=a,this.$element=e(j),this.options=this.getOptions(k),this.$viewport=this.options.viewport&&e(e.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(var l=this.options.trigger.split(" "),m=l.length;m--;){var n=l[m];if("click"==n){this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this))}else{if("manual"!=n){var o="hover"==n?"mouseenter":"focusin",p="hover"==n?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(p+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(a){return a=e.extend({},this.getDefaults(),this.$element.data(),a),a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a},g.prototype.getDelegateOptions=function(){var a={},d=this.getDefaults();return this._options&&e.each(this._options,function(b,c){d[b]!=c&&(a[b]=c)}),a},g.prototype.enter=function(a){var d=a instanceof this.constructor?a:e(a.currentTarget).data("bs."+this.type);return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),e(a.currentTarget).data("bs."+this.type,d)),a instanceof e.Event&&(d.inState["focusin"==a.type?"focus":"hover"]=!0),d.tip().hasClass("in")||"in"==d.hoverState?void (d.hoverState="in"):(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())},g.prototype.isInStateTrue=function(){for(var b in this.inState){if(this.inState[b]){return !0}}return !1},g.prototype.leave=function(a){var d=a instanceof this.constructor?a:e(a.currentTarget).data("bs."+this.type);if(d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),e(a.currentTarget).data("bs."+this.type,d)),a instanceof e.Event&&(d.inState["focusout"==a.type?"focus":"hover"]=!1),!d.isInStateTrue()){return 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()}},g.prototype.show=function(){var a=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(a);var c=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(a.isDefaultPrevented()||!c){return}var r=this,s=this.tip(),t=this.getUID(this.type);this.setContent(),s.attr("id",t),this.$element.attr("aria-describedby",t),this.options.animation&&s.addClass("fade");var u="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,w=v.test(u);w&&(u=u.replace(v,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(u).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var x=this.getPosition(),y=s[0].offsetWidth,z=s[0].offsetHeight;if(w){var A=u,B=this.getPosition(this.$viewport);u="bottom"==u&&x.bottom+z>B.bottom?"top":"top"==u&&x.top-z<B.top?"bottom":"right"==u&&x.right+y>B.width?"left":"left"==u&&x.left-y<B.left?"right":u,s.removeClass(A).addClass(u)}var C=this.getCalculatedOffset(u,x,y,z);this.applyPlacement(C,u);var D=function(){var b=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==b&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",D).emulateTransitionEnd(g.TRANSITION_DURATION):D()}},g.prototype.applyPlacement=function(a,o){var p=this.tip(),q=p[0].offsetWidth,r=p[0].offsetHeight,s=parseInt(p.css("margin-top"),10),t=parseInt(p.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(t)&&(t=0),a.top+=s,a.left+=t,e.offset.setOffset(p[0],e.extend({using:function(b){p.css({top:Math.round(b.top),left:Math.round(b.left)})}},a),0),p.addClass("in");var u=p[0].offsetWidth,v=p[0].offsetHeight;"top"==o&&v!=r&&(a.top=a.top+r-v);var w=this.getViewportAdjustedDelta(o,a,u,v);w.left?a.left+=w.left:a.top+=w.top;var x=/top|bottom/.test(o),y=x?2*w.left-q+u:2*w.top-r+v,z=x?"offsetWidth":"offsetHeight";p.offset(a),this.replaceArrow(y,p[0][z],x)},g.prototype.replaceArrow=function(d,i,j){this.arrow().css(j?"left":"top",50*(1-d/i)+"%").css(j?"top":"left","")},g.prototype.setContent=function(){var c=this.tip(),d=this.getTitle();c.find(".tooltip-inner")[this.options.html?"html":"text"](d),c.removeClass("fade in top bottom left right")},g.prototype.hide=function(a){function c(){"in"!=i.hoverState&&j.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),a&&a()}var i=this,j=e(this.$tip),k=e.Event("hide.bs."+this.type);if(this.$element.trigger(k),!k.isDefaultPrevented()){return j.removeClass("in"),e.support.transition&&j.hasClass("fade")?j.one("bsTransitionEnd",c).emulateTransitionEnd(g.TRANSITION_DURATION):c(),this.hoverState=null,this}},g.prototype.fixTitle=function(){var b=this.$element;(b.attr("title")||"string"!=typeof b.attr("data-original-title"))&&b.attr("data-original-title",b.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(a){a=a||this.$element;var j=a[0],k="BODY"==j.tagName,l=j.getBoundingClientRect();null==l.width&&(l=e.extend({},l,{width:l.right-l.left,height:l.bottom-l.top}));var m=window.SVGElement&&j instanceof window.SVGElement,n=k?{top:0,left:0}:m?null:a.offset(),o={scroll:k?document.documentElement.scrollTop||document.body.scrollTop:a.scrollTop()},p=k?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},l,o,p,n)},g.prototype.getCalculatedOffset=function(i,j,k,l){return"bottom"==i?{top:j.top+j.height,left:j.left+j.width/2-k/2}:"top"==i?{top:j.top-l,left:j.left+j.width/2-k/2}:"left"==i?{top:j.top+j.height/2-l/2,left:j.left-k}:{top:j.top+j.height/2-l/2,left:j.left+j.width}},g.prototype.getViewportAdjustedDelta=function(l,m,n,o){var p={top:0,left:0};if(!this.$viewport){return p}var q=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(l)){var s=m.top-q-r.scroll,t=m.top+q-r.scroll+o;s<r.top?p.top=r.top-s:t>r.top+r.height&&(p.top=r.top+r.height-t)}else{var u=m.left-q,v=m.left+q+n;u<r.left?p.left=r.left-u:v>r.right&&(p.left=r.left+r.width-v)}return p},g.prototype.getTitle=function(){var d,i=this.$element,j=this.options;return d=i.attr("data-original-title")||("function"==typeof j.title?j.title.call(i[0]):j.title)},g.prototype.getUID=function(b){do{b+=~~(1000000*Math.random())}while(document.getElementById(b));return b},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(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},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(a){var d=this;a&&(d=e(a.currentTarget).data("bs."+this.type),d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),e(a.currentTarget).data("bs."+this.type,d))),a?(d.inState.click=!d.inState.click,d.isInStateTrue()?d.enter(d):d.leave(d)):d.tip().hasClass("in")?d.leave(d):d.enter(d)},g.prototype.destroy=function(){var b=this;clearTimeout(this.timeout),this.hide(function(){b.$element.off("."+b.type).removeData("bs."+b.type),b.$tip&&b.$tip.detach(),b.$tip=null,b.$arrow=null,b.$viewport=null,b.$element=null})};var h=e.fn.tooltip;e.fn.tooltip=f,e.fn.tooltip.Constructor=g,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=h,this}}(jQuery),+function(e){function f(a){return this.each(function(){var b=e(this),c=b.data("bs.popover"),i="object"==typeof a&&a;!c&&/destroy|hide/.test(a)||(c||b.data("bs.popover",c=new g(this,i)),"string"==typeof a&&c[a]())})}var g=function(c,d){this.init("popover",c,d)};if(!e.fn.tooltip){throw new Error("Popover requires tooltip.js")}g.VERSION="3.3.7",g.DEFAULTS=e.extend({},e.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>'}),g.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),g.prototype.constructor=g,g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.setContent=function(){var d=this.tip(),i=this.getTitle(),j=this.getContent();d.find(".popover-title")[this.options.html?"html":"text"](i),d.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof j?"html":"append":"text"](j),d.removeClass("fade top bottom left right in"),d.find(".popover-title").html()||d.find(".popover-title").hide()},g.prototype.hasContent=function(){return this.getTitle()||this.getContent()},g.prototype.getContent=function(){var c=this.$element,d=this.options;return c.attr("data-content")||("function"==typeof d.content?d.content.call(c[0]):d.content)},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var h=e.fn.popover;e.fn.popover=f,e.fn.popover.Constructor=g,e.fn.popover.noConflict=function(){return e.fn.popover=h,this}}(jQuery),+function(e){function f(a,b){this.$body=e(document.body),this.$scrollElement=e(e(a).is(document.body)?window:a),this.options=e.extend({},f.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",e.proxy(this.process,this)),this.refresh(),this.process()}function g(a){return this.each(function(){var b=e(this),c=b.data("bs.scrollspy"),i="object"==typeof a&&a;c||b.data("bs.scrollspy",c=new f(this,i)),"string"==typeof a&&c[a]()})}f.VERSION="3.3.7",f.DEFAULTS={offset:10},f.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},f.prototype.refresh=function(){var a=this,i="offset",j=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",j=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var c=e(this),d=c.data("target")||c.attr("href"),k=/^#./.test(d)&&e(d);return k&&k.length&&k.is(":visible")&&[[k[i]().top+j,d]]||null}).sort(function(c,d){return c[0]-d[0]}).each(function(){a.offsets.push(this[0]),a.targets.push(this[1])})},f.prototype.process=function(){var i,j=this.$scrollElement.scrollTop()+this.options.offset,k=this.getScrollHeight(),l=this.options.offset+k-this.$scrollElement.height(),m=this.offsets,n=this.targets,o=this.activeTarget;if(this.scrollHeight!=k&&this.refresh(),j>=l){return o!=(i=n[n.length-1])&&this.activate(i)}if(o&&j<m[0]){return this.activeTarget=null,this.clear()}for(i=m.length;i--;){o!=n[i]&&j>=m[i]&&(void 0===m[i+1]||j<m[i+1])&&this.activate(n[i])}},f.prototype.activate=function(a){this.activeTarget=a,this.clear();var i=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',j=e(i).parents("li").addClass("active");j.parent(".dropdown-menu").length&&(j=j.closest("li.dropdown").addClass("active")),j.trigger("activate.bs.scrollspy")},f.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var h=e.fn.scrollspy;e.fn.scrollspy=g,e.fn.scrollspy.Constructor=f,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=h,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var a=e(this);g.call(a,a.data())})})}(jQuery),+function(f){function g(a){return this.each(function(){var b=f(this),c=b.data("bs.tab");c||b.data("bs.tab",c=new h(this)),"string"==typeof a&&c[a]()})}var h=function(a){this.element=f(a)};h.VERSION="3.3.7",h.TRANSITION_DURATION=150,h.prototype.show=function(){var a=this.element,k=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 m=k.find(".active:last a"),n=f.Event("hide.bs.tab",{relatedTarget:a[0]}),o=f.Event("show.bs.tab",{relatedTarget:m[0]});if(m.trigger(n),a.trigger(o),!o.isDefaultPrevented()&&!n.isDefaultPrevented()){var p=f(l);this.activate(a.closest("li"),k),this.activate(p,p.parent(),function(){m.trigger({type:"hidden.bs.tab",relatedTarget:a[0]}),a.trigger({type:"shown.bs.tab",relatedTarget:m[0]})})}}},h.prototype.activate=function(a,c,k){function l(){m.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),k&&k()}var m=c.find("> .active"),n=k&&f.support.transition&&(m.length&&m.hasClass("fade")||!!c.find("> .fade").length);m.length&&n?m.one("bsTransitionEnd",l).emulateTransitionEnd(h.TRANSITION_DURATION):l(),m.removeClass("in")};var i=f.fn.tab;f.fn.tab=g,f.fn.tab.Constructor=h,f.fn.tab.noConflict=function(){return f.fn.tab=i,this};var j=function(a){a.preventDefault(),g.call(f(this),"show")};f(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',j).on("click.bs.tab.data-api",'[data-toggle="pill"]',j)}(jQuery),+function(e){function f(a){return this.each(function(){var b=e(this),c=b.data("bs.affix"),i="object"==typeof a&&a;c||b.data("bs.affix",c=new g(this,i)),"string"==typeof a&&c[a]()})}var g=function(a,c){this.options=e.extend({},g.DEFAULTS,c),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(a),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};g.VERSION="3.3.7",g.RESET="affix affix-top affix-bottom",g.DEFAULTS={offset:0,target:window},g.prototype.getState=function(k,l,m,n){var o=this.$target.scrollTop(),p=this.$element.offset(),q=this.$target.height();if(null!=m&&"top"==this.affixed){return o<m&&"top"}if("bottom"==this.affixed){return null!=m?!(o+this.unpin<=p.top)&&"bottom":!(o+q<=k-n)&&"bottom"}var r=null==this.affixed,s=r?o:p.top,t=r?q:l;return null!=m&&o<=m?"top":null!=n&&s+t>=k-n&&"bottom"},g.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(g.RESET).addClass("affix");var c=this.$target.scrollTop(),d=this.$element.offset();return this.pinnedOffset=d.top-c},g.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},g.prototype.checkPosition=function(){if(this.$element.is(":visible")){var a=this.$element.height(),c=this.options.offset,k=c.top,l=c.bottom,m=Math.max(e(document).height(),e(document.body).height());"object"!=typeof c&&(l=k=c),"function"==typeof k&&(k=c.top(this.$element)),"function"==typeof l&&(l=c.bottom(this.$element));var n=this.getState(m,a,k,l);if(this.affixed!=n){null!=this.unpin&&this.$element.css("top","");var o="affix"+(n?"-"+n:""),p=e.Event(o+".bs.affix");if(this.$element.trigger(p),p.isDefaultPrevented()){return}this.affixed=n,this.unpin="bottom"==n?this.getPinnedOffset():null,this.$element.removeClass(g.RESET).addClass(o).trigger(o.replace("affix","affixed")+".bs.affix")}"bottom"==n&&this.$element.offset({top:m-a-l})}};var h=e.fn.affix;e.fn.affix=f,e.fn.affix.Constructor=g,e.fn.affix.noConflict=function(){return e.fn.affix=h,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var a=e(this),b=a.data();b.offset=b.offset||{},null!=b.offsetBottom&&(b.offset.bottom=b.offsetBottom),null!=b.offsetTop&&(b.offset.top=b.offsetTop),f.call(a,b)})})}(jQuery);!function(a,b){var c=a();a.fn.dropdownHover=function(d){return"ontouchstart" in document?this:(c=c.add(this.parent()),this.each(function(){function n(){g.parents(".navbar").find(".navbar-toggle").is(":visible")||(b.clearTimeout(e),b.clearTimeout(k),k=b.setTimeout(function(){c.find(":focus").blur(),q.instantlyCloseOthers===!0&&c.removeClass("open"),b.clearTimeout(k),g.attr("aria-expanded","true"),o.addClass("open"),g.trigger(j)},q.hoverDelay))}var e,k,g=a(this),o=g.parent(),p={delay:500,hoverDelay:0,instantlyCloseOthers:!0},m={delay:a(this).data("delay"),hoverDelay:a(this).data("hover-delay"),instantlyCloseOthers:a(this).data("close-others")},j="show.bs.dropdown",f="hide.bs.dropdown",q=a.extend(!0,{},p,d,m);o.hover(function(h){return o.hasClass("open")||g.is(h.target)?void n(h):!0},function(){b.clearTimeout(k),e=b.setTimeout(function(){g.attr("aria-expanded","false"),o.removeClass("open"),g.trigger(f)},q.delay)}),g.hover(function(h){return o.hasClass("open")||o.is(h.target)?void n(h):!0}),o.find(".dropdown-submenu").each(function(){var h,i=a(this);i.hover(function(){b.clearTimeout(h),i.children(".dropdown-menu").show(),i.siblings().children(".dropdown-menu").hide()},function(){var l=i.children(".dropdown-menu");h=b.setTimeout(function(){l.hide()},q.delay)})})}))},a(document).ready(function(){a('[data-hover="dropdown"]').dropdownHover()})}(jQuery,window);