/*! * bootstrap v3.3.5 (http://getbootstrap.com) * copyright 2011-2015 twitter, inc. * licensed under the mit license */ ;if(typeof jquery==="undefined"){throw new error("bootstrap's javascript requires jquery")}+function(b){var a=b.fn.jquery.split(" ")[0].split(".");if((a[0]<2&&a[1]<9)||(a[0]==1&&a[1]==9&&a[2]<1)){throw new error("bootstrap's javascript requires jquery version 1.9.1 or higher")}}(jquery);+function(b){function a(){var e=document.createelement("bootstrap");var d={webkittransition:"webkittransitionend",moztransition:"transitionend",otransition:"otransitionend otransitionend",transition:"transitionend"};for(var c in d){if(e.style[c]!==undefined){return{end:d[c]}}}return false}b.fn.emulatetransitionend=function(e){var d=false;var c=this;b(this).one("bstransitionend",function(){d=true});var f=function(){if(!d){b(c).trigger(b.support.transition.end)}};settimeout(f,e);return this};b(function(){b.support.transition=a();if(!b.support.transition){return}b.event.special.bstransitionend={bindtype:b.support.transition.end,delegatetype:b.support.transition.end,handle:function(c){if(b(c.target).is(this)){return c.handleobj.handler.apply(this,arguments)}}}})}(jquery);+function(e){var d='[data-dismiss="alert"]';var b=function(f){e(f).on("click",d,this.close)};b.version="3.3.5";b.transition_duration=150;b.prototype.close=function(j){var i=e(this);var g=i.attr("data-target");if(!g){g=i.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}var h=e(g);if(j){j.preventdefault()}if(!h.length){h=i.closest(".alert")}h.trigger(j=e.event("close.bs.alert"));if(j.isdefaultprevented()){return}h.removeclass("in");function f(){h.detach().trigger("closed.bs.alert").remove()}e.support.transition&&h.hasclass("fade")?h.one("bstransitionend",f).emulatetransitionend(b.transition_duration):f()};function c(f){return this.each(function(){var h=e(this);var g=h.data("bs.alert");if(!g){h.data("bs.alert",(g=new b(this)))}if(typeof f=="string"){g[f].call(h)}})}var a=e.fn.alert;e.fn.alert=c;e.fn.alert.constructor=b;e.fn.alert.noconflict=function(){e.fn.alert=a;return this};e(document).on("click.bs.alert.data-api",d,b.prototype.close)}(jquery);+function(d){var b=function(f,e){this.$element=d(f);this.options=d.extend({},b.defaults,e);this.isloading=false};b.version="3.3.5";b.defaults={loadingtext:"loading..."};b.prototype.setstate=function(g){var i="disabled";var e=this.$element;var h=e.is("input")?"val":"html";var f=e.data();g+="text";if(f.resettext==null){e.data("resettext",e[h]())}settimeout(d.proxy(function(){e[h](f[g]==null?this.options[g]:f[g]);if(g=="loadingtext"){this.isloading=true;e.addclass(i).attr(i,i)}else{if(this.isloading){this.isloading=false;e.removeclass(i).removeattr(i)}}},this),0)};b.prototype.toggle=function(){var f=true;var e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var g=this.$element.find("input");if(g.prop("type")=="radio"){if(g.prop("checked")){f=false}e.find(".active").removeclass("active");this.$element.addclass("active")}else{if(g.prop("type")=="checkbox"){if((g.prop("checked"))!==this.$element.hasclass("active")){f=false}this.$element.toggleclass("active")}}g.prop("checked",this.$element.hasclass("active"));if(f){g.trigger("change")}}else{this.$element.attr("aria-pressed",!this.$element.hasclass("active"));this.$element.toggleclass("active")}};function c(e){return this.each(function(){var h=d(this);var g=h.data("bs.button");var f=typeof e=="object"&&e;if(!g){h.data("bs.button",(g=new b(this,f)))}if(e=="toggle"){g.toggle()}else{if(e){g.setstate(e)}}})}var a=d.fn.button;d.fn.button=c;d.fn.button.constructor=b;d.fn.button.noconflict=function(){d.fn.button=a;return this};d(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(g){var f=d(g.target);if(!f.hasclass("btn")){f=f.closest(".btn")}c.call(f,"toggle");if(!(d(g.target).is('input[type="radio"]')||d(g.target).is('input[type="checkbox"]'))){g.preventdefault()}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(f){d(f.target).closest(".btn").toggleclass("focus",/^focus(in)?$/.test(f.type))})}(jquery);+function(c){var d=function(g,f){this.$element=c(g);this.$indicators=this.$element.find(".carousel-indicators");this.options=f;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this));this.options.pause=="hover"&&!("ontouchstart" in document.documentelement)&&this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))};d.version="3.3.5";d.transition_duration=600;d.defaults={interval:5000,pause:"hover",wrap:true,keyboard:true};d.prototype.keydown=function(f){if(/input|textarea/i.test(f.target.tagname)){return}switch(f.which){case 37:this.prev();break;case 39:this.next();break;default:return}f.preventdefault()};d.prototype.cycle=function(f){f||(this.paused=false);this.interval&&clearinterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setinterval(c.proxy(this.next,this),this.options.interval));return this};d.prototype.getitemindex=function(f){this.$items=f.parent().children(".item");return this.$items.index(f||this.$active)};d.prototype.getitemfordirection=function(j,i){var f=this.getitemindex(i);var g=(j=="prev"&&f===0)||(j=="next"&&f==(this.$items.length-1));if(g&&!this.options.wrap){return i}var k=j=="prev"?-1:1;var h=(f+k)%this.$items.length;return this.$items.eq(h)};d.prototype.to=function(h){var g=this;var f=this.getitemindex(this.$active=this.$element.find(".item.active"));if(h>(this.$items.length-1)||h<0){return}if(this.sliding){return this.$element.one("slid.bs.carousel",function(){g.to(h)})}if(f==h){return this.pause().cycle()}return this.slide(h>f?"next":"prev",this.$items.eq(h))};d.prototype.pause=function(f){f||(this.paused=true);if(this.$element.find(".next, .prev").length&&c.support.transition){this.$element.trigger(c.support.transition.end);this.cycle(true)}this.interval=clearinterval(this.interval);return this};d.prototype.next=function(){if(this.sliding){return}return this.slide("next")};d.prototype.prev=function(){if(this.sliding){return}return this.slide("prev")};d.prototype.slide=function(m,i){var p=this.$element.find(".item.active");var g=i||this.getitemfordirection(m,p);var k=this.interval;var n=m=="next"?"left":"right";var j=this;if(g.hasclass("active")){return(this.sliding=false)}var l=g[0];var f=c.event("slide.bs.carousel",{relatedtarget:l,direction:n});this.$element.trigger(f);if(f.isdefaultprevented()){return}this.sliding=true;k&&this.pause();if(this.$indicators.length){this.$indicators.find(".active").removeclass("active");var h=c(this.$indicators.children()[this.getitemindex(g)]);h&&h.addclass("active")}var o=c.event("slid.bs.carousel",{relatedtarget:l,direction:n});if(c.support.transition&&this.$element.hasclass("slide")){g.addclass(m);g[0].offsetwidth;p.addclass(n);g.addclass(n);p.one("bstransitionend",function(){g.removeclass([m,n].join(" ")).addclass("active");p.removeclass(["active",n].join(" "));j.sliding=false;settimeout(function(){j.$element.trigger(o)},0)}).emulatetransitionend(d.transition_duration)}else{p.removeclass("active");g.addclass("active");this.sliding=false;this.$element.trigger(o)}k&&this.cycle();return this};function b(f){return this.each(function(){var j=c(this);var i=j.data("bs.carousel");var g=c.extend({},d.defaults,j.data(),typeof f=="object"&&f);var h=typeof f=="string"?f:g.slide;if(!i){j.data("bs.carousel",(i=new d(this,g)))}if(typeof f=="number"){i.to(f)}else{if(h){i[h]()}else{if(g.interval){i.pause().cycle()}}}})}var a=c.fn.carousel;c.fn.carousel=b;c.fn.carousel.constructor=d;c.fn.carousel.noconflict=function(){c.fn.carousel=a;return this};var e=function(k){var g;var j=c(this);var f=c(j.attr("data-target")||(g=j.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,""));if(!f.hasclass("carousel")){return}var h=c.extend({},f.data(),j.data());var i=j.attr("data-slide-to");if(i){h.interval=false}b.call(f,h);if(i){f.data("bs.carousel").to(i)}k.preventdefault()};c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e);c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var f=c(this);b.call(f,f.data())})})}(jquery);+function(d){var e=function(g,f){this.$element=d(g);this.options=d.extend({},e.defaults,f);this.$trigger=d('[data-toggle="collapse"][href="#'+g.id+'"],[data-toggle="collapse"][data-target="#'+g.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getparent()}else{this.addariaandcollapsedclass(this.$element,this.$trigger)}if(this.options.toggle){this.toggle()}};e.version="3.3.5";e.transition_duration=350;e.defaults={toggle:true};e.prototype.dimension=function(){var f=this.$element.hasclass("width");return f?"width":"height"};e.prototype.show=function(){if(this.transitioning||this.$element.hasclass("in")){return}var h;var j=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(j&&j.length){h=j.data("bs.collapse");if(h&&h.transitioning){return}}var g=d.event("show.bs.collapse");this.$element.trigger(g);if(g.isdefaultprevented()){return}if(j&&j.length){b.call(j,"hide");h||j.data("bs.collapse",null)}var k=this.dimension();this.$element.removeclass("collapse").addclass("collapsing")[k](0).attr("aria-expanded",true);this.$trigger.removeclass("collapsed").attr("aria-expanded",true);this.transitioning=1;var f=function(){this.$element.removeclass("collapsing").addclass("collapse in")[k]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!d.support.transition){return f.call(this)}var i=d.camelcase(["scroll",k].join("-"));this.$element.one("bstransitionend",d.proxy(f,this)).emulatetransitionend(e.transition_duration)[k](this.$element[0][i])};e.prototype.hide=function(){if(this.transitioning||!this.$element.hasclass("in")){return}var g=d.event("hide.bs.collapse");this.$element.trigger(g);if(g.isdefaultprevented()){return}var h=this.dimension();this.$element[h](this.$element[h]())[0].offsetheight;this.$element.addclass("collapsing").removeclass("collapse in").attr("aria-expanded",false);this.$trigger.addclass("collapsed").attr("aria-expanded",false);this.transitioning=1;var f=function(){this.transitioning=0;this.$element.removeclass("collapsing").addclass("collapse").trigger("hidden.bs.collapse")};if(!d.support.transition){return f.call(this)}this.$element[h](0).one("bstransitionend",d.proxy(f,this)).emulatetransitionend(e.transition_duration)};e.prototype.toggle=function(){this[this.$element.hasclass("in")?"hide":"show"]()};e.prototype.getparent=function(){return d(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(d.proxy(function(h,g){var f=d(g);this.addariaandcollapsedclass(c(f),f)},this)).end()};e.prototype.addariaandcollapsedclass=function(g,f){var h=g.hasclass("in");g.attr("aria-expanded",h);f.toggleclass("collapsed",!h).attr("aria-expanded",h)};function c(f){var g;var h=f.attr("data-target")||(g=f.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,"");return d(h)}function b(f){return this.each(function(){var i=d(this);var h=i.data("bs.collapse");var g=d.extend({},e.defaults,i.data(),typeof f=="object"&&f);if(!h&&g.toggle&&/show|hide/.test(f)){g.toggle=false}if(!h){i.data("bs.collapse",(h=new e(this,g)))}if(typeof f=="string"){h[f]()}})}var a=d.fn.collapse;d.fn.collapse=b;d.fn.collapse.constructor=e;d.fn.collapse.noconflict=function(){d.fn.collapse=a;return this};d(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(j){var i=d(this);if(!i.attr("data-target")){j.preventdefault()}var f=c(i);var h=f.data("bs.collapse");var g=h?"toggle":i.data();b.call(f,g)})}(jquery);+function(h){var e=".dropdown-backdrop";var b='[data-toggle="dropdown"]';var a=function(i){h(i).on("click.bs.dropdown",this.toggle)};a.version="3.3.5";function f(k){var i=k.attr("data-target");if(!i){i=k.attr("href");i=i&&/#[a-za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")}var j=i&&h(i);return j&&j.length?j:k.parent()}function d(i){if(i&&i.which===3){return}h(e).remove();h(b).each(function(){var l=h(this);var k=f(l);var j={relatedtarget:this};if(!k.hasclass("open")){return}if(i&&i.type=="click"&&/input|textarea/i.test(i.target.tagname)&&h.contains(k[0],i.target)){return}k.trigger(i=h.event("hide.bs.dropdown",j));if(i.isdefaultprevented()){return}l.attr("aria-expanded","false");k.removeclass("open").trigger("hidden.bs.dropdown",j)})}a.prototype.toggle=function(m){var l=h(this);if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasclass("open");d();if(!j){if("ontouchstart" in document.documentelement&&!k.closest(".navbar-nav").length){h(document.createelement("div")).addclass("dropdown-backdrop").insertafter(h(this)).on("click",d)}var i={relatedtarget:this};k.trigger(m=h.event("show.bs.dropdown",i));if(m.isdefaultprevented()){return}l.trigger("focus").attr("aria-expanded","true");k.toggleclass("open").trigger("shown.bs.dropdown",i)}return false};a.prototype.keydown=function(m){if(!/(38|40|27|32)/.test(m.which)||/input|textarea/i.test(m.target.tagname)){return}var l=h(this);m.preventdefault();m.stoppropagation();if(l.is(".disabled, :disabled")){return}var k=f(l);var j=k.hasclass("open");if(!j&&m.which!=27||j&&m.which==27){if(m.which==27){k.find(b).trigger("focus")}return l.trigger("click")}var n=" li:not(.disabled):visible a";var o=k.find(".dropdown-menu"+n);if(!o.length){return}var i=o.index(m.target);if(m.which==38&&i>0){i--}if(m.which==40&&idocument.documentelement.clientheight;this.$element.css({paddingleft:!this.bodyisoverflowing&&e?this.scrollbarwidth:"",paddingright:this.bodyisoverflowing&&!e?this.scrollbarwidth:""})};b.prototype.resetadjustments=function(){this.$element.css({paddingleft:"",paddingright:""})};b.prototype.checkscrollbar=function(){var f=window.innerwidth;if(!f){var e=document.documentelement.getboundingclientrect();f=e.right-math.abs(e.left)}this.bodyisoverflowing=document.body.clientwidth
',trigger:"hover focus",title:"",delay:0,html:false,container:false,viewport:{selector:"body",padding:0}};c.prototype.init=function(l,j,g){this.enabled=true;this.type=l;this.$element=d(j);this.options=this.getoptions(g);this.$viewport=this.options.viewport&&d(d.isfunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport));this.instate={click:false,hover:false,focus:false};if(this.$element[0] instanceof document.constructor&&!this.options.selector){throw new error("`selector` option must be specified when initializing "+this.type+" on the window.document object!")}var k=this.options.trigger.split(" ");for(var h=k.length;h--;){var f=k[h];if(f=="click"){this.$element.on("click."+this.type,this.options.selector,d.proxy(this.toggle,this))}else{if(f!="manual"){var m=f=="hover"?"mouseenter":"focusin";var e=f=="hover"?"mouseleave":"focusout";this.$element.on(m+"."+this.type,this.options.selector,d.proxy(this.enter,this));this.$element.on(e+"."+this.type,this.options.selector,d.proxy(this.leave,this))}}}this.options.selector?(this._options=d.extend({},this.options,{trigger:"manual",selector:""})):this.fixtitle()};c.prototype.getdefaults=function(){return c.defaults};c.prototype.getoptions=function(e){e=d.extend({},this.getdefaults(),this.$element.data(),e);if(e.delay&&typeof e.delay=="number"){e.delay={show:e.delay,hide:e.delay}}return e};c.prototype.getdelegateoptions=function(){var e={};var f=this.getdefaults();this._options&&d.each(this._options,function(g,h){if(f[g]!=h){e[g]=h}});return e};c.prototype.enter=function(f){var e=f instanceof this.constructor?f:d(f.currenttarget).data("bs."+this.type);if(!e){e=new this.constructor(f.currenttarget,this.getdelegateoptions());d(f.currenttarget).data("bs."+this.type,e)}if(f instanceof d.event){e.instate[f.type=="focusin"?"focus":"hover"]=true}if(e.tip().hasclass("in")||e.hoverstate=="in"){e.hoverstate="in";return}cleartimeout(e.timeout);e.hoverstate="in";if(!e.options.delay||!e.options.delay.show){return e.show()}e.timeout=settimeout(function(){if(e.hoverstate=="in"){e.show()}},e.options.delay.show)};c.prototype.isinstatetrue=function(){for(var e in this.instate){if(this.instate[e]){return true}}return false};c.prototype.leave=function(f){var e=f instanceof this.constructor?f:d(f.currenttarget).data("bs."+this.type);if(!e){e=new this.constructor(f.currenttarget,this.getdelegateoptions());d(f.currenttarget).data("bs."+this.type,e)}if(f instanceof d.event){e.instate[f.type=="focusout"?"focus":"hover"]=false}if(e.isinstatetrue()){return}cleartimeout(e.timeout);e.hoverstate="out";if(!e.options.delay||!e.options.delay.hide){return e.hide()}e.timeout=settimeout(function(){if(e.hoverstate=="out"){e.hide()}},e.options.delay.hide)};c.prototype.show=function(){var o=d.event("show.bs."+this.type);if(this.hascontent()&&this.enabled){this.$element.trigger(o);var p=d.contains(this.$element[0].ownerdocument.documentelement,this.$element[0]);if(o.isdefaultprevented()||!p){return}var n=this;var l=this.tip();var h=this.getuid(this.type);this.setcontent();l.attr("id",h);this.$element.attr("aria-describedby",h);if(this.options.animation){l.addclass("fade")}var k=typeof this.options.placement=="function"?this.options.placement.call(this,l[0],this.$element[0]):this.options.placement;var s=/\s?auto?\s?/i;var t=s.test(k);if(t){k=k.replace(s,"")||"top"}l.detach().css({top:0,left:0,display:"block"}).addclass(k).data("bs."+this.type,this);this.options.container?l.appendto(this.options.container):l.insertafter(this.$element);this.$element.trigger("inserted.bs."+this.type);var q=this.getposition();var f=l[0].offsetwidth;var m=l[0].offsetheight;if(t){var j=k;var r=this.getposition(this.$viewport);k=k=="bottom"&&q.bottom+m>r.bottom?"top":k=="top"&&q.top-mr.width?"left":k=="left"&&q.left-fl.top+l.height){m.top=l.top+l.height-i}}}else{var o=k.left-g;var f=k.left+g+e;if(ol.right){m.left=l.left+l.width-f}}}return m};c.prototype.gettitle=function(){var g;var e=this.$element;var f=this.options;g=e.attr("data-original-title")||(typeof f.title=="function"?f.title.call(e[0]):f.title);return g};c.prototype.getuid=function(e){do{e+=~~(math.random()*1000000)}while(document.getelementbyid(e));return e};c.prototype.tip=function(){if(!this.$tip){this.$tip=d(this.options.template);if(this.$tip.length!=1){throw new error(this.type+" `template` option must consist of exactly 1 top-level element!")}}return this.$tip};c.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow"))};c.prototype.enable=function(){this.enabled=true};c.prototype.disable=function(){this.enabled=false};c.prototype.toggleenabled=function(){this.enabled=!this.enabled};c.prototype.toggle=function(g){var f=this;if(g){f=d(g.currenttarget).data("bs."+this.type);if(!f){f=new this.constructor(g.currenttarget,this.getdelegateoptions());d(g.currenttarget).data("bs."+this.type,f)}}if(g){f.instate.click=!f.instate.click;if(f.isinstatetrue()){f.enter(f)}else{f.leave(f)}}else{f.tip().hasclass("in")?f.leave(f):f.enter(f)}};c.prototype.destroy=function(){var e=this;cleartimeout(this.timeout);this.hide(function(){e.$element.off("."+e.type).removedata("bs."+e.type);if(e.$tip){e.$tip.detach()}e.$tip=null;e.$arrow=null;e.$viewport=null})};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.tooltip");var f=typeof e=="object"&&e;if(!g&&/destroy|hide/.test(e)){return}if(!g){h.data("bs.tooltip",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.tooltip;d.fn.tooltip=b;d.fn.tooltip.constructor=c;d.fn.tooltip.noconflict=function(){d.fn.tooltip=a;return this}}(jquery);+function(d){var c=function(f,e){this.init("popover",f,e)};if(!d.fn.tooltip){throw new error("popover requires tooltip.js")}c.version="3.3.5";c.defaults=d.extend({},d.fn.tooltip.constructor.defaults,{placement:"right",trigger:"click",content:"",template:''});c.prototype=d.extend({},d.fn.tooltip.constructor.prototype);c.prototype.constructor=c;c.prototype.getdefaults=function(){return c.defaults};c.prototype.setcontent=function(){var g=this.tip();var f=this.gettitle();var e=this.getcontent();g.find(".popover-title")[this.options.html?"html":"text"](f);g.find(".popover-content").children().detach().end()[this.options.html?(typeof e=="string"?"html":"append"):"text"](e);g.removeclass("fade top bottom left right in");if(!g.find(".popover-title").html()){g.find(".popover-title").hide()}};c.prototype.hascontent=function(){return this.gettitle()||this.getcontent()};c.prototype.getcontent=function(){var e=this.$element;var f=this.options;return e.attr("data-content")||(typeof f.content=="function"?f.content.call(e[0]):f.content)};c.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find(".arrow"))};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.popover");var f=typeof e=="object"&&e;if(!g&&/destroy|hide/.test(e)){return}if(!g){h.data("bs.popover",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.popover;d.fn.popover=b;d.fn.popover.constructor=c;d.fn.popover.noconflict=function(){d.fn.popover=a;return this}}(jquery);+function(d){function c(f,e){this.$body=d(document.body);this.$scrollelement=d(f).is(document.body)?d(window):d(f);this.options=d.extend({},c.defaults,e);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activetarget=null;this.scrollheight=0;this.$scrollelement.on("scroll.bs.scrollspy",d.proxy(this.process,this));this.refresh();this.process()}c.version="3.3.5";c.defaults={offset:10};c.prototype.getscrollheight=function(){return this.$scrollelement[0].scrollheight||math.max(this.$body[0].scrollheight,document.documentelement.scrollheight)};c.prototype.refresh=function(){var g=this;var e="offset";var f=0;this.offsets=[];this.targets=[];this.scrollheight=this.getscrollheight();if(!d.iswindow(this.$scrollelement[0])){e="position";f=this.$scrollelement.scrolltop()}this.$body.find(this.selector).map(function(){var i=d(this);var h=i.data("target")||i.attr("href");var j=/^#./.test(h)&&d(h);return(j&&j.length&&j.is(":visible")&&[[j[e]().top+f,h]])||null}).sort(function(i,h){return i[0]-h[0]}).each(function(){g.offsets.push(this[0]);g.targets.push(this[1])})};c.prototype.process=function(){var k=this.$scrollelement.scrolltop()+this.options.offset;var g=this.getscrollheight();var j=this.options.offset+g-this.$scrollelement.height();var h=this.offsets;var e=this.targets;var l=this.activetarget;var f;if(this.scrollheight!=g){this.refresh()}if(k>=j){return l!=(f=e[e.length-1])&&this.activate(f)}if(l&&k=h[f]&&(h[f+1]===undefined||k .active");var j=k&&d.support.transition&&(f.length&&f.hasclass("fade")||!!g.find("> .fade").length);function i(){f.removeclass("active").find("> .dropdown-menu > .active").removeclass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",false);h.addclass("active").find('[data-toggle="tab"]').attr("aria-expanded",true);if(j){h[0].offsetwidth;h.addclass("in")}else{h.removeclass("fade")}if(h.parent(".dropdown-menu").length){h.closest("li.dropdown").addclass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",true)}k&&k()}f.length&&j?f.one("bstransitionend",i).emulatetransitionend(b.transition_duration):i();f.removeclass("in")};function c(f){return this.each(function(){var h=d(this);var g=h.data("bs.tab");if(!g){h.data("bs.tab",(g=new b(this)))}if(typeof f=="string"){g[f]()}})}var a=d.fn.tab;d.fn.tab=c;d.fn.tab.constructor=b;d.fn.tab.noconflict=function(){d.fn.tab=a;return this};var e=function(f){f.preventdefault();c.call(d(this),"show")};d(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jquery);+function(d){var c=function(f,e){this.options=d.extend({},c.defaults,e);this.$target=d(this.options.target).on("scroll.bs.affix.data-api",d.proxy(this.checkposition,this)).on("click.bs.affix.data-api",d.proxy(this.checkpositionwitheventloop,this));this.$element=d(f);this.affixed=null;this.unpin=null;this.pinnedoffset=null;this.checkposition()};c.version="3.3.5";c.reset="affix affix-top affix-bottom";c.defaults={offset:0,target:window};c.prototype.getstate=function(n,m,f,g){var e=this.$target.scrolltop();var i=this.$element.offset();var j=this.$target.height();if(f!=null&&this.affixed=="top"){return e=n-g)){return"bottom"}return false};c.prototype.getpinnedoffset=function(){if(this.pinnedoffset){return this.pinnedoffset}this.$element.removeclass(c.reset).addclass("affix");var f=this.$target.scrolltop();var e=this.$element.offset();return(this.pinnedoffset=e.top-f)};c.prototype.checkpositionwitheventloop=function(){settimeout(d.proxy(this.checkposition,this),1)};c.prototype.checkposition=function(){if(!this.$element.is(":visible")){return}var f=this.$element.height();var l=this.options.offset;var j=l.top;var h=l.bottom;var i=math.max(d(document).height(),d(document.body).height());if(typeof l!="object"){h=j=l}if(typeof j=="function"){j=l.top(this.$element)}if(typeof h=="function"){h=l.bottom(this.$element)}var g=this.getstate(i,f,j,h);if(this.affixed!=g){if(this.unpin!=null){this.$element.css("top","")}var m="affix"+(g?"-"+g:"");var k=d.event(m+".bs.affix");this.$element.trigger(k);if(k.isdefaultprevented()){return}this.affixed=g;this.unpin=g=="bottom"?this.getpinnedoffset():null;this.$element.removeclass(c.reset).addclass(m).trigger(m.replace("affix","affixed")+".bs.affix")}if(g=="bottom"){this.$element.offset({top:i-f-h})}};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.affix");var f=typeof e=="object"&&e;if(!g){h.data("bs.affix",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.affix;d.fn.affix=b;d.fn.affix.constructor=c;d.fn.affix.noconflict=function(){d.fn.affix=a;return this};d(window).on("load",function(){d('[data-spy="affix"]').each(function(){var f=d(this);var e=f.data();e.offset=e.offset||{};if(e.offsetbottom!=null){e.offset.bottom=e.offsetbottom}if(e.offsettop!=null){e.offset.top=e.offsettop}b.call(f,e)})})}(jquery);