text: (function(e,t,n,r){var i="affix",s={offset:0,inside:"parent",fixHorizontal:!0,enabled:!0};Affix=function(t,n){this.name=i,this.element=t,this.options=e.extend({},s,n),this._setOptions(this.options),this.init()},Affix.prototype=new e.kit,Affix.prototype.constructor=Affix,Affix.prototype.init=function(){var n=this,r=e(n.element);n.$window=e(t),n.$window.on("scroll."+n.name,e.proxy(n.checkPosition,this)),n.$window.on("click."+n.name,e.proxy(function(){setTimeout(e.proxy(n.checkPosition,this),1)},this)),n.options.fixHorizontal&&n.$window.on("resize."+n.name,e.proxy(n.checkPositionHorizontal,this)),n.$parent=n.options.inside==="parent"?r.parent():r.closest(n.options.inside),r.css({top:n.$parent.offset().top+n.options.offset}),n.checkPosition()},Affix.prototype.checkPosition=function(){var t=this,r=e(t.element);if(!r.is(":visible"))return;var i=e(n).height(),s=t.$window.scrollTop(),o=r.offset(),u=r.outerHeight(),a=t.options.offset,f=t.$parent.outerHeight(),l=t.$parent.offset(),c=s+t.options.offset;c<=l.top?t.$parent.css("position")==="relative"?r.css({position:"absolute",top:0,bottom:"auto"}):r.css({position:"absolute",top:l.top,bottom:"auto"}):l.top+t.$parent.outerHeight()-u<=c&&c>=l.top?t.$parent.css("position")==="relative"?r.css({position:"absolute",top:"auto",bottom:0}):r.css({position:"absolute",top:l.top+f-u,bottom:"auto"}):r.css("position")==="absolute"&&t.$parent.css("position")==="relative"?(mewidth=r.width(),r.data("memargin")||r.data("memargin",parseFloat(r.css("margin-left"))+1),r.css({position:"fixed",top:a,bottom:"auto",width:mewidth,marginLeft:r.data("memargin")})):r.css({position:"fixed",top:a,bottom:"auto"}),r.css("position")==="absolute"&&t.$parent.css("position")==="relative"?r.css({left:0}):r.css({left:l.left})},Affix.prototype.isenable=function(){return this.options.enabled},Affix.prototype.checkPositionHorizontal=function(){var t=this,n=e(t.element);parentOffset=t.$parent.offset(),t.options.enabled===!0&&(n.css("position")==="absolute"&&t.$parent.css("position")==="relative"?n.css({left:0}):n.css({left:parentOffset.left}))},Affix.prototype.__setOption=function(t,n){var r=this,i=e(r.element);switch(t){case"enable":n===!1?(r.$window.off("scroll."+r.name),r.$window.off("click."+r.name),r.options.fixHorizontal&&r.$window.off("resize."+r.name),i.css({position:"relative",top:0,left:0}),i.removeAttr("style"),this.options.enabled=!1):(r.$window.on("scroll."+r.name,e.proxy(r.checkPosition,this)),r.$window.on("click."+r.name,e.proxy(function(){setTimeout(e.proxy(r.checkPosition,this),1)},this)),r.options.fixHorizontal&&r.$window.on("resize."+r.name,e.proxy(r.checkPositionHorizontal,this)),this.options.enabled=!0)}},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Affix(this,t))})}})(jQuery,window,document),function(e,t,n,r){var i="button",s={theme:"default",beforeAction:e.noop(),action:e.noop(),clicked:e.noop(),ifNotAction:e.noop(),beforeUnset:e.noop(),ifNotUnsetted:e.noop(),ifUnsettedOrNot:e.noop(),unsetted:e.noop()};Button=function(t,n){this.element=t,this.name=i,this.state="unactive",this.options=e.extend({},this.options,s,n),this._setOptions(this.options),typeof e.button=="undefined"&&(e.button=[]),this.element!=="undefined"&&e.button.push(this.element),this.init()},Button.prototype=new e.kit,Button.prototype.constructor=Button,Button.prototype.__setOption=function(t,n){var r=this,i=e(r.element);switch(t){case"theme":i.addClass("-"+n+"-");break;case"enabled":n===!0?i.removeClass("-disabled-"):i.addClass("-disabled-")}r.options[t]=n},Button.prototype.init=function(){var t=this;e(t.element).on("click."+t.name,function(e){t._toggle(t.element),e.preventDefault()})},Button.prototype._toggle=function(t){var n=this,r=e(n.element);t===n.element&&(n.state==="unactive"?n.action():n.state==="active"&&n.unset())},Button.prototype.action=function(){var t=this,n=e(t.element);if(t.options.enabled===!0&&t.state!=="loading"){t.state="loading";if(t.options.beforeAction==="undefined"||typeof t.options.beforeAction!="object"&&typeof t.options.beforeAction!="function")t._action();else try{var r=t.options.beforeAction.call(n);r.done(function(){t._action()}).fail(function(){t.state="unactive",n.trigger("ifNotAction."+t.name),n.trigger("clicked."+t.name)})}catch(i){t._action()}}},Button.prototype._action=function(){var t=this,n=e(t.element);if(t.state==="loading"){if(n.data("radio")){var r=n.data("radio");e.each(t._getOtherInstanses(e.button),function(){var n=e.data(this,"kit-"+t.name),i=e(n.element);n.element!==t.element&&i.data("radio")&&i.data("radio")===r&&n.getState()==="active"&&n.unset()})}t.state="active",n.trigger("action."+t.name)}n.trigger("clicked."+t.name)},Button.prototype.unset=function(){var t=this,n=e(t.element);if(t.options.enabled===!0&&t.state!=="unset")if(t.options.beforeUnset=="undefined"||typeof t.options.beforeUnset!="object"&&typeof t.options.beforeUnset!="function")t._unset();else try{var r=t.options.beforeUnset.call(n);r.done(function(){t._unset()}).fail(function(){n.trigger("ifNotUnsetted."+t.name),n.trigger("ifUnsettedOrNot."+t.name),t.state="active"})}catch(i){t._unset()}},Button.prototype._unset=function(){var t=this,n=e(t.element);t.state==="active"&&(t.state="unactive",n.trigger("unsetted")),n.trigger("ifUnsettedOrNot."+t.name)},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Button(this,t))})}}(jQuery,window,document),function(e,t,n,r){var i="carousel",s={enabled:!0,theme:"info",itemSelector:".js-carousel-item",itemAnimation:"css",controlSelector:".js-carousel-control",navigationSelector:"#js-carousel-nav",hideControlsDistance:200,autoSlide:15e3,imageFill:!0,imageFillAnimationInterval:2e4,imageFillAnimation:!0,imageFillMouseMove:!1,imageFillMouseMoveDelay:5e3,captionAnimation:"blurIn",captionAnimationDelay:1e3};Carousel=function(t,n){var r=this;this.name=i,this.element=t,this.options=e.extend({},s,n),this.active=0,this._setOptions(this.options),this.init()},Carousel.prototype=new e.kit,Carousel.prototype.constructor=Carousel,Carousel.prototype.enable=function(){var e=this;e.__setOption("enabled",!0)},Carousel.prototype.disable=function(){var e=this;e.__setOption("enabled",!1)},Carousel.prototype.__setOption=function(t,n){var r=this,i=e(r.element);switch(t){case"enabled":n||(clearInterval(r.timer),r.clearImageSlide());break;case"controlSelector":r.controls&&r.controls.length>0&&e.each(r.controls,function(e,t){t.off("."+r.name)}),r.controls=e(n).map(function(t,n){if(e(n).attr("href").replace(/#/g,"")===i.attr("id"))return e(n).on("click."+r.name,function(t){r.options.enabled&&e(this).data("slide")&&r[e(this).data("slide")](),t.preventDefault()}),e(n)});break;case"navigationSelector":r.nav&&r.nav.length>0&&e.each(r.nav,function(e,t){t.off("."+r.name)}),r.nav=e(n).map(function(t,n){for(var i=0;i<r.items.length;i++)e(n).append("<i></i>");return e(n).addClass("-"+r.options.theme+"-"),e(n).on("click."+r.name,function(t){r.options.enabled&&e(t.target).is("i")&&(r.active=e(t.target).index(),r.to())}),e(n)});break;case"itemSelector":r.items=i.find(n).map(function(t,n){return e(n)});break;case"hideControlsDistance":n&&n>0&&i.off("mousemove."+r.name)&&i.on("mousemove."+r.name,function(t){e.proxy(r.trackMouseControls(t),r)});break;case"autoSlide":clearInterval(r.timer),n>0&&(r.timer=setInterval(e.proxy(r.next,r),n));break;case"imageFill":n&&(i.addClass("-carousel-imageFill"),i.imagesLoaded(function(){var t=i.innerHeight(),n=i.innerWidth();e.each(r.items,function(r,i){var s=i.find(" > img "),o=e(s).width(),u=e(s).height(),a=o/u;i.css({height:"100%"}),e(s).css({position:"absolute",top:0,left:0,maxHeight:"none",maxWidth:"none"}),n/t<a?e(s).css({width:"auto",height:"100%"}):e(s).css({width:"100%",height:"auto"})})}));break;case"imageFillAnimation":n&&i.on("slide."+r.name,e.proxy(r.imageSlide,r));break;case"imageFillMouseMove":i.off("mouseenter.mousecontrol."+r.name),i.off("mouseleave.mousecontrol."+r.name),n&&i.on("mousemove.mousecontrol."+r.name,e.proxy(r.imageSlideByMouse,r)),n&&i.on("mouseleave.mousecontrol."+r.name,e.proxy(r.imageSlide,r));break;case"captionAnimation":i.on("slide."+r.name,function(){r.items[r.active].find(".-carousel-caption").each(function(t,i){e(i).find("div").each(function(t,i){typeof n=="boolean"&&e(i).fadeIn(),typeof n=="string"&&(e(i).addClass("-mx-"+n),setTimeout(function(){e(i).addClass("-mx-start")},r.options.captionAnimationDelay*(t+1)))})})})}r.options[t]=n},Carousel.prototype.init=function(){var t=this,n=e(t.element);n.show().animate({opacity:1}),t.imageSlide(),n.on("mouseenter."+t.name,function(){t.options.autoSlide>0&&clearInterval(t.timer)}),n.on("mouseleave."+t.name,function(r){t.options.autoSlide>0&&(t.timer=setInterval(e.proxy(t.next,t),t.options.autoSlide)),n.find(t.options.controlSelector).each(function(t,n){e(n).fadeOut(100)})}),t.to()},Carousel.prototype.update=function(){var e=this;e.__setOption("itemSelector",e.options.itemSelector)},Carousel.prototype.next=function(){var e=this,t=e.clearImageSlide();t.done(function(){e.active!==r&&e.active+1===e.items.length?e.active=0:e.active++,e.to()})},Carousel.prototype.prev=function(){var e=this,t=e.clearImageSlide();t.done(function(){e.active!==r&&e.active-1<0?e.active=e.items.length-1:e.active--,e.to()})},Carousel.prototype.to=function(t){var n=this,r=e(n.element),i=r.innerWidth();t&&(n.active=t);var s=n.active*-i;typeof n.options.itemAnimation=="boolean"?n.items[0].animate({marginLeft:s}):e.easing&&n.options.itemAnimation in e.easing?n.items[0].animate({marginLeft:s},{easing:n.options.itemAnimation}):n.items[0].css({marginLeft:s}),n.nav&&n.nav.length>0&&e.each(n.nav,function(t,r){e(r).find("._active_").removeClass("_active_"),e(r).find("i").eq(n.active).addClass(" _active_ ")}),r.trigger("slide."+n.name)},Carousel.prototype.trackMouseControls=function(t){var n=this,r=e(n.element),i=t.pageX-r.offset().left,s=r.width();r.find(n.options.controlSelector).each(function(t,o){n.options.enabled&&e(o).attr("href").replace(/#/g,"")===r.attr("id")&&(e(o).data("slide")==="prev"?n.options.hideControlsDistance>i?e(o).fadeIn(100):e(o).fadeOut(100):n.options.hideControlsDistance>s-i?e(o).fadeIn(100):e(o).fadeOut(100))})},Carousel.prototype.imageSlide=function(){var t=this,n=e(t.element),r=n.innerHeight(),i=n.innerWidth();t.options.enabled&&t.options.imageFillAnimation&&n.imagesLoaded(function(){var n=e(t.items[t.active].find("img")[0]),s=n.width(),o=n.height(),u=r-o,a=i-s;typeof t.options.imageFillAnimation=="boolean"?n.animate({top:u,left:a},t.options.imageFillAnimationInterval):e.easing&&t.options.imageFillAnimation in e.easing&&n.animate({top:u,left:a},{duration:t.options.imageFillAnimationInterval,easing:t.options.imageFillAnimation})})},Carousel.prototype.clearImageSlide=function(){var t=this,n=e(t.element),r=new e.Deferred;return t.options.imageFillAnimation?t.items.each(function(n,i){n!==t.active&&i.find("img").stop().css({top:0,left:0}),t.options.captionAnimation&&n!==t.active&&i.find(".-carousel-caption").each(function(n,r){e(r).find("div").each(function(n,r){typeof t.options.captionAnimation=="boolean"&&e(r).hide(),typeof t.options.captionAnimation=="string"&&e(r).removeClass("-mx-start "+t.options.captionAnimation)})}),n===t.items.length-1&&r.resolve()}):r.resolve(),r.promise()},Carousel.prototype.imageSlideByMouse=function(t){var n=this,r=e(n.element);n.options.enabled&&r.imagesLoaded(function(){var e=t.pageX-r.offset().left,i=t.pageY-r.offset().top,s=n.items[n.active].find("img"),o=s.width(),u=s.height(),a=r.innerWidth(),f=r.innerHeight(),l=a-o,c=f-u,h=e*100/a,p=i*100/f;s.stop().css({top:p*c/100,left:h*l/100})})},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Carousel(this,t))})}}(jQuery,window,document),function(e,t,n,r){var i="kit",s={enabled:!0,animation:null,animationDuration:0,theme:"dark"};e.kit=function(t,n){this.name=i,this.state="uninitialized",this.element=t,this.options=e.extend({},s,n),this.El=e(this.options.template)},e.kit.prototype._setOptions=function(t){var n=this,r=e(n.element);e.each(t,function(t,i){n._setOption(t,i),n.__setOption(t,i);var s={};s[t]=i,e.isFunction(i)&&n._on(r,s)})},e.kit.prototype._setOption=function(t,n){var r=this,i=e(r.element);switch(t){case"theme":r.El.removeClass("-"+r.options.theme+"-"),r.El.addClass("-"+n+"-");break;case"enabled":n===!0?r.El.removeClass("-disabled-"):r.El.addClass("-disabled-")}},e.kit.prototype.__setOption=function(e,t){this.options[e]=t},e.kit.prototype._on=function(t,n){var r=this;e.each(n,function(e,n){t.bind(e+"."+r.name,n)})},e.kit.prototype.enable=function(){var e=this;e._setOption("enabled",!0)},e.kit.prototype.disable=function(){var e=this;e._setOption("enabled",!1)},e.kit.prototype.getState=function(){return this.state},e.kit.prototype._getOtherInstanses=function(t){var n=this;return e.grep(t,function(t){return e.data(e(t[0]),"kit-"+n.name)!==n})},e.kit.prototype._removeInstanse=function(e){var t=this,n,r=arguments.splice(0,1),i=r.length,s;while(i&&e.length){n=r[--i];while((s=e.indexOf(n))!=-1)e.splice(s,1)}return t}}(jQuery,window,document),function(e,t,n,r){var i="modal",s={autoOpen:!1,onlyOne:!0,shaderClass:"-shader",closerClass:"-closer",beforeOpen:e.noop(),open:e.noop(),ifOpenedOrNot:e.noop(),ifNotOpened:e.noop(),beforeClose:e.noop(),close:e.noop(),ifClosedOrNot:e.noop(),ifNotClosed:e.noop()};Modal=function(t,n){this.element=t,this.name=i,this.options=e.extend({},this.options,s,n),this._setOptions(this.options),typeof e.modal=="undefined"&&(e.modal=[]),this.element!=="undefined"&&e.modal.push(this.element),e(this.element).css({display:"none",left:"50%",top:"50%",position:"fixed"});var r=this;e(this.element).find("."+r.options.closerClass).on("click",function(){r.close()}),this.init()},Modal.prototype=new e.kit,Modal.prototype.constructor=Modal,Modal.prototype.__setOption=function(t,n){var i=this,s=e(i.element);switch(t){case"animation":if(e.easing===r||!(n in e.easing))switch(n){case"scaleIn":s.addClass("-mx-scaleIn");break;case"growUp":s.addClass("-mx-growUp");break;case"rotateIn":s.addClass("-mx-rotateIn");break;case"dropIn":s.addClass("-mx-dropIn")}break;case"theme":s.addClass("-"+n+"-")}i.options[t]=n},Modal.prototype.init=function(){var e=this;e.options.autoOpen&&e.open()},Modal.prototype._setPosition=function(){var t=this,n=e(t.element),r=n.outerWidth(),i=n.outerHeight();n.css({marginLeft:Math.round(-r/2),marginTop:Math.round(-i/2)})},Modal.prototype.open=function(){var t=this,n=e(t.element);if(t.options.enabled===!0&&t.state!=="opened"){t._openShader(),t.state="in";if(t.options.beforeOpen==="undefined"||typeof t.options.beforeOpen!="object"&&typeof t.options.beforeOpen!="function")t._open();else try{var r=t.options.beforeOpen.call(n);r.done(function(){t._open()}).fail(function(){t._closeShader(),t.state="closed",n.trigger("ifNotOpened."+t.name),n.trigger("ifOpenedOrNot."+t.name)})}catch(i){t._open()}}},Modal.prototype._open=function(){var t=this,n=e(t.element);t.state==="in"&&(t.options.onlyOne&&e.each(t._getOtherInstanses(e.modal),function(){e.data(this,"kit-"+t.name).getState()==="opened"&&e.data(this,"kit-"+t.name).close()}),t._setPosition(),t.options.animation!==null&&t.options.animation!==!1?t._openAnimation():n.css({opacity:1}).show(),t.state="opened",n.trigger("open."+t.name)),n.trigger("ifOpenedOrNot."+t.name)},Modal.prototype._openAnimation=function(){var t=this,n=e(t.element);e("html").addClass("-mx-shader"),e.easing!=="undefined"&&(t.options.animation.split(/[ ,]+/)[1]in e.easing||t.options.animation.split(/[ ,]+/)[0]in e.easing)?t.element.css({opacity:1}).slideDown({duration:t.options.animationDuration,easing:t.options.animation.split(/[ ,]+/)[0]}):(n.show(),n.addClass("-mx-start"))},Modal.prototype.close=function(){var t=this,n=e(t.element);if(t.options.enabled===!0&&t.state!=="closed"){t.state="out";if(t.options.beforeClose=="undefined"||typeof t.options.beforeClose!="object"&&typeof t.options.beforeClose!="function")t._close();else try{var r=t.options.beforeClose.call(n);r.done(function(){t._close()}).fail(function(){t._closeShader(),n.trigger("ifNotClosed."+t.name),n.trigger("ifClosedOrNot."+t.name),t.state="opened"})}catch(i){t._close()}}},Modal.prototype._close=function(){var t=this,n=e(t.element);t._closeShader(),t.state==="out"&&(t.options.animation===null?n.hide():t._closeAnimation(),t.state="closed",n.trigger("close")),n.trigger("ifClosedOrNot."+t.name)},Modal.prototype._closeAnimation=function(){var t=this,n=e(t.element);e("html").removeClass("-mx-shader"),e.easing!=="undefined"&&(t.options.animation.split(/[ ,]+/)[1]in e.easing||t.options.animation.split(/[ ,]+/)[0]in e.easing)?n.slideUp({duration:t.options.animationDuration,easing:t.options.animation.split(/[ ,]+/)[1]!=="undefined"?t.options.animation.split(/[ ,]+/)[1]:t.options.animation}):(n.removeClass("-mx-start"),n.hide())},Modal.prototype._openShader=function(){var t=this,n=e(t.element);e.shader===r&&(e.shader=e('<div class="'+t.options.shaderClass+'"></div>'),e("body").append(e.shader)),t.options.animation!==null||t.options.animation!==r?e.shader.fadeIn(150):e.shader.css({opacity:1}).show()},Modal.prototype._closeShader=function(){var t=this,i=e(t.element);e.shader===r&&(e.shader='<div class="'+t.options.shaderClass+'"></div>',e(n).append(e.shader)),t.options.animation!==null||t.options.animation!==r?e.shader.fadeOut(350):e.shader.css({opacity:0}).hide()},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Modal(this,t))})}}(jQuery,window,document),function(e,t,n,r){var i="notify",s={enabled:!0,theme:"dark",template:'<div class="-notify-container js-notify-container"></div>',templateNotify:'<div class="-notify -mx-releaseIn _bottom_"></div>',templateNotifyHeader:'<div class="-notify-header"></div>',templateNotifyContent:'<div class="-notify-content"></div>',templateCloser:'<div class="-notify-closeAll -label -dark-">close all <i class="-icon-remove-circle -icon-light-"></i></div>'};Notify=function(t,n){var o=this;this.state==="uninitialized"&&(this.name=i,this._id=0,this.notifications=[],this.archive=[],this.options=n===r?e.extend({},s,t):e.extend({},s,n),this.$element=e('<div class="-notify-container js-notify-container"></div>'),e("body").append(this.$element),this.closer=e(this.options.templateCloser),this.closer.on("click",function(e){var t=0;while(o.notifications.length!==0)clearTimeout(o.notifications[t].timer),o.notifyClose(o.notifications[t])}),this.$element.append(this.closer)),typeof n=="object"&&this._setOptions(n),typeof t=="string"&&this.notify(t,n)},Notify.prototype=new e.kit,Notify.prototype.constructor=Notify,Notify.prototype.__setOption=function(e,t){var n=this,r=n.$element;switch(e){case"theme":r.removeClass("-"+n.options.theme+"-"),r.addClass("-"+t+"-");break;case"enabled":t===!0?r.removeClass("-disabled-"):r.addClass("-disabled-")}n.options[e]=t},Notify.prototype.notify=function(t,n){var i=this,s=i.$element,o={},u;o.$element=e(i.options.templateNotify),o._id=i._id++,o.$element.attr("id","notification"+o._id),o.$element.css("z-index",10*o._id),n&&e.each(n,function(t,n){switch(t){case"header":o.header=e(i.options.templateNotifyHeader).append(n);break;case"theme":o.theme&&o.$element.removeClass(o.theme),o.$element.addClass("-"+n+"-"),o.theme=n;break;case"type":o.type=n}}),o.type===r&&(o.type=4e3),o.content=e(i.options.templateNotifyContent).append(t),o.header!==r&&typeof o.type!="number"&&o.header.append('<i class="-closer">&times;</i>'),o.$element.append(o.header!==r&&o.header,o.content),i.notifyShow(o)},Notify.prototype.notifyShow=function(t){var n=this,r=n.$element;t.$element.on("click",function(r){e(r.target).hasClass("-closer")&&n.notifyClose(t)}),n.notifications.push(t),r.append(t.$element),setTimeout(function(){t.$element.addClass("-mx-start")},1),n.notifications.length>1&&n.closer.fadeIn(),typeof t.type=="number"&&(n.notifyTimerClose(t),t.$element.on("mouseenter",function(e){clearTimeout(t.timer)}),t.$element.on("mouseleave",function(e){n.notifyTimerClose(t)}))},Notify.prototype.notifyTimerClose=function(e){var t=this,n=t.$element;e.timer=setTimeout(function(){t.notifyClose(e)},e.type)},Notify.prototype.notifyClose=function(t){var n=this,r=n.$element;r.find("#notification"+t._id).animate({opacity:0},function(){e(this).slideUp(function(){e(this).remove()})}),n.removeNotifyInstance(t)&&n.notifications.length<=1&&n.closer.fadeOut()},Notify.prototype.removeNotifyInstance=function(e){var t=this,n=t.$element,r=0;while(t.notifications[r]._id!==e._id&&r<t.notifications.length)r++;return t.notifications[r]._id===e._id&&(t.archive.push(t.notifications[r]),t.notifications.splice(r,1)),!0},e[i]=function(t,n){e("body").data("kit-"+i)?n===r&&typeof t=="string"?e("body").data("kit-"+i).init(t):e("body").data("kit-"+i).notify(t,n):e("body").data("kit-"+i,new Notify(t,n))}}(jQuery,window,document),function(e,t,n,r){var i="popup",s={placement:"top",offset:[0,0],autoOpen:!1,template:'<div class="js-content"></div>',onlyOne:!1,content:null,header:null,trigger:"click",delay:0,beforeOpen:e.noop(),open:e.noop(),ifOpenedOrNot:e.noop(),ifNotOpened:e.noop(),beforeClose:e.noop(),close:e.noop(),ifClosedOrNot:e.noop(),ifNotClosed:e.noop()};Popup=function(t,n){this.element=t,this.name=i,this.state="closed",this.options=e.extend({},this.options,s,n),this.options.template.charAt(0)!=="."&&this.options.template.charAt(0)!=="#"?this.El=e(this.options.template):this.El=e(e(this.options.template).html()),e("body").append(this.El),this.El.css({position:"absolute",display:"none"}).find(".-arrow").css({opacity:0}),this._setOptions(this.options),typeof e.popup=="undefined"&&(e.popup=[]),this.element!==r&&e.popup.push(this.element),this.timeout=null,this.init()},Popup.prototype=new e.kit,Popup.prototype.constructor=Popup,Popup.prototype.__setOption=function(t,n){var i=this,s=e(i.element);switch(t){case"trigger":var o=n.split(/[ ,]+/);typeof i.options[t]["in"]!==r&&s.off("mouseenter."+i.name,"click."+i.name),typeof i.options[t].out!==r&&s.off("mouseleave."+i.name,"click."+i.name),i.options[t]={"in":o[0],out:o[1]==r||o[1]==""?o[0]:o[1]};switch(i.options[t]["in"]){case"hover":s.on("mouseenter."+i.name,function(e){i.state==="closed"&&i.open()});break;default:s.on(i.options[t]["in"]+"."+i.name,function(){i.state==="closed"&&i.open()})}switch(i.options[t].out){case"hover":s.on("mouseleave."+i.name,function(e){i.close()});break;default:s.on(i.options[t].out+"."+i.name,function(){i.state=="opened"&&i.close()})}break;case"content":n!==null?i.El.find(".js-content").html(n):i.El.find(".js-content").html(s.data("content"));break;case"header":n!==null?i.El.find(".js-header").html(n):i.El.find(".js-header").html(s.data("header"));break;case"placement":i.El.removeClass("_"+i.options.placement+"_"),i.El.addClass("_"+n+"_");break;case"animation":if(e.easing===r||!(n in e.easing))switch(n){case"scaleIn":i.El.addClass("-mx-scaleIn");break;case"growUp":i.El.addClass("-mx-growUp");break;case"rotateIn":i.El.addClass("-mx-rotateIn");break;case"dropIn":i.El.addClass("-mx-dropIn")}}t!=="trigger"&&(i.options[t]=n)},Popup.prototype.init=function(){var e=this;e.options.autoOpen&&e.open()},Popup.prototype.open=function(){var t=this,n=e(t.element);t.timeout=setTimeout(function(){if(t.options.enabled===!0&&t.state!=="opened"){t.state="in";if(t.options.beforeOpen===r||typeof t.options.beforeOpen!="object"&&typeof t.options.beforeOpen!="function")t._open();else try{var e=t.options.beforeOpen.call(n);e.done(function(){t._open()}).fail(function(){t.state="closed",n.trigger("ifNotOpened."+t.name),n.trigger("ifOpenedOrNot."+t.name)})}catch(i){t._open()}}},t.options.delay)},Popup.prototype._open=function(){var t=this,n=e(t.element);t.state==="in"&&(t.options.onlyOne&&e.each(t._getOtherInstanses(e.popup),function(){e.data(this,"kit-"+t.name).getState()==="opened"&&e.data(this,"kit-"+t.name).close()}),t._setPosition(),t.options.animation!==null&&t.options.animation!==!1?t._openAnimation():(t.El.find(".-arrow").css({opacity:1}),t.El.show()),t.state="opened",n.trigger("open."+t.name)),n.trigger("ifOpenedOrNot."+t.name)},Popup.prototype._openAnimation=function(){var t=this,n=e(t.element);e.easing!==r&&(t.options.animation.split(/[ ,]+/)[1]in e.easing||t.options.animation.split(/[ ,]+/)[0]in e.easing)?t.El.animate({opacity:1},50).slideDown({duration:t.options.animationDuration,easing:t.options.animation.split(/[ ,]+/)[0],complete:function(){t.El.find(".-arrow").animate({opacity:1})}}):(t.El.show().animate({opacity:1},50),this.El.find(".-arrow").css({opacity:1}),Modernizr&&Modernizr.csstransitions&&Modernizr.csstransforms3d&&Modernizr.cssanimations&&t.El.addClass("-mx-start"))},Popup.prototype.close=function(){var t=this,n=e(t.element);clearTimeout(t.timeout);if(t.options.enabled===!0&&t.state!=="closed"){t.state="out";if(t.options.beforeClose==r||typeof t.options.beforeClose!="object"&&typeof t.options.beforeClose!="function")t._close();else try{var i=t.options.beforeClose.call(n);i.done(function(){t._close()}).fail(function(){n.trigger("ifNotClosed."+t.name),n.trigger("ifClosedOrNot."+t.name),t.state="opened"})}catch(s){t._close()}}},Popup.prototype._close=function(){var t=this,n=e(t.element);t.state==="out"&&(t.options.animation===null?t.El.hide():t._closeAnimation(),t.state="closed",n.trigger("close")),n.trigger("ifClosedOrNot."+t.name)},Popup.prototype._closeAnimation=function(){var t=this,n=e(t.element);e.easing!==r&&(t.options.animation.split(/[ ,]+/)[1]in e.easing||t.options.animation.split(/[ ,]+/)[0]in e.easing)?t.El.animate({opacity:0},200).slideUp({duration:t.options.animationDuration,easing:t.options.animation.split(/[ ,]+/)[1]!==r?t.options.animation.split(/[ ,]+/)[1]:t.options.animation,complete:function(){t.El.find(".-arrow").animate({opacity:0})}}):Modernizr&&Modernizr.csstransitions&&Modernizr.csstransforms3d&&Modernizr.cssanimations?(t.El.animate({opacity:0},200).removeClass("-mx-start"),setTimeout(function(){t.state==="closed"&&t.El.hide()},1e3)):t.El.animate({opacity:0},200).hide()},Popup.prototype._setPosition=function(){var t=this,r=e(t.element),i=r.outerWidth(),s=r.outerHeight(),o=r.offset(),u=8,a=1,f="absolute";e.each(r.parents(),function(t,n){e(n).css("z-index")!=="auto"&&parseInt(e(n).css("z-index"))>a&&(a=e(n).css("z-index")+1),e(n).css("position")==="fixed"&&(f="fixed")}),f==="fixed"&&(o.top=o.top-e(n).scrollTop()),t.El.css({"z-index":a,position:f});var l={};switch(t.options.placement){case"top":l={top:Math.round(o.top-t.El.outerHeight()-u+t.options.offset[0]),left:Math.round(o.left+i/2-t.El.outerWidth()/2+t.options.offset[1])};break;case"bottom":l={top:Math.round(o.top+s+u+t.options.offset[0]),left:Math.round(o.left+i/2-t.El.outerWidth()/2+t.options.offset[1])};break;case"left":l={top:Math.round(o.top+s/2-t.El.outerHeight()/2),left:Math.round(o.left-t.El.outerWidth()-u+t.options.offset[1])};break;case"right":l={top:Math.round(o.top+s/2-t.El.outerHeight()/2),left:Math.round(o.left+i+u+t.options.offset[1])}}t.El.css(l)},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Popup(this,t))})}}(jQuery,window,document),function(e,t,n,r){var i="scrollspy",s={itemSelector:"li",offset:2,animation:!0};Scrollspy=function(n,r){this.name=i,this.element=n,this.options=e.extend({},s,r);var o=e.proxy(this.process,this);this.$scrollable=e(this.element).is("body")?e(t):e(this.element),e(t).on("scroll."+this.name,o),e(t).on("resize."+this.name,e.proxy(this.refresh,this)),this.init(),o()},Scrollspy.prototype=new e.kit,Scrollspy.prototype.constructor=Scrollspy,Scrollspy.prototype.init=function(){var t=this,n=e(t.element);t.refresh()},Scrollspy.prototype.refresh=function(){var t=this,n=e(t.element),r;t.targets=e([]),t.offsets=e([]),r=t.$scrollable.find(t.options.itemSelector).map(function(){var t=e(this),n=t.data("target")||t.attr("href"),r=/^#\w/.test(n)&&e(n);return r&&r.length&&[[r.position().top,n]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},Scrollspy.prototype.process=function(){var n=this,r=e(n.element),i=e(t).scrollTop()+n.options.offset,s;for(s=0;s<n.offsets.length-1;s++)i<n.offsets[0]&&n.activate(n.targets[0]),n.offsets[s]<i&&i<=n.offsets[s+1]&&n.activate(n.targets[s]),i>n.offsets[s+1]&&n.activate(n.targets[s+1])},Scrollspy.prototype.activate=function(t){var n=this,r=e(n.element),i,s,o=n.options.animation?"_active_ -mx-start":"_active_";n.active=t,r.find("._active_").removeClass(o),e('[data-target="'+t+'"]').addClass(o),s=e("body").find(t).trigger("activate")},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Scrollspy(this,t))})}}(jQuery,window,document),function(e,t,n,r){var i="tabs",s={itemsSelector:r,itemsData:r,dataTarget:"tabs-target",trigger:"click",beforeOpen:e.noop(),open:e.noop(),ifOpenedOrNot:e.noop(),ifNotOpened:e.noop(),beforeClose:e.noop(),close:e.noop(),ifClosedOrNot:e.noop(),ifNotClosed:e.noop()};Tabs=function(t,n){this.element=t,this.name=i,this.state="closed",this.options=e.extend({},this.options,s,n),this.items=[],this._setOptions(this.options),this.init()},Tabs.prototype=new e.kit,Tabs.prototype.constructor=Tabs,Tabs.prototype.__setOption=function(t,n){var r=this,i=e(r.element);switch(t){case"itemsSelector","itemsData","trigger":r._setEvents()}r.options[t]=n},Tabs.prototype._getItems=function(){var t=this,n=e(t.element),i=[];return t.options.itemsSelector!==r?n.find(t.options.itemsSelector).each(function(t,n){i.push(e(n))}):n.find('[data-tabs="'+t.options.itemsData+'"]').each(function(t,n){i.push(e(n))}),i},Tabs.prototype._getItem=function(t){var n=this,i=e(n.element),s=r,o;return o=e(t.target),o.closest(n.options.itemsSelector).length>0&&(s=e(o.closest(n.options.itemsSelector))),o.closest('[data-tabs="'+n.options.itemsData+'"]').length>0&&(s=e(o.closest('[data-tabs="'+n.options.itemsData+'"]').get(0))),o.hasClass(n.options.itemsSelector)&&(s=e(o)),s},Tabs.prototype._unsetEvents=function(){var t=this,n=e(t.element);return n.off("."+t.name),t},Tabs.prototype._setEvents=function(){var t=this,n=e(t.element),r,i;t._unsetEvents();switch(t.options.trigger){case"hover":r="mouseenter."+t.name;break;case"click":r="click."+t.name}n.on(r,function(e){var n=t._getItem(e);n&&!t._isOpen(n)&&t.open(n)})},Tabs.prototype.init=function(){var t=this,n=e(t.element)},Tabs.prototype.open=function(t){var n=this,r=e(n.element);if(n.options.enabled===!0)try{var i=n.options.beforeOpen.call(t);i.done(function(){n._open(t)}).fail(function(){n.state="closed",r.trigger("ifNotOpened."+n.name),r.trigger("ifOpenedOrNot."+n.name)})}catch(s){n._open(t)}},Tabs.prototype._open=function(t){var i=this,s=e(i.element),o=e(n).find(t.data(i.options.dataTarget));if(i.options.dataTarget)if(t.data("tabs-data")!==r)try{e.get(t.data("tabs-data")).done(function(e,n,r){i.close()&&(o.html(r.responseText),i._openAnimation(t,o),s.trigger("ifOpenedOrNot."+i.name))}).fail(function(e){s.trigger("ifNotOpened."+i.name),s.trigger("ifOpenedOrNot."+i.name)})}catch(u){s.trigger("ifNotOpened."+i.name),s.trigger("ifOpenedOrNot."+i.name)}else i.close()&&i._openAnimation(t,o)},Tabs.prototype._openAnimation=function(t,n){var r=this,i=e(r.element);t.addClass("_active_"),r.options.animation?n.fadeIn():n.show(),i.trigger("open."+r.name)},Tabs.prototype.close=function(){var t=this,r=e(t.element);return e.each(t._getItems(),function(r,i){t._isOpen(i)&&(e(n).find(i.data(t.options.dataTarget)).hide(),i.removeClass("_active_"))}),r.trigger("close."+t.name),!0},Tabs.prototype._isOpen=function(t){var n=this,r=e(n.element);return t.hasClass("_active_")},e.fn[i]=function(t){return this.each(function(){e.data(this,"kit-"+i)?typeof t=="object"?e.data(this,"kit-"+i)._setOptions(t):typeof t=="string"&&t.charAt(0)!=="_"?e.data(this,"kit-"+i)[t]:e.error("What do you want to do?"):e.data(this,"kit-"+i,new Tabs(this,t))})}}(jQuery,window,document);