Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function toast(t,e,i,n){function a(t){var e=$("<div class='toast'></div>").addClass(i).htm..
Decoded Output download
<? function toast(t,e,i,n){function a(t){var e=$("<div class='toast'></div>").addClass(i).html(t);return e.hammer({prevent_default:!1}).bind("pan",function(t){var i=t.gesture.deltaX,n=80;e.hasClass("panning")||e.addClass("panning");var a=1-Math.abs(i/n);0>a&&(a=0),e.velocity({left:i,opacity:a},{duration:50,queue:!1,easing:"easeOutQuad"})}).bind("panend",function(t){var i=t.gesture.deltaX,a=80;Math.abs(i)>a?e.velocity({marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),e.remove()}}):(e.removeClass("panning"),e.velocity({left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),e}if(i=i||"",0==$("#toast-container").length){var r=$("<div></div>").attr("id","toast-container");$("body").append(r)}var r=$("#toast-container"),o=a(t);r.append(o),o.css({top:parseFloat(o.css("top"))+35+"px",opacity:0}),o.velocity({top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var s=e,l=setInterval(function(){0===o.parent().length&&window.clearInterval(l),o.hasClass("panning")||(s-=100),0>=s&&(o.velocity({opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),$(this).remove()}}),window.clearInterval(l))},100)}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,a){return jQuery.easing[jQuery.easing.def](t,e,i,n,a)},easeInQuad:function(t,e,i,n,a){return n*(e/=a)*e+i},easeOutQuad:function(t,e,i,n,a){return-n*(e/=a)*(e-2)+i},easeInOutQuad:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,a){return n*(e/=a)*e*e+i},easeOutCubic:function(t,e,i,n,a){return n*((e=e/a-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,a){return n*(e/=a)*e*e*e+i},easeOutQuart:function(t,e,i,n,a){return-n*((e=e/a-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,a){return n*(e/=a)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,a){return n*((e=e/a-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,a){return(e/=a/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,a){return-n*Math.cos(e/a*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,a){return n*Math.sin(e/a*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,a){return-n/2*(Math.cos(Math.PI*e/a)-1)+i},easeInExpo:function(t,e,i,n,a){return 0==e?i:n*Math.pow(2,10*(e/a-1))+i},easeOutExpo:function(t,e,i,n,a){return e==a?i+n:n*(-Math.pow(2,-10*e/a)+1)+i},easeInOutExpo:function(t,e,i,n,a){return 0==e?i:e==a?i+n:(e/=a/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,a){return-n*(Math.sqrt(1-(e/=a)*e)-1)+i},easeOutCirc:function(t,e,i,n,a){return n*Math.sqrt(1-(e=e/a-1)*e)+i},easeInOutCirc:function(t,e,i,n,a){return(e/=a/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,a){var r=1.70158,o=0,s=n;if(0==e)return i;if(1==(e/=a))return i+n;if(o||(o=.3*a),s<Math.abs(n)){s=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/s);return-(s*Math.pow(2,10*(e-=1))*Math.sin(2*(e*a-r)*Math.PI/o))+i},easeOutElastic:function(t,e,i,n,a){var r=1.70158,o=0,s=n;if(0==e)return i;if(1==(e/=a))return i+n;if(o||(o=.3*a),s<Math.abs(n)){s=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/s);return s*Math.pow(2,-10*e)*Math.sin(2*(e*a-r)*Math.PI/o)+n+i},easeInOutElastic:function(t,e,i,n,a){var r=1.70158,o=0,s=n;if(0==e)return i;if(2==(e/=a/2))return i+n;if(o||(o=.3*a*1.5),s<Math.abs(n)){s=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/s);return 1>e?-.5*s*Math.pow(2,10*(e-=1))*Math.sin(2*(e*a-r)*Math.PI/o)+i:s*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*a-r)*Math.PI/o)*.5+n+i},easeInBack:function(t,e,i,n,a,r){return void 0==r&&(r=1.70158),n*(e/=a)*e*((r+1)*e-r)+i},easeOutBack:function(t,e,i,n,a,r){return void 0==r&&(r=1.70158),n*((e=e/a-1)*e*((r+1)*e+r)+1)+i},easeInOutBack:function(t,e,i,n,a,r){return void 0==r&&(r=1.70158),(e/=a/2)<1?n/2*e*e*(((r*=1.525)+1)*e-r)+i:n/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+i},easeInBounce:function(t,e,i,n,a){return n-jQuery.easing.easeOutBounce(t,a-e,0,n,a)+i},easeOutBounce:function(t,e,i,n,a){return(e/=a)<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,a){return a/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,n,a)+i:.5*jQuery.easing.easeOutBounce(t,2*e-a,0,n,a)+.5*n+i}}),jQuery.extend(jQuery.easing,{easeInOutMaterial:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e+i:n/4*((e-=2)*e*e+2)+i}}),!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?a[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&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(e in t);return void 0===e||r.call(t,e)},i.each=function(t,i,n){var a,r=0,o=t.length,s=e(t);if(n){if(s)for(;o>r&&(a=i.apply(t[r],n),a!==!1);r++);else for(r in t)if(a=i.apply(t[r],n),a===!1)break}else if(s)for(;o>r&&(a=i.call(t[r],r,t[r]),a!==!1);r++);else for(r in t)if(a=i.call(t[r],r,t[r]),a===!1)break;return t},i.data=function(t,e,a){if(void 0===a){var r=t[i.expando],o=r&&n[r];if(void 0===e)return o;if(o&&e in o)return o[e]}else if(void 0!==e){var r=t[i.expando]||(t[i.expando]=++i.uuid);return n[r]=n[r]||{},n[r][e]=a,a}},i.removeData=function(t,e){var a=t[i.expando],r=a&&n[a];r&&i.each(e,function(t,e){delete r[e]})},i.extend=function(){var t,e,n,a,r,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!=(r=arguments[l]))for(a in r)t=s[a],n=r[a],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[a]=i.extend(c,o,n)):void 0!==n&&(s[a]=n));return s},i.queue=function(t,n,a){function r(t,i){var n=i||[];return null!=t&&(e(Object(t))?!function(t,e){for(var i=+e.length,n=0,a=t.length;i>n;)t[a++]=e[n++];if(i!==i)for(;void 0!==e[n];)t[a++]=e[n++];return t.length=a,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 a?(!o||i.isArray(a)?o=i.data(t,n,r(a)):o.push(a),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var a=i.queue(n,e),r=a.shift();"inprogress"===r&&(r=a.shift()),r&&("fx"===e&&a.unshift("inprogress"),r.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(),a=/^(?: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&&(a.top+=parseFloat(t.style.borderTopWidth)||0,a.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-a.top,left:n.left-a.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var a={},r=a.hasOwnProperty,o=a.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)a["[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 a(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var a=t[e];a&&n.push(a)}return n}function r(t){return g.isWrapped(t)?t=[].slice.call(t):g.isNode(t)&&(t=[t]),t}function o(t){var e=f.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,a){function r(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((r(e,i)*t+o(e,i))*t+s(e))*t}function u(t,e,i){return 3*r(e,i)*t*t+2*o(e,i)*t+s(e)}function c(e,i){for(var a=0;g>a;++a){var r=u(i,t,n);if(0===r)return i;var o=l(i,t,n)-e;i-=o/r}return i}function d(){for(var e=0;b>e;++e)C[e]=l(e*w,t,n)}function f(e,i,a){var r,o,s=0;do o=i+(a-i)/2,r=l(o,t,n)-e,r>0?a=o:i=o;while(Math.abs(r)>m&&++s<y);return o}function p(e){for(var i=0,a=1,r=b-1;a!=r&&C[a]<=e;++a)i+=w;--a;var o=(e-C[a])/(C[a+1]-C[a]),s=i+o*w,l=u(s,t,n);return l>=v?c(e,s):0==l?s:f(e,i,i+w)}function h(){S=!0,(t!=i||n!=a)&&d()}var g=4,v=.001,m=1e-7,y=10,b=11,w=1/(b-1),x="Float32Array"in e;if(4!==arguments.length)return!1;for(var k=0;4>k;++k)if("number"!=typeof arguments[k]||isNaN(arguments[k])||!isFinite(arguments[k]))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,T=function(e){return S||h(),t===i&&n===a?e:0===e?0:1===e?1:l(p(e),i,a)};T.getControlPoints=function(){return[{x:t,y:i},{x:n,y:a}]};var O="generateBezier("+[t,i,n,a]+")";return T.toString=function(){return O},T}function u(t,e){var i=t;return g.isString(t)?b.Easings[t]||(i=!1):i=g.isArray(t)&&1===t.length?s.apply(null,t):g.isArray(t)&&2===t.length?w.apply(null,t.concat([e])):g.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)for(var e=(new Date).getTime(),i=0,a=b.State.calls.length;a>i;i++)if(b.State.calls[i]){var r=b.State.calls[i],s=r[0],l=r[2],u=r[3],p=!!u;u||(u=b.State.calls[i][3]=e-16);for(var h=Math.min((e-u)/l.duration,1),v=0,m=s.length;m>v;v++){var y=s[v],w=y.element;if(o(w)){var k=!1;if(l.display!==n&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var S=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];f.each(S,function(t,e){x.setPropertyValue(w,"display",e)})}x.setPropertyValue(w,"display",l.display)}l.visibility!==n&&"hidden"!==l.visibility&&x.setPropertyValue(w,"visibility",l.visibility);for(var T in y)if("element"!==T){var O,A=y[T],P=g.isString(A.easing)?b.Easings[A.easing]:A.easing;if(1===h)O=A.endValue;else if(O=A.startValue+(A.endValue-A.startValue)*P(h),!p&&O===A.currentValue)continue;if(A.currentValue=O,x.Hooks.registered[T]){var E=x.Hooks.getRoot(T),q=o(w).rootPropertyValueCache[E];q&&(A.rootPropertyValue=q)}var I=x.setPropertyValue(w,T,A.currentValue+(0===parseFloat(O)?"":A.unitType),A.rootPropertyValue,A.scrollData);x.Hooks.registered[T]&&(o(w).rootPropertyValueCache[E]=x.Normalizations.registered[E]?x.Normalizations.registered[E]("extract",null,I[1]):I[1]),"transform"===I[0]&&(k=!0)}l.mobileHA&&o(w).transformCache.translate3d===n&&(o(w).transformCache.translate3d="(0px, 0px, 0px)",k=!0),k&&x.flushTransformCache(w)}}l.display!==n&&"none"!==l.display&&(b.State.calls[i][2].display=!1),l.visibility!==n&&"hidden"!==l.visibility&&(b.State.calls[i][2].visibility=!1),l.progress&&l.progress.call(r[1],r[1],h,Math.max(0,u+l.duration-e),u),1===h&&d(i)}b.State.isTicking&&C(c)}function d(t,e){if(!b.State.calls[t])return!1;for(var i=b.State.calls[t][0],a=b.State.calls[t][1],r=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||r.loop||("none"===r.display&&x.setPropertyValue(d,"display",r.display),"hidden"===r.visibility&&x.setPropertyValue(d,"visibility",r.visibility)),r.loop!==!0&&(f.queue(d)[1]===n||!/\.velocityQueueEntryFlag/i.test(f.queue(d)[1]))&&o(d)){o(d).isAnimating=!1,o(d).rootPropertyValueCache={};var p=!1;f.each(x.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,a=o(d).transformCache[e];o(d).transformCache[e]!==n&&new RegExp("^\("+i+"[^.]").test(a)&&(p=!0,delete o(d).transformCache[e])}),r.mobileHA&&(p=!0,delete o(d).transformCache.translate3d),p&&x.flushTransformCache(d),x.Values.removeClass(d,"velocity-animating")}if(!e&&r.complete&&!r.loop&&u===c-1)try{r.complete.call(a,a)}catch(h){setTimeout(function(){throw h},1)}s&&r.loop!==!0&&s(a),r.loop!==!0||e||(f.each(o(d).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360)}),b(d,"reverse",{loop:!0,delay:r.delay})),r.queue!==!1&&f.dequeue(d,r.queue)}b.State.calls[t]=!1;for(var g=0,v=b.State.calls.length;v>g;g++)if(b.State.calls[g]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var f,p=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)}}(),g={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}},v=!1;if(t.fn&&t.fn.jquery?(f=t,v=!0):f=e.Velocity.Utilities,8>=p&&!v)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=p)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:f,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){f.data(t,"velocity",{isSVG:g.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:1,patch:0},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 a={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}}function i(i,n){var a={dx:i.v,dv:t(i)},r=e(i,.5*n,a),o=e(i,.5*n,r),s=e(i,n,o),l=1/6*(a.dx+2*(r.dx+o.dx)+s.dx),u=1/6*(a.dv+2*(r.dv+o.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function n(t,e,a){var r,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4,f=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,a=a||null,l.tension=t,l.friction=e,r=null!==a,r?(c=n(t,e),o=c/a*f):o=f;s=i(s||l,o),u.push(1+s.x),c+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return r?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)}},f.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,a;if(p)for(i in x.Hooks.templates){n=x.Hooks.templates[i],a=n[0].split(" ");var r=n[1].match(x.RegEx.valueSplit);"Color"===a[0]&&(a.push(a.shift()),r.push(r.shift()),x.Hooks.templates[i]=[a.join(" "),r.join(" ")])}for(i in x.Hooks.templates){n=x.Hooks.templates[i],a=n[0].split(" ");for(var t in a){var o=i+a[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],a=i[1];return e=x.Hooks.cleanRootPropertyValue(n,e),e.toString().match(x.RegEx.valueSplit)[a]}return e},injectValue:function(t,e,i){var n=x.Hooks.registered[t];if(n){var a,r,o=n[0],s=n[1];return i=x.Hooks.cleanRootPropertyValue(o,i),a=i.toString().match(x.RegEx.valueSplit),a[s]=e,r=a.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"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var a=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=a?a[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(8>=p)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>=p||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,a){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 r=!1;switch(e.substr(0,e.length-1)){case"translate":r=!/(%|px|em|rem|vw|vh|\d)$/i.test(a);break;case"scal":case"scale":b.State.isAndroid&&o(i).transformCache[e]===n&&1>a&&(a=1),r=!/(\d)$/i.test(a);break;case"skew":r=!/(deg|\d)$/i.test(a);break;case"rotate":r=!/(deg|\d)$/i.test(a)}return r||(o(i).transformCache[e]="("+a+")"),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,a){switch(t){case"name":return e;case"extract":var r;if(x.RegEx.wrappedValueAlreadyExtracted.test(a))r=a;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(a)?o=s[a]!==n?s[a]:s.black:x.RegEx.isHex.test(a)?o="rgb("+x.Values.hexToRgb(a).join(" ")+")":/^rgba?\(/i.test(a)||(o=s.black),r=(o||a).toString().match(x.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=p||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=p?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=p?"rgb":"rgba")+"("+a.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(p||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 a;if(a=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),g.isString(b.State.prefixElement.style[a]))return b.State.prefixMatches[t]=a,[a,!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":"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,a,r){function s(t,i){function a(){u&&x.setPropertyValue(t,"display","none")}var l=0;if(8>=p)l=f.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))),!r){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 a(),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 a(),d}}var h;h=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),(p||b.State.isFirefox)&&"borderColor"===i&&(i="borderTopColor"),l=9===p&&"filter"===i?h.getPropertyValue(i):h[i],(""===l||null===l)&&(l=t.style[i]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var g=s(t,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(i))&&(l=f(t).position()[i]+"px")}return l}var l;if(x.Hooks.registered[i]){var u=i,c=x.Hooks.getRoot(u);a===n&&(a=x.getPropertyValue(t,x.Names.prefixCheck(c)[0])),x.Normalizations.registered[c]&&(a=x.Normalizations.registered[c]("extract",t,a)),l=x.Hooks.extractValue(u,a)}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)}return/^[\d-]/.test(l)||(l=o(t)&&o(t).isSVG&&x.Names.SVGAttribute(i)?/^(height|width)$/i.test(i)?t.getBBox()[i]:t.getAttribute(i):s(t,x.Names.prefixCheck(i)[0])),x.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,n,a,r){var s=i;if("scroll"===i)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?e.scrollTo(n,r.alternateValue):e.scrollTo(r.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);a=a||x.getPropertyValue(t,u),n=x.Hooks.injectValue(l,n,a),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>=p)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((p||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]};f.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 a,r;f.each(o(t).transformCache,function(e){return a=o(t).transformCache[e],"transformPerspective"===e?(r=a,!0):(9===p&&"rotateZ"===e&&(e="rotate"),void(i+=e+a+" "))}),r&&(i="perspective"+r+" "+i)}x.setPropertyValue(t,"transform",i)}};x.Hooks.register(),x.Normalizations.register(),b.hook=function(t,e,i){var a=n;return t=r(t),f.each(t,function(t,r){if(o(r)===n&&b.init(r),i===n)a===n&&(a=b.CSS.getPropertyValue(r,e));else{var s=b.CSS.setPropertyValue(r,e,i);"transform"===s[0]&&b.CSS.flushTransformCache(r),a=s}}),a};var k=function(){function t(){return l?P.promise||null:p}function s(){function t(){function t(t,e){var i=n,a=n,r=n;return g.isArray(t)?(i=t[0],!g.isArray(t[1])&&/^[\d-]/.test(t[1])||g.isFunction(t[1])||x.RegEx.isHex.test(t[1])?r=t[1]:(g.isString(t[1])&&!x.RegEx.isHex.test(t[1])||g.isArray(t[1]))&&(a=e?t[1]:u(t[1],l.duration),t[2]!==n&&(r=t[2]))):i=t,e||(a=a||l.easing),g.isFunction(i)&&(i=i.call(s,T,S)),g.isFunction(r)&&(r=r.call(s,T,S)),[i||0,a,r]}function p(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 h(){var t={myParent:s.parentNode||i.body,position:x.getPropertyValue(s,"position"),fontSize:x.getPropertyValue(s,"fontSize")},n=t.position===j.lastPosition&&t.myParent===j.lastParent,a=t.fontSize===j.lastFontSize;j.lastParent=t.myParent,j.lastPosition=t.position,j.lastFontSize=t.fontSize;var r=100,l={};if(a&&n)l.emToPx=j.lastEmToPx,l.percentToPxWidth=j.lastPercentToPxWidth,l.percentToPxHeight=j.lastPercentToPxHeight;else{var u=o(s).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");b.init(u),t.myParent.appendChild(u),f.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"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){b.CSS.setPropertyValue(u,e,r+"%")}),b.CSS.setPropertyValue(u,"paddingLeft",r+"em"),l.percentToPxWidth=j.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(u,"width",null,!0))||1)/r,l.percentToPxHeight=j.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(u,"height",null,!0))||1)/r,l.emToPx=j.lastEmToPx=(parseFloat(x.getPropertyValue(u,"paddingLeft"))||1)/r,t.myParent.removeChild(u)}return null===j.remToPx&&(j.remToPx=parseFloat(x.getPropertyValue(i.body,"fontSize"))||16),null===j.vwToPx&&(j.vwToPx=parseFloat(e.innerWidth)/100,j.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=j.remToPx,l.vwToPx=j.vwToPx,l.vhToPx=j.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),s),l}if(l.begin&&0===T)try{l.begin.call(v,v)}catch(m){setTimeout(function(){throw m},1)}if("scroll"===E){var k,C,O,A=/^x$/i.test(l.axis)?"Left":"Top",q=parseFloat(l.offset)||0;l.container?g.isWrapped(l.container)||g.isNode(l.container)?(l.container=l.container[0]||l.container,k=l.container["scroll"+A],O=k+f(s).position()[A.toLowerCase()]+q):l.container=null:(k=b.State.scrollAnchor[b.State["scrollProperty"+A]],C=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===A?"Top":"Left")]],O=f(s).offset()[A.toLowerCase()]+q),d={scroll:{rootPropertyValue:!1,startValue:k,currentValue:k,endValue:O,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:A,alternateValue:C}},element:s},b.debug&&console.log("tweensContainer (scroll): ",d.scroll,s)}else if("reverse"===E){if(!o(s).tweensContainer)return void f.dequeue(s,l.queue);"none"===o(s).opts.display&&(o(s).opts.display="auto"),"hidden"===o(s).opts.visibility&&(o(s).opts.visibility="visible"),o(s).opts.loop=!1,o(s).opts.begin=null,o(s).opts.complete=null,w.easing||delete l.easing,w.duration||delete l.duration,l=f.extend({},o(s).opts,l);var I=f.extend(!0,{},o(s).tweensContainer);for(var _ in I)if("element"!==_){var M=I[_].startValue;I[_].startValue=I[_].currentValue=I[_].endValue,I[_].endValue=M,g.isEmptyObject(w)||(I[_].easing=l.easing),b.debug&&console.log("reverse tweensContainer ("+_+"): "+JSON.stringify(I[_]),s)}d=I}else if("start"===E){var I;o(s).tweensContainer&&o(s).isAnimating===!0&&(I=o(s).tweensContainer),f.each(y,function(e,i){if(RegExp("^"+x.Lists.colors.join("$|^")+"$").test(e)){var a=t(i,!0),r=a[0],o=a[1],s=a[2];if(x.RegEx.isHex.test(r)){for(var l=["Red","Green","Blue"],u=x.Values.hexToRgb(r),c=s?x.Values.hexToRgb(s):n,d=0;d<l.length;d++){var f=[u[d]];o&&f.push(o),c!==n&&f.push(c[d]),y[e+l[d]]=f}delete y[e]}}});for(var V in y){var $=t(y[V]),Q=$[0],F=$[1],L=$[2];V=x.Names.camelCase(V);var N=x.Hooks.getRoot(V),R=!1;if(o(s).isSVG||x.Names.prefixCheck(N)[1]!==!1||x.Normalizations.registered[N]!==n){(l.display!==n&&null!==l.display&&"none"!==l.display||l.visibility!==n&&"hidden"!==l.visibility)&&/opacity|filter/.test(V)&&!L&&0!==Q&&(L=0),
l._cacheValues&&I&&I[V]?(L===n&&(L=I[V].endValue+I[V].unitType),R=o(s).rootPropertyValueCache[N]):x.Hooks.registered[V]?L===n?(R=x.getPropertyValue(s,N),L=x.getPropertyValue(s,V,R)):R=x.Hooks.templates[N][1]:L===n&&(L=x.getPropertyValue(s,V));var z,W,H,X=!1;if(z=p(V,L),L=z[0],H=z[1],z=p(V,Q),Q=z[0].replace(/^([+-\/*])=/,function(t,e){return X=e,""}),W=z[1],L=parseFloat(L)||0,Q=parseFloat(Q)||0,"%"===W&&(/^(fontSize|lineHeight)$/.test(V)?(Q/=100,W="em"):/^scale/.test(V)?(Q/=100,W=""):/(Red|Green|Blue)$/i.test(V)&&(Q=Q/100*255,W="")),/[\/*]/.test(X))W=H;else if(H!==W&&0!==L)if(0===Q)W=H;else{r=r||h();var Y=/margin|padding|left|right|width|text|word|letter/i.test(V)||/X$/.test(V)||"x"===V?"x":"y";switch(H){case"%":L*="x"===Y?r.percentToPxWidth:r.percentToPxHeight;break;case"px":break;default:L*=r[H+"ToPx"]}switch(W){case"%":L*=1/("x"===Y?r.percentToPxWidth:r.percentToPxHeight);break;case"px":break;default:L*=1/r[W+"ToPx"]}}switch(X){case"+":Q=L+Q;break;case"-":Q=L-Q;break;case"*":Q=L*Q;break;case"/":Q=L/Q}d[V]={rootPropertyValue:R,startValue:L,currentValue:L,endValue:Q,unitType:W,easing:F},b.debug&&console.log("tweensContainer ("+V+"): "+JSON.stringify(d[V]),s)}else b.debug&&console.log("Skipping ["+N+"] due to a lack of browser support.")}d.element=s}d.element&&(x.Values.addClass(s,"velocity-animating"),D.push(d),""===l.queue&&(o(s).tweensContainer=d,o(s).opts=l),o(s).isAnimating=!0,T===S-1?(b.State.calls.length>1e4&&(b.State.calls=a(b.State.calls)),b.State.calls.push([D,v,l,null,P.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):T++)}var r,s=this,l=f.extend({},b.defaults,w),d={};switch(o(s)===n&&b.init(s),parseFloat(l.delay)&&l.queue!==!1&&f.queue(s,l.queue,function(t){b.velocityQueueEntryFlag=!0,o(s).delayTimer={setTimeout:setTimeout(t,parseFloat(l.delay)),next:t}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=m;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}b.mock!==!1&&(b.mock===!0?l.duration=l.delay=1:(l.duration*=parseFloat(b.mock)||1,l.delay*=parseFloat(b.mock)||1)),l.easing=u(l.easing,l.duration),l.begin&&!g.isFunction(l.begin)&&(l.begin=null),l.progress&&!g.isFunction(l.progress)&&(l.progress=null),l.complete&&!g.isFunction(l.complete)&&(l.complete=null),l.display!==n&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=b.CSS.Values.getDisplayType(s))),l.visibility!==n&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,l.queue===!1?l.delay?setTimeout(t,l.delay):t():f.queue(s,l.queue,function(e,i){return i===!0?(P.promise&&P.resolver(v),!0):(b.velocityQueueEntryFlag=!0,void t(e))}),""!==l.queue&&"fx"!==l.queue||"inprogress"===f.queue(s)[0]||f.dequeue(s)}var l,p,h,v,y,w,C=arguments[0]&&(f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||g.isString(arguments[0].properties));if(g.isWrapped(this)?(l=!1,h=0,v=this,p=this):(l=!0,h=1,v=C?arguments[0].elements:arguments[0]),v=r(v)){C?(y=arguments[0].properties,w=arguments[0].options):(y=arguments[h],w=arguments[h+1]);var S=v.length,T=0;if("stop"!==y&&!f.isPlainObject(w)){var O=h+1;w={};for(var A=O;A<arguments.length;A++)g.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?g.isString(arguments[A])||g.isArray(arguments[A])?w.easing=arguments[A]:g.isFunction(arguments[A])&&(w.complete=arguments[A]):w.duration=arguments[A]}var P={promise:null,resolver:null,rejecter:null};l&&b.Promise&&(P.promise=new b.Promise(function(t,e){P.resolver=t,P.rejecter=e}));var E;switch(y){case"scroll":E="scroll";break;case"reverse":E="reverse";break;case"stop":f.each(v,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 q=[];return f.each(b.State.calls,function(t,e){e&&f.each(e[1],function(i,a){var r=g.isString(w)?w:"";return w!==n&&e[2].queue!==r?!0:void f.each(v,function(e,i){i===a&&(w!==n&&(f.each(f.queue(i,r),function(t,e){g.isFunction(e)&&e(null,!0)}),f.queue(i,r,[])),o(i)&&""===r&&f.each(o(i).tweensContainer,function(t,e){e.endValue=e.currentValue}),q.push(t))})})}),f.each(q,function(t,e){d(e,!0)}),P.promise&&P.resolver(v),t();default:if(!f.isPlainObject(y)||g.isEmptyObject(y)){if(g.isString(y)&&b.Redirects[y]){var I=f.extend({},w),_=I.duration,M=I.delay||0;return I.backwards===!0&&(v=f.extend(!0,[],v).reverse()),f.each(v,function(t,e){parseFloat(I.stagger)?I.delay=M+parseFloat(I.stagger)*t:g.isFunction(I.stagger)&&(I.delay=M+I.stagger.call(e,t,S)),I.drag&&(I.duration=parseFloat(_)||(/^(callout|transition)/.test(y)?1e3:m),I.duration=Math.max(I.duration*(I.backwards?1-t/S:(t+1)/S),.75*I.duration,200)),b.Redirects[y].call(e,e,I||{},t,S,v,P.promise?P:n)}),t()}var V="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return P.promise?P.rejecter(new Error(V)):console.log(V),t()}E="start"}var j={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},D=[];f.each(v,function(t,e){g.isNode(e)&&s.call(e)});var $,I=f.extend({},b.defaults,w);if(I.loop=parseInt(I.loop),$=2*I.loop-1,I.loop)for(var Q=0;$>Q;Q++){var F={delay:I.delay,progress:I.progress};Q===$-1&&(F.display=I.display,F.visibility=I.visibility,F.complete=I.complete),k(v,"reverse",F)}return t()}};b=f.extend(k,b),b.animate=k;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=k,t.fn.velocity.defaults=b.defaults),f.each(["Down","Up"],function(t,e){b.Redirects["slide"+e]=function(t,i,a,r,o,s){var l=f.extend({},i),u=l.begin,c=l.complete,d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};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){p[i]=t.style[i];var n=b.CSS.getPropertyValue(t,i);d[i]="Down"===e?[n,0]:[0,n]}p.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in p)t.style[e]=p[e];c&&c.call(o,o),s&&s.resolver(o)},b(t,d,l)}}),f.each(["In","Out"],function(t,e){b.Redirects["fade"+e]=function(t,i,a,r,o,s){var l=f.extend({},i),u={opacity:"In"===e?1:0},c=l.complete;l.complete=a!==r-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,e,i,n){"use strict";function a(t,e,i){return setTimeout(c(t,i),e)}function r(t,e,i){return Array.isArray(t)?(o(t,i[e],i),!0):!1}function o(t,e,i){var a;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(a=0;a<t.length;)e.call(i,t[a],a,t),a++;else for(a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function s(t,e,i){for(var a=Object.keys(e),r=0;r<a.length;)(!i||i&&t[a[r]]===n)&&(t[a[r]]=e[a[r]]),r++;return t}function l(t,e){return s(t,e,!0)}function u(t,e,i){var n,a=e.prototype;n=t.prototype=Object.create(a),n.constructor=t,n._super=a,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 f(t,e){return t===n?e:t}function p(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 g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(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=[],a=[],r=0;r<t.length;){var o=e?t[r][e]:t[r];y(a,o)<0&&n.push(t[r]),a[r]=o,r++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function x(t,e){for(var i,a,r=e[0].toUpperCase()+e.slice(1),o=0;o<lt.length;){if(i=lt[o],a=i?i+r:e,a in t)return a;o++}return n}function k(){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 T(t){var e,i=t.options.inputClass;return new(e=i?i:mt?F:yt?R:vt?W:Q)(t,O)}function O(t,e,i){var n=i.pointers.length,a=i.changedPointers.length,r=e&St&&0===n-a,o=e&(Ot|At)&&0===n-a;i.isFirst=!!r,i.isFinal=!!o,r&&(t.session={}),i.eventType=e,A(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function A(t,e){var i=t.session,n=e.pointers,a=n.length;i.firstInput||(i.firstInput=q(e)),a>1&&!i.firstMultiple?i.firstMultiple=q(e):1===a&&(i.firstMultiple=!1);var r=i.firstInput,o=i.firstMultiple,s=o?o.center:r.center,l=e.center=I(n);e.timeStamp=pt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=j(s,l),e.distance=V(s,l),P(i,e),e.offsetDirection=M(e.deltaX,e.deltaY),e.scale=o?$(o.pointers,n):1,e.rotation=o?D(o.pointers,n):0,E(i,e);var u=t.element;g(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function P(t,e){var i=e.center,n=t.offsetDelta||{},a=t.prevDelta||{},r=t.prevInput||{};(e.eventType===St||r.eventType===Ot)&&(a=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=a.x+(i.x-n.x),e.deltaY=a.y+(i.y-n.y)}function E(t,e){var i,a,r,o,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=At&&(l>Ct||s.velocity===n)){var u=s.deltaX-e.deltaX,c=s.deltaY-e.deltaY,d=_(l,u,c);a=d.x,r=d.y,i=ft(d.x)>ft(d.y)?d.x:d.y,o=M(u,c),t.lastInterval=e}else i=s.velocity,a=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=a,e.velocityY=r,e.direction=o}function q(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:pt(),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,a=0;e>a;)i+=t[a].clientX,n+=t[a].clientY,a++;return{x:dt(i/e),y:dt(n/e)}}function _(t,e,i){return{x:e/t||0,y:i/t||0}}function M(t,e){return t===e?Pt:ft(t)>=ft(e)?t>0?Et:qt:e>0?It:_t}function V(t,e,i){i||(i=Dt);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return Math.sqrt(n*n+a*a)}function j(t,e,i){i||(i=Dt);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return 180*Math.atan2(a,n)/Math.PI}function D(t,e){return j(e[1],e[0],$t)-j(t[1],t[0],$t)}function $(t,e){return V(e[0],e[1],$t)/V(t[0],t[1],$t)}function Q(){this.evEl=Ft,this.evWin=Lt,this.allow=!0,this.pressed=!1,S.apply(this,arguments)}function F(){this.evEl=zt,this.evWin=Wt,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function L(){this.evTarget=Xt,this.evWin=Yt,this.started=!1,S.apply(this,arguments)}function N(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(Ot|At)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}function R(){this.evTarget=Gt,this.targetIds={},S.apply(this,arguments)}function z(t,e){var i=b(t.touches),n=this.targetIds;if(e&(St|Tt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,r,o=b(t.changedTouches),s=[],l=this.target;if(r=i.filter(function(t){return g(t.target,l)}),e===St)for(a=0;a<r.length;)n[r[a].identifier]=!0,a++;for(a=0;a<o.length;)n[o[a].identifier]&&s.push(o[a]),e&(Ot|At)&&delete n[o[a].identifier],a++;return s.length?[w(r.concat(s),"identifier",!0),s]:void 0}function W(){S.apply(this,arguments);var t=c(this.handler,this);this.touch=new R(this.manager,t),this.mouse=new Q(this.manager,t)}function H(t,e){this.manager=t,this.set(e)}function X(t){if(v(t,ee))return ee;var e=v(t,ie),i=v(t,ne);return e&&i?ie+" "+ne:e||i?e?ie:ne:v(t,te)?te:Kt}function Y(t){this.id=k(),this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=f(this.options.enable,!0),this.state=ae,this.simultaneous={},this.requireFail=[]}function B(t){return t&ue?"cancel":t&se?"end":t&oe?"move":t&re?"start":""}function G(t){return t==_t?"down":t==It?"up":t==Et?"left":t==qt?"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 at(t,e){return e=e||{},e.recognizers=f(e.recognizers,at.defaults.preset),new rt(t,e)}function rt(t,e){e=e||{},this.options=l(e,at.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=T(this),this.touchAction=new H(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,ft=Math.abs,pt=Date.now,ht=1,gt=/mobile|tablet|ip(ad|hone|od)|android/i,vt="ontouchstart"in t,mt=x(t,"PointerEvent")!==n,yt=vt&>.test(navigator.userAgent),bt="touch",wt="pen",xt="mouse",kt="kinect",Ct=25,St=1,Tt=2,Ot=4,At=8,Pt=1,Et=2,qt=4,It=8,_t=16,Mt=Et|qt,Vt=It|_t,jt=Mt|Vt,Dt=["x","y"],$t=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(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 Qt={mousedown:St,mousemove:Tt,mouseup:Ot},Ft="mousedown",Lt="mousemove mouseup";u(Q,S,{handler:function(t){var e=Qt[t.type];e&St&&0===t.button&&(this.pressed=!0),e&Tt&&1!==t.which&&(e=Ot),this.pressed&&this.allow&&(e&Ot&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:xt,srcEvent:t}))}});var Nt={pointerdown:St,pointermove:Tt,pointerup:Ot,pointercancel:At,pointerout:At},Rt={2:bt,3:wt,4:xt,5:kt},zt="pointerdown",Wt="pointermove pointerup pointercancel";t.MSPointerEvent&&(zt="MSPointerDown",Wt="MSPointerMove MSPointerUp MSPointerCancel"),u(F,S,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),a=Nt[n],r=Rt[t.pointerType]||t.pointerType,o=r==bt,s=y(e,t.pointerId,"pointerId");a&St&&(0===t.button||o)?0>s&&(e.push(t),s=e.length-1):a&(Ot|At)&&(i=!0),0>s||(e[s]=t,this.callback(this.manager,a,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(s,1))}});var Ht={touchstart:St,touchmove:Tt,touchend:Ot,touchcancel:At},Xt="touchstart",Yt="touchstart touchmove touchend touchcancel";u(L,S,{handler:function(t){var e=Ht[t.type];if(e===St&&(this.started=!0),this.started){var i=N.call(this,t,e);e&(Ot|At)&&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:Tt,touchend:Ot,touchcancel:At},Gt="touchstart touchmove touchend touchcancel";u(R,S,{handler:function(t){var e=Bt[t.type],i=z.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}),u(W,S,{handler:function(t,e,i){var n=i.pointerType==bt,a=i.pointerType==xt;if(n)this.mouse.allow=!1;else if(a&&!this.mouse.allow)return;e&(Ot|At)&&(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";H.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()))}),X(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,a=v(n,ee),r=v(n,ne),o=v(n,ie);return a||r&&i&Mt||o&&i&Vt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ae=1,re=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(r(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 r(t,"dropRecognizeWith",this)?this:(t=U(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(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(r(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|ae)))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=ae),this.state=this.process(e),void(this.state&(re|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&(re|oe),a=this.attrTest(t);return n&&(i&At||!a)?e|ue:n||a?i&Ot?e|se:e&re?e|oe:re:ce}}),u(J,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Mt&&e.push(ne),t&Vt&&e.push(ie),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,a=t.direction,r=t.deltaX,o=t.deltaY;return a&e.direction||(e.direction&Mt?(a=0===r?Pt:0>r?Et:qt,i=r!=this.pX,n=Math.abs(t.deltaX)):(a=0===o?Pt:0>o?It:_t,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=a,i&&n>e.threshold&&a&e.direction},attrTest:function(t){return Z.prototype.attrTest.call(this,t)&&(this.state&re||!(this.state&re)&&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&re)},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,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(Ot|At)&&!r)this.reset();else if(t.eventType&St)this.reset(),this._timer=a(function(){this.state=le,this.tryEmit()},e.time,this);else if(t.eventType&Ot)return le;return ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===le&&(t&&t.eventType&Ot?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=pt(),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&re)}}),u(it,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Mt|Vt,pointers:1},getTouchAction:function(){return J.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Mt|Vt)?e=t.velocity:i&Mt?e=t.velocityX:i&Vt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&ft(e)>this.options.velocity&&t.eventType&Ot},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,r=t.deltaTime<e.time;if(this.reset(),t.eventType&St&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=Ot)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime<e.interval:!0,s=!this.pCenter||V(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=a(function(){this.state=le,this.tryEmit()},e.interval,this),re):le}return ce},failTimeout:function(){return this._timer=a(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))}}),at.VERSION="2.0.4",at.defaults={domEvents:!1,touchAction:Jt,enable:!0,inputTarget:null,inputClass:null,preset:[[et,{enable:!1}],[K,{enable:!1},["rotate"]],[it,{direction:Mt}],[J,{direction:Mt},["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,fe=2;rt.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?fe:de},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,a=e.curRecognizer;(!a||a&&a.state&le)&&(a=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],e.stopped===fe||a&&i!=a&&!i.canRecognizeWith(a)?i.reset():i.recognize(t),!a&&i.state&(re|oe|se)&&(a=e.curRecognizer=i),r++}},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(r(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(r(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(at,{INPUT_START:St,INPUT_MOVE:Tt,INPUT_END:Ot,INPUT_CANCEL:At,STATE_POSSIBLE:ae,STATE_BEGAN:re,STATE_CHANGED:oe,STATE_ENDED:se,STATE_RECOGNIZED:le,STATE_CANCELLED:ue,STATE_FAILED:ce,DIRECTION_NONE:Pt,DIRECTION_LEFT:Et,DIRECTION_RIGHT:qt,DIRECTION_UP:It,DIRECTION_DOWN:_t,DIRECTION_HORIZONTAL:Mt,DIRECTION_VERTICAL:Vt,DIRECTION_ALL:jt,Manager:rt,Input:S,TouchAction:H,TouchInput:R,MouseInput:Q,PointerEventInput:F,TouchMouseInput:W,SingleTouchInput:L,Recognizer:Y,AttrRecognizer:Z,Tap:nt,Pan:J,Swipe:it,Pinch:K,Rotate:et,Press:tt,on:p,off:h,each:o,merge:l,extend:s,inherit:u,bindFn:c,prefixed:x}),typeof define==ct&&define.amd?define(function(){return at}):"undefined"!=typeof module&&module.exports?module.exports=at:t[i]=at}(window,document,"Hammer"),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 a=t(i);a.data("hammer")||a.data("hammer",new e(a[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){t.fn.collapsible=function(e){var i={accordion:void 0};return e=t.extend(i,e),this.each(function(){function i(t){r=a.find(".collapsible-header"),t.parent().toggleClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1}),r.not(t).parent().removeClass("active"),r.not(t).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1})}function n(t){t.parent().toggleClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1})}var a=t(this),r=t(this).find(".collapsible-header"),o=a.data("collapsible");a.off("click.collapse",".collapsible-header"),r.off("click.collapse"),e.accordion||"accordion"==o||void 0==o?(a.on("click.collapse",".collapsible-header",function(e){i(t(e.currentTarget))}),i(r.filter(".active").first())):r.each(function(){t(this).on("click.collapse",function(e){n(t(e.currentTarget))}),t(this).hasClass("active")&&n(t(this))})})},t(document).ready(function(){t(".collapsible").collapsible()})}(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:!0,alignment:"left",gutter:0,belowOrigin:!1};e=t.extend(i,e),this.each(function(){function i(){void 0!=o.data("inDuration")&&(e.inDuration=o.data("inDuration")),void 0!=o.data("outDuration")&&(e.outDuration=o.data("outDuration")),void 0!=o.data("constrainwidth")&&(e.constrain_width=o.data("constrainwidth")),void 0!=o.data("hover")&&(e.hover=o.data("hover")),void 0!=o.data("alignment")&&(e.alignment=o.data("alignment")),void 0!=o.data("gutter")&&(e.gutter=o.data("gutter")),void 0!=o.data("beloworigin")&&(e.belowOrigin=o.data("beloworigin"))}function n(){i(),1==e.constrain_width&&s.css("width",o.outerWidth());var n=0;1==e.belowOrigin&&(n=o.height());var r=0,u=e.gutter;"right"==e.alignment&&(r=o.innerWidth()-s.innerWidth(),u=-1*u),s.css(a(o[0])?{display:"block",position:"fixed",height:0,top:o.offset().top-t(window).scrollTop()+n,left:o.offset().left+r+u}:{display:"block",top:o.offset().top+n,left:o.offset().left+r+u,height:0}),s.velocity({opacity:1},{duration:e.inDuration,queue:!1,easing:"easeOutQuad"}).velocity({height:l},{duration:e.inDuration,queue:!1,easing:"easeOutCubic",complete:function(){s.css("overflow-y","auto")}})}function a(e){var i=t(e),n=i.add(i.parents()),a=!1;return n.each(function(){return"fixed"===t(this).css("position")?(a=!0,!1):void 0}),a}function r(){s.velocity({opacity:0},{duration:e.outDuration,easing:"easeOutQuad",complete:function(){s.css({display:"none","overflow-y":""})}})}var o=t(this),s=t("#"+o.attr("data-activates"));i(),s.parent().is(t("body"))||(s.detach(),t("body").append(s));var l=s.height();e.hover?(o.on("mouseover",function(){n()}),s.on("mouseleave",function(){r()})):(o.unbind("click."+o.attr("id")),o.bind("click."+o.attr("id"),function(e){o[0]==e.currentTarget&&(e.preventDefault(),n()),t(document).bind("click."+s.attr("id"),function(e){!s.is(e.target)&&!o.is(e.target)&&!o.find(e.target).length>0&&(r(),t(document).unbind("click."+s.attr("id")))})})),o.on("open",n),o.on("close",r)})}}(jQuery),function(t){t.fn.extend({openModal:function(e){var i=this,n=t('<div id="lean-overlay"></div>');t("body").append(n);var a={opacity:.5,in_duration:300,out_duration:200,ready:void 0,complete:void 0,dismissible:!0};e=t.extend(a,e),e.dismissible&&(t("#lean-overlay").click(function(){t(i).closeModal(e)}),t(document).keyup(function(n){27===n.keyCode&&(t(i).closeModal(e),t(this).off())})),t(i).find(".modal-close").click(function(n){n.preventDefault(),t(i).closeModal(e)}),t("#lean-overlay").css({display:"block",opacity:0}),t(i).css({display:"block",top:"4%",opacity:0}),t("#lean-overlay").velocity({opacity:e.opacity},{duration:e.in_duration,queue:!1,ease:"easeOutCubic"}),t(i).velocity({top:"10%",opacity:1},{duration:e.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof e.ready&&e.ready()}})}}),t.fn.extend({closeModal:function(e){var i={out_duration:200,complete:void 0},e=t.extend(i,e);t(".modal-close").off(),t("#lean-overlay").velocity({opacity:0},{duration:e.out_duration,queue:!1,ease:"easeOutQuart"}),t(this).fadeOut(e.out_duration,function(){t(this).css({top:0}),t("#lean-overlay").css({display:"none"}),"function"==typeof e.complete&&e.complete(),t("#lean-overlay").remove()})}}),t.fn.extend({leanModal:function(e){return this.each(function(){t(this).click(function(i){var n=t(this).attr("href");t(n).openModal(e),i.preventDefault()})})}})}(jQuery),function(t){t.fn.materialbox=function(){return this.each(function(){function e(){n=!1;var e=o.parent(".material-placeholder"),a=(window.innerWidth,window.innerHeight,o.data("width")),s=o.data("height");t("#materialbox-overlay").fadeOut(r,function(){i=!1,t(this).remove()}),o.velocity({width:a,height:s,left:0,top:0},{duration:r,queue:!1,easing:"easeOutQuad"}),t(".materialbox-caption").velocity({opacity:0},{duration:r+200,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("intialized")){t(this).addClass("intialized");var i=!1,n=!0,a=275,r=200,o=t(this),s=t("<div></div>").addClass("material-placeholder");o.wrap(s),o.on("click",function(){var r=o.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,u=o.width(),c=o.height();if(n===!1)return!1;if(i&&n===!0)return e(),!1;n=!1,o.addClass("active"),i=!0,r.css({width:r[0].getBoundingClientRect().width,height:r[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:a,queue:!1,easing:"easeOutQuad"}),""!==o.data("caption")){var f=t('<div class="materialbox-caption"></div>');f.text(o.data("caption")),t("body").append(f),f.css({display:"inline"}),f.velocity({opacity:1},{duration:a,queue:!1,easing:"easeOutQuad"})}var p=0,h=u/s,g=c/l,v=0,m=0;h>g?(p=c/u,
v=.9*s,m=.9*s*p):(p=u/c,v=.9*l*p,m=.9*l),o.hasClass("responsive-img")?o.velocity({"max-width":v,width:u},{duration:0,queue:!1,complete:function(){o.css({left:0,top:0}).velocity({height:m,width:v,left:t(document).scrollLeft()+s/2-o.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+l/2-o.parent(".material-placeholder").offset().top-m/2},{duration:a,queue:!1,easing:"easeOutQuad",complete:function(){n=!0}})}}):o.css("left",0).css("top",0).velocity({height:m,width:v,left:t(document).scrollLeft()+s/2-o.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+l/2-o.parent(".material-placeholder").offset().top-m/2},{duration:a,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),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(){function i(i){var a;a=992>e?n.height()>0?n.height():n.children("img").height():n.height()>0?n.height():500;var r=n.children("img").height(),o=r-a,s=n.offset().top+a,l=n.offset().top,u=t(window).scrollTop(),c=window.innerHeight,d=u+c,f=(d-l)/(a+c),p=-1*o*f;s>u&&u+c>l&&n.children("img").first().css("bottom",p+"px"),i&&n.children("img").first().css("display","block")}var n=t(this);n.addClass("parallax"),n.find("img").each(function(){t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src","data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")}),n.children("img").one("load",function(){i(!0)}).each(function(){this.complete&&t(this).load()}),t(window).scroll(function(){e=t(window).width(),i(!1)}),t(window).resize(function(){e=t(window).width(),i(!1)})})}}(jQuery),function(t){var e={init:function(){return this.each(function(){var e=t(this);t(window).width(),e.width("100%");var i=t(this).children("li").length;e.children("li").each(function(){t(this).width(100/i+"%")});var n,a,r=e.find("li.tab a"),o=e.width(),s=e.find("li").first().outerWidth(),l=0;n=t(r.filter('[href="'+location.hash+'"]')),0===n.length&&(n=t(this).find("li.tab a.active").first()),0===n.length&&(n=t(this).find("li.tab a").first()),n.addClass("active"),l=r.index(n),0>l&&(l=0),a=t(n[0].hash),e.append('<div class="indicator"></div>');var u=e.find(".indicator");e.is(":visible")&&(u.css({right:o-(l+1)*s}),u.css({left:l*s})),t(window).resize(function(){o=e.width(),s=e.find("li").first().outerWidth(),0>l&&(l=0),0!==s&&0!==o&&(u.css({right:o-(l+1)*s}),u.css({left:l*s}))}),r.not(n).each(function(){t(this.hash).hide()}),e.on("click","a",function(i){o=e.width(),s=e.find("li").first().outerWidth(),n.removeClass("active"),a.hide(),n=t(this),a=t(this.hash),r=e.find("li.tab a"),n.addClass("active");var c=l;l=r.index(t(this)),0>l&&(l=0),a.show(),l-c>=0?(u.velocity({right:o-(l+1)*s},{duration:300,queue:!1,easing:"easeOutQuad"}),u.velocity({left:l*s},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(u.velocity({left:l*s},{duration:300,queue:!1,easing:"easeOutQuad"}),u.velocity({right:o-(l+1)*s},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})),i.preventDefault()})})},select_tab:function(t){this.find('a[href="#'+t+'"]').trigger("click")}};t.fn.tabs=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)},t(document).ready(function(){t("ul.tabs").tabs()})}(jQuery),function(t){t.fn.tooltip=function(e){var i=null,n=!1,a=null,r=5,o={delay:350};return e=t.extend(o,e),t(".material-tooltip").remove(),this.each(function(){var o=t(this),s=t("<span></span>").text(o.attr("data-tooltip")),l=t("<div></div>");l.addClass("material-tooltip").append(s),l.appendTo(t("body"));var u=t("<div></div>").addClass("backdrop");u.appendTo(l),u.css({top:0,left:0}),t(this).off("mouseenter mouseleave"),t(this).on({mouseenter:function(){var t=o.data("delay");t=void 0==t||""==t?e.delay:t,i=0,a=setInterval(function(){if(i+=10,i>=t&&0==n){n=!0,l.css({display:"block",left:"0px",top:"0px"}),l.children("span").text(o.attr("data-tooltip"));var e=o.outerWidth(),a=o.outerHeight(),s=o.attr("data-position"),c=l.outerHeight(),d=l.outerWidth(),f="0px",p="0px",h=8;"top"===s?(l.css({top:o.offset().top-c-r,left:o.offset().left+e/2-d/2}),f="-10px",u.css({borderRadius:"14px 14px 0 0",transformOrigin:"50% 90%",marginTop:c,marginLeft:d/2-u.width()/2})):"left"===s?(l.css({top:o.offset().top+a/2-c/2,left:o.offset().left-d-r}),p="-10px",u.css({width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:c/2,marginLeft:d})):"right"===s?(l.css({top:o.offset().top+a/2-c/2,left:o.offset().left+e+r}),p="+10px",u.css({width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:c/2,marginLeft:"0px"})):(l.css({top:o.offset().top+o.outerHeight()+r,left:o.offset().left+e/2-d/2}),f="+10px",u.css({marginLeft:d/2-u.width()/2})),h=d/8,8>h&&(h=8),("right"===s||"left"===s)&&(h=d/10,6>h&&(h=6)),l.velocity({opacity:1,marginTop:f,marginLeft:p},{duration:350,queue:!1}),u.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:function(){clearInterval(a),i=0,l.velocity({opacity:0,marginTop:0,marginLeft:0},{duration:225,queue:!1,delay:275}),u.velocity({opacity:0,scale:1},{duration:225,delay:275,queue:!1,complete:function(){u.css("display","none"),l.css("display","none"),n=!1}})}})})},t(document).ready(function(){t(".tooltipped").tooltip()})}(jQuery),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,a={top:0,left:0},r=t&&t.ownerDocument;return e=r.documentElement,"undefined"!=typeof t.getBoundingClientRect&&(a=t.getBoundingClientRect()),n=i(r),{top:a.top+n.pageYOffset-e.clientTop,left:a.left+n.pageXOffset-e.clientLeft}}function a(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}function r(t){if(c.allowEvent(t)===!1)return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentElement;){if(-1!==i.className.indexOf("waves-effect")){e=i;break}i=i.parentElement}return e}function o(e){var i=r(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,r=document.createElement("div");r.className="waves-ripple",i.appendChild(r);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),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",c),r.setAttribute("data-x",l),r.setAttribute("data-y",s);var d={top:s+"px",left:l+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",a(d)),r.className=r.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)",r.setAttribute("style",a(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 r=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:r+"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",a(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 a=document.createElement("i");a.className=i.className+" waves-input-wrapper";var r=i.getAttribute("style");r||(r=""),a.setAttribute("style",r),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(a,i),a.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),function(t){var e={init:function(e){var i={menuWidth:240,edge:"left",closeOnClick:!1};e=t.extend(i,e),t(this).each(function(){function i(){r=!1,o=!1,t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(t(".drag-target").css({width:"",right:"",left:"0"}),a.velocity({left:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutCubic"})):(t(".drag-target").css({width:"",right:"0",left:""}),a.velocity({right:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutCubic"}))}var n=t(this),a=t("#"+n.attr("data-activates"));240!=e.menuWidth&&(a.css("width",e.menuWidth),a.hasClass("fixed")||a.css("left",-1*(e.menuWidth+10))),"left"!=e.edge&&a.addClass("right-aligned"),t("body").append(t('<div class="drag-target"></div>')),t(".drag-target").css("left"===e.edge?{left:0}:{right:0}),a.hasClass("fixed")&&t(window).resize(function(){t(window).width()>1200&&a.attr("style")&&(a.removeAttr("style"),a.css("width",e.menuWidth)),0!=t("#sidenav-overlay").css("opacity")&&o&&t("#sidenav-overlay").trigger("click")}),1==e.closeOnClick&&a.on("click.itemclick","a:not(.collapsible-header)",function(){i()});var r=!1,o=!1;t(".drag-target").hammer({prevent_default:!1}).bind("tap",function(){t("#sidenav-overlay").trigger("click")}).bind("pan",function(n){if("touch"===n.gesture.pointerType){var r=(n.gesture.direction,n.gesture.center.x);if(n.gesture.center.y,n.gesture.velocityX,!t("#sidenav-overlay").length){var s=t('<div id="sidenav-overlay"></div>');s.css("opacity",0).click(function(){i()}),t("body").append(s)}if("left"===e.edge?r>e.menuWidth?r=e.menuWidth:0>r&&(r=0):r<t(window).width()-e.menuWidth&&(r=t(window).width()-e.menuWidth),"left"===e.edge?(r<e.menuWidth/2?o=!1:r>=e.menuWidth/2&&(o=!0),a.css("left",r-e.menuWidth)):(r<t(window).width()-e.menuWidth/2?o=!0:r>=t(window).width()-e.menuWidth/2&&(o=!1),a.css("right",-1*(r-e.menuWidth/2))),"left"===e.edge){var l=r/e.menuWidth;t("#sidenav-overlay").velocity({opacity:l},{duration:50,queue:!1,easing:"easeOutQuad"})}else{var l=Math.abs((r-t(window).width())/e.menuWidth);t("#sidenav-overlay").velocity({opacity:l},{duration:50,queue:!1,easing:"easeOutQuad"})}}}).bind("panend",function(i){if("touch"===i.gesture.pointerType){var n=i.gesture.velocityX;r=!1,"left"===e.edge?o&&.3>=n||-.5>n?(a.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),t(".drag-target").css({width:"50%",right:0,left:""})):(!o||n>.3)&&(a.velocity({left:-240},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:50,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),t(".drag-target").css({width:"10%",right:"",left:0})):o&&n>=-.3||n>.5?(a.velocity({right:0},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),t(".drag-target").css({width:"50%",right:"",left:0})):(!o||-.3>n)&&(a.velocity({right:-240},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:50,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),t(".drag-target").css({width:"10%",right:0,left:""}))}}),n.click(function(){if(1==o)o=!1,r=!1,i();else{"left"===e.edge?(t(".drag-target").css({width:"50%",right:0,left:""}),a.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"})):(t(".drag-target").css({width:"50%",right:"",left:0}),a.velocity({right:0},{duration:300,queue:!1,easing:"easeOutQuad"}),a.css("left",""));var n=t('<div id="sidenav-overlay"></div>');n.css("opacity",0).click(function(){o=!1,r=!1,i(),n.animate({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}),t("body").append(n),n.animate({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){o=!0,r=!1}})}return!1})})},show:function(){this.trigger("click")},hide:function(){t("#sidenav-overlay").trigger("click")}};t.fn.sideNav=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)}}(jQuery),function(t){function e(e,i,n,a){var r=t();return t.each(o,function(t,o){if(o.height()>0){var s=o.offset().top,l=o.offset().left,u=l+o.width(),c=s+o.height(),d=!(l>i||a>u||s>n||e>c);d&&r.push(o)}}),r}function i(){++u;var i=r.scrollTop(),n=r.scrollLeft(),a=n+r.width(),o=i+r.height(),l=e(i+c.top+200,a+c.right,o+c.bottom,n+c.left);t.each(l,function(t,e){var i=e.data("scrollSpy:ticks");"number"!=typeof i&&e.triggerHandler("scrollSpy:enter"),e.data("scrollSpy:ticks",u)}),t.each(s,function(t,e){var i=e.data("scrollSpy:ticks");"number"==typeof i&&i!==u&&(e.triggerHandler("scrollSpy:exit"),e.data("scrollSpy:ticks",null))}),s=l}function n(){r.trigger("scrollSpy:winSize")}function a(t,e,i){var n,a,r,o=null,s=0;i||(i={});var l=function(){s=i.leading===!1?0:d(),o=null,r=t.apply(n,a),n=a=null};return function(){var u=d();s||i.leading!==!1||(s=u);var c=e-(u-s);return n=this,a=arguments,0>=c?(clearTimeout(o),o=null,s=u,r=t.apply(n,a),n=a=null):o||i.trailing===!1||(o=setTimeout(l,c)),r}}var r=t(window),o=[],s=[],l=!1,u=0,c={top:0,right:0,bottom:0,left:0},d=Date.now||function(){return(new Date).getTime()};t.scrollSpy=function(e,n){var s=[];e=t(e),e.each(function(e,i){o.push(t(i)),t(i).data("scrollSpy:id",e),t("a[href=#"+t(i).attr("id")+"]").click(function(e){e.preventDefault();var i=t(this.hash).offset().top+1;t(".tabs-wrapper").length?t("html, body").animate({scrollTop:i-60},{duration:400,easing:"easeOutCubic"}):t("html, body").animate({scrollTop:i},{duration:400,easing:"easeOutCubic"})})}),n=n||{throttle:100},c.top=n.offsetTop||0,c.right=n.offsetRight||0,c.bottom=n.offsetBottom||0,c.left=n.offsetLeft||0;var u=a(i,n.throttle||100),d=function(){t(document).ready(u)};return l||(r.on("scroll",d),r.on("resize",d),l=!0),setTimeout(d,0),e.on("scrollSpy:enter",function(){s=t.grep(s,function(t){return 0!=t.height()});var e=t(this);s[0]?(t("a[href=#"+s[0].attr("id")+"]").removeClass("active"),e.data("scrollSpy:id")<s[0].data("scrollSpy:id")?s.unshift(t(this)):s.push(t(this))):s.push(t(this)),t("a[href=#"+s[0].attr("id")+"]").addClass("active")}),e.on("scrollSpy:exit",function(){if(s=t.grep(s,function(t){return 0!=t.height()}),s[0]){t("a[href=#"+s[0].attr("id")+"]").removeClass("active");var e=t(this);s=t.grep(s,function(t){return t.attr("id")!=e.attr("id")}),s[0]&&t("a[href=#"+s[0].attr("id")+"]").addClass("active")}}),e},t.winSizeSpy=function(e){return t.winSizeSpy=function(){return r},e=e||{throttle:100},r.on("resize",a(n,e.throttle||100))},t.fn.scrollSpy=function(e){return t.scrollSpy(t(this),e)}}(jQuery),function(t){t(document).ready(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";if(t(document).on("change",e,function(){0!==t(this).val().length&&t(this).siblings("label, i").addClass("active"),validate_field(t(this))}),t(document).ready(function(){t(e).each(function(e,i){t(i).val().length>0&&t(this).siblings("label, i").addClass("active")})}),t(document).on("reset",function(i){t(i.target).is("form")&&(t(this).find(e).removeClass("valid").removeClass("invalid"),t(this).find("select.initialized").each(function(){var e=t(this).find("option[selected]").text();t(this).siblings("input.select-dropdown").val(e)}))}),t(document).on("focus",e,function(){t(this).siblings("label, i").addClass("active")}),t(document).on("blur",e,function(){0===t(this).val().length&&t(this).siblings("label, i").removeClass("active"),validate_field(t(this))}),validate_field=function(t){0===t.val().length?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))},0===t(".hiddendiv").length){var i=t('<div class="hiddendiv common"></div>'),n=null;t("body").append(i)}var a=".materialize-textarea";t(".hiddendiv").css("width",t(a).width()),t(a).each(function(){t(this).val().length&&(n=t(this).val(),n=n.replace(/
/g,"<br>"),i.html(n+"<br>"),t(this).css("height",i.height()))}),t("body").on("keyup keydown",a,function(){n=t(this).val(),n=n.replace(/
/g,"<br>"),i.html(n+"<br>"),t(this).css("height",i.height())}),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,a=[],r=0;r<n.length;r++)a.push(n[r].name);i.val(a.join(", ")),i.trigger("change")});var r="input[type=range]",o=!1;t(r).each(function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)});var s=".range-field";t(document).on("mousedown",s,function(e){var i=t(this).children(".thumb");i.length<=0&&(i=t('<span class="thumb"><span class="value"></span></span>'),t(this).append(i)),o=!0,t(this).addClass("active"),i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});var n=e.pageX-t(this).offset().left,a=t(this).outerWidth();0>n?n=0:n>a&&(n=a),i.addClass("active").css("left",n),i.find(".value").html(t(this).children("input[type=range]").val())}),t(document).on("mouseup",s,function(){o=!1,t(this).removeClass("active")}),t(document).on("mousemove",s,function(e){var i=t(this).children(".thumb");if(o){i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});var n=e.pageX-t(this).offset().left,a=t(this).outerWidth();0>n?n=0:n>a&&(n=a),i.addClass("active").css("left",n),i.find(".value").html(t(this).children("input[type=range]").val())}}),t(document).on("mouseout",s,function(){if(!o){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")&&!$select.hasClass("initialized")){var i=l(),n=t('<div class="select-wrapper"></div>'),a=t('<ul id="select-options-'+i+'" class="dropdown-content select-dropdown"></ul>'),r=$select.children("option");if(void 0!==$select.find("option:selected"))var o=$select.find("option:selected");else var o=a.first();r.each(function(){a.append(t('<li class="'+(t(this).is(":disabled")?"disabled":"")+'"><span>'+t(this).html()+"</span></li>"))}),a.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(n);var s=t('<input type="text" class="select-dropdown" readonly="true" '+($select.is(":disabled")?"disabled":"")+' data-activates="select-options-'+i+'" value="'+o.html()+'"/><i class="mdi-navigation-arrow-drop-down">');$select.before(s),t("body").append(a),$select.is(":disabled")||s.dropdown({hover:!1}),$select.addClass("initialized"),s.on("focus",function(){t(this).trigger("open"),o=t(this).val(),selectedOption=a.find("li").filter(function(){return t(this).text().toLowerCase()===o.toLowerCase()})[0],activateOption(a,selectedOption)}),s.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){return 9==e.which?void s.trigger("close"):40!=e.which||a.is(":visible")?void((13!=e.which||a.is(":visible"))&&(e.preventDefault(),letter=String.fromCharCode(e.which).toLowerCase(),letter&&(filterQuery.push(letter),string=filterQuery.join(""),newOption=a.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(string)})[0],newOption&&activateOption(a,newOption)),13==e.which&&(activeOption=a.find("li.active:not(.disabled)")[0],activeOption&&(t(activeOption).trigger("click"),s.trigger("close"))),40==e.which&&(newOption=a.find("li.active").next("li:not(.disabled)")[0],newOption&&activateOption(a,newOption)),27==e.which&&s.trigger("close"),38==e.which&&(newOption=a.find("li.active").prev("li:not(.disabled)")[0],newOption&&activateOption(a,newOption)),setTimeout(function(){filterQuery=[]},1e3))):void s.trigger("open")},s.on("keydown",onKeyDown)}})};var l=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()}}()})}(jQuery),function(t){t.fn.slider=function(e){var i={indicators:!0,height:400,transition:500,interval:6e4};return e=t.extend(i,e),this.each(function(){function i(t,e){t.hasClass("center-align")?t.velocity({opacity:0,translateY:-100},{duration:e,queue:!1}):t.hasClass("right-align")?t.velocity({opacity:0,translateX:100},{duration:e,queue:!1}):t.hasClass("left-align")&&t.velocity({opacity:0,translateX:-100},{duration:e,queue:!1})}function n(t){t>=s.length?t=0:0>t&&(t=s.length-1),l=o.find(".active").index(),l!=t&&(a=s.eq(l),$caption=a.find(".caption"),a.removeClass("active"),a.velocity({opacity:0},{duration:e.transition,queue:!1,easing:"easeOutQuad",complete:function(){s.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),i($caption,e.transition),e.indicators&&u.eq(l).removeClass("active"),s.eq(t).velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,delay:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).addClass("active"),e.indicators&&u.eq(t).addClass("active"))}var a,r=t(this),o=r.find("ul.slides").first(),s=o.find("li"),l=o.find(".active").index();if(-1!=l&&(a=s.eq(l)),400!=e.height&&(r.height(e.height+40),o.height(e.height)),s.find(".caption").each(function(){i(t(this),0)}),s.find("img").each(function(){t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src","data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")}),e.indicators){var u=t('<ul class="indicators"></ul>');s.each(function(){var i=t('<li class="indicator-item"></li>');i.click(function(){var i=o.parent(),a=i.find(t(this)).index();n(a),clearInterval($interval),$interval=setInterval(function(){l=o.find(".active").index(),s.length==l+1?l=0:l+=1,n(l)},e.transition+e.interval)}),u.append(i)}),r.append(u),u=r.find("ul.indicators").find("li.indicator-item")}a?a.show():(s.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),l=0,a=s.eq(l),e.indicators&&u.eq(l).addClass("active")),a.find("img").each(function(){a.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})}),$interval=setInterval(function(){l=o.find(".active").index(),n(l+1)},e.transition+e.interval);var c=!1,d=!1,f=!1;r.hammer({prevent_default:!1}).bind("pan",function(t){if("touch"===t.gesture.pointerType){clearInterval($interval);var e=t.gesture.direction,i=t.gesture.deltaX,n=t.gesture.velocityX;$curr_slide=o.find(".active"),$curr_slide.velocity({translateX:i},{duration:50,queue:!1,easing:"easeOutQuad"}),4===e&&(i>r.innerWidth()/2||-.65>n)?f=!0:2===e&&(i<-1*r.innerWidth()/2||n>.65)&&(d=!0);var a;d&&(a=$curr_slide.next(),0===a.length&&(a=s.first()),a.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),f&&(a=$curr_slide.prev(),0===a.length&&(a=s.last()),a.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(t){"touch"===t.gesture.pointerType&&($curr_slide=o.find(".active"),c=!1,curr_index=o.find(".active").index(),f||d?d?(n(curr_index+1),$curr_slide.velocity({translateX:-1*r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):f&&(n(curr_index-1),$curr_slide.velocity({translateX:r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}),d=!1,f=!1,clearInterval($interval),$interval=setInterval(function(){l=o.find(".active").index(),s.length==l+1?l=0:l+=1,n(l)},e.transition+e.interval))})})}}(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"}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&t(this).find(".card-reveal").velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))})})}(jQuery),function(t){t(document).ready(function(){var e=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()}}();t.fn.pushpin=function(i){var n={top:0,bottom:1/0,offset:0};return i=t.extend(n,i),$index=0,this.each(function(){function n(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function a(e,a){e.each(function(){i.top<=a&&i.bottom>=a&&!t(this).hasClass("pinned")&&(n(t(this)),t(this).css("top",i.offset),t(this).addClass("pinned")),a<i.top&&!t(this).hasClass("pin-top")&&(n(t(this)),t(this).css("top",0),t(this).addClass("pin-top")),a>i.bottom&&!t(this).hasClass("pin-bottom")&&(n(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",i.bottom-s))})}var r=e(),o=t(this),s=t(this).offset().top;a(o,t(window).scrollTop()),t(window).on("scroll."+r,function(){var e=t(window).scrollTop()+i.offset;a(o,e)})})}})}(jQuery),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn",function(){var e=t(this);e.find("ul a.btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:"40px"},{duration:0});var i=0;e.find("ul a.btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0"},{duration:80,delay:i}),i+=40})}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn",function(){var e=t(this);e.find("ul a.btn-floating").velocity("stop",!0),e.find("ul a.btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:"40px"},{duration:80})})})}(jQuery),function(t){t(document).ready(function(){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})};var e=[];t("ul.staggered-list").each(function(i){var n="scrollFire-"+i;t(this).addClass(n),e.push({selector:"ul.staggered-list."+n,offset:200,callback:'showStaggeredList("ul.staggered-list.'+n+'")'})}),scrollFire(e);var i=!1,n=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).bind("pan",function(e){if("touch"===e.gesture.pointerType){var a=t(this),r=e.gesture.direction,o=e.gesture.deltaX,s=e.gesture.velocityX;a.velocity({translateX:o},{duration:50,queue:!1,easing:"easeOutQuad"}),4===r&&(o>a.innerWidth()/2||-.75>s)?i=!0:2===r&&(o<-1*a.innerWidth()/2||s>.75)&&(n=!0)}}).bind("panend",function(e){if("touch"===e.gesture.pointerType){var a=t(this);if(i||n){var r;r=i?a.innerWidth():-1*a.innerWidth(),a.velocity({translateX:r},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){a.css("border","none"),a.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){a.remove()}})}})}else a.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});i=!1,n=!1}})}),fadeInImage=function(e){var i=t(e);i.css({opacity:0}),t(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(i).animate({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,i){i.start=100;var n=e/100,a=150-(100-e)/1.75;100>a&&(a=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+n+")brightness("+a+"%)",filter:"grayscale("+n+")brightness("+a+"%)"})}})}})}(jQuery),function(t){scrollFire=function(e){t(window).scroll(function(){var i=t(window).scrollTop()+t(window).height();t.each(e,function(e,n){var a=n.selector,r=n.offset,o=n.callback,s=t(a).offset().top;if(i>s+r&&1!=n.done){var l=new Function(o);l(),n.done=!0}})})}}(jQuery),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):this.Picker=t(jQuery)}(function(t){function e(r,o,l,d){function f(){return e._.node("div",e._.node("div",e._.node("div",e._.node("div",S.component.nodes(b.open),x.box),x.wrap),x.frame),x.holder)}function p(){k.data(o,S).addClass(x.input).attr("tabindex",-1).val(k.data("value")?S.get("select",w.format):r.value),w.editable||k.on("focus."+b.id+" click."+b.id,function(t){t.preventDefault(),S.$root[0].focus()}).on("keydown."+b.id,v),a(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"})}function h(){S.$root.on({keydown:v,focusin:function(t){S.$root.removeClass(x.focused),t.stopPropagation()},"mousedown click":function(e){var i=e.target;i!=S.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(i).is("input, select, textarea, button, option")||(e.preventDefault(),S.$root[0].focus()))}}).on({focus:function(){k.addClass(x.target)},blur:function(){k.removeClass(x.target)}}).on("focus.toOpen",m).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),i=e.data(),n=e.hasClass(x.navDisabled)||e.hasClass(x.disabled),a=s();a=a&&(a.type||a.href),(n||a&&!t.contains(S.$root[0],a))&&S.$root[0].focus(),!n&&i.nav?S.set("highlight",S.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?S.set("select",i.pick):i.clear?S.clear().close(!0):i.close&&S.close(!0)}),a(S.$root[0],"hidden",!0)}function g(){var e;w.hiddenName===!0?(e=r.name,r.name=""):(e=["string"==typeof w.hiddenPrefix?w.hiddenPrefix:"","string"==typeof w.hiddenSuffix?w.hiddenSuffix:"_submit"],
e=e[0]+r.name+e[1]),S._hidden=t('<input type=hidden name="'+e+'"'+(k.data("value")||r.value?' value="'+S.get("select",w.formatSubmit)+'"':"")+">")[0],k.on("change."+b.id,function(){S._hidden.value=r.value?S.get("select",w.formatSubmit):""}),w.container?t(w.container).append(S._hidden):k.after(S._hidden)}function v(t){var e=t.keyCode,i=/^(8|46)$/.test(e);return 27==e?(S.close(),!1):void((32==e||i||!b.open&&S.component.key[e])&&(t.preventDefault(),t.stopPropagation(),i?S.clear().close():S.open()))}function m(t){t.stopPropagation(),"focus"==t.type&&S.$root.addClass(x.focused),S.open()}if(!r)return e;var y=!1,b={id:r.id||"P"+Math.abs(~~(Math.random()*new Date))},w=l?t.extend(!0,{},l.defaults,d):d||{},x=t.extend({},e.klasses(),w.klass),k=t(r),C=function(){return this.start()},S=C.prototype={constructor:C,$node:k,start:function(){return b&&b.start?S:(b.methods={},b.start=!0,b.open=!1,b.type=r.type,r.autofocus=r==s(),r.readOnly=!w.editable,r.id=r.id||b.id,"text"!=r.type&&(r.type="text"),S.component=new l(S,w),S.$root=t(e._.node("div",f(),x.picker,'id="'+r.id+'_root" tabindex="0"')),h(),w.formatSubmit&&g(),p(),w.container?t(w.container).append(S.$root):k.after(S.$root),S.on({start:S.component.onStart,render:S.component.onRender,stop:S.component.onStop,open:S.component.onOpen,close:S.component.onClose,set:S.component.onSet}).on({start:w.onStart,render:w.onRender,stop:w.onStop,open:w.onOpen,close:w.onClose,set:w.onSet}),y=i(S.$root.children()[0]),r.autofocus&&S.open(),S.trigger("start").trigger("render"))},render:function(t){return t?S.$root.html(f()):S.$root.find("."+x.box).html(S.component.nodes(b.open)),S.trigger("render")},stop:function(){return b.start?(S.close(),S._hidden&&S._hidden.parentNode.removeChild(S._hidden),S.$root.remove(),k.removeClass(x.input).removeData(o),setTimeout(function(){k.off("."+b.id)},0),r.type=b.type,r.readOnly=!1,S.trigger("stop"),b.methods={},b.start=!1,S):S},open:function(i){return b.open?S:(k.addClass(x.active),a(r,"expanded",!0),setTimeout(function(){S.$root.addClass(x.opened),a(S.$root[0],"hidden",!1)},0),i!==!1&&(b.open=!0,y&&c.css("overflow","hidden").css("padding-right","+="+n()),S.$root[0].focus(),u.on("click."+b.id+" focusin."+b.id,function(t){var e=t.target;e!=r&&e!=document&&3!=t.which&&S.close(e===S.$root.children()[0])}).on("keydown."+b.id,function(i){var n=i.keyCode,a=S.component.key[n],r=i.target;27==n?S.close(!0):r!=S.$root[0]||!a&&13!=n?t.contains(S.$root[0],r)&&13==n&&(i.preventDefault(),r.click()):(i.preventDefault(),a?e._.trigger(S.component.key.go,S,[e._.trigger(a)]):S.$root.find("."+x.highlighted).hasClass(x.disabled)||S.set("select",S.component.item.highlight).close())})),S.trigger("open"))},close:function(t){return t&&(S.$root.off("focus.toOpen")[0].focus(),setTimeout(function(){S.$root.on("focus.toOpen",m)},0)),k.removeClass(x.active),a(r,"expanded",!1),setTimeout(function(){S.$root.removeClass(x.opened+" "+x.focused),a(S.$root[0],"hidden",!0)},0),b.open?(b.open=!1,y&&c.css("overflow","").css("padding-right","-="+n()),u.off("."+b.id),S.trigger("close")):S},clear:function(t){return S.set("clear",null,t)},set:function(e,i,n){var a,r,o=t.isPlainObject(e),s=o?e:{};if(n=o&&t.isPlainObject(i)?i:n||{},e){o||(s[e]=i);for(a in s)r=s[a],a in S.component.item&&(void 0===r&&(r=null),S.component.set(a,r,n)),("select"==a||"clear"==a)&&k.val("clear"==a?"":S.get(a,w.format)).trigger("change");S.render()}return n.muted?S:S.trigger("set",s)},get:function(t,i){if(t=t||"value",null!=b[t])return b[t];if("valueSubmit"==t){if(S._hidden)return S._hidden.value;t="value"}if("value"==t)return r.value;if(t in S.component.item){if("string"==typeof i){var n=S.component.get(t);return n?e._.trigger(S.component.formats.toString,S.component,[i,n]):""}return S.component.get(t)}},on:function(e,i,n){var a,r,o=t.isPlainObject(e),s=o?e:{};if(e){o||(s[e]=i);for(a in s)r=s[a],n&&(a="_"+a),b.methods[a]=b.methods[a]||[],b.methods[a].push(r)}return S},off:function(){var t,e,i=arguments;for(t=0,namesCount=i.length;t<namesCount;t+=1)e=i[t],e in b.methods&&delete b.methods[e];return S},trigger:function(t,i){var n=function(t){var n=b.methods[t];n&&n.map(function(t){e._.trigger(t,S,[i])})};return n("_"+t),n(t),S}};return new C}function i(t){var e,i="position";return t.currentStyle?e=t.currentStyle[i]:window.getComputedStyle&&(e=getComputedStyle(t)[i]),"fixed"==e}function n(){if(c.height()<=l.height())return 0;var e=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=e[0].offsetWidth;e.css("overflow","scroll");var n=t('<div style="width:100%" />').appendTo(e),a=n[0].offsetWidth;return e.remove(),i-a}function a(e,i,n){if(t.isPlainObject(i))for(var a in i)r(e,a,i[a]);else r(e,i,n)}function r(t,e,i){t.setAttribute(("role"==e?"":"aria-")+e,i)}function o(e,i){t.isPlainObject(e)||(e={attribute:i}),i="";for(var n in e){var a=("role"==n?"":"aria-")+n,r=e[n];i+=null==r?"":a+'="'+e[n]+'"'}return i}function s(){try{return document.activeElement}catch(t){}}var l=t(window),u=t(document),c=t(document.documentElement);return e.klasses=function(t){return t=t||"picker",{picker:t,opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},e._={group:function(t){for(var i,n="",a=e._.trigger(t.min,t);a<=e._.trigger(t.max,t,[a]);a+=t.i)i=e._.trigger(t.item,t,[a]),n+=e._.node(t.node,i[0],i[1],i[2]);return n},node:function(e,i,n,a){return i?(i=t.isArray(i)?i.join(""):i,n=n?' class="'+n+'"':"",a=a?" "+a:"","<"+e+n+a+">"+i+"</"+e+">"):""},lead:function(t){return(10>t?"0":"")+t},trigger:function(t,e,i){return"function"==typeof t?t.apply(e,i||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1===0},ariaAttr:o},e.extend=function(i,n){t.fn[i]=function(a,r){var o=this.data(i);return"picker"==a?o:o&&"string"==typeof a?e._.trigger(o[a],o,[r]):this.each(function(){var r=t(this);r.data(i)||new e(this,i,n,a)})},t.fn[i].defaults=n.defaults},e}),function(t){"function"==typeof define&&define.amd?define(["picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,e){function i(t,e){var i=this,n=t.$node[0],a=n.value,r=t.$node.data("value"),o=r||a,s=r?e.formatSubmit:e.format,l=function(){return n.currentStyle?"rtl"==n.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=e,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(e.disable||[]).slice(0),i.item.enable=-function(t){return t[0]===!0?t.shift():-1}(i.item.disable),i.set("min",e.min).set("max",e.max).set("now"),o?i.set("select",o,{format:s}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(t){var e=i.item.highlight,n=new Date(e.year,e.month,e.date+t);i.set("highlight",n,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var i=this.value;i&&(t.set("highlight",[t.get("view").year,i,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var i=this.value;i&&(t.set("highlight",[i,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}var n=7,a=6,r=t._;i.prototype.set=function(t,e,i){var n=this,a=n.item;return null===e?("clear"==t&&(t="select"),a[t]=e,n):(a["enable"==t?"disable":"flip"==t?"enable":t]=n.queue[t].split(" ").map(function(a){return e=n[a](t,e,i)}).pop(),"select"==t?n.set("highlight",a.select,i):"highlight"==t?n.set("view",a.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(a.select&&n.disabled(a.select)&&n.set("select",a.select,i),a.highlight&&n.disabled(a.highlight)&&n.set("highlight",a.highlight,i)),n)},i.prototype.get=function(t){return this.item[t]},i.prototype.create=function(t,i,n){var a,o=this;return i=void 0===i?t:i,i==-1/0||1/0==i?a=i:e.isPlainObject(i)&&r.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=r.isDate(i)?i:o.create().obj):i=r.isInteger(i)||r.isDate(i)?o.normalize(new Date(i),n):o.now(t,i,n),{year:a||i.getFullYear(),month:a||i.getMonth(),date:a||i.getDate(),day:a||i.getDay(),obj:a||i,pick:a||i.getTime()}},i.prototype.createRange=function(t,i){var n=this,a=function(t){return t===!0||e.isArray(t)||r.isDate(t)?n.create(t):t};return r.isInteger(t)||(t=a(t)),r.isInteger(i)||(i=a(i)),r.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:r.isInteger(i)&&e.isPlainObject(t)&&(i=[t.year,t.month,t.date+i]),{from:a(t),to:a(i)}},i.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},i.prototype.overlapRanges=function(t,e){var i=this;return t=i.createRange(t.from,t.to),e=i.createRange(e.from,e.to),i.withinRange(t,e.from)||i.withinRange(t,e.to)||i.withinRange(e,t.from)||i.withinRange(e,t.to)},i.prototype.now=function(t,e,i){return e=new Date,i&&i.rel&&e.setDate(e.getDate()+i.rel),this.normalize(e,i)},i.prototype.navigate=function(t,i,n){var a,r,o,s,l=e.isArray(i),u=e.isPlainObject(i),c=this.item.view;if(l||u){for(u?(r=i.year,o=i.month,s=i.date):(r=+i[0],o=+i[1],s=+i[2]),n&&n.nav&&c&&c.month!==o&&(r=c.year,o=c.month),a=new Date(r,o+(n&&n.nav?n.nav:0),1),r=a.getFullYear(),o=a.getMonth();new Date(r,o,s).getMonth()!==o;)s-=1;i=[r,o,s]}return i},i.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},i.prototype.measure=function(t,e){var i=this;return e?"string"==typeof e?e=i.parse(t,e):r.isInteger(e)&&(e=i.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},i.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},i.prototype.validate=function(t,i,n){var a,o,s,l,u=this,c=i,d=n&&n.interval?n.interval:1,f=-1===u.item.enable,p=u.item.min,h=u.item.max,g=f&&u.item.disable.filter(function(t){if(e.isArray(t)){var n=u.create(t).pick;n<i.pick?a=!0:n>i.pick&&(o=!0)}return r.isInteger(t)}).length;if((!n||!n.nav)&&(!f&&u.disabled(i)||f&&u.disabled(i)&&(g||a||o)||!f&&(i.pick<=p.pick||i.pick>=h.pick)))for(f&&!g&&(!o&&d>0||!a&&0>d)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.month<c.month||i.month>c.month)&&(i=c,d=d>0?1:-1),i.pick<=p.pick?(s=!0,d=1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=h.pick&&(l=!0,d=-1,i=u.create([h.year,h.month,h.date+(i.pick===h.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},i.prototype.disabled=function(t){var i=this,n=i.item.disable.filter(function(n){return r.isInteger(n)?t.day===(i.settings.firstDay?n:n-1)%7:e.isArray(n)||r.isDate(n)?t.pick===i.create(n).pick:e.isPlainObject(n)?i.withinRange(n,t):void 0});return n=n.length&&!n.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!n:n||t.pick<i.item.min.pick||t.pick>i.item.max.pick},i.prototype.parse=function(t,e,i){var n=this,a={};return e&&"string"==typeof e?(i&&i.format||(i=i||{},i.format=n.settings.format),n.formats.toArray(i.format).map(function(t){var i=n.formats[t],o=i?r.trigger(i,n,[e,a]):t.replace(/^!/,"").length;i&&(a[t]=e.substr(0,o)),e=e.substr(o)}),[a.yyyy||a.yy,+(a.mm||a.m)-1,a.dd||a.d]):e},i.prototype.formats=function(){function t(t,e,i){var n=t.match(/\w+/)[0];return i.mm||i.m||(i.m=e.indexOf(n)+1),n.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?r.digits(t):e.date},dd:function(t,e){return t?2:r.lead(e.date)},ddd:function(t,i){return t?e(t):this.settings.weekdaysShort[i.day]},dddd:function(t,i){return t?e(t):this.settings.weekdaysFull[i.day]},m:function(t,e){return t?r.digits(t):e.month+1},mm:function(t,e){return t?2:r.lead(e.month+1)},mmm:function(e,i){var n=this.settings.monthsShort;return e?t(e,n,i):n[i.month]},mmmm:function(e,i){var n=this.settings.monthsFull;return e?t(e,n,i):n[i.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var i=this;return i.formats.toArray(t).map(function(t){return r.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(t,i){var n=this;return r.isInteger(t)&&r.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(r.isDate(t)||e.isArray(t))&&(r.isDate(i)||e.isArray(i))?n.create(t).pick===n.create(i).pick:e.isPlainObject(t)&&e.isPlainObject(i)?n.isDateExact(t.from,i.from)&&n.isDateExact(t.to,i.to):!1},i.prototype.isDateOverlap=function(t,i){var n=this,a=n.settings.firstDay?1:0;return r.isInteger(t)&&(r.isDate(i)||e.isArray(i))?(t=t%7+a,t===n.create(i).day+1):r.isInteger(i)&&(r.isDate(t)||e.isArray(t))?(i=i%7+a,i===n.create(t).day+1):e.isPlainObject(t)&&e.isPlainObject(i)?n.overlapRanges(t,i):!1},i.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},i.prototype.deactivate=function(t,i){var n=this,a=n.item.disable.slice(0);return"flip"==i?n.flipEnable():i===!1?(n.flipEnable(1),a=[]):i===!0?(n.flipEnable(-1),a=[]):i.map(function(t){for(var i,o=0;o<a.length;o+=1)if(n.isDateExact(t,a[o])){i=!0;break}i||(r.isInteger(t)||r.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&a.push(t)}),a},i.prototype.activate=function(t,i){var n=this,a=n.item.disable,o=a.length;return"flip"==i?n.flipEnable():i===!0?(n.flipEnable(1),a=[]):i===!1?(n.flipEnable(-1),a=[]):i.map(function(t){var i,s,l,u;for(l=0;o>l;l+=1){if(s=a[l],n.isDateExact(s,t)){i=a[l]=null,u=!0;break}if(n.isDateOverlap(s,t)){e.isPlainObject(t)?(t.inverted=!0,i=t):e.isArray(t)?(i=t,i[3]||i.push("inverted")):r.isDate(t)&&(i=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(i)for(l=0;o>l;l+=1)if(n.isDateExact(a[l],t)){a[l]=null;break}if(u)for(l=0;o>l;l+=1)if(n.isDateOverlap(a[l],t)){a[l]=null;break}i&&a.push(i)}),a.filter(function(t){return null!=t})},i.prototype.nodes=function(t){var e=this,i=e.settings,o=e.item,s=o.now,l=o.select,u=o.highlight,c=o.view,d=o.disable,f=o.min,p=o.max,h=function(t,e){return i.firstDay&&(t.push(t.shift()),e.push(e.shift())),r.node("thead",r.node("tr",r.group({min:0,max:n-1,i:1,node:"th",item:function(n){return[t[n],i.klass.weekdays,'scope=col title="'+e[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysLetter).slice(0),i.weekdaysFull.slice(0)),g=function(t){return r.node("div"," ",i.klass["nav"+(t?"Next":"Prev")]+(t&&c.year>=p.year&&c.month>=p.month||!t&&c.year<=f.year&&c.month<=f.month?" "+i.klass.navDisabled:""),"data-nav="+(t||-1)+" "+r.ariaAttr({role:"button",controls:e.$node[0].id+"_table"})+' title="'+(t?i.labelMonthNext:i.labelMonthPrev)+'"')},v=function(n){var a=i.showMonthsShort?i.monthsShort:i.monthsFull;return"short_months"==n&&(a=i.monthsShort),i.selectMonths&&void 0==n?r.node("select",r.group({min:0,max:11,i:1,node:"option",item:function(t){return[a[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==f.year&&t<f.month||c.year==p.year&&t>p.month?" disabled":"")]}}),i.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+r.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):"short_months"==n?null!=l?r.node("div",a[l.month]):r.node("div",a[c.month]):r.node("div",a[c.month],i.klass.month)},m=function(n){var a=c.year,o=i.selectYears===!0?5:~~(i.selectYears/2);if(o){var s=f.year,l=p.year,u=a-o,d=a+o;if(s>u&&(d+=s-u,u=s),d>l){var h=u-s,g=d-l;u-=h>g?g:h,d=l}if(i.selectYears&&void 0==n)return r.node("select",r.group({min:u,max:d,i:1,node:"option",item:function(t){return[t,0,"value="+t+(a==t?" selected":"")]}}),i.klass.selectYear+" browser-default",(t?"":"disabled")+" "+r.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return"raw"==n?r.node("div",a):r.node("div",a,i.klass.year)};return createDayLabel=function(){return null!=l?r.node("div",l.date):r.node("div",s.date)},createWeekdayLabel=function(){var t;t=null!=l?l.day:s.day;var e=i.weekdaysFull[t];return e},r.node("div",r.node("div",createWeekdayLabel(),"picker__weekday-display")+r.node("div",v("short_months"),i.klass.month_display)+r.node("div",createDayLabel(),i.klass.day_display)+r.node("div",m("raw"),i.klass.year_display),i.klass.date_display)+r.node("div",r.node("div",(i.selectYears?v()+m():v()+m())+g()+g(1),i.klass.header)+r.node("table",h+r.node("tbody",r.group({min:0,max:a-1,i:1,node:"tr",item:function(t){var a=i.firstDay&&0===e.create([c.year,c.month,1]).day?-7:0;return[r.group({min:n*t-c.day+a+1,max:function(){return this.min+n-1},i:1,node:"td",item:function(t){t=e.create([c.year,c.month,t+(i.firstDay?1:0)]);var n=l&&l.pick==t.pick,a=u&&u.pick==t.pick,o=d&&e.disabled(t)||t.pick<f.pick||t.pick>p.pick,h=r.trigger(e.formats.toString,e,[i.format,t]);return[r.node("div",t.date,function(e){return e.push(c.month==t.month?i.klass.infocus:i.klass.outfocus),s.pick==t.pick&&e.push(i.klass.now),n&&e.push(i.klass.selected),a&&e.push(i.klass.highlighted),o&&e.push(i.klass.disabled),e.join(" ")}([i.klass.day]),"data-pick="+t.pick+" "+r.ariaAttr({role:"gridcell",label:h,selected:n&&e.$node.val()===h?!0:null,activedescendant:a?!0:null,disabled:o?!0:null})),"",r.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+e.$node[0].id+'_table" '+r.ariaAttr({role:"grid",controls:e.$node[0].id,readonly:!0})),i.klass.calendar_container)+r.node("div",r.node("button",i.today,"btn-flat picker__today","type=button data-pick="+s.pick+(t&&!e.disabled(s)?"":" disabled")+" "+r.ariaAttr({controls:e.$node[0].id}))+r.node("button",i.clear,"btn-flat picker__clear","type=button data-clear=1"+(t?"":" disabled")+" "+r.ariaAttr({controls:e.$node[0].id}))+r.node("button",i.close,"btn-flat picker__close","type=button data-close=true "+(t?"":" disabled")+" "+r.ariaAttr({controls:e.$node[0].id})),i.klass.footer)},i.defaults=function(t){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],weekdaysFull:["Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu"],weekdaysShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],weekdaysLetter:["M","S","S","R","K","J","S"],today:"Hari Ini",clear:'',close:"Tutup",format:"d mmmm, yyyy",klass:{table:t+"table",header:t+"header",date_display:t+"date-display",day_display:t+"day-display",month_display:t+"month-display",year_display:t+"year-display",calendar_container:t+"calendar-container",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}}}(t.klasses().picker+"__"),t.extend("pickadate",i)});
?>
Did this file decode correctly?
Original Code
function toast(t,e,i,n){function a(t){var e=$("<div class='toast'></div>").addClass(i).html(t);return e.hammer({prevent_default:!1}).bind("pan",function(t){var i=t.gesture.deltaX,n=80;e.hasClass("panning")||e.addClass("panning");var a=1-Math.abs(i/n);0>a&&(a=0),e.velocity({left:i,opacity:a},{duration:50,queue:!1,easing:"easeOutQuad"})}).bind("panend",function(t){var i=t.gesture.deltaX,a=80;Math.abs(i)>a?e.velocity({marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),e.remove()}}):(e.removeClass("panning"),e.velocity({left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),e}if(i=i||"",0==$("#toast-container").length){var r=$("<div></div>").attr("id","toast-container");$("body").append(r)}var r=$("#toast-container"),o=a(t);r.append(o),o.css({top:parseFloat(o.css("top"))+35+"px",opacity:0}),o.velocity({top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var s=e,l=setInterval(function(){0===o.parent().length&&window.clearInterval(l),o.hasClass("panning")||(s-=100),0>=s&&(o.velocity({opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),$(this).remove()}}),window.clearInterval(l))},100)}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,a){return jQuery.easing[jQuery.easing.def](t,e,i,n,a)},easeInQuad:function(t,e,i,n,a){return n*(e/=a)*e+i},easeOutQuad:function(t,e,i,n,a){return-n*(e/=a)*(e-2)+i},easeInOutQuad:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,a){return n*(e/=a)*e*e+i},easeOutCubic:function(t,e,i,n,a){return n*((e=e/a-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,a){return n*(e/=a)*e*e*e+i},easeOutQuart:function(t,e,i,n,a){return-n*((e=e/a-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,a){return n*(e/=a)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,a){return n*((e=e/a-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,a){return(e/=a/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,a){return-n*Math.cos(e/a*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,a){return n*Math.sin(e/a*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,a){return-n/2*(Math.cos(Math.PI*e/a)-1)+i},easeInExpo:function(t,e,i,n,a){return 0==e?i:n*Math.pow(2,10*(e/a-1))+i},easeOutExpo:function(t,e,i,n,a){return e==a?i+n:n*(-Math.pow(2,-10*e/a)+1)+i},easeInOutExpo:function(t,e,i,n,a){return 0==e?i:e==a?i+n:(e/=a/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,a){return-n*(Math.sqrt(1-(e/=a)*e)-1)+i},easeOutCirc:function(t,e,i,n,a){return n*Math.sqrt(1-(e=e/a-1)*e)+i},easeInOutCirc:function(t,e,i,n,a){return(e/=a/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,a){var r=1.70158,o=0,s=n;if(0==e)return i;if(1==(e/=a))return i+n;if(o||(o=.3*a),s<Math.abs(n)){s=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/s);return-(s*Math.pow(2,10*(e-=1))*Math.sin(2*(e*a-r)*Math.PI/o))+i},easeOutElastic:function(t,e,i,n,a){var r=1.70158,o=0,s=n;if(0==e)return i;if(1==(e/=a))return i+n;if(o||(o=.3*a),s<Math.abs(n)){s=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/s);return s*Math.pow(2,-10*e)*Math.sin(2*(e*a-r)*Math.PI/o)+n+i},easeInOutElastic:function(t,e,i,n,a){var r=1.70158,o=0,s=n;if(0==e)return i;if(2==(e/=a/2))return i+n;if(o||(o=.3*a*1.5),s<Math.abs(n)){s=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/s);return 1>e?-.5*s*Math.pow(2,10*(e-=1))*Math.sin(2*(e*a-r)*Math.PI/o)+i:s*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*a-r)*Math.PI/o)*.5+n+i},easeInBack:function(t,e,i,n,a,r){return void 0==r&&(r=1.70158),n*(e/=a)*e*((r+1)*e-r)+i},easeOutBack:function(t,e,i,n,a,r){return void 0==r&&(r=1.70158),n*((e=e/a-1)*e*((r+1)*e+r)+1)+i},easeInOutBack:function(t,e,i,n,a,r){return void 0==r&&(r=1.70158),(e/=a/2)<1?n/2*e*e*(((r*=1.525)+1)*e-r)+i:n/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+i},easeInBounce:function(t,e,i,n,a){return n-jQuery.easing.easeOutBounce(t,a-e,0,n,a)+i},easeOutBounce:function(t,e,i,n,a){return(e/=a)<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,a){return a/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,n,a)+i:.5*jQuery.easing.easeOutBounce(t,2*e-a,0,n,a)+.5*n+i}}),jQuery.extend(jQuery.easing,{easeInOutMaterial:function(t,e,i,n,a){return(e/=a/2)<1?n/2*e*e+i:n/4*((e-=2)*e*e+2)+i}}),!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?a[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&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(e in t);return void 0===e||r.call(t,e)},i.each=function(t,i,n){var a,r=0,o=t.length,s=e(t);if(n){if(s)for(;o>r&&(a=i.apply(t[r],n),a!==!1);r++);else for(r in t)if(a=i.apply(t[r],n),a===!1)break}else if(s)for(;o>r&&(a=i.call(t[r],r,t[r]),a!==!1);r++);else for(r in t)if(a=i.call(t[r],r,t[r]),a===!1)break;return t},i.data=function(t,e,a){if(void 0===a){var r=t[i.expando],o=r&&n[r];if(void 0===e)return o;if(o&&e in o)return o[e]}else if(void 0!==e){var r=t[i.expando]||(t[i.expando]=++i.uuid);return n[r]=n[r]||{},n[r][e]=a,a}},i.removeData=function(t,e){var a=t[i.expando],r=a&&n[a];r&&i.each(e,function(t,e){delete r[e]})},i.extend=function(){var t,e,n,a,r,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!=(r=arguments[l]))for(a in r)t=s[a],n=r[a],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[a]=i.extend(c,o,n)):void 0!==n&&(s[a]=n));return s},i.queue=function(t,n,a){function r(t,i){var n=i||[];return null!=t&&(e(Object(t))?!function(t,e){for(var i=+e.length,n=0,a=t.length;i>n;)t[a++]=e[n++];if(i!==i)for(;void 0!==e[n];)t[a++]=e[n++];return t.length=a,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 a?(!o||i.isArray(a)?o=i.data(t,n,r(a)):o.push(a),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var a=i.queue(n,e),r=a.shift();"inprogress"===r&&(r=a.shift()),r&&("fx"===e&&a.unshift("inprogress"),r.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(),a=/^(?: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&&(a.top+=parseFloat(t.style.borderTopWidth)||0,a.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-a.top,left:n.left-a.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var a={},r=a.hasOwnProperty,o=a.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<s.length;l++)a["[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 a(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var a=t[e];a&&n.push(a)}return n}function r(t){return g.isWrapped(t)?t=[].slice.call(t):g.isNode(t)&&(t=[t]),t}function o(t){var e=f.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,a){function r(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((r(e,i)*t+o(e,i))*t+s(e))*t}function u(t,e,i){return 3*r(e,i)*t*t+2*o(e,i)*t+s(e)}function c(e,i){for(var a=0;g>a;++a){var r=u(i,t,n);if(0===r)return i;var o=l(i,t,n)-e;i-=o/r}return i}function d(){for(var e=0;b>e;++e)C[e]=l(e*w,t,n)}function f(e,i,a){var r,o,s=0;do o=i+(a-i)/2,r=l(o,t,n)-e,r>0?a=o:i=o;while(Math.abs(r)>m&&++s<y);return o}function p(e){for(var i=0,a=1,r=b-1;a!=r&&C[a]<=e;++a)i+=w;--a;var o=(e-C[a])/(C[a+1]-C[a]),s=i+o*w,l=u(s,t,n);return l>=v?c(e,s):0==l?s:f(e,i,i+w)}function h(){S=!0,(t!=i||n!=a)&&d()}var g=4,v=.001,m=1e-7,y=10,b=11,w=1/(b-1),x="Float32Array"in e;if(4!==arguments.length)return!1;for(var k=0;4>k;++k)if("number"!=typeof arguments[k]||isNaN(arguments[k])||!isFinite(arguments[k]))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,T=function(e){return S||h(),t===i&&n===a?e:0===e?0:1===e?1:l(p(e),i,a)};T.getControlPoints=function(){return[{x:t,y:i},{x:n,y:a}]};var O="generateBezier("+[t,i,n,a]+")";return T.toString=function(){return O},T}function u(t,e){var i=t;return g.isString(t)?b.Easings[t]||(i=!1):i=g.isArray(t)&&1===t.length?s.apply(null,t):g.isArray(t)&&2===t.length?w.apply(null,t.concat([e])):g.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)for(var e=(new Date).getTime(),i=0,a=b.State.calls.length;a>i;i++)if(b.State.calls[i]){var r=b.State.calls[i],s=r[0],l=r[2],u=r[3],p=!!u;u||(u=b.State.calls[i][3]=e-16);for(var h=Math.min((e-u)/l.duration,1),v=0,m=s.length;m>v;v++){var y=s[v],w=y.element;if(o(w)){var k=!1;if(l.display!==n&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var S=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];f.each(S,function(t,e){x.setPropertyValue(w,"display",e)})}x.setPropertyValue(w,"display",l.display)}l.visibility!==n&&"hidden"!==l.visibility&&x.setPropertyValue(w,"visibility",l.visibility);for(var T in y)if("element"!==T){var O,A=y[T],P=g.isString(A.easing)?b.Easings[A.easing]:A.easing;if(1===h)O=A.endValue;else if(O=A.startValue+(A.endValue-A.startValue)*P(h),!p&&O===A.currentValue)continue;if(A.currentValue=O,x.Hooks.registered[T]){var E=x.Hooks.getRoot(T),q=o(w).rootPropertyValueCache[E];q&&(A.rootPropertyValue=q)}var I=x.setPropertyValue(w,T,A.currentValue+(0===parseFloat(O)?"":A.unitType),A.rootPropertyValue,A.scrollData);x.Hooks.registered[T]&&(o(w).rootPropertyValueCache[E]=x.Normalizations.registered[E]?x.Normalizations.registered[E]("extract",null,I[1]):I[1]),"transform"===I[0]&&(k=!0)}l.mobileHA&&o(w).transformCache.translate3d===n&&(o(w).transformCache.translate3d="(0px, 0px, 0px)",k=!0),k&&x.flushTransformCache(w)}}l.display!==n&&"none"!==l.display&&(b.State.calls[i][2].display=!1),l.visibility!==n&&"hidden"!==l.visibility&&(b.State.calls[i][2].visibility=!1),l.progress&&l.progress.call(r[1],r[1],h,Math.max(0,u+l.duration-e),u),1===h&&d(i)}b.State.isTicking&&C(c)}function d(t,e){if(!b.State.calls[t])return!1;for(var i=b.State.calls[t][0],a=b.State.calls[t][1],r=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||r.loop||("none"===r.display&&x.setPropertyValue(d,"display",r.display),"hidden"===r.visibility&&x.setPropertyValue(d,"visibility",r.visibility)),r.loop!==!0&&(f.queue(d)[1]===n||!/\.velocityQueueEntryFlag/i.test(f.queue(d)[1]))&&o(d)){o(d).isAnimating=!1,o(d).rootPropertyValueCache={};var p=!1;f.each(x.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,a=o(d).transformCache[e];o(d).transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(a)&&(p=!0,delete o(d).transformCache[e])}),r.mobileHA&&(p=!0,delete o(d).transformCache.translate3d),p&&x.flushTransformCache(d),x.Values.removeClass(d,"velocity-animating")}if(!e&&r.complete&&!r.loop&&u===c-1)try{r.complete.call(a,a)}catch(h){setTimeout(function(){throw h},1)}s&&r.loop!==!0&&s(a),r.loop!==!0||e||(f.each(o(d).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360)}),b(d,"reverse",{loop:!0,delay:r.delay})),r.queue!==!1&&f.dequeue(d,r.queue)}b.State.calls[t]=!1;for(var g=0,v=b.State.calls.length;v>g;g++)if(b.State.calls[g]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var f,p=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)}}(),g={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}},v=!1;if(t.fn&&t.fn.jquery?(f=t,v=!0):f=e.Velocity.Utilities,8>=p&&!v)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=p)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:f,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){f.data(t,"velocity",{isSVG:g.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:1,patch:0},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 a={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}}function i(i,n){var a={dx:i.v,dv:t(i)},r=e(i,.5*n,a),o=e(i,.5*n,r),s=e(i,n,o),l=1/6*(a.dx+2*(r.dx+o.dx)+s.dx),u=1/6*(a.dv+2*(r.dv+o.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function n(t,e,a){var r,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4,f=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,a=a||null,l.tension=t,l.friction=e,r=null!==a,r?(c=n(t,e),o=c/a*f):o=f;s=i(s||l,o),u.push(1+s.x),c+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return r?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)}},f.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,a;if(p)for(i in x.Hooks.templates){n=x.Hooks.templates[i],a=n[0].split(" ");var r=n[1].match(x.RegEx.valueSplit);"Color"===a[0]&&(a.push(a.shift()),r.push(r.shift()),x.Hooks.templates[i]=[a.join(" "),r.join(" ")])}for(i in x.Hooks.templates){n=x.Hooks.templates[i],a=n[0].split(" ");for(var t in a){var o=i+a[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],a=i[1];return e=x.Hooks.cleanRootPropertyValue(n,e),e.toString().match(x.RegEx.valueSplit)[a]}return e},injectValue:function(t,e,i){var n=x.Hooks.registered[t];if(n){var a,r,o=n[0],s=n[1];return i=x.Hooks.cleanRootPropertyValue(o,i),a=i.toString().match(x.RegEx.valueSplit),a[s]=e,r=a.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"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var a=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=a?a[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(8>=p)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>=p||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,a){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 r=!1;switch(e.substr(0,e.length-1)){case"translate":r=!/(%|px|em|rem|vw|vh|\d)$/i.test(a);break;case"scal":case"scale":b.State.isAndroid&&o(i).transformCache[e]===n&&1>a&&(a=1),r=!/(\d)$/i.test(a);break;case"skew":r=!/(deg|\d)$/i.test(a);break;case"rotate":r=!/(deg|\d)$/i.test(a)}return r||(o(i).transformCache[e]="("+a+")"),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,a){switch(t){case"name":return e;case"extract":var r;if(x.RegEx.wrappedValueAlreadyExtracted.test(a))r=a;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(a)?o=s[a]!==n?s[a]:s.black:x.RegEx.isHex.test(a)?o="rgb("+x.Values.hexToRgb(a).join(" ")+")":/^rgba?\(/i.test(a)||(o=s.black),r=(o||a).toString().match(x.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=p||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=p?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=p?"rgb":"rgba")+"("+a.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(p||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 a;if(a=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),g.isString(b.State.prefixElement.style[a]))return b.State.prefixMatches[t]=a,[a,!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":"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,a,r){function s(t,i){function a(){u&&x.setPropertyValue(t,"display","none")}var l=0;if(8>=p)l=f.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))),!r){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 a(),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 a(),d}}var h;h=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),(p||b.State.isFirefox)&&"borderColor"===i&&(i="borderTopColor"),l=9===p&&"filter"===i?h.getPropertyValue(i):h[i],(""===l||null===l)&&(l=t.style[i]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var g=s(t,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(i))&&(l=f(t).position()[i]+"px")}return l}var l;if(x.Hooks.registered[i]){var u=i,c=x.Hooks.getRoot(u);a===n&&(a=x.getPropertyValue(t,x.Names.prefixCheck(c)[0])),x.Normalizations.registered[c]&&(a=x.Normalizations.registered[c]("extract",t,a)),l=x.Hooks.extractValue(u,a)}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)}return/^[\d-]/.test(l)||(l=o(t)&&o(t).isSVG&&x.Names.SVGAttribute(i)?/^(height|width)$/i.test(i)?t.getBBox()[i]:t.getAttribute(i):s(t,x.Names.prefixCheck(i)[0])),x.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,n,a,r){var s=i;if("scroll"===i)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?e.scrollTo(n,r.alternateValue):e.scrollTo(r.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);a=a||x.getPropertyValue(t,u),n=x.Hooks.injectValue(l,n,a),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>=p)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((p||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]};f.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 a,r;f.each(o(t).transformCache,function(e){return a=o(t).transformCache[e],"transformPerspective"===e?(r=a,!0):(9===p&&"rotateZ"===e&&(e="rotate"),void(i+=e+a+" "))}),r&&(i="perspective"+r+" "+i)}x.setPropertyValue(t,"transform",i)}};x.Hooks.register(),x.Normalizations.register(),b.hook=function(t,e,i){var a=n;return t=r(t),f.each(t,function(t,r){if(o(r)===n&&b.init(r),i===n)a===n&&(a=b.CSS.getPropertyValue(r,e));else{var s=b.CSS.setPropertyValue(r,e,i);"transform"===s[0]&&b.CSS.flushTransformCache(r),a=s}}),a};var k=function(){function t(){return l?P.promise||null:p}function s(){function t(){function t(t,e){var i=n,a=n,r=n;return g.isArray(t)?(i=t[0],!g.isArray(t[1])&&/^[\d-]/.test(t[1])||g.isFunction(t[1])||x.RegEx.isHex.test(t[1])?r=t[1]:(g.isString(t[1])&&!x.RegEx.isHex.test(t[1])||g.isArray(t[1]))&&(a=e?t[1]:u(t[1],l.duration),t[2]!==n&&(r=t[2]))):i=t,e||(a=a||l.easing),g.isFunction(i)&&(i=i.call(s,T,S)),g.isFunction(r)&&(r=r.call(s,T,S)),[i||0,a,r]}function p(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 h(){var t={myParent:s.parentNode||i.body,position:x.getPropertyValue(s,"position"),fontSize:x.getPropertyValue(s,"fontSize")},n=t.position===j.lastPosition&&t.myParent===j.lastParent,a=t.fontSize===j.lastFontSize;j.lastParent=t.myParent,j.lastPosition=t.position,j.lastFontSize=t.fontSize;var r=100,l={};if(a&&n)l.emToPx=j.lastEmToPx,l.percentToPxWidth=j.lastPercentToPxWidth,l.percentToPxHeight=j.lastPercentToPxHeight;else{var u=o(s).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");b.init(u),t.myParent.appendChild(u),f.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"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){b.CSS.setPropertyValue(u,e,r+"%")}),b.CSS.setPropertyValue(u,"paddingLeft",r+"em"),l.percentToPxWidth=j.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(u,"width",null,!0))||1)/r,l.percentToPxHeight=j.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(u,"height",null,!0))||1)/r,l.emToPx=j.lastEmToPx=(parseFloat(x.getPropertyValue(u,"paddingLeft"))||1)/r,t.myParent.removeChild(u)}return null===j.remToPx&&(j.remToPx=parseFloat(x.getPropertyValue(i.body,"fontSize"))||16),null===j.vwToPx&&(j.vwToPx=parseFloat(e.innerWidth)/100,j.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=j.remToPx,l.vwToPx=j.vwToPx,l.vhToPx=j.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),s),l}if(l.begin&&0===T)try{l.begin.call(v,v)}catch(m){setTimeout(function(){throw m},1)}if("scroll"===E){var k,C,O,A=/^x$/i.test(l.axis)?"Left":"Top",q=parseFloat(l.offset)||0;l.container?g.isWrapped(l.container)||g.isNode(l.container)?(l.container=l.container[0]||l.container,k=l.container["scroll"+A],O=k+f(s).position()[A.toLowerCase()]+q):l.container=null:(k=b.State.scrollAnchor[b.State["scrollProperty"+A]],C=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===A?"Top":"Left")]],O=f(s).offset()[A.toLowerCase()]+q),d={scroll:{rootPropertyValue:!1,startValue:k,currentValue:k,endValue:O,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:A,alternateValue:C}},element:s},b.debug&&console.log("tweensContainer (scroll): ",d.scroll,s)}else if("reverse"===E){if(!o(s).tweensContainer)return void f.dequeue(s,l.queue);"none"===o(s).opts.display&&(o(s).opts.display="auto"),"hidden"===o(s).opts.visibility&&(o(s).opts.visibility="visible"),o(s).opts.loop=!1,o(s).opts.begin=null,o(s).opts.complete=null,w.easing||delete l.easing,w.duration||delete l.duration,l=f.extend({},o(s).opts,l);var I=f.extend(!0,{},o(s).tweensContainer);for(var _ in I)if("element"!==_){var M=I[_].startValue;I[_].startValue=I[_].currentValue=I[_].endValue,I[_].endValue=M,g.isEmptyObject(w)||(I[_].easing=l.easing),b.debug&&console.log("reverse tweensContainer ("+_+"): "+JSON.stringify(I[_]),s)}d=I}else if("start"===E){var I;o(s).tweensContainer&&o(s).isAnimating===!0&&(I=o(s).tweensContainer),f.each(y,function(e,i){if(RegExp("^"+x.Lists.colors.join("$|^")+"$").test(e)){var a=t(i,!0),r=a[0],o=a[1],s=a[2];if(x.RegEx.isHex.test(r)){for(var l=["Red","Green","Blue"],u=x.Values.hexToRgb(r),c=s?x.Values.hexToRgb(s):n,d=0;d<l.length;d++){var f=[u[d]];o&&f.push(o),c!==n&&f.push(c[d]),y[e+l[d]]=f}delete y[e]}}});for(var V in y){var $=t(y[V]),Q=$[0],F=$[1],L=$[2];V=x.Names.camelCase(V);var N=x.Hooks.getRoot(V),R=!1;if(o(s).isSVG||x.Names.prefixCheck(N)[1]!==!1||x.Normalizations.registered[N]!==n){(l.display!==n&&null!==l.display&&"none"!==l.display||l.visibility!==n&&"hidden"!==l.visibility)&&/opacity|filter/.test(V)&&!L&&0!==Q&&(L=0),
l._cacheValues&&I&&I[V]?(L===n&&(L=I[V].endValue+I[V].unitType),R=o(s).rootPropertyValueCache[N]):x.Hooks.registered[V]?L===n?(R=x.getPropertyValue(s,N),L=x.getPropertyValue(s,V,R)):R=x.Hooks.templates[N][1]:L===n&&(L=x.getPropertyValue(s,V));var z,W,H,X=!1;if(z=p(V,L),L=z[0],H=z[1],z=p(V,Q),Q=z[0].replace(/^([+-\/*])=/,function(t,e){return X=e,""}),W=z[1],L=parseFloat(L)||0,Q=parseFloat(Q)||0,"%"===W&&(/^(fontSize|lineHeight)$/.test(V)?(Q/=100,W="em"):/^scale/.test(V)?(Q/=100,W=""):/(Red|Green|Blue)$/i.test(V)&&(Q=Q/100*255,W="")),/[\/*]/.test(X))W=H;else if(H!==W&&0!==L)if(0===Q)W=H;else{r=r||h();var Y=/margin|padding|left|right|width|text|word|letter/i.test(V)||/X$/.test(V)||"x"===V?"x":"y";switch(H){case"%":L*="x"===Y?r.percentToPxWidth:r.percentToPxHeight;break;case"px":break;default:L*=r[H+"ToPx"]}switch(W){case"%":L*=1/("x"===Y?r.percentToPxWidth:r.percentToPxHeight);break;case"px":break;default:L*=1/r[W+"ToPx"]}}switch(X){case"+":Q=L+Q;break;case"-":Q=L-Q;break;case"*":Q=L*Q;break;case"/":Q=L/Q}d[V]={rootPropertyValue:R,startValue:L,currentValue:L,endValue:Q,unitType:W,easing:F},b.debug&&console.log("tweensContainer ("+V+"): "+JSON.stringify(d[V]),s)}else b.debug&&console.log("Skipping ["+N+"] due to a lack of browser support.")}d.element=s}d.element&&(x.Values.addClass(s,"velocity-animating"),D.push(d),""===l.queue&&(o(s).tweensContainer=d,o(s).opts=l),o(s).isAnimating=!0,T===S-1?(b.State.calls.length>1e4&&(b.State.calls=a(b.State.calls)),b.State.calls.push([D,v,l,null,P.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):T++)}var r,s=this,l=f.extend({},b.defaults,w),d={};switch(o(s)===n&&b.init(s),parseFloat(l.delay)&&l.queue!==!1&&f.queue(s,l.queue,function(t){b.velocityQueueEntryFlag=!0,o(s).delayTimer={setTimeout:setTimeout(t,parseFloat(l.delay)),next:t}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=m;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}b.mock!==!1&&(b.mock===!0?l.duration=l.delay=1:(l.duration*=parseFloat(b.mock)||1,l.delay*=parseFloat(b.mock)||1)),l.easing=u(l.easing,l.duration),l.begin&&!g.isFunction(l.begin)&&(l.begin=null),l.progress&&!g.isFunction(l.progress)&&(l.progress=null),l.complete&&!g.isFunction(l.complete)&&(l.complete=null),l.display!==n&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=b.CSS.Values.getDisplayType(s))),l.visibility!==n&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,l.queue===!1?l.delay?setTimeout(t,l.delay):t():f.queue(s,l.queue,function(e,i){return i===!0?(P.promise&&P.resolver(v),!0):(b.velocityQueueEntryFlag=!0,void t(e))}),""!==l.queue&&"fx"!==l.queue||"inprogress"===f.queue(s)[0]||f.dequeue(s)}var l,p,h,v,y,w,C=arguments[0]&&(f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||g.isString(arguments[0].properties));if(g.isWrapped(this)?(l=!1,h=0,v=this,p=this):(l=!0,h=1,v=C?arguments[0].elements:arguments[0]),v=r(v)){C?(y=arguments[0].properties,w=arguments[0].options):(y=arguments[h],w=arguments[h+1]);var S=v.length,T=0;if("stop"!==y&&!f.isPlainObject(w)){var O=h+1;w={};for(var A=O;A<arguments.length;A++)g.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?g.isString(arguments[A])||g.isArray(arguments[A])?w.easing=arguments[A]:g.isFunction(arguments[A])&&(w.complete=arguments[A]):w.duration=arguments[A]}var P={promise:null,resolver:null,rejecter:null};l&&b.Promise&&(P.promise=new b.Promise(function(t,e){P.resolver=t,P.rejecter=e}));var E;switch(y){case"scroll":E="scroll";break;case"reverse":E="reverse";break;case"stop":f.each(v,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 q=[];return f.each(b.State.calls,function(t,e){e&&f.each(e[1],function(i,a){var r=g.isString(w)?w:"";return w!==n&&e[2].queue!==r?!0:void f.each(v,function(e,i){i===a&&(w!==n&&(f.each(f.queue(i,r),function(t,e){g.isFunction(e)&&e(null,!0)}),f.queue(i,r,[])),o(i)&&""===r&&f.each(o(i).tweensContainer,function(t,e){e.endValue=e.currentValue}),q.push(t))})})}),f.each(q,function(t,e){d(e,!0)}),P.promise&&P.resolver(v),t();default:if(!f.isPlainObject(y)||g.isEmptyObject(y)){if(g.isString(y)&&b.Redirects[y]){var I=f.extend({},w),_=I.duration,M=I.delay||0;return I.backwards===!0&&(v=f.extend(!0,[],v).reverse()),f.each(v,function(t,e){parseFloat(I.stagger)?I.delay=M+parseFloat(I.stagger)*t:g.isFunction(I.stagger)&&(I.delay=M+I.stagger.call(e,t,S)),I.drag&&(I.duration=parseFloat(_)||(/^(callout|transition)/.test(y)?1e3:m),I.duration=Math.max(I.duration*(I.backwards?1-t/S:(t+1)/S),.75*I.duration,200)),b.Redirects[y].call(e,e,I||{},t,S,v,P.promise?P:n)}),t()}var V="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return P.promise?P.rejecter(new Error(V)):console.log(V),t()}E="start"}var j={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},D=[];f.each(v,function(t,e){g.isNode(e)&&s.call(e)});var $,I=f.extend({},b.defaults,w);if(I.loop=parseInt(I.loop),$=2*I.loop-1,I.loop)for(var Q=0;$>Q;Q++){var F={delay:I.delay,progress:I.progress};Q===$-1&&(F.display=I.display,F.visibility=I.visibility,F.complete=I.complete),k(v,"reverse",F)}return t()}};b=f.extend(k,b),b.animate=k;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=k,t.fn.velocity.defaults=b.defaults),f.each(["Down","Up"],function(t,e){b.Redirects["slide"+e]=function(t,i,a,r,o,s){var l=f.extend({},i),u=l.begin,c=l.complete,d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};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){p[i]=t.style[i];var n=b.CSS.getPropertyValue(t,i);d[i]="Down"===e?[n,0]:[0,n]}p.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in p)t.style[e]=p[e];c&&c.call(o,o),s&&s.resolver(o)},b(t,d,l)}}),f.each(["In","Out"],function(t,e){b.Redirects["fade"+e]=function(t,i,a,r,o,s){var l=f.extend({},i),u={opacity:"In"===e?1:0},c=l.complete;l.complete=a!==r-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,e,i,n){"use strict";function a(t,e,i){return setTimeout(c(t,i),e)}function r(t,e,i){return Array.isArray(t)?(o(t,i[e],i),!0):!1}function o(t,e,i){var a;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(a=0;a<t.length;)e.call(i,t[a],a,t),a++;else for(a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function s(t,e,i){for(var a=Object.keys(e),r=0;r<a.length;)(!i||i&&t[a[r]]===n)&&(t[a[r]]=e[a[r]]),r++;return t}function l(t,e){return s(t,e,!0)}function u(t,e,i){var n,a=e.prototype;n=t.prototype=Object.create(a),n.constructor=t,n._super=a,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 f(t,e){return t===n?e:t}function p(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 g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(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=[],a=[],r=0;r<t.length;){var o=e?t[r][e]:t[r];y(a,o)<0&&n.push(t[r]),a[r]=o,r++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function x(t,e){for(var i,a,r=e[0].toUpperCase()+e.slice(1),o=0;o<lt.length;){if(i=lt[o],a=i?i+r:e,a in t)return a;o++}return n}function k(){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 T(t){var e,i=t.options.inputClass;return new(e=i?i:mt?F:yt?R:vt?W:Q)(t,O)}function O(t,e,i){var n=i.pointers.length,a=i.changedPointers.length,r=e&St&&0===n-a,o=e&(Ot|At)&&0===n-a;i.isFirst=!!r,i.isFinal=!!o,r&&(t.session={}),i.eventType=e,A(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function A(t,e){var i=t.session,n=e.pointers,a=n.length;i.firstInput||(i.firstInput=q(e)),a>1&&!i.firstMultiple?i.firstMultiple=q(e):1===a&&(i.firstMultiple=!1);var r=i.firstInput,o=i.firstMultiple,s=o?o.center:r.center,l=e.center=I(n);e.timeStamp=pt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=j(s,l),e.distance=V(s,l),P(i,e),e.offsetDirection=M(e.deltaX,e.deltaY),e.scale=o?$(o.pointers,n):1,e.rotation=o?D(o.pointers,n):0,E(i,e);var u=t.element;g(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function P(t,e){var i=e.center,n=t.offsetDelta||{},a=t.prevDelta||{},r=t.prevInput||{};(e.eventType===St||r.eventType===Ot)&&(a=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=a.x+(i.x-n.x),e.deltaY=a.y+(i.y-n.y)}function E(t,e){var i,a,r,o,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=At&&(l>Ct||s.velocity===n)){var u=s.deltaX-e.deltaX,c=s.deltaY-e.deltaY,d=_(l,u,c);a=d.x,r=d.y,i=ft(d.x)>ft(d.y)?d.x:d.y,o=M(u,c),t.lastInterval=e}else i=s.velocity,a=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=a,e.velocityY=r,e.direction=o}function q(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:pt(),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,a=0;e>a;)i+=t[a].clientX,n+=t[a].clientY,a++;return{x:dt(i/e),y:dt(n/e)}}function _(t,e,i){return{x:e/t||0,y:i/t||0}}function M(t,e){return t===e?Pt:ft(t)>=ft(e)?t>0?Et:qt:e>0?It:_t}function V(t,e,i){i||(i=Dt);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return Math.sqrt(n*n+a*a)}function j(t,e,i){i||(i=Dt);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return 180*Math.atan2(a,n)/Math.PI}function D(t,e){return j(e[1],e[0],$t)-j(t[1],t[0],$t)}function $(t,e){return V(e[0],e[1],$t)/V(t[0],t[1],$t)}function Q(){this.evEl=Ft,this.evWin=Lt,this.allow=!0,this.pressed=!1,S.apply(this,arguments)}function F(){this.evEl=zt,this.evWin=Wt,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function L(){this.evTarget=Xt,this.evWin=Yt,this.started=!1,S.apply(this,arguments)}function N(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(Ot|At)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}function R(){this.evTarget=Gt,this.targetIds={},S.apply(this,arguments)}function z(t,e){var i=b(t.touches),n=this.targetIds;if(e&(St|Tt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,r,o=b(t.changedTouches),s=[],l=this.target;if(r=i.filter(function(t){return g(t.target,l)}),e===St)for(a=0;a<r.length;)n[r[a].identifier]=!0,a++;for(a=0;a<o.length;)n[o[a].identifier]&&s.push(o[a]),e&(Ot|At)&&delete n[o[a].identifier],a++;return s.length?[w(r.concat(s),"identifier",!0),s]:void 0}function W(){S.apply(this,arguments);var t=c(this.handler,this);this.touch=new R(this.manager,t),this.mouse=new Q(this.manager,t)}function H(t,e){this.manager=t,this.set(e)}function X(t){if(v(t,ee))return ee;var e=v(t,ie),i=v(t,ne);return e&&i?ie+" "+ne:e||i?e?ie:ne:v(t,te)?te:Kt}function Y(t){this.id=k(),this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=f(this.options.enable,!0),this.state=ae,this.simultaneous={},this.requireFail=[]}function B(t){return t&ue?"cancel":t&se?"end":t&oe?"move":t&re?"start":""}function G(t){return t==_t?"down":t==It?"up":t==Et?"left":t==qt?"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 at(t,e){return e=e||{},e.recognizers=f(e.recognizers,at.defaults.preset),new rt(t,e)}function rt(t,e){e=e||{},this.options=l(e,at.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=T(this),this.touchAction=new H(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,ft=Math.abs,pt=Date.now,ht=1,gt=/mobile|tablet|ip(ad|hone|od)|android/i,vt="ontouchstart"in t,mt=x(t,"PointerEvent")!==n,yt=vt&>.test(navigator.userAgent),bt="touch",wt="pen",xt="mouse",kt="kinect",Ct=25,St=1,Tt=2,Ot=4,At=8,Pt=1,Et=2,qt=4,It=8,_t=16,Mt=Et|qt,Vt=It|_t,jt=Mt|Vt,Dt=["x","y"],$t=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(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 Qt={mousedown:St,mousemove:Tt,mouseup:Ot},Ft="mousedown",Lt="mousemove mouseup";u(Q,S,{handler:function(t){var e=Qt[t.type];e&St&&0===t.button&&(this.pressed=!0),e&Tt&&1!==t.which&&(e=Ot),this.pressed&&this.allow&&(e&Ot&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:xt,srcEvent:t}))}});var Nt={pointerdown:St,pointermove:Tt,pointerup:Ot,pointercancel:At,pointerout:At},Rt={2:bt,3:wt,4:xt,5:kt},zt="pointerdown",Wt="pointermove pointerup pointercancel";t.MSPointerEvent&&(zt="MSPointerDown",Wt="MSPointerMove MSPointerUp MSPointerCancel"),u(F,S,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),a=Nt[n],r=Rt[t.pointerType]||t.pointerType,o=r==bt,s=y(e,t.pointerId,"pointerId");a&St&&(0===t.button||o)?0>s&&(e.push(t),s=e.length-1):a&(Ot|At)&&(i=!0),0>s||(e[s]=t,this.callback(this.manager,a,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(s,1))}});var Ht={touchstart:St,touchmove:Tt,touchend:Ot,touchcancel:At},Xt="touchstart",Yt="touchstart touchmove touchend touchcancel";u(L,S,{handler:function(t){var e=Ht[t.type];if(e===St&&(this.started=!0),this.started){var i=N.call(this,t,e);e&(Ot|At)&&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:Tt,touchend:Ot,touchcancel:At},Gt="touchstart touchmove touchend touchcancel";u(R,S,{handler:function(t){var e=Bt[t.type],i=z.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}),u(W,S,{handler:function(t,e,i){var n=i.pointerType==bt,a=i.pointerType==xt;if(n)this.mouse.allow=!1;else if(a&&!this.mouse.allow)return;e&(Ot|At)&&(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";H.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()))}),X(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,a=v(n,ee),r=v(n,ne),o=v(n,ie);return a||r&&i&Mt||o&&i&Vt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ae=1,re=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(r(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 r(t,"dropRecognizeWith",this)?this:(t=U(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(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(r(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|ae)))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=ae),this.state=this.process(e),void(this.state&(re|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&(re|oe),a=this.attrTest(t);return n&&(i&At||!a)?e|ue:n||a?i&Ot?e|se:e&re?e|oe:re:ce}}),u(J,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Mt&&e.push(ne),t&Vt&&e.push(ie),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,a=t.direction,r=t.deltaX,o=t.deltaY;return a&e.direction||(e.direction&Mt?(a=0===r?Pt:0>r?Et:qt,i=r!=this.pX,n=Math.abs(t.deltaX)):(a=0===o?Pt:0>o?It:_t,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=a,i&&n>e.threshold&&a&e.direction},attrTest:function(t){return Z.prototype.attrTest.call(this,t)&&(this.state&re||!(this.state&re)&&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&re)},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,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(Ot|At)&&!r)this.reset();else if(t.eventType&St)this.reset(),this._timer=a(function(){this.state=le,this.tryEmit()},e.time,this);else if(t.eventType&Ot)return le;return ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===le&&(t&&t.eventType&Ot?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=pt(),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&re)}}),u(it,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Mt|Vt,pointers:1},getTouchAction:function(){return J.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Mt|Vt)?e=t.velocity:i&Mt?e=t.velocityX:i&Vt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&ft(e)>this.options.velocity&&t.eventType&Ot},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,r=t.deltaTime<e.time;if(this.reset(),t.eventType&St&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=Ot)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime<e.interval:!0,s=!this.pCenter||V(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=a(function(){this.state=le,this.tryEmit()},e.interval,this),re):le}return ce},failTimeout:function(){return this._timer=a(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))}}),at.VERSION="2.0.4",at.defaults={domEvents:!1,touchAction:Jt,enable:!0,inputTarget:null,inputClass:null,preset:[[et,{enable:!1}],[K,{enable:!1},["rotate"]],[it,{direction:Mt}],[J,{direction:Mt},["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,fe=2;rt.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?fe:de},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,a=e.curRecognizer;(!a||a&&a.state&le)&&(a=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],e.stopped===fe||a&&i!=a&&!i.canRecognizeWith(a)?i.reset():i.recognize(t),!a&&i.state&(re|oe|se)&&(a=e.curRecognizer=i),r++}},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(r(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(r(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(at,{INPUT_START:St,INPUT_MOVE:Tt,INPUT_END:Ot,INPUT_CANCEL:At,STATE_POSSIBLE:ae,STATE_BEGAN:re,STATE_CHANGED:oe,STATE_ENDED:se,STATE_RECOGNIZED:le,STATE_CANCELLED:ue,STATE_FAILED:ce,DIRECTION_NONE:Pt,DIRECTION_LEFT:Et,DIRECTION_RIGHT:qt,DIRECTION_UP:It,DIRECTION_DOWN:_t,DIRECTION_HORIZONTAL:Mt,DIRECTION_VERTICAL:Vt,DIRECTION_ALL:jt,Manager:rt,Input:S,TouchAction:H,TouchInput:R,MouseInput:Q,PointerEventInput:F,TouchMouseInput:W,SingleTouchInput:L,Recognizer:Y,AttrRecognizer:Z,Tap:nt,Pan:J,Swipe:it,Pinch:K,Rotate:et,Press:tt,on:p,off:h,each:o,merge:l,extend:s,inherit:u,bindFn:c,prefixed:x}),typeof define==ct&&define.amd?define(function(){return at}):"undefined"!=typeof module&&module.exports?module.exports=at:t[i]=at}(window,document,"Hammer"),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 a=t(i);a.data("hammer")||a.data("hammer",new e(a[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){t.fn.collapsible=function(e){var i={accordion:void 0};return e=t.extend(i,e),this.each(function(){function i(t){r=a.find(".collapsible-header"),t.parent().toggleClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1}),r.not(t).parent().removeClass("active"),r.not(t).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1})}function n(t){t.parent().toggleClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1})}var a=t(this),r=t(this).find(".collapsible-header"),o=a.data("collapsible");a.off("click.collapse",".collapsible-header"),r.off("click.collapse"),e.accordion||"accordion"==o||void 0==o?(a.on("click.collapse",".collapsible-header",function(e){i(t(e.currentTarget))}),i(r.filter(".active").first())):r.each(function(){t(this).on("click.collapse",function(e){n(t(e.currentTarget))}),t(this).hasClass("active")&&n(t(this))})})},t(document).ready(function(){t(".collapsible").collapsible()})}(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:!0,alignment:"left",gutter:0,belowOrigin:!1};e=t.extend(i,e),this.each(function(){function i(){void 0!=o.data("inDuration")&&(e.inDuration=o.data("inDuration")),void 0!=o.data("outDuration")&&(e.outDuration=o.data("outDuration")),void 0!=o.data("constrainwidth")&&(e.constrain_width=o.data("constrainwidth")),void 0!=o.data("hover")&&(e.hover=o.data("hover")),void 0!=o.data("alignment")&&(e.alignment=o.data("alignment")),void 0!=o.data("gutter")&&(e.gutter=o.data("gutter")),void 0!=o.data("beloworigin")&&(e.belowOrigin=o.data("beloworigin"))}function n(){i(),1==e.constrain_width&&s.css("width",o.outerWidth());var n=0;1==e.belowOrigin&&(n=o.height());var r=0,u=e.gutter;"right"==e.alignment&&(r=o.innerWidth()-s.innerWidth(),u=-1*u),s.css(a(o[0])?{display:"block",position:"fixed",height:0,top:o.offset().top-t(window).scrollTop()+n,left:o.offset().left+r+u}:{display:"block",top:o.offset().top+n,left:o.offset().left+r+u,height:0}),s.velocity({opacity:1},{duration:e.inDuration,queue:!1,easing:"easeOutQuad"}).velocity({height:l},{duration:e.inDuration,queue:!1,easing:"easeOutCubic",complete:function(){s.css("overflow-y","auto")}})}function a(e){var i=t(e),n=i.add(i.parents()),a=!1;return n.each(function(){return"fixed"===t(this).css("position")?(a=!0,!1):void 0}),a}function r(){s.velocity({opacity:0},{duration:e.outDuration,easing:"easeOutQuad",complete:function(){s.css({display:"none","overflow-y":""})}})}var o=t(this),s=t("#"+o.attr("data-activates"));i(),s.parent().is(t("body"))||(s.detach(),t("body").append(s));var l=s.height();e.hover?(o.on("mouseover",function(){n()}),s.on("mouseleave",function(){r()})):(o.unbind("click."+o.attr("id")),o.bind("click."+o.attr("id"),function(e){o[0]==e.currentTarget&&(e.preventDefault(),n()),t(document).bind("click."+s.attr("id"),function(e){!s.is(e.target)&&!o.is(e.target)&&!o.find(e.target).length>0&&(r(),t(document).unbind("click."+s.attr("id")))})})),o.on("open",n),o.on("close",r)})}}(jQuery),function(t){t.fn.extend({openModal:function(e){var i=this,n=t('<div id="lean-overlay"></div>');t("body").append(n);var a={opacity:.5,in_duration:300,out_duration:200,ready:void 0,complete:void 0,dismissible:!0};e=t.extend(a,e),e.dismissible&&(t("#lean-overlay").click(function(){t(i).closeModal(e)}),t(document).keyup(function(n){27===n.keyCode&&(t(i).closeModal(e),t(this).off())})),t(i).find(".modal-close").click(function(n){n.preventDefault(),t(i).closeModal(e)}),t("#lean-overlay").css({display:"block",opacity:0}),t(i).css({display:"block",top:"4%",opacity:0}),t("#lean-overlay").velocity({opacity:e.opacity},{duration:e.in_duration,queue:!1,ease:"easeOutCubic"}),t(i).velocity({top:"10%",opacity:1},{duration:e.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof e.ready&&e.ready()}})}}),t.fn.extend({closeModal:function(e){var i={out_duration:200,complete:void 0},e=t.extend(i,e);t(".modal-close").off(),t("#lean-overlay").velocity({opacity:0},{duration:e.out_duration,queue:!1,ease:"easeOutQuart"}),t(this).fadeOut(e.out_duration,function(){t(this).css({top:0}),t("#lean-overlay").css({display:"none"}),"function"==typeof e.complete&&e.complete(),t("#lean-overlay").remove()})}}),t.fn.extend({leanModal:function(e){return this.each(function(){t(this).click(function(i){var n=t(this).attr("href");t(n).openModal(e),i.preventDefault()})})}})}(jQuery),function(t){t.fn.materialbox=function(){return this.each(function(){function e(){n=!1;var e=o.parent(".material-placeholder"),a=(window.innerWidth,window.innerHeight,o.data("width")),s=o.data("height");t("#materialbox-overlay").fadeOut(r,function(){i=!1,t(this).remove()}),o.velocity({width:a,height:s,left:0,top:0},{duration:r,queue:!1,easing:"easeOutQuad"}),t(".materialbox-caption").velocity({opacity:0},{duration:r+200,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("intialized")){t(this).addClass("intialized");var i=!1,n=!0,a=275,r=200,o=t(this),s=t("<div></div>").addClass("material-placeholder");o.wrap(s),o.on("click",function(){var r=o.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,u=o.width(),c=o.height();if(n===!1)return!1;if(i&&n===!0)return e(),!1;n=!1,o.addClass("active"),i=!0,r.css({width:r[0].getBoundingClientRect().width,height:r[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:a,queue:!1,easing:"easeOutQuad"}),""!==o.data("caption")){var f=t('<div class="materialbox-caption"></div>');f.text(o.data("caption")),t("body").append(f),f.css({display:"inline"}),f.velocity({opacity:1},{duration:a,queue:!1,easing:"easeOutQuad"})}var p=0,h=u/s,g=c/l,v=0,m=0;h>g?(p=c/u,
v=.9*s,m=.9*s*p):(p=u/c,v=.9*l*p,m=.9*l),o.hasClass("responsive-img")?o.velocity({"max-width":v,width:u},{duration:0,queue:!1,complete:function(){o.css({left:0,top:0}).velocity({height:m,width:v,left:t(document).scrollLeft()+s/2-o.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+l/2-o.parent(".material-placeholder").offset().top-m/2},{duration:a,queue:!1,easing:"easeOutQuad",complete:function(){n=!0}})}}):o.css("left",0).css("top",0).velocity({height:m,width:v,left:t(document).scrollLeft()+s/2-o.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+l/2-o.parent(".material-placeholder").offset().top-m/2},{duration:a,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),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(){function i(i){var a;a=992>e?n.height()>0?n.height():n.children("img").height():n.height()>0?n.height():500;var r=n.children("img").height(),o=r-a,s=n.offset().top+a,l=n.offset().top,u=t(window).scrollTop(),c=window.innerHeight,d=u+c,f=(d-l)/(a+c),p=-1*o*f;s>u&&u+c>l&&n.children("img").first().css("bottom",p+"px"),i&&n.children("img").first().css("display","block")}var n=t(this);n.addClass("parallax"),n.find("img").each(function(){t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src","data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")}),n.children("img").one("load",function(){i(!0)}).each(function(){this.complete&&t(this).load()}),t(window).scroll(function(){e=t(window).width(),i(!1)}),t(window).resize(function(){e=t(window).width(),i(!1)})})}}(jQuery),function(t){var e={init:function(){return this.each(function(){var e=t(this);t(window).width(),e.width("100%");var i=t(this).children("li").length;e.children("li").each(function(){t(this).width(100/i+"%")});var n,a,r=e.find("li.tab a"),o=e.width(),s=e.find("li").first().outerWidth(),l=0;n=t(r.filter('[href="'+location.hash+'"]')),0===n.length&&(n=t(this).find("li.tab a.active").first()),0===n.length&&(n=t(this).find("li.tab a").first()),n.addClass("active"),l=r.index(n),0>l&&(l=0),a=t(n[0].hash),e.append('<div class="indicator"></div>');var u=e.find(".indicator");e.is(":visible")&&(u.css({right:o-(l+1)*s}),u.css({left:l*s})),t(window).resize(function(){o=e.width(),s=e.find("li").first().outerWidth(),0>l&&(l=0),0!==s&&0!==o&&(u.css({right:o-(l+1)*s}),u.css({left:l*s}))}),r.not(n).each(function(){t(this.hash).hide()}),e.on("click","a",function(i){o=e.width(),s=e.find("li").first().outerWidth(),n.removeClass("active"),a.hide(),n=t(this),a=t(this.hash),r=e.find("li.tab a"),n.addClass("active");var c=l;l=r.index(t(this)),0>l&&(l=0),a.show(),l-c>=0?(u.velocity({right:o-(l+1)*s},{duration:300,queue:!1,easing:"easeOutQuad"}),u.velocity({left:l*s},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(u.velocity({left:l*s},{duration:300,queue:!1,easing:"easeOutQuad"}),u.velocity({right:o-(l+1)*s},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})),i.preventDefault()})})},select_tab:function(t){this.find('a[href="#'+t+'"]').trigger("click")}};t.fn.tabs=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)},t(document).ready(function(){t("ul.tabs").tabs()})}(jQuery),function(t){t.fn.tooltip=function(e){var i=null,n=!1,a=null,r=5,o={delay:350};return e=t.extend(o,e),t(".material-tooltip").remove(),this.each(function(){var o=t(this),s=t("<span></span>").text(o.attr("data-tooltip")),l=t("<div></div>");l.addClass("material-tooltip").append(s),l.appendTo(t("body"));var u=t("<div></div>").addClass("backdrop");u.appendTo(l),u.css({top:0,left:0}),t(this).off("mouseenter mouseleave"),t(this).on({mouseenter:function(){var t=o.data("delay");t=void 0==t||""==t?e.delay:t,i=0,a=setInterval(function(){if(i+=10,i>=t&&0==n){n=!0,l.css({display:"block",left:"0px",top:"0px"}),l.children("span").text(o.attr("data-tooltip"));var e=o.outerWidth(),a=o.outerHeight(),s=o.attr("data-position"),c=l.outerHeight(),d=l.outerWidth(),f="0px",p="0px",h=8;"top"===s?(l.css({top:o.offset().top-c-r,left:o.offset().left+e/2-d/2}),f="-10px",u.css({borderRadius:"14px 14px 0 0",transformOrigin:"50% 90%",marginTop:c,marginLeft:d/2-u.width()/2})):"left"===s?(l.css({top:o.offset().top+a/2-c/2,left:o.offset().left-d-r}),p="-10px",u.css({width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:c/2,marginLeft:d})):"right"===s?(l.css({top:o.offset().top+a/2-c/2,left:o.offset().left+e+r}),p="+10px",u.css({width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:c/2,marginLeft:"0px"})):(l.css({top:o.offset().top+o.outerHeight()+r,left:o.offset().left+e/2-d/2}),f="+10px",u.css({marginLeft:d/2-u.width()/2})),h=d/8,8>h&&(h=8),("right"===s||"left"===s)&&(h=d/10,6>h&&(h=6)),l.velocity({opacity:1,marginTop:f,marginLeft:p},{duration:350,queue:!1}),u.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:function(){clearInterval(a),i=0,l.velocity({opacity:0,marginTop:0,marginLeft:0},{duration:225,queue:!1,delay:275}),u.velocity({opacity:0,scale:1},{duration:225,delay:275,queue:!1,complete:function(){u.css("display","none"),l.css("display","none"),n=!1}})}})})},t(document).ready(function(){t(".tooltipped").tooltip()})}(jQuery),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,a={top:0,left:0},r=t&&t.ownerDocument;return e=r.documentElement,"undefined"!=typeof t.getBoundingClientRect&&(a=t.getBoundingClientRect()),n=i(r),{top:a.top+n.pageYOffset-e.clientTop,left:a.left+n.pageXOffset-e.clientLeft}}function a(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}function r(t){if(c.allowEvent(t)===!1)return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentElement;){if(-1!==i.className.indexOf("waves-effect")){e=i;break}i=i.parentElement}return e}function o(e){var i=r(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,r=document.createElement("div");r.className="waves-ripple",i.appendChild(r);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),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",c),r.setAttribute("data-x",l),r.setAttribute("data-y",s);var d={top:s+"px",left:l+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",a(d)),r.className=r.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)",r.setAttribute("style",a(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 r=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:r+"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",a(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 a=document.createElement("i");a.className=i.className+" waves-input-wrapper";var r=i.getAttribute("style");r||(r=""),a.setAttribute("style",r),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(a,i),a.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),function(t){var e={init:function(e){var i={menuWidth:240,edge:"left",closeOnClick:!1};e=t.extend(i,e),t(this).each(function(){function i(){r=!1,o=!1,t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(t(".drag-target").css({width:"",right:"",left:"0"}),a.velocity({left:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutCubic"})):(t(".drag-target").css({width:"",right:"0",left:""}),a.velocity({right:-1*(e.menuWidth+10)},{duration:200,queue:!1,easing:"easeOutCubic"}))}var n=t(this),a=t("#"+n.attr("data-activates"));240!=e.menuWidth&&(a.css("width",e.menuWidth),a.hasClass("fixed")||a.css("left",-1*(e.menuWidth+10))),"left"!=e.edge&&a.addClass("right-aligned"),t("body").append(t('<div class="drag-target"></div>')),t(".drag-target").css("left"===e.edge?{left:0}:{right:0}),a.hasClass("fixed")&&t(window).resize(function(){t(window).width()>1200&&a.attr("style")&&(a.removeAttr("style"),a.css("width",e.menuWidth)),0!=t("#sidenav-overlay").css("opacity")&&o&&t("#sidenav-overlay").trigger("click")}),1==e.closeOnClick&&a.on("click.itemclick","a:not(.collapsible-header)",function(){i()});var r=!1,o=!1;t(".drag-target").hammer({prevent_default:!1}).bind("tap",function(){t("#sidenav-overlay").trigger("click")}).bind("pan",function(n){if("touch"===n.gesture.pointerType){var r=(n.gesture.direction,n.gesture.center.x);if(n.gesture.center.y,n.gesture.velocityX,!t("#sidenav-overlay").length){var s=t('<div id="sidenav-overlay"></div>');s.css("opacity",0).click(function(){i()}),t("body").append(s)}if("left"===e.edge?r>e.menuWidth?r=e.menuWidth:0>r&&(r=0):r<t(window).width()-e.menuWidth&&(r=t(window).width()-e.menuWidth),"left"===e.edge?(r<e.menuWidth/2?o=!1:r>=e.menuWidth/2&&(o=!0),a.css("left",r-e.menuWidth)):(r<t(window).width()-e.menuWidth/2?o=!0:r>=t(window).width()-e.menuWidth/2&&(o=!1),a.css("right",-1*(r-e.menuWidth/2))),"left"===e.edge){var l=r/e.menuWidth;t("#sidenav-overlay").velocity({opacity:l},{duration:50,queue:!1,easing:"easeOutQuad"})}else{var l=Math.abs((r-t(window).width())/e.menuWidth);t("#sidenav-overlay").velocity({opacity:l},{duration:50,queue:!1,easing:"easeOutQuad"})}}}).bind("panend",function(i){if("touch"===i.gesture.pointerType){var n=i.gesture.velocityX;r=!1,"left"===e.edge?o&&.3>=n||-.5>n?(a.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),t(".drag-target").css({width:"50%",right:0,left:""})):(!o||n>.3)&&(a.velocity({left:-240},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:50,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),t(".drag-target").css({width:"10%",right:"",left:0})):o&&n>=-.3||n>.5?(a.velocity({right:0},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),t(".drag-target").css({width:"50%",right:"",left:0})):(!o||-.3>n)&&(a.velocity({right:-240},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:50,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),t(".drag-target").css({width:"10%",right:0,left:""}))}}),n.click(function(){if(1==o)o=!1,r=!1,i();else{"left"===e.edge?(t(".drag-target").css({width:"50%",right:0,left:""}),a.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"})):(t(".drag-target").css({width:"50%",right:"",left:0}),a.velocity({right:0},{duration:300,queue:!1,easing:"easeOutQuad"}),a.css("left",""));var n=t('<div id="sidenav-overlay"></div>');n.css("opacity",0).click(function(){o=!1,r=!1,i(),n.animate({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}),t("body").append(n),n.animate({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){o=!0,r=!1}})}return!1})})},show:function(){this.trigger("click")},hide:function(){t("#sidenav-overlay").trigger("click")}};t.fn.sideNav=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)}}(jQuery),function(t){function e(e,i,n,a){var r=t();return t.each(o,function(t,o){if(o.height()>0){var s=o.offset().top,l=o.offset().left,u=l+o.width(),c=s+o.height(),d=!(l>i||a>u||s>n||e>c);d&&r.push(o)}}),r}function i(){++u;var i=r.scrollTop(),n=r.scrollLeft(),a=n+r.width(),o=i+r.height(),l=e(i+c.top+200,a+c.right,o+c.bottom,n+c.left);t.each(l,function(t,e){var i=e.data("scrollSpy:ticks");"number"!=typeof i&&e.triggerHandler("scrollSpy:enter"),e.data("scrollSpy:ticks",u)}),t.each(s,function(t,e){var i=e.data("scrollSpy:ticks");"number"==typeof i&&i!==u&&(e.triggerHandler("scrollSpy:exit"),e.data("scrollSpy:ticks",null))}),s=l}function n(){r.trigger("scrollSpy:winSize")}function a(t,e,i){var n,a,r,o=null,s=0;i||(i={});var l=function(){s=i.leading===!1?0:d(),o=null,r=t.apply(n,a),n=a=null};return function(){var u=d();s||i.leading!==!1||(s=u);var c=e-(u-s);return n=this,a=arguments,0>=c?(clearTimeout(o),o=null,s=u,r=t.apply(n,a),n=a=null):o||i.trailing===!1||(o=setTimeout(l,c)),r}}var r=t(window),o=[],s=[],l=!1,u=0,c={top:0,right:0,bottom:0,left:0},d=Date.now||function(){return(new Date).getTime()};t.scrollSpy=function(e,n){var s=[];e=t(e),e.each(function(e,i){o.push(t(i)),t(i).data("scrollSpy:id",e),t("a[href=#"+t(i).attr("id")+"]").click(function(e){e.preventDefault();var i=t(this.hash).offset().top+1;t(".tabs-wrapper").length?t("html, body").animate({scrollTop:i-60},{duration:400,easing:"easeOutCubic"}):t("html, body").animate({scrollTop:i},{duration:400,easing:"easeOutCubic"})})}),n=n||{throttle:100},c.top=n.offsetTop||0,c.right=n.offsetRight||0,c.bottom=n.offsetBottom||0,c.left=n.offsetLeft||0;var u=a(i,n.throttle||100),d=function(){t(document).ready(u)};return l||(r.on("scroll",d),r.on("resize",d),l=!0),setTimeout(d,0),e.on("scrollSpy:enter",function(){s=t.grep(s,function(t){return 0!=t.height()});var e=t(this);s[0]?(t("a[href=#"+s[0].attr("id")+"]").removeClass("active"),e.data("scrollSpy:id")<s[0].data("scrollSpy:id")?s.unshift(t(this)):s.push(t(this))):s.push(t(this)),t("a[href=#"+s[0].attr("id")+"]").addClass("active")}),e.on("scrollSpy:exit",function(){if(s=t.grep(s,function(t){return 0!=t.height()}),s[0]){t("a[href=#"+s[0].attr("id")+"]").removeClass("active");var e=t(this);s=t.grep(s,function(t){return t.attr("id")!=e.attr("id")}),s[0]&&t("a[href=#"+s[0].attr("id")+"]").addClass("active")}}),e},t.winSizeSpy=function(e){return t.winSizeSpy=function(){return r},e=e||{throttle:100},r.on("resize",a(n,e.throttle||100))},t.fn.scrollSpy=function(e){return t.scrollSpy(t(this),e)}}(jQuery),function(t){t(document).ready(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";if(t(document).on("change",e,function(){0!==t(this).val().length&&t(this).siblings("label, i").addClass("active"),validate_field(t(this))}),t(document).ready(function(){t(e).each(function(e,i){t(i).val().length>0&&t(this).siblings("label, i").addClass("active")})}),t(document).on("reset",function(i){t(i.target).is("form")&&(t(this).find(e).removeClass("valid").removeClass("invalid"),t(this).find("select.initialized").each(function(){var e=t(this).find("option[selected]").text();t(this).siblings("input.select-dropdown").val(e)}))}),t(document).on("focus",e,function(){t(this).siblings("label, i").addClass("active")}),t(document).on("blur",e,function(){0===t(this).val().length&&t(this).siblings("label, i").removeClass("active"),validate_field(t(this))}),validate_field=function(t){0===t.val().length?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))},0===t(".hiddendiv").length){var i=t('<div class="hiddendiv common"></div>'),n=null;t("body").append(i)}var a=".materialize-textarea";t(".hiddendiv").css("width",t(a).width()),t(a).each(function(){t(this).val().length&&(n=t(this).val(),n=n.replace(/\n/g,"<br>"),i.html(n+"<br>"),t(this).css("height",i.height()))}),t("body").on("keyup keydown",a,function(){n=t(this).val(),n=n.replace(/\n/g,"<br>"),i.html(n+"<br>"),t(this).css("height",i.height())}),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,a=[],r=0;r<n.length;r++)a.push(n[r].name);i.val(a.join(", ")),i.trigger("change")});var r="input[type=range]",o=!1;t(r).each(function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)});var s=".range-field";t(document).on("mousedown",s,function(e){var i=t(this).children(".thumb");i.length<=0&&(i=t('<span class="thumb"><span class="value"></span></span>'),t(this).append(i)),o=!0,t(this).addClass("active"),i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});var n=e.pageX-t(this).offset().left,a=t(this).outerWidth();0>n?n=0:n>a&&(n=a),i.addClass("active").css("left",n),i.find(".value").html(t(this).children("input[type=range]").val())}),t(document).on("mouseup",s,function(){o=!1,t(this).removeClass("active")}),t(document).on("mousemove",s,function(e){var i=t(this).children(".thumb");if(o){i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});var n=e.pageX-t(this).offset().left,a=t(this).outerWidth();0>n?n=0:n>a&&(n=a),i.addClass("active").css("left",n),i.find(".value").html(t(this).children("input[type=range]").val())}}),t(document).on("mouseout",s,function(){if(!o){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")&&!$select.hasClass("initialized")){var i=l(),n=t('<div class="select-wrapper"></div>'),a=t('<ul id="select-options-'+i+'" class="dropdown-content select-dropdown"></ul>'),r=$select.children("option");if(void 0!==$select.find("option:selected"))var o=$select.find("option:selected");else var o=a.first();r.each(function(){a.append(t('<li class="'+(t(this).is(":disabled")?"disabled":"")+'"><span>'+t(this).html()+"</span></li>"))}),a.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(n);var s=t('<input type="text" class="select-dropdown" readonly="true" '+($select.is(":disabled")?"disabled":"")+' data-activates="select-options-'+i+'" value="'+o.html()+'"/><i class="mdi-navigation-arrow-drop-down">');$select.before(s),t("body").append(a),$select.is(":disabled")||s.dropdown({hover:!1}),$select.addClass("initialized"),s.on("focus",function(){t(this).trigger("open"),o=t(this).val(),selectedOption=a.find("li").filter(function(){return t(this).text().toLowerCase()===o.toLowerCase()})[0],activateOption(a,selectedOption)}),s.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){return 9==e.which?void s.trigger("close"):40!=e.which||a.is(":visible")?void((13!=e.which||a.is(":visible"))&&(e.preventDefault(),letter=String.fromCharCode(e.which).toLowerCase(),letter&&(filterQuery.push(letter),string=filterQuery.join(""),newOption=a.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(string)})[0],newOption&&activateOption(a,newOption)),13==e.which&&(activeOption=a.find("li.active:not(.disabled)")[0],activeOption&&(t(activeOption).trigger("click"),s.trigger("close"))),40==e.which&&(newOption=a.find("li.active").next("li:not(.disabled)")[0],newOption&&activateOption(a,newOption)),27==e.which&&s.trigger("close"),38==e.which&&(newOption=a.find("li.active").prev("li:not(.disabled)")[0],newOption&&activateOption(a,newOption)),setTimeout(function(){filterQuery=[]},1e3))):void s.trigger("open")},s.on("keydown",onKeyDown)}})};var l=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()}}()})}(jQuery),function(t){t.fn.slider=function(e){var i={indicators:!0,height:400,transition:500,interval:6e4};return e=t.extend(i,e),this.each(function(){function i(t,e){t.hasClass("center-align")?t.velocity({opacity:0,translateY:-100},{duration:e,queue:!1}):t.hasClass("right-align")?t.velocity({opacity:0,translateX:100},{duration:e,queue:!1}):t.hasClass("left-align")&&t.velocity({opacity:0,translateX:-100},{duration:e,queue:!1})}function n(t){t>=s.length?t=0:0>t&&(t=s.length-1),l=o.find(".active").index(),l!=t&&(a=s.eq(l),$caption=a.find(".caption"),a.removeClass("active"),a.velocity({opacity:0},{duration:e.transition,queue:!1,easing:"easeOutQuad",complete:function(){s.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),i($caption,e.transition),e.indicators&&u.eq(l).removeClass("active"),s.eq(t).velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,delay:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).addClass("active"),e.indicators&&u.eq(t).addClass("active"))}var a,r=t(this),o=r.find("ul.slides").first(),s=o.find("li"),l=o.find(".active").index();if(-1!=l&&(a=s.eq(l)),400!=e.height&&(r.height(e.height+40),o.height(e.height)),s.find(".caption").each(function(){i(t(this),0)}),s.find("img").each(function(){t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src","data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")}),e.indicators){var u=t('<ul class="indicators"></ul>');s.each(function(){var i=t('<li class="indicator-item"></li>');i.click(function(){var i=o.parent(),a=i.find(t(this)).index();n(a),clearInterval($interval),$interval=setInterval(function(){l=o.find(".active").index(),s.length==l+1?l=0:l+=1,n(l)},e.transition+e.interval)}),u.append(i)}),r.append(u),u=r.find("ul.indicators").find("li.indicator-item")}a?a.show():(s.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),l=0,a=s.eq(l),e.indicators&&u.eq(l).addClass("active")),a.find("img").each(function(){a.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})}),$interval=setInterval(function(){l=o.find(".active").index(),n(l+1)},e.transition+e.interval);var c=!1,d=!1,f=!1;r.hammer({prevent_default:!1}).bind("pan",function(t){if("touch"===t.gesture.pointerType){clearInterval($interval);var e=t.gesture.direction,i=t.gesture.deltaX,n=t.gesture.velocityX;$curr_slide=o.find(".active"),$curr_slide.velocity({translateX:i},{duration:50,queue:!1,easing:"easeOutQuad"}),4===e&&(i>r.innerWidth()/2||-.65>n)?f=!0:2===e&&(i<-1*r.innerWidth()/2||n>.65)&&(d=!0);var a;d&&(a=$curr_slide.next(),0===a.length&&(a=s.first()),a.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),f&&(a=$curr_slide.prev(),0===a.length&&(a=s.last()),a.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(t){"touch"===t.gesture.pointerType&&($curr_slide=o.find(".active"),c=!1,curr_index=o.find(".active").index(),f||d?d?(n(curr_index+1),$curr_slide.velocity({translateX:-1*r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):f&&(n(curr_index-1),$curr_slide.velocity({translateX:r.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}),d=!1,f=!1,clearInterval($interval),$interval=setInterval(function(){l=o.find(".active").index(),s.length==l+1?l=0:l+=1,n(l)},e.transition+e.interval))})})}}(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"}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&t(this).find(".card-reveal").velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))})})}(jQuery),function(t){t(document).ready(function(){var e=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()}}();t.fn.pushpin=function(i){var n={top:0,bottom:1/0,offset:0};return i=t.extend(n,i),$index=0,this.each(function(){function n(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function a(e,a){e.each(function(){i.top<=a&&i.bottom>=a&&!t(this).hasClass("pinned")&&(n(t(this)),t(this).css("top",i.offset),t(this).addClass("pinned")),a<i.top&&!t(this).hasClass("pin-top")&&(n(t(this)),t(this).css("top",0),t(this).addClass("pin-top")),a>i.bottom&&!t(this).hasClass("pin-bottom")&&(n(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",i.bottom-s))})}var r=e(),o=t(this),s=t(this).offset().top;a(o,t(window).scrollTop()),t(window).on("scroll."+r,function(){var e=t(window).scrollTop()+i.offset;a(o,e)})})}})}(jQuery),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn",function(){var e=t(this);e.find("ul a.btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:"40px"},{duration:0});var i=0;e.find("ul a.btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0"},{duration:80,delay:i}),i+=40})}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn",function(){var e=t(this);e.find("ul a.btn-floating").velocity("stop",!0),e.find("ul a.btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:"40px"},{duration:80})})})}(jQuery),function(t){t(document).ready(function(){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})};var e=[];t("ul.staggered-list").each(function(i){var n="scrollFire-"+i;t(this).addClass(n),e.push({selector:"ul.staggered-list."+n,offset:200,callback:'showStaggeredList("ul.staggered-list.'+n+'")'})}),scrollFire(e);var i=!1,n=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).bind("pan",function(e){if("touch"===e.gesture.pointerType){var a=t(this),r=e.gesture.direction,o=e.gesture.deltaX,s=e.gesture.velocityX;a.velocity({translateX:o},{duration:50,queue:!1,easing:"easeOutQuad"}),4===r&&(o>a.innerWidth()/2||-.75>s)?i=!0:2===r&&(o<-1*a.innerWidth()/2||s>.75)&&(n=!0)}}).bind("panend",function(e){if("touch"===e.gesture.pointerType){var a=t(this);if(i||n){var r;r=i?a.innerWidth():-1*a.innerWidth(),a.velocity({translateX:r},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){a.css("border","none"),a.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){a.remove()}})}})}else a.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});i=!1,n=!1}})}),fadeInImage=function(e){var i=t(e);i.css({opacity:0}),t(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(i).animate({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,i){i.start=100;var n=e/100,a=150-(100-e)/1.75;100>a&&(a=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+n+")brightness("+a+"%)",filter:"grayscale("+n+")brightness("+a+"%)"})}})}})}(jQuery),function(t){scrollFire=function(e){t(window).scroll(function(){var i=t(window).scrollTop()+t(window).height();t.each(e,function(e,n){var a=n.selector,r=n.offset,o=n.callback,s=t(a).offset().top;if(i>s+r&&1!=n.done){var l=new Function(o);l(),n.done=!0}})})}}(jQuery),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):this.Picker=t(jQuery)}(function(t){function e(r,o,l,d){function f(){return e._.node("div",e._.node("div",e._.node("div",e._.node("div",S.component.nodes(b.open),x.box),x.wrap),x.frame),x.holder)}function p(){k.data(o,S).addClass(x.input).attr("tabindex",-1).val(k.data("value")?S.get("select",w.format):r.value),w.editable||k.on("focus."+b.id+" click."+b.id,function(t){t.preventDefault(),S.$root[0].focus()}).on("keydown."+b.id,v),a(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"})}function h(){S.$root.on({keydown:v,focusin:function(t){S.$root.removeClass(x.focused),t.stopPropagation()},"mousedown click":function(e){var i=e.target;i!=S.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(i).is("input, select, textarea, button, option")||(e.preventDefault(),S.$root[0].focus()))}}).on({focus:function(){k.addClass(x.target)},blur:function(){k.removeClass(x.target)}}).on("focus.toOpen",m).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),i=e.data(),n=e.hasClass(x.navDisabled)||e.hasClass(x.disabled),a=s();a=a&&(a.type||a.href),(n||a&&!t.contains(S.$root[0],a))&&S.$root[0].focus(),!n&&i.nav?S.set("highlight",S.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?S.set("select",i.pick):i.clear?S.clear().close(!0):i.close&&S.close(!0)}),a(S.$root[0],"hidden",!0)}function g(){var e;w.hiddenName===!0?(e=r.name,r.name=""):(e=["string"==typeof w.hiddenPrefix?w.hiddenPrefix:"","string"==typeof w.hiddenSuffix?w.hiddenSuffix:"_submit"],
e=e[0]+r.name+e[1]),S._hidden=t('<input type=hidden name="'+e+'"'+(k.data("value")||r.value?' value="'+S.get("select",w.formatSubmit)+'"':"")+">")[0],k.on("change."+b.id,function(){S._hidden.value=r.value?S.get("select",w.formatSubmit):""}),w.container?t(w.container).append(S._hidden):k.after(S._hidden)}function v(t){var e=t.keyCode,i=/^(8|46)$/.test(e);return 27==e?(S.close(),!1):void((32==e||i||!b.open&&S.component.key[e])&&(t.preventDefault(),t.stopPropagation(),i?S.clear().close():S.open()))}function m(t){t.stopPropagation(),"focus"==t.type&&S.$root.addClass(x.focused),S.open()}if(!r)return e;var y=!1,b={id:r.id||"P"+Math.abs(~~(Math.random()*new Date))},w=l?t.extend(!0,{},l.defaults,d):d||{},x=t.extend({},e.klasses(),w.klass),k=t(r),C=function(){return this.start()},S=C.prototype={constructor:C,$node:k,start:function(){return b&&b.start?S:(b.methods={},b.start=!0,b.open=!1,b.type=r.type,r.autofocus=r==s(),r.readOnly=!w.editable,r.id=r.id||b.id,"text"!=r.type&&(r.type="text"),S.component=new l(S,w),S.$root=t(e._.node("div",f(),x.picker,'id="'+r.id+'_root" tabindex="0"')),h(),w.formatSubmit&&g(),p(),w.container?t(w.container).append(S.$root):k.after(S.$root),S.on({start:S.component.onStart,render:S.component.onRender,stop:S.component.onStop,open:S.component.onOpen,close:S.component.onClose,set:S.component.onSet}).on({start:w.onStart,render:w.onRender,stop:w.onStop,open:w.onOpen,close:w.onClose,set:w.onSet}),y=i(S.$root.children()[0]),r.autofocus&&S.open(),S.trigger("start").trigger("render"))},render:function(t){return t?S.$root.html(f()):S.$root.find("."+x.box).html(S.component.nodes(b.open)),S.trigger("render")},stop:function(){return b.start?(S.close(),S._hidden&&S._hidden.parentNode.removeChild(S._hidden),S.$root.remove(),k.removeClass(x.input).removeData(o),setTimeout(function(){k.off("."+b.id)},0),r.type=b.type,r.readOnly=!1,S.trigger("stop"),b.methods={},b.start=!1,S):S},open:function(i){return b.open?S:(k.addClass(x.active),a(r,"expanded",!0),setTimeout(function(){S.$root.addClass(x.opened),a(S.$root[0],"hidden",!1)},0),i!==!1&&(b.open=!0,y&&c.css("overflow","hidden").css("padding-right","+="+n()),S.$root[0].focus(),u.on("click."+b.id+" focusin."+b.id,function(t){var e=t.target;e!=r&&e!=document&&3!=t.which&&S.close(e===S.$root.children()[0])}).on("keydown."+b.id,function(i){var n=i.keyCode,a=S.component.key[n],r=i.target;27==n?S.close(!0):r!=S.$root[0]||!a&&13!=n?t.contains(S.$root[0],r)&&13==n&&(i.preventDefault(),r.click()):(i.preventDefault(),a?e._.trigger(S.component.key.go,S,[e._.trigger(a)]):S.$root.find("."+x.highlighted).hasClass(x.disabled)||S.set("select",S.component.item.highlight).close())})),S.trigger("open"))},close:function(t){return t&&(S.$root.off("focus.toOpen")[0].focus(),setTimeout(function(){S.$root.on("focus.toOpen",m)},0)),k.removeClass(x.active),a(r,"expanded",!1),setTimeout(function(){S.$root.removeClass(x.opened+" "+x.focused),a(S.$root[0],"hidden",!0)},0),b.open?(b.open=!1,y&&c.css("overflow","").css("padding-right","-="+n()),u.off("."+b.id),S.trigger("close")):S},clear:function(t){return S.set("clear",null,t)},set:function(e,i,n){var a,r,o=t.isPlainObject(e),s=o?e:{};if(n=o&&t.isPlainObject(i)?i:n||{},e){o||(s[e]=i);for(a in s)r=s[a],a in S.component.item&&(void 0===r&&(r=null),S.component.set(a,r,n)),("select"==a||"clear"==a)&&k.val("clear"==a?"":S.get(a,w.format)).trigger("change");S.render()}return n.muted?S:S.trigger("set",s)},get:function(t,i){if(t=t||"value",null!=b[t])return b[t];if("valueSubmit"==t){if(S._hidden)return S._hidden.value;t="value"}if("value"==t)return r.value;if(t in S.component.item){if("string"==typeof i){var n=S.component.get(t);return n?e._.trigger(S.component.formats.toString,S.component,[i,n]):""}return S.component.get(t)}},on:function(e,i,n){var a,r,o=t.isPlainObject(e),s=o?e:{};if(e){o||(s[e]=i);for(a in s)r=s[a],n&&(a="_"+a),b.methods[a]=b.methods[a]||[],b.methods[a].push(r)}return S},off:function(){var t,e,i=arguments;for(t=0,namesCount=i.length;t<namesCount;t+=1)e=i[t],e in b.methods&&delete b.methods[e];return S},trigger:function(t,i){var n=function(t){var n=b.methods[t];n&&n.map(function(t){e._.trigger(t,S,[i])})};return n("_"+t),n(t),S}};return new C}function i(t){var e,i="position";return t.currentStyle?e=t.currentStyle[i]:window.getComputedStyle&&(e=getComputedStyle(t)[i]),"fixed"==e}function n(){if(c.height()<=l.height())return 0;var e=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=e[0].offsetWidth;e.css("overflow","scroll");var n=t('<div style="width:100%" />').appendTo(e),a=n[0].offsetWidth;return e.remove(),i-a}function a(e,i,n){if(t.isPlainObject(i))for(var a in i)r(e,a,i[a]);else r(e,i,n)}function r(t,e,i){t.setAttribute(("role"==e?"":"aria-")+e,i)}function o(e,i){t.isPlainObject(e)||(e={attribute:i}),i="";for(var n in e){var a=("role"==n?"":"aria-")+n,r=e[n];i+=null==r?"":a+'="'+e[n]+'"'}return i}function s(){try{return document.activeElement}catch(t){}}var l=t(window),u=t(document),c=t(document.documentElement);return e.klasses=function(t){return t=t||"picker",{picker:t,opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},e._={group:function(t){for(var i,n="",a=e._.trigger(t.min,t);a<=e._.trigger(t.max,t,[a]);a+=t.i)i=e._.trigger(t.item,t,[a]),n+=e._.node(t.node,i[0],i[1],i[2]);return n},node:function(e,i,n,a){return i?(i=t.isArray(i)?i.join(""):i,n=n?' class="'+n+'"':"",a=a?" "+a:"","<"+e+n+a+">"+i+"</"+e+">"):""},lead:function(t){return(10>t?"0":"")+t},trigger:function(t,e,i){return"function"==typeof t?t.apply(e,i||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1===0},ariaAttr:o},e.extend=function(i,n){t.fn[i]=function(a,r){var o=this.data(i);return"picker"==a?o:o&&"string"==typeof a?e._.trigger(o[a],o,[r]):this.each(function(){var r=t(this);r.data(i)||new e(this,i,n,a)})},t.fn[i].defaults=n.defaults},e}),function(t){"function"==typeof define&&define.amd?define(["picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,e){function i(t,e){var i=this,n=t.$node[0],a=n.value,r=t.$node.data("value"),o=r||a,s=r?e.formatSubmit:e.format,l=function(){return n.currentStyle?"rtl"==n.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=e,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(e.disable||[]).slice(0),i.item.enable=-function(t){return t[0]===!0?t.shift():-1}(i.item.disable),i.set("min",e.min).set("max",e.max).set("now"),o?i.set("select",o,{format:s}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(t){var e=i.item.highlight,n=new Date(e.year,e.month,e.date+t);i.set("highlight",n,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var i=this.value;i&&(t.set("highlight",[t.get("view").year,i,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var i=this.value;i&&(t.set("highlight",[i,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}var n=7,a=6,r=t._;i.prototype.set=function(t,e,i){var n=this,a=n.item;return null===e?("clear"==t&&(t="select"),a[t]=e,n):(a["enable"==t?"disable":"flip"==t?"enable":t]=n.queue[t].split(" ").map(function(a){return e=n[a](t,e,i)}).pop(),"select"==t?n.set("highlight",a.select,i):"highlight"==t?n.set("view",a.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(a.select&&n.disabled(a.select)&&n.set("select",a.select,i),a.highlight&&n.disabled(a.highlight)&&n.set("highlight",a.highlight,i)),n)},i.prototype.get=function(t){return this.item[t]},i.prototype.create=function(t,i,n){var a,o=this;return i=void 0===i?t:i,i==-1/0||1/0==i?a=i:e.isPlainObject(i)&&r.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=r.isDate(i)?i:o.create().obj):i=r.isInteger(i)||r.isDate(i)?o.normalize(new Date(i),n):o.now(t,i,n),{year:a||i.getFullYear(),month:a||i.getMonth(),date:a||i.getDate(),day:a||i.getDay(),obj:a||i,pick:a||i.getTime()}},i.prototype.createRange=function(t,i){var n=this,a=function(t){return t===!0||e.isArray(t)||r.isDate(t)?n.create(t):t};return r.isInteger(t)||(t=a(t)),r.isInteger(i)||(i=a(i)),r.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:r.isInteger(i)&&e.isPlainObject(t)&&(i=[t.year,t.month,t.date+i]),{from:a(t),to:a(i)}},i.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},i.prototype.overlapRanges=function(t,e){var i=this;return t=i.createRange(t.from,t.to),e=i.createRange(e.from,e.to),i.withinRange(t,e.from)||i.withinRange(t,e.to)||i.withinRange(e,t.from)||i.withinRange(e,t.to)},i.prototype.now=function(t,e,i){return e=new Date,i&&i.rel&&e.setDate(e.getDate()+i.rel),this.normalize(e,i)},i.prototype.navigate=function(t,i,n){var a,r,o,s,l=e.isArray(i),u=e.isPlainObject(i),c=this.item.view;if(l||u){for(u?(r=i.year,o=i.month,s=i.date):(r=+i[0],o=+i[1],s=+i[2]),n&&n.nav&&c&&c.month!==o&&(r=c.year,o=c.month),a=new Date(r,o+(n&&n.nav?n.nav:0),1),r=a.getFullYear(),o=a.getMonth();new Date(r,o,s).getMonth()!==o;)s-=1;i=[r,o,s]}return i},i.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},i.prototype.measure=function(t,e){var i=this;return e?"string"==typeof e?e=i.parse(t,e):r.isInteger(e)&&(e=i.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},i.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},i.prototype.validate=function(t,i,n){var a,o,s,l,u=this,c=i,d=n&&n.interval?n.interval:1,f=-1===u.item.enable,p=u.item.min,h=u.item.max,g=f&&u.item.disable.filter(function(t){if(e.isArray(t)){var n=u.create(t).pick;n<i.pick?a=!0:n>i.pick&&(o=!0)}return r.isInteger(t)}).length;if((!n||!n.nav)&&(!f&&u.disabled(i)||f&&u.disabled(i)&&(g||a||o)||!f&&(i.pick<=p.pick||i.pick>=h.pick)))for(f&&!g&&(!o&&d>0||!a&&0>d)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.month<c.month||i.month>c.month)&&(i=c,d=d>0?1:-1),i.pick<=p.pick?(s=!0,d=1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=h.pick&&(l=!0,d=-1,i=u.create([h.year,h.month,h.date+(i.pick===h.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},i.prototype.disabled=function(t){var i=this,n=i.item.disable.filter(function(n){return r.isInteger(n)?t.day===(i.settings.firstDay?n:n-1)%7:e.isArray(n)||r.isDate(n)?t.pick===i.create(n).pick:e.isPlainObject(n)?i.withinRange(n,t):void 0});return n=n.length&&!n.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!n:n||t.pick<i.item.min.pick||t.pick>i.item.max.pick},i.prototype.parse=function(t,e,i){var n=this,a={};return e&&"string"==typeof e?(i&&i.format||(i=i||{},i.format=n.settings.format),n.formats.toArray(i.format).map(function(t){var i=n.formats[t],o=i?r.trigger(i,n,[e,a]):t.replace(/^!/,"").length;i&&(a[t]=e.substr(0,o)),e=e.substr(o)}),[a.yyyy||a.yy,+(a.mm||a.m)-1,a.dd||a.d]):e},i.prototype.formats=function(){function t(t,e,i){var n=t.match(/\w+/)[0];return i.mm||i.m||(i.m=e.indexOf(n)+1),n.length}function e(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?r.digits(t):e.date},dd:function(t,e){return t?2:r.lead(e.date)},ddd:function(t,i){return t?e(t):this.settings.weekdaysShort[i.day]},dddd:function(t,i){return t?e(t):this.settings.weekdaysFull[i.day]},m:function(t,e){return t?r.digits(t):e.month+1},mm:function(t,e){return t?2:r.lead(e.month+1)},mmm:function(e,i){var n=this.settings.monthsShort;return e?t(e,n,i):n[i.month]},mmmm:function(e,i){var n=this.settings.monthsFull;return e?t(e,n,i):n[i.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var i=this;return i.formats.toArray(t).map(function(t){return r.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(t,i){var n=this;return r.isInteger(t)&&r.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(r.isDate(t)||e.isArray(t))&&(r.isDate(i)||e.isArray(i))?n.create(t).pick===n.create(i).pick:e.isPlainObject(t)&&e.isPlainObject(i)?n.isDateExact(t.from,i.from)&&n.isDateExact(t.to,i.to):!1},i.prototype.isDateOverlap=function(t,i){var n=this,a=n.settings.firstDay?1:0;return r.isInteger(t)&&(r.isDate(i)||e.isArray(i))?(t=t%7+a,t===n.create(i).day+1):r.isInteger(i)&&(r.isDate(t)||e.isArray(t))?(i=i%7+a,i===n.create(t).day+1):e.isPlainObject(t)&&e.isPlainObject(i)?n.overlapRanges(t,i):!1},i.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},i.prototype.deactivate=function(t,i){var n=this,a=n.item.disable.slice(0);return"flip"==i?n.flipEnable():i===!1?(n.flipEnable(1),a=[]):i===!0?(n.flipEnable(-1),a=[]):i.map(function(t){for(var i,o=0;o<a.length;o+=1)if(n.isDateExact(t,a[o])){i=!0;break}i||(r.isInteger(t)||r.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&a.push(t)}),a},i.prototype.activate=function(t,i){var n=this,a=n.item.disable,o=a.length;return"flip"==i?n.flipEnable():i===!0?(n.flipEnable(1),a=[]):i===!1?(n.flipEnable(-1),a=[]):i.map(function(t){var i,s,l,u;for(l=0;o>l;l+=1){if(s=a[l],n.isDateExact(s,t)){i=a[l]=null,u=!0;break}if(n.isDateOverlap(s,t)){e.isPlainObject(t)?(t.inverted=!0,i=t):e.isArray(t)?(i=t,i[3]||i.push("inverted")):r.isDate(t)&&(i=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(i)for(l=0;o>l;l+=1)if(n.isDateExact(a[l],t)){a[l]=null;break}if(u)for(l=0;o>l;l+=1)if(n.isDateOverlap(a[l],t)){a[l]=null;break}i&&a.push(i)}),a.filter(function(t){return null!=t})},i.prototype.nodes=function(t){var e=this,i=e.settings,o=e.item,s=o.now,l=o.select,u=o.highlight,c=o.view,d=o.disable,f=o.min,p=o.max,h=function(t,e){return i.firstDay&&(t.push(t.shift()),e.push(e.shift())),r.node("thead",r.node("tr",r.group({min:0,max:n-1,i:1,node:"th",item:function(n){return[t[n],i.klass.weekdays,'scope=col title="'+e[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysLetter).slice(0),i.weekdaysFull.slice(0)),g=function(t){return r.node("div"," ",i.klass["nav"+(t?"Next":"Prev")]+(t&&c.year>=p.year&&c.month>=p.month||!t&&c.year<=f.year&&c.month<=f.month?" "+i.klass.navDisabled:""),"data-nav="+(t||-1)+" "+r.ariaAttr({role:"button",controls:e.$node[0].id+"_table"})+' title="'+(t?i.labelMonthNext:i.labelMonthPrev)+'"')},v=function(n){var a=i.showMonthsShort?i.monthsShort:i.monthsFull;return"short_months"==n&&(a=i.monthsShort),i.selectMonths&&void 0==n?r.node("select",r.group({min:0,max:11,i:1,node:"option",item:function(t){return[a[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==f.year&&t<f.month||c.year==p.year&&t>p.month?" disabled":"")]}}),i.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+r.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):"short_months"==n?null!=l?r.node("div",a[l.month]):r.node("div",a[c.month]):r.node("div",a[c.month],i.klass.month)},m=function(n){var a=c.year,o=i.selectYears===!0?5:~~(i.selectYears/2);if(o){var s=f.year,l=p.year,u=a-o,d=a+o;if(s>u&&(d+=s-u,u=s),d>l){var h=u-s,g=d-l;u-=h>g?g:h,d=l}if(i.selectYears&&void 0==n)return r.node("select",r.group({min:u,max:d,i:1,node:"option",item:function(t){return[t,0,"value="+t+(a==t?" selected":"")]}}),i.klass.selectYear+" browser-default",(t?"":"disabled")+" "+r.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return"raw"==n?r.node("div",a):r.node("div",a,i.klass.year)};return createDayLabel=function(){return null!=l?r.node("div",l.date):r.node("div",s.date)},createWeekdayLabel=function(){var t;t=null!=l?l.day:s.day;var e=i.weekdaysFull[t];return e},r.node("div",r.node("div",createWeekdayLabel(),"picker__weekday-display")+r.node("div",v("short_months"),i.klass.month_display)+r.node("div",createDayLabel(),i.klass.day_display)+r.node("div",m("raw"),i.klass.year_display),i.klass.date_display)+r.node("div",r.node("div",(i.selectYears?v()+m():v()+m())+g()+g(1),i.klass.header)+r.node("table",h+r.node("tbody",r.group({min:0,max:a-1,i:1,node:"tr",item:function(t){var a=i.firstDay&&0===e.create([c.year,c.month,1]).day?-7:0;return[r.group({min:n*t-c.day+a+1,max:function(){return this.min+n-1},i:1,node:"td",item:function(t){t=e.create([c.year,c.month,t+(i.firstDay?1:0)]);var n=l&&l.pick==t.pick,a=u&&u.pick==t.pick,o=d&&e.disabled(t)||t.pick<f.pick||t.pick>p.pick,h=r.trigger(e.formats.toString,e,[i.format,t]);return[r.node("div",t.date,function(e){return e.push(c.month==t.month?i.klass.infocus:i.klass.outfocus),s.pick==t.pick&&e.push(i.klass.now),n&&e.push(i.klass.selected),a&&e.push(i.klass.highlighted),o&&e.push(i.klass.disabled),e.join(" ")}([i.klass.day]),"data-pick="+t.pick+" "+r.ariaAttr({role:"gridcell",label:h,selected:n&&e.$node.val()===h?!0:null,activedescendant:a?!0:null,disabled:o?!0:null})),"",r.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+e.$node[0].id+'_table" '+r.ariaAttr({role:"grid",controls:e.$node[0].id,readonly:!0})),i.klass.calendar_container)+r.node("div",r.node("button",i.today,"btn-flat picker__today","type=button data-pick="+s.pick+(t&&!e.disabled(s)?"":" disabled")+" "+r.ariaAttr({controls:e.$node[0].id}))+r.node("button",i.clear,"btn-flat picker__clear","type=button data-clear=1"+(t?"":" disabled")+" "+r.ariaAttr({controls:e.$node[0].id}))+r.node("button",i.close,"btn-flat picker__close","type=button data-close=true "+(t?"":" disabled")+" "+r.ariaAttr({controls:e.$node[0].id})),i.klass.footer)},i.defaults=function(t){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],weekdaysFull:["Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu"],weekdaysShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],weekdaysLetter:["M","S","S","R","K","J","S"],today:"Hari Ini",clear:'',close:"Tutup",format:"d mmmm, yyyy",klass:{table:t+"table",header:t+"header",date_display:t+"date-display",day_display:t+"day-display",month_display:t+"month-display",year_display:t+"year-display",calendar_container:t+"calendar-container",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}}}(t.klasses().picker+"__"),t.extend("pickadate",i)});
Function Calls
None |
Stats
MD5 | 8e3b20238cc38dcf0246cc3d2c5b64f7 |
Eval Count | 0 |
Decode Time | 154 ms |