if(!jQuery)throw new Error("Bootstrap requires jQuery");!function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,o=this;i(this).one(i.support.transition.end,function(){e=!0});return setTimeout(function(){e||i(o).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var o in e)if(void 0!==t.style[o])return{end:e[o]}}()})}(window.jQuery),function(s){"use strict";function i(t){s(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';i.prototype.close=function(t){var e=s(this),o=e.attr("data-target");o=o||(o=e.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"");var i=s(o);function n(){i.trigger("closed.bs.alert").remove()}t&&t.preventDefault(),i.length||(i=e.hasClass("alert")?e:e.parent()),i.trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),s.support.transition&&i.hasClass("fade")?i.one(s.support.transition.end,n).emulateTransitionEnd(150):n())};var t=s.fn.alert;s.fn.alert=function(o){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new i(this)),"string"==typeof o&&e[o].call(t)})},s.fn.alert.Constructor=i,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,i.prototype.close)}(window.jQuery),function(n){"use strict";var s=function(t,e){this.$element=n(t),this.options=n.extend({},s.DEFAULTS,e)};s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(t){var e="disabled",o=this.$element,i=o.is("input")?"val":"html",n=o.data();t+="Text",n.resetText||o.data("resetText",o[i]()),o[i](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?o.addClass(e).attr(e,e):o.removeClass(e).removeAttr(e)},0)},s.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]');t.length&&"radio"===this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change").prop("type")&&t.find(".active").removeClass("active");this.$element.toggleClass("active")};var t=n.fn.button;n.fn.button=function(i){return this.each(function(){var t=n(this),e=t.data("bs.button"),o="object"==typeof i&&i;e||t.data("bs.button",e=new s(this,o)),"toggle"==i?e.toggle():i&&e.setState(i)})},n.fn.button.Constructor=s,n.fn.button.noConflict=function(){return n.fn.button=t,this},n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var e=n(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle"),t.preventDefault()})}(window.jQuery),function(h){"use strict";var n=function(t,e){this.$element=h(t),this.options=h.extend({},n.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=h(this.options.parent)),this.options.toggle&&this.toggle()};n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=h.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.$parent&&this.$parent.find("> .panel > .in");if(e&&e.length){var o=e.data("bs.collapse");if(o&&o.transitioning)return;e.collapse("hide"),o||e.data("bs.collapse",null)}var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1;var n=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!h.support.transition)return n.call(this);var s=h.camelCase(["scroll",i].join("-"));this.$element.one(h.support.transition.end,h.proxy(n,this)).emulateTransitionEnd(350)[i](this.$element[0][s])}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=h.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!h.support.transition)return o.call(this);this.$element[e](0).one(h.support.transition.end,h.proxy(o,this)).emulateTransitionEnd(350)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var t=h.fn.collapse;h.fn.collapse=function(i){return this.each(function(){var t=h(this),e=t.data("bs.collapse"),o=h.extend({},n.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.collapse",e=new n(this,o)),"string"==typeof i&&e[i]()})},h.fn.collapse.Constructor=n,h.fn.collapse.noConflict=function(){return h.fn.collapse=t,this},h(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,o=h(this),i=o.attr("data-target")||t.preventDefault()||(e=o.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),n=h(i),s=n.data("bs.collapse"),a=s?"toggle":o.data(),r=o.attr("data-parent"),l=r&&h(r);s&&s.transitioning||(l&&l.find('[data-toggle=collapse][data-parent="'+r+'"]').not(o).addClass("collapsed"),o[n.hasClass("in")?"addClass":"removeClass"]("collapsed")),n.collapse(a)})}(window.jQuery),function(a){"use strict";function i(t){a(t).on("click.bs.dropdown",this.toggle)}var r="[data-toggle=dropdown]";function n(){a(".dropdown-backdrop").remove(),a(r).each(function(t){var e=l(a(this));e.hasClass("open")&&(e.trigger(t=a.Event("hide.bs.dropdown")),t.isDefaultPrevented()||e.removeClass("open").trigger("hidden.bs.dropdown"))})}function l(t){var e=t.attr("data-target"),o=(e=e||(e=t.attr("href"))&&/#/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&a(e);return o&&o.length?o:t.parent()}i.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var o=l(e),i=o.hasClass("open");if(n(),!i){if("ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&a(''}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),o=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](o),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},s.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};var t=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var t=n(this),e=t.data("bs.popover"),o="object"==typeof i&&i;e||t.data("bs.popover",e=new s(this,o)),"string"==typeof i&&e[i]()})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(window.jQuery),function(s){"use strict";function n(t,e){var o,i=s.proxy(this.process,this);this.$element=s(t).is("body")?s(window):s(t),this.$body=s("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",i),this.options=s.extend({},n.DEFAULTS,e),this.selector=(this.options.target||(o=s(t).attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=s([]),this.targets=s([]),this.activeTarget=null,this.refresh(),this.process()}n.DEFAULTS={offset:10},n.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position";this.offsets=s([]),this.targets=s([]);var n=this;this.$body.find(this.selector).map(function(){var t=s(this),e=t.data("target")||t.attr("href"),o=/^#\w/.test(e)&&s(e);return o&&o.length&&[[o[i]().top+(!s.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,o=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),i=this.offsets,n=this.targets,s=this.activeTarget;if(o<=e)return s!=(t=n.last()[0])&&this.activate(t);for(t=i.length;t--;)s!=n[t]&&e>=i[t]&&(!i[t+1]||e<=i[t+1])&&this.activate(n[t])},n.prototype.activate=function(t){this.activeTarget=t,s(this.selector).parents(".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',o=s(e).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate")};var t=s.fn.scrollspy;s.fn.scrollspy=function(i){return this.each(function(){var t=s(this),e=t.data("bs.scrollspy"),o="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new n(this,o)),"string"==typeof i&&e[i]()})},s.fn.scrollspy.Constructor=n,s.fn.scrollspy.noConflict=function(){return s.fn.scrollspy=t,this},s(window).on("load",function(){s('[data-spy="scroll"]').each(function(){var t=s(this);t.scrollspy(t.data())})})}(window.jQuery),function(a){"use strict";function i(t){this.element=a(t)}i.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),o=t.attr("data-target");if(o=o||(o=t.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""),!t.parent("li").hasClass("active")){var i=e.find(".active:last a")[0],n=a.Event("show.bs.tab",{relatedTarget:i});if(t.trigger(n),!n.isDefaultPrevented()){var s=a(o);this.activate(t.parent("li"),e),this.activate(s,s.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:i})})}}},i.prototype.activate=function(t,e,o){var i=e.find("> .active"),n=o&&a.support.transition&&i.hasClass("fade");function s(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),o&&o()}n?i.one(a.support.transition.end,s).emulateTransitionEnd(150):s(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=function(o){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new i(this)),"string"==typeof o&&e[o]()})},a.fn.tab.Constructor=i,a.fn.tab.noConflict=function(){return a.fn.tab=t,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),a(this).tab("show")})}(window.jQuery),function(r){"use strict";var l=function(t,e){this.options=r.extend({},l.DEFAULTS,e),this.$window=r(window).on("scroll.bs.affix.data-api",r.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",r.proxy(this.checkPositionWithEventLoop,this)),this.$element=r(t),this.affixed=this.unpin=null,this.checkPosition()};l.RESET="affix affix-top affix-bottom",l.DEFAULTS={offset:0},l.prototype.checkPositionWithEventLoop=function(){setTimeout(r.proxy(this.checkPosition,this),1)},l.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=r(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),i=this.options.offset,n=i.top,s=i.bottom;"object"!=typeof i&&(s=n=i),"function"==typeof n&&(n=i.top()),"function"==typeof s&&(s=i.bottom());var a=!(null!=this.unpin&&e+this.unpin<=o.top)&&(null!=s&&o.top+this.$element.height()>=t-s?"bottom":null!=n&&e<=n&&"top");this.affixed!==a&&(this.unpin&&this.$element.css("top",""),this.affixed=a,this.unpin="bottom"==a?o.top-e:null,this.$element.removeClass(l.RESET).addClass("affix"+(a?"-"+a:"")),"bottom"==a&&this.$element.offset({top:document.body.offsetHeight-s-this.$element.height()}))}};var t=r.fn.affix;r.fn.affix=function(i){return this.each(function(){var t=r(this),e=t.data("bs.affix"),o="object"==typeof i&&i;e||t.data("bs.affix",e=new l(this,o)),"string"==typeof i&&e[i]()})},r.fn.affix.Constructor=l,r.fn.affix.noConflict=function(){return r.fn.affix=t,this},r(window).on("load",function(){r('[data-spy="affix"]').each(function(){var t=r(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),t.affix(e)})})}(window.jQuery);