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('
').insertAfter(a(this)).on("click",n),o.trigger(t=a.Event("show.bs.dropdown")),t.isDefaultPrevented())return;o.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},i.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var o=l(e),i=o.hasClass("open");if(!i||i&&27==t.keyCode)return 27==t.which&&o.find(r).focus(),e.click();var n=a("[role=menu] li:not(.divider):visible a",o);if(n.length){var s=n.index(n.filter(":focus"));38==t.keyCode&&0').appendTo(document.body),this.$element.on("click.dismiss.modal",s.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one(s.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(s.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var t=s.fn.modal;s.fn.modal=function(i,n){return this.each(function(){var t=s(this),e=t.data("bs.modal"),o=s.extend({},a.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new a(this,o)),"string"==typeof i?e[i](n):o.show&&e.show(n)})},s.fn.modal.Constructor=a,s.fn.modal.noConflict=function(){return s.fn.modal=t,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=s(this),o=e.attr("href"),i=s(e.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),n=i.data("modal")?"toggle":s.extend({remote:!/#/.test(o)&&o},i.data(),e.data());t.preventDefault(),i.modal(n,this).one("hide",function(){e.is(":visible")&&e.focus()})}),s(document).on("show.bs.modal",".modal",function(){s(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){s(document.body).removeClass("modal-open")})}(window.jQuery),function(m){"use strict";function n(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)}n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},n.prototype.init=function(t,e,o){this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(o);for(var i=this.options.trigger.split(" "),n=i.length;n--;){var s=i[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focus",r="hover"==s?"mouseleave":"blur";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var o={},i=this.getDefaults();return this._options&&m.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)}),o},n.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},n.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},n.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(t),t.isDefaultPrevented())return;var e=this.tip();this.setContent(),this.options.animation&&e.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,n=i.test(o);n&&(o=o.replace(i,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(o),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element);var s=this.getPosition(),a=e[0].offsetWidth,r=e[0].offsetHeight;if(n){var l=this.$element.parent(),h=o,p=document.documentElement.scrollTop||document.body.scrollTop,d="body"==this.options.container?window.innerWidth:l.outerWidth(),f="body"==this.options.container?window.innerHeight:l.outerHeight(),c="body"==this.options.container?0:l.offset().left;o="bottom"==o&&s.top+s.height+r-p>f?"top":"top"==o&&s.top-p-r<0?"bottom":"right"==o&&s.right+a>d?"left":"left"==o&&s.left-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);