window.Materialize={},Materialize.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),Materialize.elementOrParentIsFixed=function(t){var e=$(t),i=e.add(e.parents()),n=!1;return i.each(function(){return"fixed"===$(this).css("position")?(n=!0,!1):void 0}),n};var Vel;Vel=$?$.Velocity:Velocity,jQuery.extend(jQuery.easing,{easeInOutMaterial:function(t,e,i,n,r){return(e/=r/2)<1?n/2*e*e+i:n/4*((e-=2)*e*e+2)+i}}),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn",function(i){var n=t(this);e(n)}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn",function(e){var n=t(this);i(n)})}),t.fn.extend({openFAB:function(){var i=t(this);e(i)},closeFAB:function(){i($this)}});var e=function(e){if($this=e,$this.hasClass("active")===!1){$this.addClass("active"),$this.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:"40px"},{duration:0});var i=0;$this.find("ul .btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0"},{duration:80,delay:i}),i+=40})}},i=function(t){$this=t,$this.removeClass("active");$this.find("ul .btn-floating").velocity("stop",!0),$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:"40px"},{duration:80})}}(jQuery),function(t){t(document).ready(function(){t(document).on("click.card",".card",function(e){t(this).find("> .card-reveal").length&&(t(e.target).is(t(".card-reveal .card-title"))||t(e.target).is(t(".card-reveal .card-title i"))?t(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){t(this).css({display:"none"})}}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&t(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))})})}(jQuery),function(t){t.fn.scrollTo=function(e){return t(this).scrollTop(t(this).scrollTop()-t(this).offset().top+t(e).offset().top),this},t.fn.dropdown=function(e){var i={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left"};this.each(function(){function n(){void 0!==o.data("induration")&&(s.inDuration=o.data("inDuration")),void 0!==o.data("outduration")&&(s.outDuration=o.data("outDuration")),void 0!==o.data("constrainwidth")&&(s.constrain_width=o.data("constrainwidth")),void 0!==o.data("hover")&&(s.hover=o.data("hover")),void 0!==o.data("gutter")&&(s.gutter=o.data("gutter")),void 0!==o.data("beloworigin")&&(s.belowOrigin=o.data("beloworigin")),void 0!==o.data("alignment")&&(s.alignment=o.data("alignment"))}function r(){n(),l.addClass("active"),s.constrain_width===!0?l.css("width",o.outerWidth()):l.css("white-space","nowrap");var e=0;s.belowOrigin===!0&&(e=o.height());var i,r,a,u=o.offset().left;if(u+l.innerWidth()>t(window).width()?s.alignment="right":u-l.innerWidth()+o.innerWidth()<0&&(s.alignment="left"),"left"===s.alignment)r=0,a=s.gutter,i=o.position().left+r+a,l.css({left:i});else if("right"===s.alignment){{t(window).width()-u-o.innerWidth()}r=0,a=s.gutter,i=t(window).width()-o.position().left-o.innerWidth()+a,l.css({right:i})}l.css({position:"absolute",top:o.position().top+e}),l.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:s.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:s.inDuration,easing:"easeOutSine"})}function a(){l.fadeOut(s.outDuration),l.removeClass("active")}var o=t(this),s=t.extend({},i,e),l=t("#"+o.attr("data-activates"));if(n(),o.after(l),s.hover){var u=!1;o.unbind("click."+o.attr("id")),o.on("mouseenter",function(t){u===!1&&(r(),u=!0)}),o.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-content").is(l)||(l.stop(!0,!0),a(),u=!1)}),l.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-button").is(o)||(l.stop(!0,!0),a(),u=!1)})}else o.unbind("click."+o.attr("id")),o.bind("click."+o.attr("id"),function(e){o[0]==e.currentTarget&&0===t(e.target).closest(".dropdown-content").length?(e.preventDefault(),r()):o.hasClass("active")&&(a(),t(document).unbind("click."+l.attr("id"))),l.hasClass("active")&&t(document).bind("click."+l.attr("id"),function(e){!l.is(e.target)&&!o.is(e.target)&&!o.find(e.target).length>0&&(a(),t(document).unbind("click."+l.attr("id")))})});o.on("open",r),o.on("close",a)})},t(document).ready(function(){t(".dropdown-button").dropdown()})}(jQuery),function(t){t(document).ready(function(){function e(e){var i=e.css("font-family"),r=e.css("font-size");r&&n.css("font-size",r),i&&n.css("font-family",i),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e.val()+"\n");var a=n.html().replace(/\n/g,"<br>");n.html(a),e.is(":visible")?n.css("width",e.width()):n.css("width",t(window).width()/2),e.css("height",n.height())}Materialize.updateTextFields=function(){var e="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";t(e).each(function(e,i){t(i).val().length>0||void 0!==t(this).attr("placeholder")||t(i)[0].validity.badInput===!0?t(this).siblings("label").addClass("active"):t(this).siblings("label, i").removeClass("active")})};var i="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";t("input[autofocus]").siblings("label, i").addClass("active"),t(document).on("change",i,function(){(0!==t(this).val().length||void 0!==t(this).attr("placeholder"))&&t(this).siblings("label").addClass("active"),validate_field(t(this))}),t(document).ready(function(){Materialize.updateTextFields()}),t(document).on("reset",function(e){var n=t(e.target);n.is("form")&&(n.find(i).removeClass("valid").removeClass("invalid"),n.find(i).each(function(){""===t(this).attr("value")&&t(this).siblings("label, i").removeClass("active")}),n.find("select.initialized").each(function(){var t=n.find("option[selected]").text();n.siblings("input.select-dropdown").val(t)}))}),t(document).on("focus",i,function(){t(this).siblings("label, i").addClass("active")}),t(document).on("blur",i,function(){var e=t(this);0===e.val().length&&e[0].validity.badInput!==!0&&void 0===e.attr("placeholder")&&e.siblings("label, i").removeClass("active"),0===e.val().length&&e[0].validity.badInput!==!0&&void 0!==e.attr("placeholder")&&e.siblings("i").removeClass("active"),validate_field(e)}),window.validate_field=function(t){var e=void 0!==t.attr("length"),i=parseInt(t.attr("length")),n=t.val().length;0===t.val().length&&t[0].validity.badInput===!1?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")&&e&&i>=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))};var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n));var r=".materialize-textarea";t(r).each(function(){var i=t(this);i.val().length&&e(i)}),t("body").on("keyup keydown autoresize",r,function(){e(t(this))}),t(document).on("change",'.file-field input[type="file"]',function(){for(var e=t(this).closest(".file-field"),i=e.find("input.file-path"),n=t(this)[0].files,r=[],a=0;a<n.length;a++)r.push(n[a].name);i.val(r.join(", ")),i.trigger("change")});var a,o="input[type=range]",s=!1;t(o).each(function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)});var l=".range-field";t(document).on("change",o,function(e){var i=t(this).siblings(".thumb");i.find(".value").html(t(this).val())}),t(document).on("input mousedown touchstart",o,function(e){var i=t(this).siblings(".thumb");i.length<=0&&(i=t('<span class="thumb"><span class="value"></span></span>'),t(this).append(i)),i.find(".value").html(t(this).val()),s=!0,t(this).addClass("active"),i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),a=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left;var n=t(this).outerWidth();0>a?a=0:a>n&&(a=n),i.addClass("active").css("left",a),i.find(".value").html(t(this).val())}),t(document).on("mouseup touchend",l,function(){s=!1,t(this).removeClass("active")}),t(document).on("mousemove touchmove",l,function(e){var i,n=t(this).children(".thumb");if(s){n.hasClass("active")||n.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),i=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left;var r=t(this).outerWidth();0>i?i=0:i>r&&(i=r),n.addClass("active").css("left",i),n.find(".value").html(n.siblings(o).val())}}),t(document).on("mouseout touchleave",l,function(){if(!s){var e=t(this).children(".thumb");e.hasClass("active")&&e.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100}),e.removeClass("active")}})}),t.fn.material_select=function(e){t(this).each(function(){if($select=t(this),!$select.hasClass("browser-default")){var i=$select.data("select-id");if(i&&($select.parent().find("span.caret").remove(),$select.parent().find("input").remove(),$select.unwrap(),t("ul#select-options-"+i).remove()),"destroy"===e)return void $select.data("select-id",null).removeClass("initialized");var n=Materialize.guid();$select.data("select-id",n);var r=t('<div class="select-wrapper"></div>');r.addClass($select.attr("class"));var a,o=t('<ul id="select-options-'+n+'" class="dropdown-content select-dropdown"></ul>'),s=$select.children("option");a=void 0!==$select.find("option:selected")?$select.find("option:selected"):o.first(),s.each(function(){o.append(t('<li class="'+(t(this).is(":disabled")?"disabled":"")+'"><span>'+t(this).html()+"</span></li>"))}),o.find("li").each(function(i){var n=$select;t(this).click(function(){t(this).hasClass("disabled")||(n.find("option").eq(i).prop("selected",!0),n.trigger("change"),n.siblings("input.select-dropdown").val(t(this).text()),"undefined"!=typeof e&&e())})}),$select.wrap(r);var l=t('<span class="caret">&#9660;</span>');$select.is(":disabled")&&l.addClass("disabled");var u=a.html().replace(/"/g,"&quot;"),c=t('<input type="text" class="select-dropdown" readonly="true" '+($select.is(":disabled")?"disabled":"")+' data-activates="select-options-'+n+'" value="'+u+'"/>');$select.before(c),c.before(l),t("body").append(o),$select.is(":disabled")||c.dropdown({hover:!1}),$select.attr("tabindex")&&t(c[0]).attr("tabindex",$select.attr("tabindex")),$select.addClass("initialized"),c.on("focus",function(){t(this).trigger("open"),a=t(this).val(),selectedOption=o.find("li").filter(function(){return t(this).text().toLowerCase()===a.toLowerCase()})[0],activateOption(o,selectedOption)}),c.on("blur",function(){t(this).trigger("close")}),activateOption=function(e,i){e.find("li.active").removeClass("active"),t(i).addClass("active"),e.scrollTo(i)},filterQuery=[],onKeyDown=function(e){if(9==e.which)return void c.trigger("close");if(40==e.which&&!o.is(":visible"))return void c.trigger("open");if(13!=e.which||o.is(":visible")){e.preventDefault(),letter=String.fromCharCode(e.which).toLowerCase();var i=[9,13,27,38,40];letter&&-1===i.indexOf(e.which)&&(filterQuery.push(letter),string=filterQuery.join(""),newOption=o.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(string)})[0],newOption&&activateOption(o,newOption)),13==e.which&&(activeOption=o.find("li.active:not(.disabled)")[0],activeOption&&(t(activeOption).trigger("click"),c.trigger("close"))),40==e.which&&(newOption=o.find("li.active").next("li:not(.disabled)")[0],newOption&&activateOption(o,newOption)),27==e.which&&c.trigger("close"),38==e.which&&(newOption=o.find("li.active").prev("li:not(.disabled)")[0],newOption&&activateOption(o,newOption)),setTimeout(function(){filterQuery=[]},1e3)}},c.on("keydown",onKeyDown)}})}}(jQuery),!function(t,e,i,n){"use strict";function r(t,e,i){return setTimeout(c(t,i),e)}function a(t,e,i){return Array.isArray(t)?(o(t,i[e],i),!0):!1}function o(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function s(t,e,i){for(var r=Object.keys(e),a=0;a<r.length;)(!i||i&&t[r[a]]===n)&&(t[r[a]]=e[r[a]]),a++;return t}function l(t,e){return s(t,e,!0)}function u(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&s(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==ct?t.apply(e?e[0]||n:n,e):t}function p(t,e){return t===n?e:t}function f(t,e,i){o(m(e),function(e){t.addEventListener(e,i,!1)})}function h(t,e,i){o(m(e),function(e){t.removeEventListener(e,i,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function y(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function w(t,e,i){for(var n=[],r=[],a=0;a<t.length;){var o=e?t[a][e]:t[a];y(r,o)<0&&n.push(t[a]),r[a]=o,a++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function x(t,e){for(var i,r,a=e[0].toUpperCase()+e.slice(1),o=0;o<lt.length;){if(i=lt[o],r=i?i+a:e,r in t)return r;o++}return n}function T(){return ht++}function C(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function S(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&i.handler(e)},this.init()}function P(t){var e,i=t.options.inputClass;return new(e=i?i:mt?R:yt?$:gt?X:j)(t,E)}function E(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,a=e&St&&0===n-r,o=e&(Et|Ot)&&0===n-r;i.isFirst=!!a,i.isFinal=!!o,a&&(t.session={}),i.eventType=e,O(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function O(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=A(e)),r>1&&!i.firstMultiple?i.firstMultiple=A(e):1===r&&(i.firstMultiple=!1);var a=i.firstInput,o=i.firstMultiple,s=o?o.center:a.center,l=e.center=I(n);e.timeStamp=ft(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=N(s,l),e.distance=L(s,l),k(i,e),e.offsetDirection=z(e.deltaX,e.deltaY),e.scale=o?F(o.pointers,n):1,e.rotation=o?q(o.pointers,n):0,V(i,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function k(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},a=t.prevInput||{};(e.eventType===St||a.eventType===Et)&&(r=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function V(t,e){var i,r,a,o,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=Ot&&(l>Ct||s.velocity===n)){var u=s.deltaX-e.deltaX,c=s.deltaY-e.deltaY,d=M(l,u,c);r=d.x,a=d.y,i=pt(d.x)>pt(d.y)?d.x:d.y,o=z(u,c),t.lastInterval=e}else i=s.velocity,r=s.velocityX,a=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=r,e.velocityY=a,e.direction=o}function A(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:dt(t.pointers[i].clientX),clientY:dt(t.pointers[i].clientY)},i++;return{timeStamp:ft(),pointers:e,center:I(e),deltaX:t.deltaX,deltaY:t.deltaY}}function I(t){var e=t.length;if(1===e)return{x:dt(t[0].clientX),y:dt(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:dt(i/e),y:dt(n/e)}}function M(t,e,i){return{x:e/t||0,y:i/t||0}}function z(t,e){return t===e?kt:pt(t)>=pt(e)?t>0?Vt:At:e>0?It:Mt}function L(t,e,i){i||(i=qt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function N(t,e,i){i||(i=qt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function q(t,e){return N(e[1],e[0],Ft)-N(t[1],t[0],Ft)}function F(t,e){return L(e[0],e[1],Ft)/L(t[0],t[1],Ft)}function j(){this.evEl=Rt,this.evWin=Ht,this.allow=!0,this.pressed=!1,S.apply(this,arguments)}function R(){this.evEl=Qt,this.evWin=Xt,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=Wt,this.evWin=Yt,this.started=!1,S.apply(this,arguments)}function D(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(Et|Ot)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}function $(){this.evTarget=Gt,this.targetIds={},S.apply(this,arguments)}function Q(t,e){var i=b(t.touches),n=this.targetIds;if(e&(St|Pt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,a,o=b(t.changedTouches),s=[],l=this.target;if(a=i.filter(function(t){return v(t.target,l)}),e===St)for(r=0;r<a.length;)n[a[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&s.push(o[r]),e&(Et|Ot)&&delete n[o[r].identifier],r++;return s.length?[w(a.concat(s),"identifier",!0),s]:void 0}function X(){S.apply(this,arguments);var t=c(this.handler,this);this.touch=new $(this.manager,t),this.mouse=new j(this.manager,t)}function _(t,e){this.manager=t,this.set(e)}function W(t){if(g(t,ee))return ee;var e=g(t,ie),i=g(t,ne);return e&&i?ie+" "+ne:e||i?e?ie:ne:g(t,te)?te:Kt}function Y(t){this.id=T(),this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=p(this.options.enable,!0),this.state=re,this.simultaneous={},this.requireFail=[]}function B(t){return t&ue?"cancel":t&se?"end":t&oe?"move":t&ae?"start":""}function G(t){return t==Mt?"down":t==It?"up":t==Vt?"left":t==At?"right":""}function U(t,e){var i=e.manager;return i?i.get(t):t}function Z(){Y.apply(this,arguments)}function J(){Z.apply(this,arguments),this.pX=null,this.pY=null}function K(){Z.apply(this,arguments)}function tt(){Y.apply(this,arguments),this._timer=null,this._input=null}function et(){Z.apply(this,arguments)}function it(){Z.apply(this,arguments)}function nt(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function rt(t,e){return e=e||{},e.recognizers=p(e.recognizers,rt.defaults.preset),new at(t,e)}function at(t,e){e=e||{},this.options=l(e,rt.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=P(this),this.touchAction=new _(this,this.options.touchAction),ot(this,!0),o(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ot(t,e){var i=t.element;o(t.options.cssProps,function(t,n){i.style[x(i.style,n)]=e?t:""})}function st(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var lt=["","webkit","moz","MS","ms","o"],ut=e.createElement("div"),ct="function",dt=Math.round,pt=Math.abs,ft=Date.now,ht=1,vt=/mobile|tablet|ip(ad|hone|od)|android/i,gt="ontouchstart"in t,mt=x(t,"PointerEvent")!==n,yt=gt&&vt.test(navigator.userAgent),bt="touch",wt="pen",xt="mouse",Tt="kinect",Ct=25,St=1,Pt=2,Et=4,Ot=8,kt=1,Vt=2,At=4,It=8,Mt=16,zt=Vt|At,Lt=It|Mt,Nt=zt|Lt,qt=["x","y"],Ft=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(C(this.element),this.evWin,this.domHandler)}};var jt={mousedown:St,mousemove:Pt,mouseup:Et},Rt="mousedown",Ht="mousemove mouseup";u(j,S,{handler:function(t){var e=jt[t.type];e&St&&0===t.button&&(this.pressed=!0),e&Pt&&1!==t.which&&(e=Et),this.pressed&&this.allow&&(e&Et&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:xt,srcEvent:t}))}});var Dt={pointerdown:St,pointermove:Pt,pointerup:Et,pointercancel:Ot,pointerout:Ot},$t={2:bt,3:wt,4:xt,5:Tt},Qt="pointerdown",Xt="pointermove pointerup pointercancel";t.MSPointerEvent&&(Qt="MSPointerDown",Xt="MSPointerMove MSPointerUp MSPointerCancel"),u(R,S,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Dt[n],a=$t[t.pointerType]||t.pointerType,o=a==bt,s=y(e,t.pointerId,"pointerId");r&St&&(0===t.button||o)?0>s&&(e.push(t),s=e.length-1):r&(Et|Ot)&&(i=!0),0>s||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:a,srcEvent:t}),i&&e.splice(s,1))}});var _t={touchstart:St,touchmove:Pt,touchend:Et,touchcancel:Ot},Wt="touchstart",Yt="touchstart touchmove touchend touchcancel";u(H,S,{handler:function(t){var e=_t[t.type];if(e===St&&(this.started=!0),this.started){var i=D.call(this,t,e);e&(Et|Ot)&&0===i[0].length-i[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}});var Bt={touchstart:St,touchmove:Pt,touchend:Et,touchcancel:Ot},Gt="touchstart touchmove touchend touchcancel";u($,S,{handler:function(t){var e=Bt[t.type],i=Q.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}),u(X,S,{handler:function(t,e,i){var n=i.pointerType==bt,r=i.pointerType==xt;if(n)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(Et|Ot)&&(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ut=x(ut.style,"touchAction"),Zt=Ut!==n,Jt="compute",Kt="auto",te="manipulation",ee="none",ie="pan-x",ne="pan-y";_.prototype={set:function(t){t==Jt&&(t=this.compute()),Zt&&(this.manager.element.style[Ut]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return o(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),W(t.join(" "))},preventDefaults:function(t){if(!Zt){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,r=g(n,ee),a=g(n,ne),o=g(n,ie);return r||a&&i&zt||o&&i&Lt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var re=1,ae=2,oe=4,se=8,le=se,ue=16,ce=32;Y.prototype={defaults:{},set:function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(a(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=U(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return a(t,"dropRecognizeWith",this)?this:(t=U(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(a(t,"requireFailure",this))return this;var e=this.requireFail;return t=U(t,this),-1===y(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(a(t,"dropRequireFailure",this))return this;t=U(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(i.options.event+(e?B(n):""),t)}var i=this,n=this.state;se>n&&e(!0),e(),n>=se&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=ce)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(ce|re)))return!1;t++}return!0},recognize:function(t){var e=s({},t);return d(this.options.enable,[this,e])?(this.state&(le|ue|ce)&&(this.state=re),this.state=this.process(e),void(this.state&(ae|oe|se|ue)&&this.tryEmit(e))):(this.reset(),void(this.state=ce))},process:function(){},getTouchAction:function(){},reset:function(){}},u(Z,Y,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(ae|oe),r=this.attrTest(t);return n&&(i&Ot||!r)?e|ue:n||r?i&Et?e|se:e&ae?e|oe:ae:ce}}),u(J,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:Nt},getTouchAction:function(){var t=this.options.direction,e=[];return t&zt&&e.push(ne),t&Lt&&e.push(ie),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,a=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&zt?(r=0===a?kt:0>a?Vt:At,i=a!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?kt:0>o?It:Mt,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return Z.prototype.attrTest.call(this,t)&&(this.state&ae||!(this.state&ae)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=G(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),u(K,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ee]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ae)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),u(tt,Y,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Kt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,a=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(Et|Ot)&&!a)this.reset();else if(t.eventType&St)this.reset(),this._timer=r(function(){this.state=le,this.tryEmit()},e.time,this);else if(t.eventType&Et)return le;return ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===le&&(t&&t.eventType&Et?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ft(),this.manager.emit(this.options.event,this._input)))}}),u(et,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ee]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ae)}}),u(it,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:zt|Lt,pointers:1},getTouchAction:function(){return J.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(zt|Lt)?e=t.velocity:i&zt?e=t.velocityX:i&Lt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&pt(e)>this.options.velocity&&t.eventType&Et},emit:function(t){var e=G(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(nt,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[te]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,a=t.deltaTime<e.time;if(this.reset(),t.eventType&St&&0===this.count)return this.failTimeout();if(n&&a&&i){if(t.eventType!=Et)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime<e.interval:!0,s=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;var l=this.count%e.taps;if(0===l)return this.hasRequireFailures()?(this._timer=r(function(){this.state=le,this.tryEmit()},e.interval,this),ae):le}return ce},failTimeout:function(){return this._timer=r(function(){this.state=ce},this.options.interval,this),ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==le&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),rt.VERSION="2.0.4",rt.defaults={domEvents:!1,touchAction:Jt,enable:!0,inputTarget:null,inputClass:null,preset:[[et,{enable:!1}],[K,{enable:!1},["rotate"]],[it,{direction:zt}],[J,{direction:zt},["swipe"]],[nt],[nt,{event:"doubletap",taps:2},["tap"]],[tt]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var de=1,pe=2;at.prototype={set:function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?pe:de},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&le)&&(r=e.curRecognizer=null);for(var a=0;a<n.length;)i=n[a],e.stopped===pe||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(ae|oe|se)&&(r=e.curRecognizer=i),a++}},get:function(t){if(t instanceof Y)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(a(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(a(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var i=this.handlers;return o(m(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i=this.handlers;return o(m(t),function(t){e?i[t].splice(y(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&&st(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&ot(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(rt,{INPUT_START:St,INPUT_MOVE:Pt,INPUT_END:Et,INPUT_CANCEL:Ot,STATE_POSSIBLE:re,STATE_BEGAN:ae,STATE_CHANGED:oe,STATE_ENDED:se,STATE_RECOGNIZED:le,STATE_CANCELLED:ue,STATE_FAILED:ce,DIRECTION_NONE:kt,DIRECTION_LEFT:Vt,DIRECTION_RIGHT:At,DIRECTION_UP:It,DIRECTION_DOWN:Mt,DIRECTION_HORIZONTAL:zt,DIRECTION_VERTICAL:Lt,DIRECTION_ALL:Nt,Manager:at,Input:S,TouchAction:_,TouchInput:$,MouseInput:j,PointerEventInput:R,TouchMouseInput:X,SingleTouchInput:H,Recognizer:Y,AttrRecognizer:Z,Tap:nt,Pan:J,Swipe:it,Pinch:K,Rotate:et,Press:tt,on:f,off:h,each:o,merge:l,extend:s,inherit:u,bindFn:c,prefixed:x}),typeof define==ct&&define.amd?define(function(){return rt}):"undefined"!=typeof module&&module.exports?module.exports=rt:t[i]=rt}(window,document,"Hammer"),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,r){return jQuery.easing[jQuery.easing.def](t,e,i,n,r)},easeInQuad:function(t,e,i,n,r){return n*(e/=r)*e+i},easeOutQuad:function(t,e,i,n,r){return-n*(e/=r)*(e-2)+i},easeInOutQuad:function(t,e,i,n,r){return(e/=r/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,r){return n*(e/=r)*e*e+i},easeOutCubic:function(t,e,i,n,r){return n*((e=e/r-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,r){return(e/=r/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,r){return n*(e/=r)*e*e*e+i},easeOutQuart:function(t,e,i,n,r){return-n*((e=e/r-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,r){return(e/=r/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,r){return n*(e/=r)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,r){return n*((e=e/r-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,r){return n*Math.sin(e/r*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+i},easeInExpo:function(t,e,i,n,r){return 0==e?i:n*Math.pow(2,10*(e/r-1))+i},easeOutExpo:function(t,e,i,n,r){return e==r?i+n:n*(-Math.pow(2,-10*e/r)+1)+i},easeInOutExpo:function(t,e,i,n,r){return 0==e?i:e==r?i+n:(e/=r/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,n,r){return-n*(Math.sqrt(1-(e/=r)*e)-1)+i},easeOutCirc:function(t,e,i,n,r){return n*Math.sqrt(1-(e=e/r-1)*e)+i;

},easeInOutCirc:function(t,e,i,n,r){return(e/=r/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,r){var a=1.70158,o=0,s=n;if(0==e)return i;if(1==(e/=r))return i+n;if(o||(o=.3*r),s<Math.abs(n)){s=n;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(n/s);return-(s*Math.pow(2,10*(e-=1))*Math.sin(2*(e*r-a)*Math.PI/o))+i},easeOutElastic:function(t,e,i,n,r){var a=1.70158,o=0,s=n;if(0==e)return i;if(1==(e/=r))return i+n;if(o||(o=.3*r),s<Math.abs(n)){s=n;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(n/s);return s*Math.pow(2,-10*e)*Math.sin(2*(e*r-a)*Math.PI/o)+n+i},easeInOutElastic:function(t,e,i,n,r){var a=1.70158,o=0,s=n;if(0==e)return i;if(2==(e/=r/2))return i+n;if(o||(o=.3*r*1.5),s<Math.abs(n)){s=n;var a=o/4}else var a=o/(2*Math.PI)*Math.asin(n/s);return 1>e?-.5*s*Math.pow(2,10*(e-=1))*Math.sin(2*(e*r-a)*Math.PI/o)+i:s*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*r-a)*Math.PI/o)*.5+n+i},easeInBack:function(t,e,i,n,r,a){return void 0==a&&(a=1.70158),n*(e/=r)*e*((a+1)*e-a)+i},easeOutBack:function(t,e,i,n,r,a){return void 0==a&&(a=1.70158),n*((e=e/r-1)*e*((a+1)*e+a)+1)+i},easeInOutBack:function(t,e,i,n,r,a){return void 0==a&&(a=1.70158),(e/=r/2)<1?n/2*e*e*(((a*=1.525)+1)*e-a)+i:n/2*((e-=2)*e*(((a*=1.525)+1)*e+a)+2)+i},easeInBounce:function(t,e,i,n,r){return n-jQuery.easing.easeOutBounce(t,r-e,0,n,r)+i},easeOutBounce:function(t,e,i,n,r){return(e/=r)<1/2.75?7.5625*n*e*e+i:2/2.75>e?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:2.5/2.75>e?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(t,e,i,n,r){return r/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,n,r)+i:.5*jQuery.easing.easeOutBounce(t,2*e-r,0,n,r)+.5*n+i}}),function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(t,e){function i(i,n){var r=t(i);r.data("hammer")||r.data("hammer",new e(r[0],n))}t.fn.hammer=function(t){return this.each(function(){i(this,t)})},e.Manager.prototype.emit=function(e){return function(i,n){e.call(this,i,n),t(this.element).trigger({type:i,gesture:n})}}(e.Manager.prototype.emit)}),function(t){var e=0,i=0,n=function(){return i++,"materialize-lean-overlay-"+i};t.fn.extend({openModal:function(i){t("body").css("overflow","hidden");var r={opacity:.5,in_duration:350,out_duration:250,ready:void 0,complete:void 0,dismissible:!0,starting_top:"4%"},a=n(),o=t(this),s=t('<div class="lean-overlay"></div>'),l=++e;s.attr("id",a).css("z-index",1e3+2*l),o.data("overlay-id",a).css("z-index",1e3+2*l+1),t("body").append(s),i=t.extend(r,i),i.dismissible&&(s.click(function(){o.closeModal(i)}),t(document).on("keyup.leanModal"+a,function(t){27===t.keyCode&&o.closeModal(i)})),o.find(".modal-close").on("click.close",function(t){o.closeModal(i)}),s.css({display:"block",opacity:0}),o.css({display:"block",opacity:0}),s.velocity({opacity:i.opacity},{duration:i.in_duration,queue:!1,ease:"easeOutCubic"}),o.data("associated-overlay",s[0]),o.hasClass("bottom-sheet")?o.velocity({bottom:"0",opacity:1},{duration:i.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof i.ready&&i.ready()}}):(t.Velocity.hook(o,"scaleX",.7),o.css({top:i.starting_top}),o.velocity({top:"10%",opacity:1,scaleX:"1"},{duration:i.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof i.ready&&i.ready()}}))}}),t.fn.extend({closeModal:function(i){var n={out_duration:250,complete:void 0},r=t(this),a=r.data("overlay-id"),o=t("#"+a);i=t.extend(n,i),t("body").css("overflow",""),r.find(".modal-close").off("click.close"),t(document).off("keyup.leanModal"+a),o.velocity({opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutQuart"}),r.hasClass("bottom-sheet")?r.velocity({bottom:"-100%",opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutCubic",complete:function(){o.css({display:"none"}),"function"==typeof i.complete&&i.complete(),o.remove(),e--}}):r.velocity({top:i.starting_top,opacity:0,scaleX:.7},{duration:i.out_duration,complete:function(){t(this).css("display","none"),"function"==typeof i.complete&&i.complete(),o.remove(),e--}})}}),t.fn.extend({leanModal:function(e){return this.each(function(){var i={starting_top:"4%"},n=t.extend(i,e);t(this).click(function(e){n.starting_top=(t(this).offset().top-t(window).scrollTop())/1.15;var i=t(this).attr("href")||"#"+t(this).data("target");t(i).openModal(n),e.preventDefault()})})}})}(jQuery),function(t){t.fn.materialbox=function(){return this.each(function(){function e(){n=!1;var e=o.parent(".material-placeholder"),r=(window.innerWidth,window.innerHeight,o.data("width")),s=o.data("height");o.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t("#materialbox-overlay").velocity({opacity:0},{duration:a,queue:!1,easing:"easeOutQuad",complete:function(){i=!1,t(this).remove()}}),o.velocity({width:r,height:s,left:0,top:0},{duration:a,queue:!1,easing:"easeOutQuad"}),t(".materialbox-caption").velocity({opacity:0},{duration:a,queue:!1,easing:"easeOutQuad",complete:function(){e.css({height:"",width:"",position:"",top:"",left:""}),o.css({height:"",top:"",left:"",width:"","max-width":"",position:"","z-index":""}),o.removeClass("active"),n=!0,t(this).remove()}})}if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var i=!1,n=!0,r=275,a=200,o=t(this),s=t("<div></div>").addClass("material-placeholder");o.wrap(s),o.on("click",function(){var a=o.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,u=o.width(),c=o.height();if(n===!1)return e(),!1;if(i&&n===!0)return e(),!1;n=!1,o.addClass("active"),i=!0,a.css({width:a[0].getBoundingClientRect().width,height:a[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),o.css({position:"absolute","z-index":1e3}).data("width",u).data("height",c);var d=t('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){n===!0&&e()});if(t("body").append(d),d.velocity({opacity:1},{duration:r,queue:!1,easing:"easeOutQuad"}),""!==o.data("caption")){var p=t('<div class="materialbox-caption"></div>');p.text(o.data("caption")),t("body").append(p),p.css({display:"inline"}),p.velocity({opacity:1},{duration:r,queue:!1,easing:"easeOutQuad"})}var f=0,h=u/s,v=c/l,g=0,m=0;h>v?(f=c/u,g=.9*s,m=.9*s*f):(f=u/c,g=.9*l*f,m=.9*l),o.hasClass("responsive-img")?o.velocity({"max-width":g,width:u},{duration:0,queue:!1,complete:function(){o.css({left:0,top:0}).velocity({height:m,width:g,left:t(document).scrollLeft()+s/2-o.parent(".material-placeholder").offset().left-g/2,top:t(document).scrollTop()+l/2-o.parent(".material-placeholder").offset().top-m/2},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){n=!0}})}}):o.css("left",0).css("top",0).velocity({height:m,width:g,left:t(document).scrollLeft()+s/2-o.parent(".material-placeholder").offset().left-g/2,top:t(document).scrollTop()+l/2-o.parent(".material-placeholder").offset().top-m/2},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){n=!0}})}),t(window).scroll(function(){i&&e()}),t(document).keyup(function(t){27===t.keyCode&&n===!0&&i&&e()})}})},t(document).ready(function(){t(".materialboxed").materialbox()})}(jQuery),Materialize.toast=function(t,e,i,n){function r(t){var e=document.createElement("div");if(e.classList.add("toast"),i)for(var r=i.split(" "),a=0,o=r.length;o>a;a++)e.classList.add(r[a]);("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?e.appendChild(t):t instanceof jQuery?e.appendChild(t[0]):e.innerHTML=t;var s=new Hammer(e,{prevent_default:!1});return s.on("pan",function(t){var i=t.deltaX,n=80;e.classList.contains("panning")||e.classList.add("panning");var r=1-Math.abs(i/n);0>r&&(r=0),Vel(e,{left:i,opacity:r},{duration:50,queue:!1,easing:"easeOutQuad"})}),s.on("panend",function(t){var i=t.deltaX,r=80;Math.abs(i)>r?Vel(e,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),e.parentNode.removeChild(e)}}):(e.classList.remove("panning"),Vel(e,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),e}i=i||"";var a=document.getElementById("toast-container");null===a&&(a=document.createElement("div"),a.id="toast-container",document.body.appendChild(a));var o=r(t);t&&a.appendChild(o),o.style.top="35px",o.style.opacity=0,Vel(o,{top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var s=e,l=setInterval(function(){null===o.parentNode&&window.clearInterval(l),o.classList.contains("panning")||(s-=20),0>=s&&(Vel(o,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(l))},20)},function(t){t.fn.tooltip=function(e){var i=null,n=!1,r=null,a=5,o={delay:350};return"remove"===e?(this.each(function(){t("#"+t(this).attr("data-tooltip-id")).remove()}),!1):(e=t.extend(o,e),this.each(function(){var o=Materialize.guid(),s=t(this);s.attr("data-tooltip-id",o);var l=t("<span></span>").text(s.attr("data-tooltip")),u=t("<div></div>");u.addClass("material-tooltip").append(l).appendTo(t("body")).attr("id",o);var c=t("<div></div>").addClass("backdrop");c.appendTo(u),c.css({top:0,left:0}),s.off("mouseenter.tooltip mouseleave.tooltip"),s.on({"mouseenter.tooltip":function(t){var o=s.data("delay");o=void 0===o||""===o?e.delay:o,i=0,r=setInterval(function(){if(i+=10,i>=o&&n===!1){n=!0,u.css({display:"block",left:"0px",top:"0px"}),u.children("span").text(s.attr("data-tooltip"));var t=s.outerWidth(),e=s.outerHeight(),r=s.attr("data-position"),l=u.outerHeight(),d=u.outerWidth(),p="0px",f="0px",h=8;"top"===r?(u.css({top:s.offset().top-l-a,left:s.offset().left+t/2-d/2}),p="-10px",c.css({borderRadius:"14px 14px 0 0",transformOrigin:"50% 90%",marginTop:l,marginLeft:d/2-c.width()/2})):"left"===r?(u.css({top:s.offset().top+e/2-l/2,left:s.offset().left-d-a}),f="-10px",c.css({width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:l/2,marginLeft:d})):"right"===r?(u.css({top:s.offset().top+e/2-l/2,left:s.offset().left+t+a}),f="+10px",c.css({width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:l/2,marginLeft:"0px"})):(u.css({top:s.offset().top+s.outerHeight()+a,left:s.offset().left+t/2-d/2}),p="+10px",c.css({marginLeft:d/2-c.width()/2})),h=d/8,8>h&&(h=8),("right"===r||"left"===r)&&(h=d/10,6>h&&(h=6)),u.velocity({marginTop:p,marginLeft:f},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),c.css({display:"block"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scale:h},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})}},10)},"mouseleave.tooltip":function(){clearInterval(r),i=0,u.velocity({opacity:0,marginTop:0,marginLeft:0},{duration:225,queue:!1,delay:225}),c.velocity({opacity:0,scale:1},{duration:225,delay:275,queue:!1,complete:function(){c.css("display","none"),u.css("display","none"),n=!1}})}})}))},t(document).ready(function(){t(".tooltipped").tooltip()})}(jQuery),function(t){Materialize.fadeInImage=function(e){var i=t(e);i.css({opacity:0}),t(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(i).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,i){i.start=100;var n=e/100,r=150-(100-e)/1.75;100>r&&(r=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+n+")brightness("+r+"%)",filter:"grayscale("+n+")brightness("+r+"%)"})}})},Materialize.showStaggeredList=function(e){var i=0;t(e).find("li").velocity({translateX:"-100px"},{duration:0}),t(e).find("li").each(function(){t(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:i,easing:[60,10]}),i+=120})},t(document).ready(function(){var e=!1,i=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).bind("pan",function(n){if("touch"===n.gesture.pointerType){var r=t(this),a=n.gesture.direction,o=n.gesture.deltaX,s=n.gesture.velocityX;r.velocity({translateX:o},{duration:50,queue:!1,easing:"easeOutQuad"}),4===a&&(o>r.innerWidth()/2||-.75>s)&&(e=!0),2===a&&(o<-1*r.innerWidth()/2||s>.75)&&(i=!0)}}).bind("panend",function(n){if(Math.abs(n.gesture.deltaX)<t(this).innerWidth()/2&&(i=!1,e=!1),"touch"===n.gesture.pointerType){var r=t(this);if(e||i){var a;a=e?r.innerWidth():-1*r.innerWidth(),r.velocity({translateX:a},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){r.css("border","none"),r.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){r.remove()}})}})}else r.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});e=!1,i=!1}})})})}(jQuery),!function(t){function e(t){var e=t.length,n=i.type(t);return"function"===n||i.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}if(!t.jQuery){var i=function(t,e){return new i.fn.init(t,e)};i.isWindow=function(t){return null!=t&&t==t.window},i.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?r[o.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!a.call(t,"constructor")&&!a.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(e in t);return void 0===e||a.call(t,e)},i.each=function(t,i,n){var r,a=0,o=t.length,s=e(t);if(n){if(s)for(;o>a&&(r=i.apply(t[a],n),r!==!1);a++);else for(a in t)if(r=i.apply(t[a],n),r===!1)break}else if(s)for(;o>a&&(r=i.call(t[a],a,t[a]),r!==!1);a++);else for(a in t)if(r=i.call(t[a],a,t[a]),r===!1)break;return t},i.data=function(t,e,r){if(void 0===r){var a=t[i.expando],o=a&&n[a];if(void 0===e)return o;if(o&&e in o)return o[e]}else if(void 0!==e){var a=t[i.expando]||(t[i.expando]=++i.uuid);return n[a]=n[a]||{},n[a][e]=r,r}},i.removeData=function(t,e){var r=t[i.expando],a=r&&n[r];a&&i.each(e,function(t,e){delete a[e]})},i.extend=function(){var t,e,n,r,a,o,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==i.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(a=arguments[l]))for(r in a)t=s[r],n=a[r],s!==n&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,o=t&&i.isArray(t)?t:[]):o=t&&i.isPlainObject(t)?t:{},s[r]=i.extend(c,o,n)):void 0!==n&&(s[r]=n));return s},i.queue=function(t,n,r){function a(t,i){var n=i||[];return null!=t&&(e(Object(t))?!function(t,e){for(var i=+e.length,n=0,r=t.length;i>n;)t[r++]=e[n++];if(i!==i)for(;void 0!==e[n];)t[r++]=e[n++];return t.length=r,t}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}if(t){n=(n||"fx")+"queue";var o=i.data(t,n);return r?(!o||i.isArray(r)?o=i.data(t,n,a(r)):o.push(r),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var r=i.queue(n,e),a=r.shift();"inprogress"===a&&(a=r.shift()),a&&("fx"===e&&r.unshift("inprogress"),a.call(n,function(){i.dequeue(n,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),n=this.offset(),r=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:i(t).offset();return n.top-=parseFloat(e.style.marginTop)||0,n.left-=parseFloat(e.style.marginLeft)||0,t.style&&(r.top+=parseFloat(t.style.borderTopWidth)||0,r.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-r.top,left:n.left-r.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var r={},a=r.hasOwnProperty,o=r.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)r["[object "+s[l]+"]"]=s[l].toLowerCase();i.fn.init.prototype=i.fn,t.Velocity={Utilities:i}}}(window),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):t()}(function(){return function(t,e,i,n){function r(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var r=t[e];r&&n.push(r)}return n}function a(t){return v.isWrapped(t)?t=[].slice.call(t):v.isNode(t)&&(t=[t]),t}function o(t){var e=p.data(t,"velocity");return null===e?n:e}function s(t){return function(e){return Math.round(e*t)*(1/t)}}function l(t,i,n,r){function a(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,i){return((a(e,i)*t+o(e,i))*t+s(e))*t}function u(t,e,i){return 3*a(e,i)*t*t+2*o(e,i)*t+s(e)}function c(e,i){for(var r=0;v>r;++r){var a=u(i,t,n);if(0===a)return i;var o=l(i,t,n)-e;i-=o/a}return i}function d(){for(var e=0;b>e;++e)C[e]=l(e*w,t,n)}function p(e,i,r){var a,o,s=0;do o=i+(r-i)/2,a=l(o,t,n)-e,a>0?r=o:i=o;while(Math.abs(a)>m&&++s<y);return o}function f(e){for(var i=0,r=1,a=b-1;r!=a&&C[r]<=e;++r)i+=w;--r;var o=(e-C[r])/(C[r+1]-C[r]),s=i+o*w,l=u(s,t,n);return l>=g?c(e,s):0==l?s:p(e,i,i+w)}function h(){S=!0,(t!=i||n!=r)&&d()}var v=4,g=.001,m=1e-7,y=10,b=11,w=1/(b-1),x="Float32Array"in e;if(4!==arguments.length)return!1;for(var T=0;4>T;++T)if("number"!=typeof arguments[T]||isNaN(arguments[T])||!isFinite(arguments[T]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var C=x?new Float32Array(b):new Array(b),S=!1,P=function(e){return S||h(),t===i&&n===r?e:0===e?0:1===e?1:l(f(e),i,r)};P.getControlPoints=function(){return[{x:t,y:i},{x:n,y:r}]};var E="generateBezier("+[t,i,n,r]+")";return P.toString=function(){return E},P}function u(t,e){var i=t;return v.isString(t)?b.Easings[t]||(i=!1):i=v.isArray(t)&&1===t.length?s.apply(null,t):v.isArray(t)&&2===t.length?w.apply(null,t.concat([e])):v.isArray(t)&&4===t.length?l.apply(null,t):!1,i===!1&&(i=b.Easings[b.defaults.easing]?b.defaults.easing:y),i}function c(t){if(t){var e=(new Date).getTime(),i=b.State.calls.length;i>1e4&&(b.State.calls=r(b.State.calls));for(var a=0;i>a;a++)if(b.State.calls[a]){var s=b.State.calls[a],l=s[0],u=s[2],f=s[3],h=!!f,g=null;f||(f=b.State.calls[a][3]=e-16);for(var m=Math.min((e-f)/u.duration,1),y=0,w=l.length;w>y;y++){var T=l[y],S=T.element;if(o(S)){var P=!1;if(u.display!==n&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var E=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];p.each(E,function(t,e){x.setPropertyValue(S,"display",e)})}x.setPropertyValue(S,"display",u.display)}u.visibility!==n&&"hidden"!==u.visibility&&x.setPropertyValue(S,"visibility",u.visibility);for(var O in T)if("element"!==O){var k,V=T[O],A=v.isString(V.easing)?b.Easings[V.easing]:V.easing;if(1===m)k=V.endValue;else{var I=V.endValue-V.startValue;if(k=V.startValue+I*A(m,u,I),!h&&k===V.currentValue)continue}if(V.currentValue=k,"tween"===O)g=k;else{if(x.Hooks.registered[O]){var M=x.Hooks.getRoot(O),z=o(S).rootPropertyValueCache[M];z&&(V.rootPropertyValue=z)}var L=x.setPropertyValue(S,O,V.currentValue+(0===parseFloat(k)?"":V.unitType),V.rootPropertyValue,V.scrollData);x.Hooks.registered[O]&&(o(S).rootPropertyValueCache[M]=x.Normalizations.registered[M]?x.Normalizations.registered[M]("extract",null,L[1]):L[1]),"transform"===L[0]&&(P=!0)}}u.mobileHA&&o(S).transformCache.translate3d===n&&(o(S).transformCache.translate3d="(0px, 0px, 0px)",P=!0),P&&x.flushTransformCache(S)}}u.display!==n&&"none"!==u.display&&(b.State.calls[a][2].display=!1),u.visibility!==n&&"hidden"!==u.visibility&&(b.State.calls[a][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],m,Math.max(0,f+u.duration-e),f,g),1===m&&d(a)}}b.State.isTicking&&C(c)}function d(t,e){if(!b.State.calls[t])return!1;for(var i=b.State.calls[t][0],r=b.State.calls[t][1],a=b.State.calls[t][2],s=b.State.calls[t][4],l=!1,u=0,c=i.length;c>u;u++){var d=i[u].element;if(e||a.loop||("none"===a.display&&x.setPropertyValue(d,"display",a.display),"hidden"===a.visibility&&x.setPropertyValue(d,"visibility",a.visibility)),a.loop!==!0&&(p.queue(d)[1]===n||!/\.velocityQueueEntryFlag/i.test(p.queue(d)[1]))&&o(d)){o(d).isAnimating=!1,o(d).rootPropertyValueCache={};var f=!1;p.each(x.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,r=o(d).transformCache[e];o(d).transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(r)&&(f=!0,delete o(d).transformCache[e])}),a.mobileHA&&(f=!0,delete o(d).transformCache.translate3d),f&&x.flushTransformCache(d),x.Values.removeClass(d,"velocity-animating")}if(!e&&a.complete&&!a.loop&&u===c-1)try{a.complete.call(r,r)}catch(h){setTimeout(function(){throw h},1)}s&&a.loop!==!0&&s(r),o(d)&&a.loop===!0&&!e&&(p.each(o(d).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),b(d,"reverse",{loop:!0,delay:a.delay})),a.queue!==!1&&p.dequeue(d,a.queue)}b.State.calls[t]=!1;for(var v=0,g=b.State.calls.length;g>v;v++)if(b.State.calls[v]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var p,f=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");if(e.innerHTML="<!--[if IE "+t+"]><span></span><![endif]-->",e.getElementsByTagName("span").length)return e=null,t}return n}(),h=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-t)),t=n+i,setTimeout(function(){e(n+i)},i)}}(),v={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==n&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},g=!1;if(t.fn&&t.fn.jquery?(p=t,g=!0):p=e.Velocity.Utilities,8>=f&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=f)return void(jQuery.fn.velocity=jQuery.fn.animate);var m=400,y="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:p,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:m,easing:y,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){p.data(t,"velocity",{isSVG:v.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==n?(b.State.scrollAnchor=e,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var w=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var r={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}function i(i,n){var r={dx:i.v,dv:t(i)},a=e(i,.5*n,r),o=e(i,.5*n,a),s=e(i,n,o),l=1/6*(r.dx+2*(a.dx+o.dx)+s.dx),u=1/6*(r.dv+2*(a.dv+o.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function n(t,e,r){var a,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4,p=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,r=r||null,l.tension=t,l.friction=e,a=null!==r,a?(c=n(t,e),o=c/r*p):o=p;s=i(s||l,o),u.push(1+s.x),c+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return a?function(t){return u[t*(u.length-1)|0]}:c}}();b.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},p.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){b.Easings[e[0]]=l.apply(null,e[1])});var x=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<x.Lists.colors.length;t++){var e="color"===x.Lists.colors[t]?"0 0 0 1":"255 255 255 1";x.Hooks.templates[x.Lists.colors[t]]=["Red Green Blue Alpha",e]}var i,n,r;if(f)for(i in x.Hooks.templates){n=x.Hooks.templates[i],r=n[0].split(" ");var a=n[1].match(x.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),a.push(a.shift()),x.Hooks.templates[i]=[r.join(" "),a.join(" ")])}for(i in x.Hooks.templates){n=x.Hooks.templates[i],r=n[0].split(" ");for(var t in r){var o=i+r[t],s=t;x.Hooks.registered[o]=[i,s]}}},getRoot:function(t){var e=x.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return x.RegEx.valueUnwrap.test(e)&&(e=e.match(x.RegEx.valueUnwrap)[1]),x.Values.isCSSNullValue(e)&&(e=x.Hooks.templates[t][1]),e},extractValue:function(t,e){var i=x.Hooks.registered[t];if(i){var n=i[0],r=i[1];return e=x.Hooks.cleanRootPropertyValue(n,e),e.toString().match(x.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,i){var n=x.Hooks.registered[t];if(n){var r,a,o=n[0],s=n[1];return i=x.Hooks.cleanRootPropertyValue(o,i),r=i.toString().match(x.RegEx.valueSplit),r[s]=e,a=r.join(" ")}return i}},Normalizations:{registered:{clip:function(t,e,i){switch(t){case"name":return"clip";case"extract":var n;return x.RegEx.wrappedValueAlreadyExtracted.test(i)?n=i:(n=i.toString().match(x.RegEx.valueUnwrap),n=n?n[1].replace(/,(\s+)?/g," "):i),n;case"inject":return"rect("+i+")"}},blur:function(t,e,i){switch(t){case"name":return b.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var r=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=r?r[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(8>=f)switch(t){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return i=n?n[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){9>=f||b.State.isGingerbread||(x.Lists.transformsBase=x.Lists.transformsBase.concat(x.Lists.transforms3D));for(var t=0;t<x.Lists.transformsBase.length;t++)!function(){var e=x.Lists.transformsBase[t];x.Normalizations.registered[e]=function(t,i,r){switch(t){case"name":return"transform";case"extract":return o(i)===n||o(i).transformCache[e]===n?/^scale/i.test(e)?1:0:o(i).transformCache[e].replace(/[()]/g,"");case"inject":var a=!1;switch(e.substr(0,e.length-1)){case"translate":a=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":b.State.isAndroid&&o(i).transformCache[e]===n&&1>r&&(r=1),a=!/(\d)$/i.test(r);break;case"skew":a=!/(deg|\d)$/i.test(r);break;case"rotate":a=!/(deg|\d)$/i.test(r)}return a||(o(i).transformCache[e]="("+r+")"),o(i).transformCache[e]}}}();for(var t=0;t<x.Lists.colors.length;t++)!function(){var e=x.Lists.colors[t];x.Normalizations.registered[e]=function(t,i,r){switch(t){case"name":return e;case"extract":var a;if(x.RegEx.wrappedValueAlreadyExtracted.test(r))a=r;else{var o,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(r)?o=s[r]!==n?s[r]:s.black:x.RegEx.isHex.test(r)?o="rgb("+x.Values.hexToRgb(r).join(" ")+")":/^rgba?\(/i.test(r)||(o=s.black),a=(o||r).toString().match(x.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=f||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=f?4===r.split(" ").length&&(r=r.split(/\s+/).slice(0,3).join(" ")):3===r.split(" ").length&&(r+=" 1"),(8>=f?"rgb":"rgba")+"("+r.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||b.State.isAndroid&&!b.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(b.State.prefixMatches[t])return[b.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,n=e.length;n>i;i++){var r;if(r=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),v.isString(b.State.prefixElement.style[r]))return b.State.prefixMatches[t]=r,[r,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(i,function(t,e,i,n){return e+e+i+i+n+n}),e=n.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,i,r,a){function s(t,i){function r(){u&&x.setPropertyValue(t,"display","none")}var l=0;

if(8>=f)l=p.css(t,i);else{var u=!1;if(/^(width|height)$/.test(i)&&0===x.getPropertyValue(t,"display")&&(u=!0,x.setPropertyValue(t,"display",x.Values.getDisplayType(t))),!a){if("height"===i&&"border-box"!==x.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var c=t.offsetHeight-(parseFloat(x.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(x.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(x.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(x.getPropertyValue(t,"paddingBottom"))||0);return r(),c}if("width"===i&&"border-box"!==x.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetWidth-(parseFloat(x.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(x.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(x.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(x.getPropertyValue(t,"paddingRight"))||0);return r(),d}}var h;h=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),l=9===f&&"filter"===i?h.getPropertyValue(i):h[i],(""===l||null===l)&&(l=t.style[i]),r()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var v=s(t,"position");("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(l=p(t).position()[i]+"px")}return l}var l;if(x.Hooks.registered[i]){var u=i,c=x.Hooks.getRoot(u);r===n&&(r=x.getPropertyValue(t,x.Names.prefixCheck(c)[0])),x.Normalizations.registered[c]&&(r=x.Normalizations.registered[c]("extract",t,r)),l=x.Hooks.extractValue(u,r)}else if(x.Normalizations.registered[i]){var d,h;d=x.Normalizations.registered[i]("name",t),"transform"!==d&&(h=s(t,x.Names.prefixCheck(d)[0]),x.Values.isCSSNullValue(h)&&x.Hooks.templates[i]&&(h=x.Hooks.templates[i][1])),l=x.Normalizations.registered[i]("extract",t,h)}if(!/^[\d-]/.test(l))if(o(t)&&o(t).isSVG&&x.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=t.getBBox()[i]}catch(v){l=0}else l=t.getAttribute(i);else l=s(t,x.Names.prefixCheck(i)[0]);return x.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,n,r,a){var s=i;if("scroll"===i)a.container?a.container["scroll"+a.direction]=n:"Left"===a.direction?e.scrollTo(n,a.alternateValue):e.scrollTo(a.alternateValue,n);else if(x.Normalizations.registered[i]&&"transform"===x.Normalizations.registered[i]("name",t))x.Normalizations.registered[i]("inject",t,n),s="transform",n=o(t).transformCache[i];else{if(x.Hooks.registered[i]){var l=i,u=x.Hooks.getRoot(i);r=r||x.getPropertyValue(t,u),n=x.Hooks.injectValue(l,n,r),i=u}if(x.Normalizations.registered[i]&&(n=x.Normalizations.registered[i]("inject",t,n),i=x.Normalizations.registered[i]("name",t)),s=x.Names.prefixCheck(i)[0],8>=f)try{t.style[s]=n}catch(c){b.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else o(t)&&o(t).isSVG&&x.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[s]=n;b.debug>=2&&console.log("Set "+i+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(t){function e(e){return parseFloat(x.getPropertyValue(t,e))}var i="";if((f||b.State.isAndroid&&!b.State.isChrome)&&o(t).isSVG){var n={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};p.each(o(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),n[t]&&(i+=t+"("+n[t].join(" ")+") ",delete n[t])})}else{var r,a;p.each(o(t).transformCache,function(e){return r=o(t).transformCache[e],"transformPerspective"===e?(a=r,!0):(9===f&&"rotateZ"===e&&(e="rotate"),void(i+=e+r+" "))}),a&&(i="perspective"+a+" "+i)}x.setPropertyValue(t,"transform",i)}};x.Hooks.register(),x.Normalizations.register(),b.hook=function(t,e,i){var r=n;return t=a(t),p.each(t,function(t,a){if(o(a)===n&&b.init(a),i===n)r===n&&(r=b.CSS.getPropertyValue(a,e));else{var s=b.CSS.setPropertyValue(a,e,i);"transform"===s[0]&&b.CSS.flushTransformCache(a),r=s}}),r};var T=function(){function t(){return s?O.promise||null:l}function r(){function t(t){function d(t,e){var i=n,r=n,o=n;return v.isArray(t)?(i=t[0],!v.isArray(t[1])&&/^[\d-]/.test(t[1])||v.isFunction(t[1])||x.RegEx.isHex.test(t[1])?o=t[1]:(v.isString(t[1])&&!x.RegEx.isHex.test(t[1])||v.isArray(t[1]))&&(r=e?t[1]:u(t[1],s.duration),t[2]!==n&&(o=t[2]))):i=t,e||(r=r||s.easing),v.isFunction(i)&&(i=i.call(a,S,C)),v.isFunction(o)&&(o=o.call(a,S,C)),[i||0,r,o]}function f(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=x.Values.getUnitType(t)),[n,i]}function m(){var t={myParent:a.parentNode||i.body,position:x.getPropertyValue(a,"position"),fontSize:x.getPropertyValue(a,"fontSize")},n=t.position===L.lastPosition&&t.myParent===L.lastParent,r=t.fontSize===L.lastFontSize;L.lastParent=t.myParent,L.lastPosition=t.position,L.lastFontSize=t.fontSize;var s=100,l={};if(r&&n)l.emToPx=L.lastEmToPx,l.percentToPxWidth=L.lastPercentToPxWidth,l.percentToPxHeight=L.lastPercentToPxHeight;else{var u=o(a).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");b.init(u),t.myParent.appendChild(u),p.each(["overflow","overflowX","overflowY"],function(t,e){b.CSS.setPropertyValue(u,e,"hidden")}),b.CSS.setPropertyValue(u,"position",t.position),b.CSS.setPropertyValue(u,"fontSize",t.fontSize),b.CSS.setPropertyValue(u,"boxSizing","content-box"),p.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){b.CSS.setPropertyValue(u,e,s+"%")}),b.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=L.lastEmToPx=(parseFloat(x.getPropertyValue(u,"paddingLeft"))||1)/s,t.myParent.removeChild(u)}return null===L.remToPx&&(L.remToPx=parseFloat(x.getPropertyValue(i.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(e.innerWidth)/100,L.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=L.remToPx,l.vwToPx=L.vwToPx,l.vhToPx=L.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(s.begin&&0===S)try{s.begin.call(h,h)}catch(w){setTimeout(function(){throw w},1)}if("scroll"===k){var T,P,E,V=/^x$/i.test(s.axis)?"Left":"Top",A=parseFloat(s.offset)||0;s.container?v.isWrapped(s.container)||v.isNode(s.container)?(s.container=s.container[0]||s.container,T=s.container["scroll"+V],E=T+p(a).position()[V.toLowerCase()]+A):s.container=null:(T=b.State.scrollAnchor[b.State["scrollProperty"+V]],P=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===V?"Top":"Left")]],E=p(a).offset()[V.toLowerCase()]+A),l={scroll:{rootPropertyValue:!1,startValue:T,currentValue:T,endValue:E,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:V,alternateValue:P}},element:a},b.debug&&console.log("tweensContainer (scroll): ",l.scroll,a)}else if("reverse"===k){if(!o(a).tweensContainer)return void p.dequeue(a,s.queue);"none"===o(a).opts.display&&(o(a).opts.display="auto"),"hidden"===o(a).opts.visibility&&(o(a).opts.visibility="visible"),o(a).opts.loop=!1,o(a).opts.begin=null,o(a).opts.complete=null,y.easing||delete s.easing,y.duration||delete s.duration,s=p.extend({},o(a).opts,s);var I=p.extend(!0,{},o(a).tweensContainer);for(var M in I)if("element"!==M){var z=I[M].startValue;I[M].startValue=I[M].currentValue=I[M].endValue,I[M].endValue=z,v.isEmptyObject(y)||(I[M].easing=s.easing),b.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(I[M]),a)}l=I}else if("start"===k){var I;o(a).tweensContainer&&o(a).isAnimating===!0&&(I=o(a).tweensContainer),p.each(g,function(t,e){if(RegExp("^"+x.Lists.colors.join("$|^")+"$").test(t)){var i=d(e,!0),r=i[0],a=i[1],o=i[2];if(x.RegEx.isHex.test(r)){for(var s=["Red","Green","Blue"],l=x.Values.hexToRgb(r),u=o?x.Values.hexToRgb(o):n,c=0;c<s.length;c++){var p=[l[c]];a&&p.push(a),u!==n&&p.push(u[c]),g[t+s[c]]=p}delete g[t]}}});for(var q in g){var F=d(g[q]),j=F[0],R=F[1],H=F[2];q=x.Names.camelCase(q);var D=x.Hooks.getRoot(q),$=!1;if(o(a).isSVG||"tween"===D||x.Names.prefixCheck(D)[1]!==!1||x.Normalizations.registered[D]!==n){(s.display!==n&&null!==s.display&&"none"!==s.display||s.visibility!==n&&"hidden"!==s.visibility)&&/opacity|filter/.test(q)&&!H&&0!==j&&(H=0),s._cacheValues&&I&&I[q]?(H===n&&(H=I[q].endValue+I[q].unitType),$=o(a).rootPropertyValueCache[D]):x.Hooks.registered[q]?H===n?($=x.getPropertyValue(a,D),H=x.getPropertyValue(a,q,$)):$=x.Hooks.templates[D][1]:H===n&&(H=x.getPropertyValue(a,q));var Q,X,_,W=!1;if(Q=f(q,H),H=Q[0],_=Q[1],Q=f(q,j),j=Q[0].replace(/^([+-\/*])=/,function(t,e){return W=e,""}),X=Q[1],H=parseFloat(H)||0,j=parseFloat(j)||0,"%"===X&&(/^(fontSize|lineHeight)$/.test(q)?(j/=100,X="em"):/^scale/.test(q)?(j/=100,X=""):/(Red|Green|Blue)$/i.test(q)&&(j=j/100*255,X="")),/[\/*]/.test(W))X=_;else if(_!==X&&0!==H)if(0===j)X=_;else{r=r||m();var Y=/margin|padding|left|right|width|text|word|letter/i.test(q)||/X$/.test(q)||"x"===q?"x":"y";switch(_){case"%":H*="x"===Y?r.percentToPxWidth:r.percentToPxHeight;break;case"px":break;default:H*=r[_+"ToPx"]}switch(X){case"%":H*=1/("x"===Y?r.percentToPxWidth:r.percentToPxHeight);break;case"px":break;default:H*=1/r[X+"ToPx"]}}switch(W){case"+":j=H+j;break;case"-":j=H-j;break;case"*":j=H*j;break;case"/":j=H/j}l[q]={rootPropertyValue:$,startValue:H,currentValue:H,endValue:j,unitType:X,easing:R},b.debug&&console.log("tweensContainer ("+q+"): "+JSON.stringify(l[q]),a)}else b.debug&&console.log("Skipping ["+D+"] due to a lack of browser support.")}l.element=a}l.element&&(x.Values.addClass(a,"velocity-animating"),N.push(l),""===s.queue&&(o(a).tweensContainer=l,o(a).opts=s),o(a).isAnimating=!0,S===C-1?(b.State.calls.push([N,h,s,null,O.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):S++)}var r,a=this,s=p.extend({},b.defaults,y),l={};switch(o(a)===n&&b.init(a),parseFloat(s.delay)&&s.queue!==!1&&p.queue(a,s.queue,function(t){b.velocityQueueEntryFlag=!0,o(a).delayTimer={setTimeout:setTimeout(t,parseFloat(s.delay)),next:t}}),s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=m;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}b.mock!==!1&&(b.mock===!0?s.duration=s.delay=1:(s.duration*=parseFloat(b.mock)||1,s.delay*=parseFloat(b.mock)||1)),s.easing=u(s.easing,s.duration),s.begin&&!v.isFunction(s.begin)&&(s.begin=null),s.progress&&!v.isFunction(s.progress)&&(s.progress=null),s.complete&&!v.isFunction(s.complete)&&(s.complete=null),s.display!==n&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=b.CSS.Values.getDisplayType(a))),s.visibility!==n&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,s.queue===!1?s.delay?setTimeout(t,s.delay):t():p.queue(a,s.queue,function(e,i){return i===!0?(O.promise&&O.resolver(h),!0):(b.velocityQueueEntryFlag=!0,void t(e))}),""!==s.queue&&"fx"!==s.queue||"inprogress"===p.queue(a)[0]||p.dequeue(a)}var s,l,f,h,g,y,w=arguments[0]&&(arguments[0].p||p.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||v.isString(arguments[0].properties));if(v.isWrapped(this)?(s=!1,f=0,h=this,l=this):(s=!0,f=1,h=w?arguments[0].elements||arguments[0].e:arguments[0]),h=a(h)){w?(g=arguments[0].properties||arguments[0].p,y=arguments[0].options||arguments[0].o):(g=arguments[f],y=arguments[f+1]);var C=h.length,S=0;if(!/^(stop|finish)$/i.test(g)&&!p.isPlainObject(y)){var P=f+1;y={};for(var E=P;E<arguments.length;E++)v.isArray(arguments[E])||!/^(fast|normal|slow)$/i.test(arguments[E])&&!/^\d/.test(arguments[E])?v.isString(arguments[E])||v.isArray(arguments[E])?y.easing=arguments[E]:v.isFunction(arguments[E])&&(y.complete=arguments[E]):y.duration=arguments[E]}var O={promise:null,resolver:null,rejecter:null};s&&b.Promise&&(O.promise=new b.Promise(function(t,e){O.resolver=t,O.rejecter=e}));var k;switch(g){case"scroll":k="scroll";break;case"reverse":k="reverse";break;case"finish":case"stop":p.each(h,function(t,e){o(e)&&o(e).delayTimer&&(clearTimeout(o(e).delayTimer.setTimeout),o(e).delayTimer.next&&o(e).delayTimer.next(),delete o(e).delayTimer)});var V=[];return p.each(b.State.calls,function(t,e){e&&p.each(e[1],function(i,r){var a=y===n?"":y;return a===!0||e[2].queue===a||y===n&&e[2].queue===!1?void p.each(h,function(i,n){n===r&&((y===!0||v.isString(y))&&(p.each(p.queue(n,v.isString(y)?y:""),function(t,e){v.isFunction(e)&&e(null,!0)}),p.queue(n,v.isString(y)?y:"",[])),"stop"===g?(o(n)&&o(n).tweensContainer&&a!==!1&&p.each(o(n).tweensContainer,function(t,e){e.endValue=e.currentValue}),V.push(t)):"finish"===g&&(e[2].duration=1))}):!0})}),"stop"===g&&(p.each(V,function(t,e){d(e,!0)}),O.promise&&O.resolver(h)),t();default:if(!p.isPlainObject(g)||v.isEmptyObject(g)){if(v.isString(g)&&b.Redirects[g]){var A=p.extend({},y),I=A.duration,M=A.delay||0;return A.backwards===!0&&(h=p.extend(!0,[],h).reverse()),p.each(h,function(t,e){parseFloat(A.stagger)?A.delay=M+parseFloat(A.stagger)*t:v.isFunction(A.stagger)&&(A.delay=M+A.stagger.call(e,t,C)),A.drag&&(A.duration=parseFloat(I)||(/^(callout|transition)/.test(g)?1e3:m),A.duration=Math.max(A.duration*(A.backwards?1-t/C:(t+1)/C),.75*A.duration,200)),b.Redirects[g].call(e,e,A||{},t,C,h,O.promise?O:n)}),t()}var z="Velocity: First argument ("+g+") was not a property map, a known action, or a registered redirect. Aborting.";return O.promise?O.rejecter(new Error(z)):console.log(z),t()}k="start"}var L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},N=[];p.each(h,function(t,e){v.isNode(e)&&r.call(e)});var q,A=p.extend({},b.defaults,y);if(A.loop=parseInt(A.loop),q=2*A.loop-1,A.loop)for(var F=0;q>F;F++){var j={delay:A.delay,progress:A.progress};F===q-1&&(j.display=A.display,j.visibility=A.visibility,j.complete=A.complete),T(h,"reverse",j)}return t()}};b=p.extend(T,b),b.animate=T;var C=e.requestAnimationFrame||h;return b.State.isMobile||i.hidden===n||i.addEventListener("visibilitychange",function(){i.hidden?(C=function(t){return setTimeout(function(){t(!0)},16)},c()):C=e.requestAnimationFrame||h}),t.Velocity=b,t!==e&&(t.fn.velocity=T,t.fn.velocity.defaults=b.defaults),p.each(["Down","Up"],function(t,e){b.Redirects["slide"+e]=function(t,i,r,a,o,s){var l=p.extend({},i),u=l.begin,c=l.complete,d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===n&&(l.display="Down"===e?"inline"===b.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(o,o);for(var i in d){f[i]=t.style[i];var n=b.CSS.getPropertyValue(t,i);d[i]="Down"===e?[n,0]:[0,n]}f.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in f)t.style[e]=f[e];c&&c.call(o,o),s&&s.resolver(o)},b(t,d,l)}}),p.each(["In","Out"],function(t,e){b.Redirects["fade"+e]=function(t,i,r,a,o,s){var l=p.extend({},i),u={opacity:"In"===e?1:0},c=l.complete;l.complete=r!==a-1?l.begin=null:function(){c&&c.call(o,o),s&&s.resolver(o)},l.display===n&&(l.display="In"===e?"auto":"none"),b(this,u,l)}}),b}(window.jQuery||window.Zepto||window,window,document)}),function(t){"use strict";function e(t){return null!==t&&t===t.window}function i(t){return e(t)?t:9===t.nodeType&&t.defaultView}function n(t){var e,n,r={top:0,left:0},a=t&&t.ownerDocument;return e=a.documentElement,"undefined"!=typeof t.getBoundingClientRect&&(r=t.getBoundingClientRect()),n=i(a),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}}function r(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}function a(t){if(c.allowEvent(t)===!1)return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentElement;){if(!(i instanceof SVGElement||-1===i.className.indexOf("waves-effect"))){e=i;break}if(i.classList.contains("waves-effect")){e=i;break}i=i.parentElement}return e}function o(e){var i=a(e);null!==i&&(u.show(e,i),"ontouchstart"in t&&(i.addEventListener("touchend",u.hide,!1),i.addEventListener("touchcancel",u.hide,!1)),i.addEventListener("mouseup",u.hide,!1),i.addEventListener("mouseleave",u.hide,!1))}var s=s||{},l=document.querySelectorAll.bind(document),u={duration:750,show:function(t,e){if(2===t.button)return!1;var i=e||this,a=document.createElement("div");a.className="waves-ripple",i.appendChild(a);var o=n(i),s=t.pageY-o.top,l=t.pageX-o.left,c="scale("+i.clientWidth/100*10+")";"touches"in t&&(s=t.touches[0].pageY-o.top,l=t.touches[0].pageX-o.left),a.setAttribute("data-hold",Date.now()),a.setAttribute("data-scale",c),a.setAttribute("data-x",l),a.setAttribute("data-y",s);var d={top:s+"px",left:l+"px"};a.className=a.className+" waves-notransition",a.setAttribute("style",r(d)),a.className=a.className.replace("waves-notransition",""),d["-webkit-transform"]=c,d["-moz-transform"]=c,d["-ms-transform"]=c,d["-o-transform"]=c,d.transform=c,d.opacity="1",d["-webkit-transition-duration"]=u.duration+"ms",d["-moz-transition-duration"]=u.duration+"ms",d["-o-transition-duration"]=u.duration+"ms",d["transition-duration"]=u.duration+"ms",d["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",d["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",d["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",d["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a.setAttribute("style",r(d))},hide:function(t){c.touchup(t);var e=this,i=(1.4*e.clientWidth,null),n=e.getElementsByClassName("waves-ripple");if(!(n.length>0))return!1;i=n[n.length-1];var a=i.getAttribute("data-x"),o=i.getAttribute("data-y"),s=i.getAttribute("data-scale"),l=Date.now()-Number(i.getAttribute("data-hold")),d=350-l;0>d&&(d=0),setTimeout(function(){var t={top:o+"px",left:a+"px",opacity:"0","-webkit-transition-duration":u.duration+"ms","-moz-transition-duration":u.duration+"ms","-o-transition-duration":u.duration+"ms","transition-duration":u.duration+"ms","-webkit-transform":s,"-moz-transform":s,"-ms-transform":s,"-o-transform":s,transform:s};i.setAttribute("style",r(t)),setTimeout(function(){try{e.removeChild(i)}catch(t){return!1}},u.duration)},d)},wrapInput:function(t){for(var e=0;e<t.length;e++){var i=t[e];if("input"===i.tagName.toLowerCase()){var n=i.parentNode;if("i"===n.tagName.toLowerCase()&&-1!==n.className.indexOf("waves-effect"))continue;var r=document.createElement("i");r.className=i.className+" waves-input-wrapper";var a=i.getAttribute("style");a||(a=""),r.setAttribute("style",a),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(r,i),r.appendChild(i)}}}},c={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?c.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){c.touches>0&&(c.touches-=1)},500):"mousedown"===t.type&&c.touches>0&&(e=!1),e},touchup:function(t){c.allowEvent(t)}};s.displayEffect=function(e){e=e||{},"duration"in e&&(u.duration=e.duration),u.wrapInput(l(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",o,!1),document.body.addEventListener("mousedown",o,!1)},s.attach=function(e){"input"===e.tagName.toLowerCase()&&(u.wrapInput([e]),e=e.parentElement),"ontouchstart"in t&&e.addEventListener("touchstart",o,!1),e.addEventListener("mousedown",o,!1)},t.Waves=s,document.addEventListener("DOMContentLoaded",function(){s.displayEffect()},!1)}(window);