gwt.material.design.client.resources.js.materialize-0.97.5.min.js Maven / Gradle / Ivy
var jQuery,Vel;void 0===jQuery&&(jQuery="function"==typeof require?$=require("jQuery"):$);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*(1-Math.pow(2,-10*e/a))+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*(2-Math.pow(2,-10*--e))+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 o=1.70158,r=0,s=n;if(0==e)return i;if(1==(e/=a))return i+n;if(r||(r=.3*a),s0&&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[r.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&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||o.call(t,e)},i.each=function(t,i,n){var a=0,o=t.length,r=e(t);if(n){if(r)for(;o>a&&!1!==i.apply(t[a],n);a++);else for(a in t)if(!1===i.apply(t[a],n))break}else if(r)for(;o>a&&!1!==i.call(t[a],a,t[a]);a++);else for(a in t)if(!1===i.call(t[a],a,t[a]))break;return t},i.data=function(t,e,a){if(void 0===a){var o=(r=t[i.expando])&&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],o=a&&n[a];o&&i.each(e,function(t,e){delete o[e]})},i.extend=function(){var t,e,n,a,o,r,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!=(o=arguments[l]))for(a in o)t=s[a],s!==(n=o[a])&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,r=t&&i.isArray(t)?t:[]):r=t&&i.isPlainObject(t)?t:{},s[a]=i.extend(c,r,n)):void 0!==n&&(s[a]=n));return s},i.queue=function(t,n,a){if(t){n=(n||"fx")+"queue";var o=i.data(t,n);return a?(!o||i.isArray(a)?o=i.data(t,n,function(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++];t.length=a}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}(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),o=a.shift();"inprogress"===o&&(o=a.shift()),o&&("fx"===e&&a.unshift("inprogress"),o.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={},o=a.hasOwnProperty,r=a.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;la;++a){var o=u(i,t,n);if(0===o)return i;i-=(l(i,t,n)-e)/o}return i}function d(e,i,a){var o,r,s=0;do{(o=l(r=i+(a-i)/2,t,n)-e)>0?a=r:i=r}while(Math.abs(o)>v&&++se;++e)x[e]=l(e*y,t,n)}()}var f=4,h=.001,v=1e-7,g=10,m=11,y=1/(m-1),b="Float32Array"in e;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var x=b?new Float32Array(m):new Array(m),C=!1,k=function(e){return C||p(),t===i&&n===a?e:0===e?0:1===e?1:l(function(e){for(var i=0,a=1,o=m-1;a!=o&&x[a]<=e;++a)i+=y;var r=i+(e-x[--a])/(x[a+1]-x[a])*y,s=u(r,t,n);return s>=h?c(e,r):0==s?r:d(e,i,i+y)}(e),i,a)};k.getControlPoints=function(){return[{x:t,y:i},{x:n,y:a}]};var T="generateBezier("+[t,i,n,a]+")";return k.toString=function(){return T},k}function s(t,e){var i=t;return f.isString(t)?m.Easings[t]||(i=!1):i=f.isArray(t)&&1===t.length?function(t){return function(e){return Math.round(e*t)*(1/t)}}.apply(null,t):f.isArray(t)&&2===t.length?y.apply(null,t.concat([e])):!(!f.isArray(t)||4!==t.length)&&r.apply(null,t),!1===i&&(i=m.Easings[m.defaults.easing]?m.defaults.easing:g),i}function l(t){if(t){var e=(new Date).getTime(),i=m.State.calls.length;i>1e4&&(m.State.calls=function(t){for(var e=-1,i=t?t.length:0,n=[];++ea;a++)if(m.State.calls[a]){var r=m.State.calls[a],s=r[0],d=r[2],p=r[3],h=!!p,v=null;p||(p=m.State.calls[a][3]=e-16);for(var g=Math.min((e-p)/d.duration,1),y=0,w=s.length;w>y;y++){var C=s[y],k=C.element;if(o(k)){var T=!1;if(d.display!==n&&null!==d.display&&"none"!==d.display){if("flex"===d.display){c.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(t,e){b.setPropertyValue(k,"display",e)})}b.setPropertyValue(k,"display",d.display)}for(var S in d.visibility!==n&&"hidden"!==d.visibility&&b.setPropertyValue(k,"visibility",d.visibility),C)if("element"!==S){var O,P=C[S],E=f.isString(P.easing)?m.Easings[P.easing]:P.easing;if(1===g)O=P.endValue;else{var A=P.endValue-P.startValue;if(O=P.startValue+A*E(g,d,A),!h&&O===P.currentValue)continue}if(P.currentValue=O,"tween"===S)v=O;else{if(b.Hooks.registered[S]){var q=b.Hooks.getRoot(S),M=o(k).rootPropertyValueCache[q];M&&(P.rootPropertyValue=M)}var _=b.setPropertyValue(k,S,P.currentValue+(0===parseFloat(O)?"":P.unitType),P.rootPropertyValue,P.scrollData);b.Hooks.registered[S]&&(o(k).rootPropertyValueCache[q]=b.Normalizations.registered[q]?b.Normalizations.registered[q]("extract",null,_[1]):_[1]),"transform"===_[0]&&(T=!0)}}d.mobileHA&&o(k).transformCache.translate3d===n&&(o(k).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&b.flushTransformCache(k)}}d.display!==n&&"none"!==d.display&&(m.State.calls[a][2].display=!1),d.visibility!==n&&"hidden"!==d.visibility&&(m.State.calls[a][2].visibility=!1),d.progress&&d.progress.call(r[1],r[1],g,Math.max(0,p+d.duration-e),p,v),1===g&&u(a)}}m.State.isTicking&&x(l)}function u(t,e){if(!m.State.calls[t])return!1;for(var i=m.State.calls[t][0],a=m.State.calls[t][1],r=m.State.calls[t][2],s=m.State.calls[t][4],l=!1,u=0,d=i.length;d>u;u++){var p=i[u].element;if(e||r.loop||("none"===r.display&&b.setPropertyValue(p,"display",r.display),"hidden"===r.visibility&&b.setPropertyValue(p,"visibility",r.visibility)),!0!==r.loop&&(c.queue(p)[1]===n||!/\.velocityQueueEntryFlag/i.test(c.queue(p)[1]))&&o(p)){o(p).isAnimating=!1,o(p).rootPropertyValueCache={};var f=!1;c.each(b.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,a=o(p).transformCache[e];o(p).transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(a)&&(f=!0,delete o(p).transformCache[e])}),r.mobileHA&&(f=!0,delete o(p).transformCache.translate3d),f&&b.flushTransformCache(p),b.Values.removeClass(p,"velocity-animating")}if(!e&&r.complete&&!r.loop&&u===d-1)try{r.complete.call(a,a)}catch(t){setTimeout(function(){throw t},1)}s&&!0!==r.loop&&s(a),o(p)&&!0===r.loop&&!e&&(c.each(o(p).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),m(p,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&c.dequeue(p,r.queue)}m.State.calls[t]=!1;for(var h=0,v=m.State.calls.length;v>h;h++)if(!1!==m.State.calls[h]){l=!0;break}!1===l&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}var c,d=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]>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}},h=!1;if(t.fn&&t.fn.jquery?(c=t,h=!0):c=e.Velocity.Utilities,8>=d&&!h)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=d)){var v=400,g="swing",m={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:c,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:g,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){c.data(t,"velocity",{isSVG:f.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==n?(m.State.scrollAnchor=e,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop");var y=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)},o=e(i,.5*n,a),r=e(i,.5*n,o),s=e(i,n,r),l=1/6*(a.dx+2*(o.dx+r.dx)+s.dx),u=1/6*(a.dv+2*(o.dv+r.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function t(e,n,a){var o,r,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0;for(e=parseFloat(e)||500,n=parseFloat(n)||20,a=a||null,l.tension=e,l.friction=n,(o=null!==a)?r=(c=t(e,n))/a*.016:r=.016;s=i(s||l,r),u.push(1+s.x),c+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return o?function(t){return u[t*(u.length-1)|0]}:c}}();m.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)}},c.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){m.Easings[e[0]]=r.apply(null,e[1])});var b=m.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=d)switch(t){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return 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":case"inject":return i}}},register:function(){9>=d||m.State.isGingerbread||(b.Lists.transformsBase=b.Lists.transformsBase.concat(b.Lists.transforms3D));for(var t=0;ta&&(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(t=0;t=d||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=d?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=d?"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(d||m.State.isAndroid&&!m.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(m.State.prefixMatches[t])return[m.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()}),f.isString(m.State.prefixElement.style[a]))return m.State.prefixMatches[t]=a,[a,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,i,a,r){function s(t,i){function a(){p&&b.setPropertyValue(t,"display","none")}var l=0;if(8>=d)l=c.css(t,i);else{var u,p=!1;if(/^(width|height)$/.test(i)&&0===b.getPropertyValue(t,"display")&&(p=!0,b.setPropertyValue(t,"display",b.Values.getDisplayType(t))),!r){if("height"===i&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var f=t.offsetHeight-(parseFloat(b.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(b.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(b.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(b.getPropertyValue(t,"paddingBottom"))||0);return a(),f}if("width"===i&&"border-box"!==b.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var h=t.offsetWidth-(parseFloat(b.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(b.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(b.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(b.getPropertyValue(t,"paddingRight"))||0);return a(),h}}u=o(t)===n?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),(""===(l=9===d&&"filter"===i?u.getPropertyValue(i):u[i])||null===l)&&(l=t.style[i]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var v=s(t,"position");("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(l=c(t).position()[i]+"px")}return l}var l;if(b.Hooks.registered[i]){var u=i,p=b.Hooks.getRoot(u);a===n&&(a=b.getPropertyValue(t,b.Names.prefixCheck(p)[0])),b.Normalizations.registered[p]&&(a=b.Normalizations.registered[p]("extract",t,a)),l=b.Hooks.extractValue(u,a)}else if(b.Normalizations.registered[i]){var f,h;"transform"!==(f=b.Normalizations.registered[i]("name",t))&&(h=s(t,b.Names.prefixCheck(f)[0]),b.Values.isCSSNullValue(h)&&b.Hooks.templates[i]&&(h=b.Hooks.templates[i][1])),l=b.Normalizations.registered[i]("extract",t,h)}if(!/^[\d-]/.test(l))if(o(t)&&o(t).isSVG&&b.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=t.getBBox()[i]}catch(t){l=0}else l=t.getAttribute(i);else l=s(t,b.Names.prefixCheck(i)[0]);return b.Values.isCSSNullValue(l)&&(l=0),m.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(b.Normalizations.registered[i]&&"transform"===b.Normalizations.registered[i]("name",t))b.Normalizations.registered[i]("inject",t,n),s="transform",n=o(t).transformCache[i];else{if(b.Hooks.registered[i]){var l=i,u=b.Hooks.getRoot(i);a=a||b.getPropertyValue(t,u),n=b.Hooks.injectValue(l,n,a),i=u}if(b.Normalizations.registered[i]&&(n=b.Normalizations.registered[i]("inject",t,n),i=b.Normalizations.registered[i]("name",t)),s=b.Names.prefixCheck(i)[0],8>=d)try{t.style[s]=n}catch(t){m.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else o(t)&&o(t).isSVG&&b.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[s]=n;m.debug>=2&&console.log("Set "+i+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(t){function e(e){return parseFloat(b.getPropertyValue(t,e))}var i="";if((d||m.State.isAndroid&&!m.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]};c.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;c.each(o(t).transformCache,function(e){return a=o(t).transformCache[e],"transformPerspective"===e?(r=a,!0):(9===d&&"rotateZ"===e&&(e="rotate"),void(i+=e+a+" "))}),r&&(i="perspective"+r+" "+i)}b.setPropertyValue(t,"transform",i)}};b.Hooks.register(),b.Normalizations.register(),m.hook=function(t,e,i){var r=n;return t=a(t),c.each(t,function(t,a){if(o(a)===n&&m.init(a),i===n)r===n&&(r=m.CSS.getPropertyValue(a,e));else{var s=m.CSS.setPropertyValue(a,e,i);"transform"===s[0]&&m.CSS.flushTransformCache(a),r=s}}),r};var w=function(){function t(){return d?P.promise||null:p}function r(){function t(t){function p(t,e){var i=n,a=n,o=n;return f.isArray(t)?(i=t[0],!f.isArray(t[1])&&/^[\d-]/.test(t[1])||f.isFunction(t[1])||b.RegEx.isHex.test(t[1])?o=t[1]:(f.isString(t[1])&&!b.RegEx.isHex.test(t[1])||f.isArray(t[1]))&&(a=e?t[1]:s(t[1],u.duration),t[2]!==n&&(o=t[2]))):i=t,e||(a=a||u.easing),f.isFunction(i)&&(i=i.call(r,T,k)),f.isFunction(o)&&(o=o.call(r,T,k)),[i||0,a,o]}function h(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=b.Values.getUnitType(t)),[n,i]}function v(){var t={myParent:r.parentNode||i.body,position:b.getPropertyValue(r,"position"),fontSize:b.getPropertyValue(r,"fontSize")},n=t.position===V.lastPosition&&t.myParent===V.lastParent,a=t.fontSize===V.lastFontSize;V.lastParent=t.myParent,V.lastPosition=t.position,V.lastFontSize=t.fontSize;var s=100,l={};if(a&&n)l.emToPx=V.lastEmToPx,l.percentToPxWidth=V.lastPercentToPxWidth,l.percentToPxHeight=V.lastPercentToPxHeight;else{var u=o(r).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");m.init(u),t.myParent.appendChild(u),c.each(["overflow","overflowX","overflowY"],function(t,e){m.CSS.setPropertyValue(u,e,"hidden")}),m.CSS.setPropertyValue(u,"position",t.position),m.CSS.setPropertyValue(u,"fontSize",t.fontSize),m.CSS.setPropertyValue(u,"boxSizing","content-box"),c.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){m.CSS.setPropertyValue(u,e,s+"%")}),m.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=V.lastPercentToPxWidth=(parseFloat(b.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=V.lastPercentToPxHeight=(parseFloat(b.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=V.lastEmToPx=(parseFloat(b.getPropertyValue(u,"paddingLeft"))||1)/s,t.myParent.removeChild(u)}return null===V.remToPx&&(V.remToPx=parseFloat(b.getPropertyValue(i.body,"fontSize"))||16),null===V.vwToPx&&(V.vwToPx=parseFloat(e.innerWidth)/100,V.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=V.remToPx,l.vwToPx=V.vwToPx,l.vhToPx=V.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),r),l}if(u.begin&&0===T)try{u.begin.call(g,g)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===O){var w,C,S,E=/^x$/i.test(u.axis)?"Left":"Top",A=parseFloat(u.offset)||0;u.container?f.isWrapped(u.container)||f.isNode(u.container)?(u.container=u.container[0]||u.container,S=(w=u.container["scroll"+E])+c(r).position()[E.toLowerCase()]+A):u.container=null:(w=m.State.scrollAnchor[m.State["scrollProperty"+E]],C=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===E?"Top":"Left")]],S=c(r).offset()[E.toLowerCase()]+A),d={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:S,unitType:"",easing:u.easing,scrollData:{container:u.container,direction:E,alternateValue:C}},element:r},m.debug&&console.log("tweensContainer (scroll): ",d.scroll,r)}else if("reverse"===O){if(!o(r).tweensContainer)return void c.dequeue(r,u.queue);"none"===o(r).opts.display&&(o(r).opts.display="auto"),"hidden"===o(r).opts.visibility&&(o(r).opts.visibility="visible"),o(r).opts.loop=!1,o(r).opts.begin=null,o(r).opts.complete=null,x.easing||delete u.easing,x.duration||delete u.duration,u=c.extend({},o(r).opts,u);var q=c.extend(!0,{},o(r).tweensContainer);for(var M in q)if("element"!==M){var _=q[M].startValue;q[M].startValue=q[M].currentValue=q[M].endValue,q[M].endValue=_,f.isEmptyObject(x)||(q[M].easing=u.easing),m.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(q[M]),r)}d=q}else if("start"===O){for(var I in o(r).tweensContainer&&!0===o(r).isAnimating&&(q=o(r).tweensContainer),c.each(y,function(t,e){if(RegExp("^"+b.Lists.colors.join("$|^")+"$").test(t)){var i=p(e,!0),a=i[0],o=i[1],r=i[2];if(b.RegEx.isHex.test(a)){for(var s=["Red","Green","Blue"],l=b.Values.hexToRgb(a),u=r?b.Values.hexToRgb(r):n,c=0;cD;D++){var z={delay:I.delay,progress:I.progress};D===_-1&&(z.display=I.display,z.visibility=I.visibility,z.complete=I.complete),w(g,"reverse",z)}return t()}};(m=c.extend(w,m)).animate=w;var x=e.requestAnimationFrame||p;return m.State.isMobile||i.hidden===n||i.addEventListener("visibilitychange",function(){i.hidden?(x=function(t){return setTimeout(function(){t(!0)},16)},l()):x=e.requestAnimationFrame||p}),t.Velocity=m,t!==e&&(t.fn.velocity=w,t.fn.velocity.defaults=m.defaults),c.each(["Down","Up"],function(t,e){m.Redirects["slide"+e]=function(t,i,a,o,r,s){var l=c.extend({},i),u=l.begin,d=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===n&&(l.display="Down"===e?"inline"===m.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var i in u&&u.call(r,r),p){f[i]=t.style[i];var n=m.CSS.getPropertyValue(t,i);p[i]="Down"===e?[n,0]:[0,n]}f.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in f)t.style[e]=f[e];d&&d.call(r,r),s&&s.resolver(r)},m(t,p,l)}}),c.each(["In","Out"],function(t,e){m.Redirects["fade"+e]=function(t,i,a,o,r,s){var l=c.extend({},i),u={opacity:"In"===e?1:0},d=l.complete;l.complete=a!==o-1?l.begin=null:function(){d&&d.call(r,r),s&&s.resolver(r)},l.display===n&&(l.display="In"===e?"auto":"none"),m(this,u,l)}}),m}jQuery.fn.velocity=jQuery.fn.animate}(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 o(t,e,i){return!!Array.isArray(t)&&(r(t,i[e],i),!0)}function r(t,e,i){var a;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(a=0;a-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;ni[e]}):n.sort()),n}function x(t,e){for(var i,a,o=e[0].toUpperCase()+e.slice(1),r=0;r1&&!i.firstMultiple?i.firstMultiple=O(e):1===a&&(i.firstMultiple=!1);var o=i.firstInput,r=i.firstMultiple,s=r?r.center:o.center,l=e.center=P(n);e.timeStamp=it(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=q(s,l),e.distance=A(s,l),function(t,e){var i=e.center,n=t.offsetDelta||{},a=t.prevDelta||{},o=t.prevInput||{};(e.eventType===ct||o.eventType===pt)&&(a=t.prevDelta={x:o.deltaX||0,y:o.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)}(i,e),e.offsetDirection=E(e.deltaX,e.deltaY),e.scale=r?function(t,e){return A(e[0],e[1],kt)/A(t[0],t[1],kt)}(r.pointers,n):1,e.rotation=r?function(t,e){return q(e[1],e[0],kt)-q(t[1],t[0],kt)}(r.pointers,n):0,S(i,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function S(t,e){var i,a,o,r,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=ft&&(l>ut||s.velocity===n)){var u=s.deltaX-e.deltaX,c=s.deltaY-e.deltaY,d=function(t,e,i){return{x:e/t||0,y:i/t||0}}(l,u,c);a=d.x,o=d.y,i=et(d.x)>et(d.y)?d.x:d.y,r=E(u,c),t.lastInterval=e}else i=s.velocity,a=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=a,e.velocityY=o,e.direction=r}function O(t){for(var e=[],i=0;ia;)i+=t[a].clientX,n+=t[a].clientY,a++;return{x:tt(i/e),y:tt(n/e)}}function E(t,e){return t===e?ht:et(t)>=et(e)?t>0?vt:gt:e>0?mt:yt}function A(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return Math.sqrt(n*n+a*a)}function q(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return 180*Math.atan2(a,n)/Math.PI}function M(){this.evEl=St,this.evWin=Ot,this.allow=!0,this.pressed=!1,k.apply(this,arguments)}function _(){this.evEl=At,this.evWin=qt,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function I(){this.evTarget=_t,this.evWin=It,this.started=!1,k.apply(this,arguments)}function V(){this.evTarget=jt,this.targetIds={},k.apply(this,arguments)}function j(){k.apply(this,arguments);var t=c(this.handler,this);this.touch=new V(this.manager,t),this.mouse=new M(this.manager,t)}function D(t,e){this.manager=t,this.set(e)}function z(t){this.id=nt++,this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=p(this.options.enable,!0),this.state=Rt,this.simultaneous={},this.requireFail=[]}function L(t){return t==yt?"down":t==mt?"up":t==vt?"left":t==gt?"right":""}function Q(t,e){var i=e.manager;return i?i.get(t):t}function N(){z.apply(this,arguments)}function F(){N.apply(this,arguments),this.pX=null,this.pY=null}function W(){N.apply(this,arguments)}function $(){z.apply(this,arguments),this._timer=null,this._input=null}function R(){N.apply(this,arguments)}function X(){N.apply(this,arguments)}function H(){z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Y(t,e){return(e=e||{}).recognizers=p(e.recognizers,Y.defaults.preset),new B(t,e)}function B(t,e){e=e||{},this.options=l(e,Y.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(ot?_:rt?V:at?j:M))(t,T)}(this),this.touchAction=new D(this,this.options.touchAction),G(this,!0),r(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 G(t,e){var i=t.element;r(t.options.cssProps,function(t,n){i.style[x(i.style,n)]=e?t:""})}function U(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var Z=["","webkit","moz","MS","ms","o"],J=e.createElement("div"),K="function",tt=Math.round,et=Math.abs,it=Date.now,nt=1,at="ontouchstart"in t,ot=x(t,"PointerEvent")!==n,rt=at&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),st="touch",lt="mouse",ut=25,ct=1,dt=2,pt=4,ft=8,ht=1,vt=2,gt=4,mt=8,yt=16,bt=vt|gt,wt=mt|yt,xt=bt|wt,Ct=["x","y"],kt=["clientX","clientY"];k.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(C(this.element),this.evWin,this.domHandler)}};var Tt={mousedown:ct,mousemove:dt,mouseup:pt},St="mousedown",Ot="mousemove mouseup";u(M,k,{handler:function(t){var e=Tt[t.type];e&ct&&0===t.button&&(this.pressed=!0),e&dt&&1!==t.which&&(e=pt),this.pressed&&this.allow&&(e&pt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:lt,srcEvent:t}))}});var Pt={pointerdown:ct,pointermove:dt,pointerup:pt,pointercancel:ft,pointerout:ft},Et={2:st,3:"pen",4:lt,5:"kinect"},At="pointerdown",qt="pointermove pointerup pointercancel";t.MSPointerEvent&&(At="MSPointerDown",qt="MSPointerMove MSPointerUp MSPointerCancel"),u(_,k,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),a=Pt[n],o=Et[t.pointerType]||t.pointerType,r=o==st,s=y(e,t.pointerId,"pointerId");a&ct&&(0===t.button||r)?0>s&&(e.push(t),s=e.length-1):a&(pt|ft)&&(i=!0),0>s||(e[s]=t,this.callback(this.manager,a,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))}});var Mt={touchstart:ct,touchmove:dt,touchend:pt,touchcancel:ft},_t="touchstart",It="touchstart touchmove touchend touchcancel";u(I,k,{handler:function(t){var e=Mt[t.type];if(e===ct&&(this.started=!0),this.started){var i=function(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(pt|ft)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);e&(pt|ft)&&0==i[0].length-i[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:st,srcEvent:t})}}});var Vt={touchstart:ct,touchmove:dt,touchend:pt,touchcancel:ft},jt="touchstart touchmove touchend touchcancel";u(V,k,{handler:function(t){var e=Vt[t.type],i=function(t,e){var i=b(t.touches),n=this.targetIds;if(e&(ct|dt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,o,r=b(t.changedTouches),s=[],l=this.target;if(o=i.filter(function(t){return v(t.target,l)}),e===ct)for(a=0;a-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?function(t){return t&Gt?"cancel":t&Yt?"end":t&Ht?"move":t&Xt?"start":""}(n):""),t)}var i=this,n=this.state;Yt>n&&e(!0),e(),n>=Yt&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;to?vt:gt,i=o!=this.pX,n=Math.abs(t.deltaX)):(a=0===r?ht:0>r?mt:yt,i=r!=this.pY,n=Math.abs(t.deltaY))),t.direction=a,i&&n>e.threshold&&a&e.direction},attrTest:function(t){return N.prototype.attrTest.call(this,t)&&(this.state&Xt||!(this.state&Xt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=L(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),u(W,N,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ft]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Xt)},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($,z,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Qt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(pt|ft)&&!o)this.reset();else if(t.eventType&ct)this.reset(),this._timer=a(function(){this.state=Bt,this.tryEmit()},e.time,this);else if(t.eventType&pt)return Bt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Bt&&(t&&t.eventType&pt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=it(),this.manager.emit(this.options.event,this._input)))}}),u(R,N,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ft]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Xt)}}),u(X,N,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:bt|wt,pointers:1},getTouchAction:function(){return F.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(bt|wt)?e=t.velocity:i&bt?e=t.velocityX:i&wt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&et(e)>this.options.velocity&&t.eventType&pt},emit:function(t){var e=L(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(H,z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Nt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance li > .collapsible-header"),a=i.data("collapsible");function o(e){n=i.find("> li > .collapsible-header"),e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}),n.not(e).removeClass("active").parent().removeClass("active"),n.not(e).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function r(e){e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function s(t){return t.closest("li > .collapsible-header")}i.off("click.collapse","> li > .collapsible-header"),n.off("click.collapse"),i.on("click.collapse","> li > .collapsible-header",function(i){var n=t(this),l=t(i.target);s(l).length>0&&(l=s(l)),l.toggleClass("active"),e.accordion||"accordion"===a||void 0===a?o(l):(r(l),n.hasClass("active")&&r(n))});n=i.find("> li > .collapsible-header");e.accordion||"accordion"===a||void 0===a?o(n.filter(".active").first()):n.filter(".active").each(function(){r(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:!1,gutter:0,belowOrigin:!1,alignment:"left"};this.each(function(){var n=t(this),a=t.extend({},i,e),o=!1,r=t("#"+n.attr("data-activates"));function s(){void 0!==n.data("induration")&&(a.inDuration=n.data("inDuration")),void 0!==n.data("outduration")&&(a.outDuration=n.data("outDuration")),void 0!==n.data("constrainwidth")&&(a.constrain_width=n.data("constrainwidth")),void 0!==n.data("hover")&&(a.hover=n.data("hover")),void 0!==n.data("gutter")&&(a.gutter=n.data("gutter")),void 0!==n.data("beloworigin")&&(a.belowOrigin=n.data("beloworigin")),void 0!==n.data("alignment")&&(a.alignment=n.data("alignment"))}function l(e){"focus"===e&&(o=!0),s(),r.addClass("active"),n.addClass("active"),!0===a.constrain_width?r.css("width",n.outerWidth()):r.css("white-space","nowrap");var i,l=window.innerHeight,u=n.innerHeight(),c=n.offset().left,d=n.offset().top-t(window).scrollTop(),p=a.alignment,f=0;if(!0===a.belowOrigin&&(f=u),c+r.innerWidth()>t(window).width()?p="right":c-r.innerWidth()+n.innerWidth()<0&&(p="left"),d+r.innerHeight()>l)if(d+u-r.innerHeight()<0){var h=l-d-f;r.css("max-height",h)}else f||(f+=u),f-=r.innerHeight();if("left"===p)i=a.gutter,leftPosition=n.position().left+i;else if("right"===p){var v=n.position().left+n.outerWidth()-r.outerWidth();i=-a.gutter,leftPosition=v+i}r.css({position:"absolute",top:n.position().top+f,left:leftPosition}),r.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:a.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:a.inDuration,easing:"easeOutSine"})}function u(){o=!1,r.fadeOut(a.outDuration),r.removeClass("active"),n.removeClass("active"),setTimeout(function(){r.css("max-height","")},a.outDuration)}if(s(),n.after(r),a.hover){var c=!1;n.unbind("click."+n.attr("id")),n.on("mouseenter",function(t){!1===c&&(l(),c=!0)}),n.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-content").is(r)||(r.stop(!0,!0),u(),c=!1)}),r.on("mouseleave",function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-button").is(n)||(r.stop(!0,!0),u(),c=!1)})}else n.unbind("click."+n.attr("id")),n.bind("click."+n.attr("id"),function(e){o||(n[0]!=e.currentTarget||n.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?n.hasClass("active")&&(u(),t(document).unbind("click."+r.attr("id")+" touchstart."+r.attr("id"))):(e.preventDefault(),l("click")),r.hasClass("active")&&t(document).bind("click."+r.attr("id")+" touchstart."+r.attr("id"),function(e){r.is(e.target)||n.is(e.target)||n.find(e.target).length||(u(),t(document).unbind("click."+r.attr("id")+" touchstart."+r.attr("id")))}))});n.on("open",function(t,e){l(e)}),n.on("close",u)})},t(document).ready(function(){t(".dropdown-button").dropdown()})}(jQuery),function(t){var e=new Array,i=0;t.fn.extend({openModal:function(n){t("body").css("overflow","hidden");var a={opacity:.5,in_duration:350,out_duration:250,ready:void 0,complete:void 0,dismissible:!0,starting_top:"4%"},o="materialize-lean-overlay-"+ ++i,r=t(this),s=t(''),l=0==e.length?1:e[e.length-1]+1;e.push(l),s.attr("id",o).css("z-index",1e3+2*l),r.data("overlay-id",o).css("z-index",1e3+2*l+1),r.data("stack-ordinal",l),t("body").append(s),r.trigger("modal-overlay-attached",o),(n=t.extend(a,n)).dismissible&&(s.click(function(){r.closeModal(n)}),t(document).on("keyup.leanModal"+o,function(t){27===t.keyCode&&r.closeModal(n)})),r.find(".modal-close").on("click.close",function(t){r.closeModal(n)}),s.css({display:"block",opacity:0}),r.css({display:"block",opacity:0}),s.velocity({opacity:n.opacity},{duration:n.in_duration,queue:!1,ease:"easeOutCubic"}),r.data("associated-overlay",s[0]),r.hasClass("bottom-sheet")?r.velocity({bottom:"0",opacity:1},{duration:n.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.ready&&n.ready()}}):(t.Velocity.hook(r,"scaleX",.7),r.css({top:n.starting_top}),r.velocity({top:"10%",opacity:1,scaleX:"1"},{duration:n.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.ready&&n.ready()}}))}}),t.fn.extend({closeModal:function(i){var n={out_duration:250,complete:void 0},a=t(this),o=a.data("stack-ordinal"),r=a.data("overlay-id"),s=t("#"+r);i=t.extend(n,i),t("body").css("overflow",""),a.find(".modal-close").off("click.close"),t(document).off("keyup.leanModal"+r),s.velocity({opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutQuart"}),a.hasClass("bottom-sheet")?a.velocity({bottom:"-100%",opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutCubic",complete:function(){s.css({display:"none"}),"function"==typeof i.complete&&i.complete(),s.remove(),e.splice(e.indexOf(o),1)}}):a.velocity({top:i.starting_top,opacity:0,scaleX:.7},{duration:i.out_duration,complete:function(){t(this).css("display","none"),"function"==typeof i.complete&&i.complete(),s.remove(),e.splice(e.indexOf(o),1)}})}}),t.fn.extend({leanModal:function(e){return this.each(function(){var i=t.extend({starting_top:"4%"},e);t(this).click(function(e){i.starting_top=(t(this).offset().top-t(window).scrollTop())/1.15;var n=t(this).attr("href")||"#"+t(this).data("target");t(n).openModal(i),e.preventDefault()})})}})}(jQuery),function(t){t.fn.materialbox=function(){return this.each(function(){if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var e,i,n=!1,a=!0,o=200,r=t(this),s=t("").addClass("material-placeholder");r.wrap(s),r.on("click",function(){var o=r.parent(".material-placeholder"),s=window.innerWidth,u=window.innerHeight,c=r.width(),d=r.height();if(!1===a)return l(),!1;if(n&&!0===a)return l(),!1;a=!1,r.addClass("active"),n=!0,o.css({width:o[0].getBoundingClientRect().width,height:o[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),e=void 0,i=o[0].parentNode;for(;null!==i&&!t(i).is(document);){var p=t(i);"hidden"===p.css("overflow")&&(p.css("overflow","visible"),e=void 0===e?p:e.add(p)),i=i.parentNode}r.css({position:"absolute","z-index":1e3}).data("width",c).data("height",d);var f=t('').css({opacity:0}).click(function(){!0===a&&l()});if(t("body").append(f),f.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==r.data("caption")){var h=t('');h.text(r.data("caption")),t("body").append(h),h.css({display:"inline"}),h.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var v=0,g=0;c/s>d/u?(v=.9*s,g=.9*s*(d/c)):(v=.9*u*(c/d),g=.9*u),r.hasClass("responsive-img")?r.velocity({"max-width":v,width:c},{duration:0,queue:!1,complete:function(){r.css({left:0,top:0}).velocity({height:g,width:v,left:t(document).scrollLeft()+s/2-r.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+u/2-r.parent(".material-placeholder").offset().top-g/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){a=!0}})}}):r.css("left",0).css("top",0).velocity({height:g,width:v,left:t(document).scrollLeft()+s/2-r.parent(".material-placeholder").offset().left-v/2,top:t(document).scrollTop()+u/2-r.parent(".material-placeholder").offset().top-g/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){a=!0}})}),t(window).scroll(function(){n&&l()}),t(document).keyup(function(t){27===t.keyCode&&!0===a&&n&&l()})}function l(){a=!1;var i=r.parent(".material-placeholder"),s=(window.innerWidth,window.innerHeight,r.data("width")),l=r.data("height");r.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t("#materialbox-overlay").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){n=!1,t(this).remove()}}),r.velocity({width:s,height:l,left:0,top:0},{duration:o,queue:!1,easing:"easeOutQuad"}),t(".materialbox-caption").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){i.css({height:"",width:"",position:"",top:"",left:""}),r.css({height:"",top:"",left:"",width:"","max-width":"",position:"","z-index":""}),r.removeClass("active"),a=!0,t(this).remove(),e.css("overflow","")}})}})},t(document).ready(function(){t(".materialboxed").materialbox()})}(jQuery),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(i){var n=t(this);function a(i){var a;a=e<601?n.height()>0?n.height():n.children("img").height():n.height()>0?n.height():500;var o=n.children("img").first(),r=o.height()-a,s=n.offset().top+a,l=n.offset().top,u=t(window).scrollTop(),c=window.innerHeight,d=(u+c-l)/(a+c),p=Math.round(r*d);i&&o.css("display","block"),s>u&&l
");i.html(o),e.is(":visible")?i.css("width",e.width()):i.css("width",t(window).width()/2),e.css("height",i.height())}t(".materialize-textarea").each(function(){var e=t(this);e.val().length&&n(e)}),t("body").on("keyup keydown autoresize",".materialize-textarea",function(){n(t(this))}),t(document).on("change",'.file-field input[type="file"]',function(){for(var e=t(this).closest(".file-field").find("input.file-path"),i=t(this)[0].files,n=[],a=0;a