/*!
* Bootstrap.js by @fat & @mdo
* Copyright 2013 Twitter, Inc.
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
!function(t){"use strict";var e="[data-toggle=dropdown]",o=function(e){var o=t(e).on("click.dropdown.data-api",this.toggle);t("html").on("click.dropdown.data-api",function(){o.parent().removeClass("open")})};function n(){t(".dropdown-backdrop").remove(),t(e).each(function(){i(t(this)).removeClass("open")})}function i(e){var o,n=e.attr("data-target");return n||(n=(n=e.attr("href"))&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),(o=n&&1').insertBefore(t(this)).on("click",n),o.toggleClass("open")),s.focus(),!1},keydown:function(o){var n,a,s,d,r;if(/(38|40|27)/.test(o.keyCode)&&(n=t(this),o.preventDefault(),o.stopPropagation(),!n.is(".disabled, :disabled"))){if(!(d=(s=i(n)).hasClass("open"))||d&&27==o.keyCode)return 27==o.which&&s.find(e).focus(),n.click();(a=t("[role=menu] li:not(.divider):visible a",s)).length&&(r=a.index(a.filter(":focus")),38==o.keyCode&&r>0&&r--,40==o.keyCode&&r').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?this.$element[0].focus.bind(this.$element[0]):this.hide.bind(this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one("transitionend",e):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),this.$element.hasClass("fade")?this.$backdrop.one("transitionend",e):e()):e&&e()}};t.fn.modal;t.fn.modal=function(o){return this.each(function(){var n=t(this),i=n.data("modal"),a=t.extend({},t.fn.modal.defaults,n.data(),"object"==typeof o&&o);i||n.data("modal",i=new e(this,a)),"string"==typeof o?i[o]():a.show&&i.show()})},t.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},t.fn.modal.Constructor=e,t(document).on("click.modal.data-api",'[data-toggle="modal"]',function(e){var o=t(this),n=o.attr("href"),i=t(o.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),a=i.data("modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},i.data(),o.data());e.preventDefault(),i.modal(a).one("hide",function(){o.focus()})})}(window.jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype={constructor:e,show:function(){var e,o,n,i=this.element,a=i.closest("ul:not(.dropdown-menu)"),s=i.attr("data-target");s||(s=(s=i.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),i.parent("li").hasClass("active")||(e=a.find(".active:last a")[0],n=t.Event("show",{relatedTarget:e}),i.trigger(n),n.isDefaultPrevented()||(o=t(s),this.activate(i.parent("li"),a),this.activate(o,o.parent(),function(){i.trigger({type:"shown",relatedTarget:e})})))},activate:function(t,e,o){var n=e.find("> .active"),i=o&&n.hasClass("fade");function a(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),i?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),o&&o()}i?n.one("transitionend",a):a(),n.removeClass("in")}};t.fn.tab;t.fn.tab=function(o){return this.each(function(){var n=t(this),i=n.data("tab");i||n.data("tab",i=new e(this)),"string"==typeof o&&i[o]()})},t.fn.tab.Constructor=e,t(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(window.jQuery);