/*! * bootstrap.js by @fat & @mdo * copyright 2012 twitter, inc. * http://www.apache.org/licenses/license-2.0.txt */ !function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createelement("bootstrap"),t={webkittransition:"webkittransitionend",moztransition:"transitionend",otransition:"otransitionend otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jquery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventdefault(),i.length||(i=n.hasclass("alert")?n:n.parent()),i.trigger(t=e.event("close"));if(t.isdefaultprevented())return;i.removeclass("in"),e.support.transition&&i.hasclass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.constructor=n,e.fn.alert.noconflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jquery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setstate=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="text",r.resettext||n.data("resettext",n[i]()),n[i](r[e]||this.options[e]),settimeout(function(){e=="loadingtext"?n.addclass(t).attr(t,t):n.removeclass(t).removeattr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeclass("active"),this.$element.toggleclass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setstate(n)})},e.fn.button.defaults={loadingtext:"loading..."},e.fn.button.constructor=t,e.fn.button.noconflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasclass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jquery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearinterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setinterval(e.proxy(this.next,this),this.options.interval)),this},getactiveindex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getactiveindex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearinterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.event("slide",{relatedtarget:i[0],direction:o});if(i.hasclass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeclass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getactiveindex()]);t&&t.addclass("active")}));if(e.support.transition&&this.$element.hasclass("slide")){this.$element.trigger(f);if(f.isdefaultprevented())return;i.addclass(t),i[0].offsetwidth,r.addclass(o),i.addclass(o),this.$element.one(e.support.transition.end,function(){i.removeclass([t,o].join(" ")).addclass("active"),r.removeclass(["active",o].join(" ")),a.sliding=!1,settimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isdefaultprevented())return;r.removeclass("active"),i.addclass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.constructor=t,e.fn.carousel.noconflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("carousel").pause().to(o).cycle(),t.preventdefault()})}(window.jquery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasclass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasclass("in"))return;t=this.dimension(),n=e.camelcase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addclass",e.event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasclass("in"))return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeclass",e.event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeclass("collapse")[t](e||"auto")[0].offsetwidth,this.$element[e!==null?"addclass":"removeclass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isdefaultprevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasclass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasclass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.constructor=t,e.fn.collapse.noconflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventdefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasclass("in")?"addclass":"removeclass"]("collapsed"),e(i).collapse(s)})}(window.jquery),!function(e){"use strict";function r(){e(t).each(function(){i(e(this)).removeclass("open")})}function i(t){var n=t.attr("data-target"),r;n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeclass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasclass("open"),r(),o||s.toggleclass("open"),n.focus(),!1},keydown:function(n){var r,s,o,u,a,f;if(!/(38|40|27)/.test(n.keycode))return;r=e(this),n.preventdefault(),n.stoppropagation();if(r.is(".disabled, :disabled"))return;u=i(r),a=u.hasclass("open");if(!a||a&&n.keycode==27)return n.which==27&&u.find(t).focus(),r.click();s=e("[role=menu] li:not(.divider):visible a",u);if(!s.length)return;f=s.index(s.filter(":focus")),n.keycode==38&&f>0&&f--,n.keycode==40&&f').appendto(document.body),this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetwidth,this.$backdrop.addclass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isshown&&this.$backdrop?(this.$backdrop.removeclass("in"),e.support.transition&&this.$element.hasclass("fade")?this.$backdrop.one(e.support.transition.end,t):t()):t&&t()}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.constructor=t,e.fn.modal.noconflict=function(){return e.fn.modal=n,this},e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventdefault(),i.modal(s).one("hide",function(){n.focus()})})}(window.jquery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s,o,u,a;this.type=t,this.$element=e(n),this.options=this.getoptions(r),this.enabled=!0,o=this.options.trigger.split(" ");for(a=o.length;a--;)u=o[a],u=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):u!="manual"&&(i=u=="hover"?"mouseenter":"focus",s=u=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixtitle()},getoptions:function(t){return t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e.fn[this.type].defaults,r={},i;this._options&&e.each(this._options,function(e,t){n[e]!=t&&(r[e]=t)},this),i=e(t.currenttarget)[this.type](r).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();cleartimeout(this.timeout),i.hoverstate="in",this.timeout=settimeout(function(){i.hoverstate=="in"&&i.show()},i.options.delay.show)},leave:function(t){var n=e(t.currenttarget)[this.type](this._options).data(this.type);this.timeout&&cleartimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverstate="out",this.timeout=settimeout(function(){n.hoverstate=="out"&&n.hide()},n.options.delay.hide)},show:function(){var t,n,r,i,s,o,u=e.event("show");if(this.hascontent()&&this.enabled){this.$element.trigger(u);if(u.isdefaultprevented())return;t=this.tip(),this.setcontent(),this.options.animation&&t.addclass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendto(this.options.container):t.insertafter(this.$element),n=this.getposition(),r=t[0].offsetwidth,i=t[0].offsetheight;switch(s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}this.applyplacement(o,s),this.$element.trigger("shown")}},applyplacement:function(e,t){var n=this.tip(),r=n[0].offsetwidth,i=n[0].offsetheight,s,o,u,a;n.offset(e).addclass(t).addclass("in"),s=n[0].offsetwidth,o=n[0].offsetheight,t=="top"&&o!=i&&(e.top=e.top+i-o,a=!0),t=="bottom"||t=="top"?(u=0,e.left<0&&(u=e.left*-2,e.left=0,n.offset(e),s=n[0].offsetwidth,o=n[0].offsetheight),this.replacearrow(u-r+s,s,"left")):this.replacearrow(o-i,o,"top"),a&&n.offset(e)},replacearrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setcontent:function(){var e=this.tip(),t=this.gettitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeclass("fade in top bottom left right")},hide:function(){function i(){var t=settimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){cleartimeout(t),n.detach()})}var t=this,n=this.tip(),r=e.event("hide");this.$element.trigger(r);if(r.isdefaultprevented())return;return n.removeclass("in"),e.support.transition&&this.$tip.hasclass("fade")?i():n.detach(),this.$element.trigger("hidden"),this},fixtitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},hascontent:function(){return this.gettitle()},getposition:function(){var t=this.$element[0];return e.extend({},typeof t.getboundingclientrect=="function"?t.getboundingclientrect():{width:t.offsetwidth,height:t.offsetheight},this.$element.offset())},gettitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},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 n=t?e(t.currenttarget)[this.type](this._options).data(this.type):this;n.tip().hasclass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removedata(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noconflict=function(){return e.fn.tooltip=n,this}}(window.jquery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.constructor.prototype,{constructor:t,setcontent:function(){var e=this.tip(),t=this.gettitle(),n=this.getcontent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeclass("fade top bottom left right in")},hascontent:function(){return this.gettitle()||this.getcontent()},getcontent:function(){var e,t=this.$element,n=this.options;return e=(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content"),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removedata(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

'}),e.fn.popover.noconflict=function(){return e.fn.popover=n,this}}(window.jquery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollelement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.iswindow(t.$scrollelement.get(0))&&t.$scrollelement.scrolltop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollelement.scrolltop()+this.options.offset,t=this.$scrollelement[0].scrollheight||this.$body[0].scrollheight,n=t-this.$scrollelement.height(),r=this.offsets,i=this.targets,s=this.activetarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activetarget=t,e(this.selector).parent(".active").removeclass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addclass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addclass("active")),n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.constructor=t,e.fn.scrollspy.defaults={offset:10},e.fn.scrollspy.noconflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jquery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasclass("active"))return;i=n.find(".active:last a")[0],o=e.event("show",{relatedtarget:i}),t.trigger(o);if(o.isdefaultprevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedtarget:i})})},activate:function(t,n,r){function o(){i.removeclass("active").find("> .dropdown-menu > .active").removeclass("active"),t.addclass("active"),s?(t[0].offsetwidth,t.addclass("in")):t.removeclass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addclass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasclass("fade");s?i.one(e.support.transition.end,o):o(),i.removeclass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.constructor=t,e.fn.tab.noconflict=function(){return e.fn.tab=n,this},e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventdefault(),e(this).tab("show")})}(window.jquery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),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.source=this.options.source,this.$menu=e(this.options.menu),this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetheight});return this.$menu.insertafter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length"+t+""})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addclass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeclass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addclass("active")},prev:function(e){var t=this.$menu.find(".active").removeclass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addclass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventsupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventsupported:function(e){var t=e in this.$element;return t||(this.$element.setattribute(e,"return;"),t=typeof this.$element[e]=="function"),t},move:function(e){if(!this.shown)return;switch(e.keycode){case 9:case 13:case 27:e.preventdefault();break;case 38:e.preventdefault(),this.prev();break;case 40:e.preventdefault(),this.next()}e.stoppropagation()},keydown:function(t){this.suppresskeypressrepeat=~e.inarray(t.keycode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppresskeypressrepeat)return;this.move(e)},keyup:function(e){switch(e.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()}e.stoppropagation(),e.preventdefault()},focus:function(e){this.focused=!0},blur:function(e){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(e){e.stoppropagation(),e.preventdefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeclass("active"),e(t.currenttarget).addclass("active")},mouseleave:function(e){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minlength:1},e.fn.typeahead.constructor=t,e.fn.typeahead.noconflict=function(){return e.fn.typeahead=n,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})}(window.jquery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkposition,this)).on("click.affix.data-api",e.proxy(function(){settimeout(e.proxy(this.checkposition,this),1)},this)),this.$element=e(t),this.checkposition()};t.prototype.checkposition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrolltop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeclass(u).addclass("affix"+(a?"-"+a:""))};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.constructor=t,e.fn.affix.defaults={offset:0},e.fn.affix.noconflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetbottom&&(n.offset.bottom=n.offsetbottom),n.offsettop&&(n.offset.top=n.offsettop),t.affix(n)})})}(window.jquery);