if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||t(n).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.3.5",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){r.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var r=t(s);e&&e.preventDefault(),r.length||(r=o.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var n=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var n=t(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new i(this)),"string"==typeof e&&o[e].call(n)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.button"),s="object"==typeof e&&e;o||n.data("bs.button",o=new i(this,s)),"toggle"==e?o.toggle():e&&o.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.5",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",s=n.data();e+="Text",null==s.resetText&&n.data("resetText",n[o]()),setTimeout(t.proxy(function(){n[o](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.carousel"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:s.slide;o||n.data("bs.carousel",o=new i(this,s)),"number"==typeof e?o.to(e):r?o[r]():s.interval&&o.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.5",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(n)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,n){var o=this.$element.find(".item.active"),s=n||this.getItemForDirection(e,o),r=this.interval,a="next"==e?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var c=s[0],h=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(s)]);d&&d.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,o.addClass(a),s.addClass(a),o.one("bsTransitionEnd",function(){s.removeClass([e,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var o=function(i){var n,o=t(this),s=t(o.attr("data-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var r=t.extend({},s.data(),o.data()),a=o.attr("data-slide-to");a&&(r.interval=!1),e.call(s,r),a&&s.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),o=i.data("bs.collapse"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!o&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),o||i.data("bs.collapse",o=new n(this,s)),"string"==typeof e&&o[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.5",n.TRANSITION_DURATION=350,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 e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"))&&e.transitioning)){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){o&&o.length&&(i.call(o,"hide"),e||o.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[r](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(n.TRANSITION_DURATION):o.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var o=t(n);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var o=t(this);o.attr("data-target")||n.preventDefault();var s=e(o),r=s.data("bs.collapse")?"toggle":o.data();i.call(s,r)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(n).remove(),t(o).each(function(){var n=t(this),o=e(n),s={relatedTarget:this};o.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(o[0],i.target)||(o.trigger(i=t.Event("hide.bs.dropdown",s)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),o.removeClass("open").trigger("hidden.bs.dropdown",s))))}))}var n=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.5",s.prototype.toggle=function(n){var o=t(this);if(!o.is(".disabled, :disabled")){var s=e(o),r=s.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(s.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},s.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=e(n),r=s.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&s.find(o).trigger("focus"),n.trigger("click");var a=s.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(i.target);38==i.which&&l>0&&l--,40==i.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},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!");for(var o=this.options.trigger.split(" "),s=o.length;s--;){var r=o[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())},e.prototype.show=function(){var i=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var o=this,s=this.tip(),r=this.getUID(this.type);this.setContent(),s.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),d=s[0].offsetWidth,p=s[0].offsetHeight;if(c){var f=a,u=this.getPosition(this.$viewport);a="bottom"==a&&h.bottom+p>u.bottom?"top":"top"==a&&h.top-pu.width?"left":"left"==a&&h.left-dr.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-s,h=e.left+s+i;cr.right&&(o.left=r.left+r.width-h)}return o},e.prototype.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)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each(function(){var n=t(this),o=n.data("bs.tooltip"),s="object"==typeof i&&i;(o||!/destroy|hide/.test(i))&&(o||n.data("bs.tooltip",o=new e(this,s)),"string"==typeof i&&o[i]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.5",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.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").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.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)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=function(i){return this.each(function(){var n=t(this),o=n.data("bs.popover"),s="object"==typeof i&&i;(o||!/destroy|hide/.test(i))&&(o||n.data("bs.popover",o=new e(this,s)),"string"==typeof i&&o[i]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),o=n.data("bs.scrollspy"),s="object"==typeof i&&i;o||n.data("bs.scrollspy",o=new e(this,s)),"string"==typeof i&&o[i]()})}e.VERSION="3.3.5",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),s=/^#./.test(o)&&t(o);return s&&s.length&&s.is(":visible")&&[[s[i]().top+n,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,s=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=s[s.length-1])&&this.activate(t);if(r&&e=o[t]&&(void 0===o[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var r=n.find("> .active"),a=o&&t.support.transition&&(r.length&&r.hasClass("fade")||!!n.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",s).emulateTransitionEnd(i.TRANSITION_DURATION):s(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var o=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.affix"),s="object"==typeof e&&e;o||n.data("bs.affix",o=new i(this,s)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.5",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var o=this.$target.scrollTop(),s=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return i>o&&"top";if("bottom"==this.affixed)return null!=i?!(o+this.unpin<=s.top)&&"bottom":!(t-n>=o+r)&&"bottom";var a=null==this.affixed,l=a?o:s.top,c=a?r:e;return null!=i&&i>=o?"top":null!=n&&l+c>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,o=n.top,s=n.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(s=o=n),"function"==typeof o&&(o=n.top(this.$element)),"function"==typeof s&&(s=n.bottom(this.$element));var a=this.getState(r,e,o,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-s})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t){var e=-1,i=-1,n=function(t){return parseFloat(t)||0},o=function(e){var i=null,o=[];return t(e).each(function(){var e=t(this),s=e.offset().top-n(e.css("margin-top")),r=0=Math.floor(Math.abs(i-s))?o[o.length-1]=r.add(e):o.push(e),i=s}),o},s=function(e){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},r=t.fn.matchHeight=function(e){if((e=s(e)).remove){var i=this;return this.css(e.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(i)}),this}return 1>=this.length&&!e.target?this:(r._groups.push({elements:this,options:e}),r._apply(this,e),this)};r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._apply=function(e,i){var a=s(i),l=t(e),c=[l],h=t(window).scrollTop(),d=t("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),a.byRow&&!a.target&&(l.each(function(){var e=t(this),i=e.css("display");"inline-block"!==i&&"inline-flex"!==i&&(i="block"),e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),c=o(l),l.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(c,function(e,i){var o=t(i),s=0;if(a.target)s=a.target.outerHeight(!1);else{if(a.byRow&&1>=o.length)return void o.css(a.property,"");o.each(function(){var e=t(this),i=e.css("display");"inline-block"!==i&&"inline-flex"!==i&&(i="block"),(i={display:i})[a.property]="",e.css(i),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),e.css("display","")})}o.each(function(){var e=t(this),i=0;a.target&&e.is(a.target)||("border-box"!==e.css("box-sizing")&&(i+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),i+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(a.property,s-i+"px"))})}),p.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(h/d*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),n=i.attr("data-mh")||i.attr("data-match-height");e[n]=n in e?e[n].add(i):i}),t.each(e,function(){this.matchHeight(!0)})};var a=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,o){if(o&&"resize"===o.type){var s=t(window).width();if(s===e)return;e=s}n?-1===i&&(i=setTimeout(function(){a(o),i=-1},r._throttle)):a(o)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}(jQuery),function(t,e,i){"use strict";function n(i){if(o=e.documentElement,s=e.body,V(),ot=this,i=i||{},ct=i.constants||{},i.easing)for(var n in i.easing)M[n]=i.easing[n];mt=i.edgeStrategy||"set",at={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},(lt=!1!==i.forceHeight)&&(Rt=i.scale||1),ht=i.mobileDeceleration||C,pt=!1!==i.smoothScrolling,ft=i.smoothScrollingDuration||S,ut={targetTop:ot.getScrollTop()},(Bt=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||t.opera)})())?((rt=e.getElementById(i.skrollrBody||x))&&nt(),Q(),kt(o,[y,T],[b])):kt(o,[y,w],[b]),ot.refresh(),bt(t,"resize orientationchange",function(){var t=o.clientWidth,e=o.clientHeight;(e!==jt||t!==Ft)&&(jt=e,Ft=t,Ht=!0)});var r=W();return function t(){Y(),yt=r(t)}(),ot}var o,s,r={get:function(){return ot},init:function(t){return ot||new n(t)},VERSION:"0.6.30"},a=Object.prototype.hasOwnProperty,l=t.Math,c=t.getComputedStyle,h="touchstart",d="touchmove",p="touchcancel",f="touchend",u="skrollable",g=u+"-before",m=u+"-between",v=u+"-after",y="skrollr",b="no-"+y,w=y+"-desktop",T=y+"-mobile",$="linear",C=.004,x="skrollr-body",S=200,E="center",k="bottom",I="___skrollable_id",A=/^(?:input|textarea|button|select)$/i,D=/^\s+|\s+$/g,N=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,O=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,R=/^(@?[a-z\-]+)\[(\w+)\]$/,_=/-([a-z0-9_])/g,P=function(t,e){return e.toUpperCase()},U=/[\-+]?[\d]*\.?[\d]+/g,F=/\{\?\}/g,j=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,H=/[a-z\-]+-gradient/g,L="",B="",V=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(c){var e=c(s,null);for(var i in e)if(L=i.match(t)||+i==i&&e[i].match(t))break;if(!L)return void(L=B="");"-"===(L=L[0]).slice(0,1)?(B=L,L={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[L]):B="-"+L.toLowerCase()+"-"}},W=function(){var e=t.requestAnimationFrame||t[L.toLowerCase()+"RequestAnimationFrame"],i=Dt();return(Bt||!e)&&(e=function(e){var n=Dt()-i,o=l.max(0,1e3/60-n);return t.setTimeout(function(){i=Dt(),e()},o)}),e},z=function(){var e=t.cancelAnimationFrame||t[L.toLowerCase()+"CancelAnimationFrame"];return(Bt||!e)&&(e=function(e){return t.clearTimeout(e)}),e},M={begin:function(){return 0},end:function(){return 1},linear:function(t){return t},quadratic:function(t){return t*t},cubic:function(t){return t*t*t},swing:function(t){return-l.cos(t*l.PI)/2+.5},sqrt:function(t){return l.sqrt(t)},outCubic:function(t){return l.pow(t-1,3)+1},bounce:function(t){var e;if(.5083>=t)e=3;else if(.8489>=t)e=9;else if(.96208>=t)e=27;else{if(!(.99981>=t))return 1;e=91}return 1-l.abs(3*l.cos(t*e*1.028)/e)}};n.prototype.refresh=function(t){var n,o,s=!1;for(t===i?(s=!0,st=[],Lt=0,t=e.getElementsByTagName("*")):t.length===i&&(t=[t]),n=0,o=t.length;o>n;n++){var r=t[n],a=r,l=[],c=pt,h=mt,d=!1;if(s&&I in r&&delete r[I],r.attributes){for(var p=0,f=r.attributes.length;f>p;p++){var g=r.attributes[p];if("data-anchor-target"!==g.name)if("data-smooth-scrolling"!==g.name)if("data-edge-strategy"!==g.name)if("data-emit-events"!==g.name){var m=g.name.match(N);if(null!==m){var v={props:g.value,element:r,eventType:g.name.replace(_,P)};l.push(v);var y=m[1];y&&(v.constant=y.substr(1));var b=m[2];/p$/.test(b)?(v.isPercentage=!0,v.offset=(0|b.slice(0,-1))/100):v.offset=0|b;var w=m[3],T=m[4]||w;w&&"start"!==w&&"end"!==w?(v.mode="relative",v.anchors=[w,T]):(v.mode="absolute","end"===w?v.isEnd=!0:v.isPercentage||(v.offset=v.offset*Rt))}}else d=!0;else h=g.value;else c="off"!==g.value;else if(null===(a=e.querySelector(g.value)))throw'Unable to find anchor target "'+g.value+'"'}if(l.length){var $,C,x;!s&&I in r?(x=r[I],$=st[x].styleAttr,C=st[x].classAttr):(x=r[I]=Lt++,$=r.style.cssText,C=Et(r)),st[x]={element:r,styleAttr:$,classAttr:C,anchorTarget:a,keyFrames:l,smoothScrolling:c,edgeStrategy:h,emitEvents:d,lastFrameIndex:-1},kt(r,[u],[])}}}for(Ct(),n=0,o=t.length;o>n;n++){var S=st[t[n][I]];S!==i&&(G(S),J(S))}return ot},n.prototype.relativeToAbsolute=function(t,e,i){var n=o.clientHeight,s=t.getBoundingClientRect(),r=s.top,a=s.bottom-s.top;return e===k?r-=n:e===E&&(r-=n/2),i===k?r+=a:i===E&&(r+=a/2),(r+=ot.getScrollTop())+.5|0},n.prototype.animateTo=function(t,e){e=e||{};var n=Dt(),o=ot.getScrollTop(),s=e.duration===i?1e3:e.duration;return(dt={startTop:o,topDiff:t-o,targetTop:t,duration:s,startTime:n,endTime:n+s,easing:M[e.easing||$],done:e.done}).topDiff||(dt.done&&dt.done.call(ot,!1),dt=i),ot},n.prototype.stopAnimateTo=function(){dt&&dt.done&&dt.done.call(ot,!0),dt=i},n.prototype.isAnimatingTo=function(){return!!dt},n.prototype.isMobile=function(){return Bt},n.prototype.setScrollTop=function(e,i){return gt=!0===i,Bt?Vt=l.min(l.max(e,0),Ot):t.scrollTo(0,e),ot},n.prototype.getScrollTop=function(){return Bt?Vt:t.pageYOffset||o.scrollTop||s.scrollTop||0},n.prototype.getMaxScrollTop=function(){return Ot},n.prototype.on=function(t,e){return at[t]=e,ot},n.prototype.off=function(t){return delete at[t],ot},n.prototype.destroy=function(){z()(yt),Tt(),kt(o,[b],[y,w,T]);for(var t=0,e=st.length;e>t;t++)it(st[t].element);o.style.overflow=s.style.overflow="",o.style.height=s.style.height="",rt&&r.setStyle(rt,"transform","none"),ot=i,rt=i,at=i,lt=i,Ot=0,Rt=1,ct=i,ht=i,_t="down",Pt=-1,Ft=0,jt=0,Ht=!1,dt=i,pt=i,ft=i,ut=i,gt=i,Lt=0,mt=i,Bt=!1,Vt=0,vt=i};var Q=function(){var n,r,a,c,u,g,m,v,y,b,w,T;bt(o,[h,d,p,f].join(" "),function(t){var o=t.changedTouches[0];for(c=t.target;3===c.nodeType;)c=c.parentNode;switch(u=o.clientY,g=o.clientX,b=t.timeStamp,A.test(c.tagName)||t.preventDefault(),t.type){case h:n&&n.blur(),ot.stopAnimateTo(),n=c,r=m=u,a=g,y=b;break;case d:A.test(c.tagName)&&e.activeElement!==c&&t.preventDefault(),v=u-m,T=b-w,ot.setScrollTop(Vt-v,!0),m=u,w=b;break;default:case p:case f:var s=r-u,$=a-g;if(49>$*$+s*s){if(!A.test(n.tagName)){n.focus();var C=e.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,t.view,1,o.screenX,o.screenY,o.clientX,o.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),n.dispatchEvent(C)}return}n=i;var x=v/T;x=l.max(l.min(x,3),-3);var S=l.abs(x/ht),E=x*S+.5*ht*S*S,k=ot.getScrollTop()-E,I=0;k>Ot?(I=(Ot-k)/E,k=Ot):0>k&&(I=-k/E,k=0),S*=1-I,ot.animateTo(k+.5|0,{easing:"outCubic",duration:S})}}),t.scrollTo(0,0),o.style.overflow=s.style.overflow="hidden"},q=function(){var t,e,i,n,s,r,a,c,h,d,p,f=o.clientHeight,u=xt();for(c=0,h=st.length;h>c;c++)for(t=st[c],e=t.element,i=t.anchorTarget,n=t.keyFrames,s=0,r=n.length;r>s;s++)a=n[s],d=a.offset,p=u[a.constant]||0,a.frame=d,a.isPercentage&&(d*=f,a.frame=d),"relative"===a.mode&&(it(e),a.frame=ot.relativeToAbsolute(i,a.anchors[0],a.anchors[1])-d,it(e,!0)),a.frame+=p,lt&&!a.isEnd&&a.frame>Ot&&(Ot=a.frame);for(Ot=l.max(Ot,St()),c=0,h=st.length;h>c;c++){for(s=0,r=(n=(t=st[c]).keyFrames).length;r>s;s++)a=n[s],p=u[a.constant]||0,a.isEnd&&(a.frame=Ot-a.offset+p);t.keyFrames.sort(Nt)}},K=function(t,e){for(var i=0,n=st.length;n>i;i++){var o,s,l=st[i],c=l.element,h=l.smoothScrolling?t:e,d=l.keyFrames,p=d.length,f=d[0],y=d[d.length-1],b=hy.frame,T=b?f:y,$=l.emitEvents,C=l.lastFrameIndex;if(b||w){if(b&&-1===l.edge||w&&1===l.edge)continue;switch(b?(kt(c,[g],[v,m]),$&&C>-1&&($t(c,f.eventType,_t),l.lastFrameIndex=-1)):(kt(c,[v],[g,m]),$&&p>C&&($t(c,y.eventType,_t),l.lastFrameIndex=p)),l.edge=b?-1:1,l.edgeStrategy){case"reset":it(c);continue;case"ease":h=T.frame;break;default:case"set":var x=T.props;for(o in x)a.call(x,o)&&(s=et(x[o].value),0===o.indexOf("@")?c.setAttribute(o.substr(1),s):r.setStyle(c,o,s));continue}}else 0!==l.edge&&(kt(c,[u,m],[g,v]),l.edge=0);for(var S=0;p-1>S;S++)if(h>=d[S].frame&&h<=d[S+1].frame){var E=d[S],k=d[S+1];for(o in E.props)if(a.call(E.props,o)){var I=(h-E.frame)/(k.frame-E.frame);I=E.props[o].easing(I),s=tt(E.props[o].value,k.props[o].value,I),s=et(s),0===o.indexOf("@")?c.setAttribute(o.substr(1),s):r.setStyle(c,o,s)}$&&C!==S&&("down"===_t?$t(c,E.eventType,_t):$t(c,k.eventType,_t),l.lastFrameIndex=S);break}}},Y=function(){Ht&&(Ht=!1,Ct());var t,e,n=ot.getScrollTop(),o=Dt();if(dt?(o>=dt.endTime?(n=dt.targetTop,t=dt.done,dt=i):(e=dt.easing((o-dt.startTime)/dt.duration),n=dt.startTop+e*dt.topDiff|0),ot.setScrollTop(n,!0)):gt||(ut.targetTop-n&&(ut={startTop:Pt,topDiff:n-Pt,targetTop:n,startTime:Ut,endTime:Ut+ft}),o<=ut.endTime&&(e=M.sqrt((o-ut.startTime)/ft),n=ut.startTop+e*ut.topDiff|0)),gt||Pt!==n){gt=!1;var s={curTop:n,lastTop:Pt,maxTop:Ot,direction:_t=n>Pt?"down":Pt>n?"up":_t};!1!==(at.beforerender&&at.beforerender.call(ot,s))&&(K(n,ot.getScrollTop()),Bt&&rt&&r.setStyle(rt,"transform","translate(0, "+-Vt+"px) "+vt),Pt=n,at.render&&at.render.call(ot,s)),t&&t.call(ot,!1)}Ut=o},G=function(t){for(var e=0,i=t.keyFrames.length;i>e;e++){for(var n,o,s,r,a=t.keyFrames[e],l={};null!==(r=O.exec(a.props));)s=r[1],o=r[2],n=s.match(R),null!==n?(s=n[1],n=n[2]):n=$,o=o.indexOf("!")?X(o):[o.slice(1)],l[s]={value:o,easing:M[n]};a.props=l}},X=function(t){var e=[];return j.lastIndex=0,t=t.replace(j,function(t){return t.replace(U,function(t){return t/255*100+"%"})}),B&&(H.lastIndex=0,t=t.replace(H,function(t){return B+t})),t=t.replace(U,function(t){return e.push(+t),"{?}"}),e.unshift(t),e},J=function(t){var e,i,n={};for(e=0,i=t.keyFrames.length;i>e;e++)Z(t.keyFrames[e],n);for(n={},e=t.keyFrames.length-1;e>=0;e--)Z(t.keyFrames[e],n)},Z=function(t,e){var i;for(i in e)a.call(t.props,i)||(t.props[i]=e[i]);for(i in t.props)e[i]=t.props[i]},tt=function(t,e,i){var n,o=t.length;if(o!==e.length)throw"Can't interpolate between \""+t[0]+'" and "'+e[0]+'"';var s=[t[0]];for(n=1;o>n;n++)s[n]=t[n]+(e[n]-t[n])*i;return s},et=function(t){var e=1;return F.lastIndex=0,t[0].replace(F,function(){return t[e++]})},it=function(t,e){for(var i,n,o=0,s=(t=[].concat(t)).length;s>o;o++)n=t[o],(i=st[n[I]])&&(e?(n.style.cssText=i.dirtyStyleAttr,kt(n,i.dirtyClassAttr)):(i.dirtyStyleAttr=n.style.cssText,i.dirtyClassAttr=Et(n),n.style.cssText=i.styleAttr,kt(n,i.classAttr)))},nt=function(){vt="translateZ(0)",r.setStyle(rt,"transform",vt);var t=c(rt),e=t.getPropertyValue("transform"),i=t.getPropertyValue(B+"transform");e&&"none"!==e||i&&"none"!==i||(vt="")};r.setStyle=function(t,e,i){var n=t.style;if("zIndex"===(e=e.replace(_,P).replace("-","")))isNaN(i)?n[e]=i:n[e]=""+(0|i);else if("float"===e)n.styleFloat=n.cssFloat=i;else try{L&&(n[L+e.slice(0,1).toUpperCase()+e.slice(1)]=i),n[e]=i}catch(t){}};var ot,st,rt,at,lt,ct,ht,dt,pt,ft,ut,gt,mt,vt,yt,bt=r.addEvent=function(e,i,n){for(var o,s=0,r=(i=i.split(" ")).length;r>s;s++)o=i[s],e.addEventListener?e.addEventListener(o,n,!1):e.attachEvent("on"+o,function(e){return(e=e||t.event).target||(e.target=e.srcElement),e.preventDefault||(e.preventDefault=function(){e.returnValue=!1,e.defaultPrevented=!0}),n.call(this,e)}),Wt.push({element:e,name:o,listener:n})},wt=r.removeEvent=function(t,e,i){for(var n=0,o=(e=e.split(" ")).length;o>n;n++)t.removeEventListener?t.removeEventListener(e[n],i,!1):t.detachEvent("on"+e[n],i)},Tt=function(){for(var t,e=0,i=Wt.length;i>e;e++)t=Wt[e],wt(t.element,t.name,t.listener);Wt=[]},$t=function(t,e,i){at.keyframe&&at.keyframe.call(ot,t,e,i)},Ct=function(){var t=ot.getScrollTop();Ot=0,lt&&!Bt&&(s.style.height=""),q(),lt&&!Bt&&(s.style.height=Ot+o.clientHeight+"px"),Bt?ot.setScrollTop(l.min(ot.getScrollTop(),Ot)):ot.setScrollTop(t,!0),gt=!0},xt=function(){var t,e,i=o.clientHeight,n={};for(t in ct)e=ct[t],"function"==typeof e?e=e.call(ot):/p$/.test(e)&&(e=e.slice(0,-1)/100*i),n[t]=e;return n},St=function(){var t=0;return rt&&(t=l.max(rt.offsetHeight,rt.scrollHeight)),l.max(t,s.scrollHeight,s.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight)-o.clientHeight},Et=function(e){var i="className";return t.SVGElement&&e instanceof t.SVGElement&&(e=e[i],i="baseVal"),e[i]},kt=function(e,n,o){var s="className";if(t.SVGElement&&e instanceof t.SVGElement&&(e=e[s],s="baseVal"),o!==i){for(var r=e[s],a=0,l=o.length;l>a;a++)r=At(r).replace(At(o[a])," ");r=It(r);for(var c=0,h=n.length;h>c;c++)-1===At(r).indexOf(At(n[c]))&&(r+=" "+n[c]);e[s]=It(r)}else e[s]=n},It=function(t){return t.replace(D,"")},At=function(t){return" "+t+" "},Dt=Date.now||function(){return+new Date},Nt=function(t,e){return t.frame-e.frame},Ot=0,Rt=1,_t="down",Pt=-1,Ut=Dt(),Ft=0,jt=0,Ht=!1,Lt=0,Bt=!1,Vt=0,Wt=[];"function"==typeof define&&define.amd?define([],function(){return r}):"undefined"!=typeof module&&module.exports?module.exports=r:t.skrollr=r}(window,document);