!function(e){"use strict";e(function(){var t;e.support.transition=(t=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return i[t]}())&&{end:t}})}(window.jQuery),function(o){"use strict";var e='[data-dismiss="alert"]',s=function(t){o(t).on("click",e,this.close)};s.prototype.close=function(t){var e,i=o(this),s=i.attr("data-target");function n(){e.trigger("closed").remove()}s||(s=(s=i.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),e=o(s),t&&t.preventDefault(),e.length||(e=i.hasClass("alert")?i:i.parent()),e.trigger(t=o.Event("close")),t.isDefaultPrevented()||(e.removeClass("in"),o.support.transition&&e.hasClass("fade")?e.on(o.support.transition.end,n):n())},o.fn.alert=function(i){return this.each(function(){var t=o(this),e=t.data("alert");e||t.data("alert",e=new s(this)),"string"==typeof i&&e[i].call(t)})},o.fn.alert.Constructor=s,o(document).on("click.alert.data-api",e,s.prototype.close)}(window.jQuery),function(n){"use strict";var o=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.button.defaults,e)};o.prototype.setState=function(t){var e="disabled",i=this.$element,s=i.data(),n=i.is("input")?"val":"html";t+="Text",s.resetText||i.data("resetText",i[n]()),i[n](s[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},o.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")},n.fn.button=function(s){return this.each(function(){var t=n(this),e=t.data("button"),i="object"==typeof s&&s;e||t.data("button",e=new o(this,i)),"toggle"==s?e.toggle():s&&e.setState(s)})},n.fn.button.defaults={loadingText:"loading..."},n.fn.button.Constructor=o,n(document).on("click.button.data-api","[data-toggle^=button]",function(t){var e=n(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle")})}(window.jQuery),function(l){"use strict";var o=function(t,e){this.$element=l(t),this.options=e,this.options.slide&&this.slide(this.options.slide),"hover"==this.options.pause&&this.$element.on("mouseenter",l.proxy(this.pause,this)).on("mouseleave",l.proxy(this.cycle,this))};o.prototype={cycle:function(t){return t||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(l.proxy(this.next,this),this.options.interval)),this},to:function(t){var e=this.$element.find(".item.active"),i=e.parent().children(),s=i.index(e),n=this;if(!(t>i.length-1||t<0))return this.sliding?this.$element.one("slid",function(){n.to(t)}):s==t?this.pause().cycle():this.slide(s .accordion-group > .in"))&&i.length){if((s=i.data("collapse"))&&s.transitioning)return;i.collapse("hide"),s||i.data("collapse",null)}this.$element[t](0),this.transition("addClass",o.Event("show"),"shown"),o.support.transition&&this.$element[t](this.$element[0][e])}},hide:function(){var t;this.transitioning||(t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",o.Event("hide"),"hidden"),this.$element[t](0))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(t,e,i){var s=this,n=function(){"show"==e.type&&s.reset(),s.transitioning=0,s.$element.trigger(i)};this.$element.trigger(e),e.isDefaultPrevented()||(this.transitioning=1,this.$element[t]("in"),o.support.transition&&this.$element.hasClass("collapse")?this.$element.one(o.support.transition.end,n):n())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},o.fn.collapse=function(s){return this.each(function(){var t=o(this),e=t.data("collapse"),i="object"==typeof s&&s;e||t.data("collapse",e=new n(this,i)),"string"==typeof s&&e[s]()})},o.fn.collapse.defaults={toggle:!0},o.fn.collapse.Constructor=n,o(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var e,i=o(this),s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),n=o(s).data("collapse")?"toggle":i.data();i[o(s).hasClass("in")?"addClass":"removeClass"]("collapsed"),o(s).collapse(n)})}(window.jQuery),function(a){"use strict";var t="[data-toggle=dropdown]",s=function(t){var e=a(t).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){e.parent().removeClass("open")})};function n(){a(t).each(function(){r(a(this)).removeClass("open")})}function r(t){var e,i=t.attr("data-target");return i||(i=(i=t.attr("href"))&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),(e=a(i)).length||(e=t.parent()),e}s.prototype={constructor:s,toggle:function(t){var e,i,s=a(this);if(!s.is(".disabled, :disabled"))return i=(e=r(s)).hasClass("open"),n(),i||(e.toggleClass("open"),s.focus()),!1},keydown:function(t){var e,i,s,n,o;if(/(38|40|27)/.test(t.keyCode)&&(e=a(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(!(n=(s=r(e)).hasClass("open"))||n&&27==t.keyCode)return e.click();(i=a("[role=menu] li:not(.divider) a",s)).length&&(o=i.index(i.filter(":focus")),38==t.keyCode&&0').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?o.proxy(this.$element[0].focus,this.$element[0]):o.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(o.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(o.support.transition.end,o.proxy(this.removeBackdrop,this)):this.removeBackdrop()):t&&t()}},o.fn.modal=function(s){return this.each(function(){var t=o(this),e=t.data("modal"),i=o.extend({},o.fn.modal.defaults,t.data(),"object"==typeof s&&s);e||t.data("modal",e=new n(this,i)),"string"==typeof s?e[s]():i.show&&e.show()})},o.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},o.fn.modal.Constructor=n,o(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),i=e.attr("href"),s=o(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),n=s.data("modal")?"toggle":o.extend({remote:!/#/.test(i)&&i},s.data(),e.data());t.preventDefault(),s.modal(n).one("hide",function(){e.focus()})})}(window.jQuery),function(o){"use strict";var n=function(t,e){this.init("tooltip",t,e)};n.prototype={constructor:n,init:function(t,e,i){var s,n;this.type=t,this.$element=o(e),this.options=this.getOptions(i),this.enabled=!0,"click"==this.options.trigger?this.$element.on("click."+this.type,this.options.selector,o.proxy(this.toggle,this)):"manual"!=this.options.trigger&&(s="hover"==this.options.trigger?"mouseenter":"focus",n="hover"==this.options.trigger?"mouseleave":"blur",this.$element.on(s+"."+this.type,this.options.selector,o.proxy(this.enter,this)),this.$element.on(n+"."+this.type,this.options.selector,o.proxy(this.leave,this))),this.options.selector?this._options=o.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return(t=o.extend({},o.fn[this.type].defaults,t,this.$element.data())).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var e=o(t.currentTarget)[this.type](this._options).data(this.type);if(!e.options.delay||!e.options.delay.show)return e.show();clearTimeout(this.timeout),e.hoverState="in",this.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},leave:function(t){var e=o(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!e.options.delay||!e.options.delay.hide)return e.hide();e.hoverState="out",this.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},show:function(){var t,e,i,s,n,o,a;if(this.hasContent()&&this.enabled){switch(t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,e=/in/.test(o),t.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element),i=this.getPosition(e),s=t[0].offsetWidth,n=t[0].offsetHeight,e?o.split(" ")[1]:o){case"bottom":a={top:i.top+i.height,left:i.left+i.width/2-s/2};break;case"top":a={top:i.top-n,left:i.left+i.width/2-s/2};break;case"left":a={top:i.top+i.height/2-n/2,left:i.left-s};break;case"right":a={top:i.top+i.height/2-n/2,left:i.left+i.width}}t.offset(a).addClass(o).addClass("in")}},setContent:function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},hide:function(){var t,e=this.tip();return e.removeClass("in"),o.support.transition&&this.$tip.hasClass("fade")?(t=setTimeout(function(){e.off(o.support.transition.end).detach()},500),e.one(o.support.transition.end,function(){clearTimeout(t),e.detach()})):e.detach(),this},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(t){return o.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},tip:function(){return this.$tip=this.$tip||o(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var e=o(t.currentTarget)[this.type](this._options).data(this.type);e[e.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}},o.fn.tooltip=function(s){return this.each(function(){var t=o(this),e=t.data("tooltip"),i="object"==typeof s&&s;e||t.data("tooltip",e=new n(this,i)),"string"==typeof s&&e[s]()})},o.fn.tooltip.Constructor=n,o.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover",title:"",delay:0,html:!1}}(window.jQuery),function(n){"use strict";var o=function(t,e){this.init("popover",t,e)};o.prototype=n.extend({},n.fn.tooltip.Constructor.prototype,{constructor:o,setContent:function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content > *")[this.options.html?"html":"text"](i),t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},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)},tip:function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}}),n.fn.popover=function(s){return this.each(function(){var t=n(this),e=t.data("popover"),i="object"==typeof s&&s;e||t.data("popover",e=new o(this,i)),"string"==typeof s&&e[s]()})},n.fn.popover.Constructor=o,n.fn.popover.defaults=n.extend({},n.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

'})}(window.jQuery),function(o){"use strict";function n(t,e){var i,s=o.proxy(this.process,this),n=o(t).is("body")?o(window):o(t);this.options=o.extend({},o.fn.scrollspy.defaults,e),this.$scrollElement=n.on("scroll.scroll-spy.data-api",s),this.selector=(this.options.target||(i=o(t).attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=o("body"),this.refresh(),this.process()}n.prototype={constructor:n,refresh:function(){var t=this;this.offsets=o([]),this.targets=o([]),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),i=/^#\w/.test(e)&&o(e);return i&&i.length&&[[i.position().top,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),s=this.offsets,n=this.targets,o=this.activeTarget;if(i<=e)return o!=(t=n.last()[0])&&this.activate(t);for(t=s.length;t--;)o!=n[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(n[t])},activate:function(t){var e,i;this.activeTarget=t,o(this.selector).parent(".active").removeClass("active"),i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',(e=o(i).parent("li").addClass("active")).parent(".dropdown-menu").length&&(e=e.closest("li.dropdown").addClass("active")),e.trigger("activate")}},o.fn.scrollspy=function(s){return this.each(function(){var t=o(this),e=t.data("scrollspy"),i="object"==typeof s&&s;e||t.data("scrollspy",e=new n(this,i)),"string"==typeof s&&e[s]()})},o.fn.scrollspy.Constructor=n,o.fn.scrollspy.defaults={offset:10},o(window).on("load",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);t.scrollspy(t.data())})})}(window.jQuery),function(a){"use strict";var s=function(t){this.element=a(t)};s.prototype={constructor:s,show:function(){var t,e,i,s=this.element,n=s.closest("ul:not(.dropdown-menu)"),o=s.attr("data-target");o||(o=(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),s.parent("li").hasClass("active")||(t=n.find(".active:last a")[0],i=a.Event("show",{relatedTarget:t}),s.trigger(i),i.isDefaultPrevented()||(e=a(o),this.activate(s.parent("li"),n),this.activate(e,e.parent(),function(){s.trigger({type:"shown",relatedTarget:t})})))},activate:function(t,e,i){var s=e.find("> .active"),n=i&&a.support.transition&&s.hasClass("fade");function o(){s.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"),i&&i()}n?s.one(a.support.transition.end,o):o(),s.removeClass("in")}},a.fn.tab=function(i){return this.each(function(){var t=a(this),e=t.data("tab");e||t.data("tab",e=new s(this)),"string"==typeof i&&e[i]()})},a.fn.tab.Constructor=s,a(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),a(this).tab("show")})}(window.jQuery),function(n){"use strict";var o=function(t,e){this.$element=n(t),this.options=n.extend({},n.fn.typeahead.defaults,e),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=n(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};o.prototype={constructor:o,select:function(){var t=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(t)).change(),this.hide()},updater:function(t){return t},show:function(){var t=n.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:t.top+t.height,left:t.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var e;return this.query=this.$element.val(),!this.query||this.query.length"+e+""})},render:function(t){var i=this;return(t=n(t).map(function(t,e){return(t=n(i.options.item).attr("data-value",e)).find("a").html(i.highlighter(e)),t[0]})).first().addClass("active"),this.$menu.html(t),this},next:function(t){var e=this.$menu.find(".active").removeClass("active").next();e.length||(e=n(this.$menu.find("li")[0])),e.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();e.length||(e=this.$menu.find("li").last()),e.addClass("active")},listen:function(){this.$element.on("blur",n.proxy(this.blur,this)).on("keypress",n.proxy(this.keypress,this)).on("keyup",n.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",n.proxy(this.keydown,this)),this.$menu.on("click",n.proxy(this.click,this)).on("mouseenter","li",n.proxy(this.mouseenter,this))},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(t){this.suppressKeyPressRepeat=!~n.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}t.stopPropagation(),t.preventDefault()},blur:function(t){var e=this;setTimeout(function(){e.hide()},150)},click:function(t){t.stopPropagation(),t.preventDefault(),this.select()},mouseenter:function(t){this.$menu.find(".active").removeClass("active"),n(t.currentTarget).addClass("active")}},n.fn.typeahead=function(s){return this.each(function(){var t=n(this),e=t.data("typeahead"),i="object"==typeof s&&s;e||t.data("typeahead",e=new o(this,i)),"string"==typeof s&&e[s]()})},n.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1},n.fn.typeahead.Constructor=o,n(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var e=n(this);e.data("typeahead")||(t.preventDefault(),e.typeahead(e.data()))})}(window.jQuery),function(r){"use strict";var n=function(t,e){this.options=r.extend({},r.fn.affix.defaults,e),this.$window=r(window).on("scroll.affix.data-api",r.proxy(this.checkPosition,this)).on("click.affix.data-api",r.proxy(function(){setTimeout(r.proxy(this.checkPosition,this),1)},this)),this.$element=r(t),this.checkPosition()};n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t,e=r(document).height(),i=this.$window.scrollTop(),s=this.$element.offset(),n=this.options.offset,o=n.bottom,a=n.top;"object"!=typeof n&&(o=a=n),"function"==typeof a&&(a=n.top()),"function"==typeof o&&(o=n.bottom()),t=!(null!=this.unpin&&i+this.unpin<=s.top)&&(null!=o&&s.top+this.$element.height()>=e-o?"bottom":null!=a&&i<=a&&"top"),this.affixed!==t&&(this.affixed=t,this.unpin="bottom"==t?s.top-i:null,this.$element.removeClass("affix affix-top affix-bottom").addClass("affix"+(t?"-"+t:"")))}},r.fn.affix=function(s){return this.each(function(){var t=r(this),e=t.data("affix"),i="object"==typeof s&&s;e||t.data("affix",e=new n(this,i)),"string"==typeof s&&e[s]()})},r.fn.affix.Constructor=n,r.fn.affix.defaults={offset:0},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);