/*!
 * Materialize v0.97.6 (http://materializecss.com)
 * Copyright 2014-2015 Materialize
 * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
 */
var jQuery,Vel,threeSixtyPlayer,ThreeSixtyPlayer;void 0===jQuery&&(jQuery="function"==typeof require?$=require("jquery"):$);
/** @license
	Animator.js 1.1.9
	
	This library is released under the BSD license:

	Copyright (c) 2006, Bernard Sumption. All rights reserved.
	
	Redistribution and use in source and binary forms, with or without
	modification, are permitted provided that the following conditions are met:
	
	Redistributions of source code must retain the above copyright notice, this
	list of conditions and the following disclaimer. Redistributions in binary
	form must reproduce the above copyright notice, this list of conditions and
	the following disclaimer in the documentation and/or other materials
	provided with the distribution. Neither the name BernieCode nor
	the names of its contributors may be used to endorse or promote products
	derived from this software without specific prior written permission. 
	
	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
	AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
	ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
	ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
	DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
	SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
	CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
	LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
	OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
	DAMAGE.

*/
function Animator(t){this.setOptions(t);var e=this;this.timerDelegate=function(){e.onTimerEvent()},this.subjects=[],this.subjectScopes=[],this.target=0,this.state=0,this.lastTime=null}function NumericalStyleSubject(t,e,i,n,o){this.els=Animator.makeArray(t),"opacity"==e&&window.ActiveXObject?this.property="filter":this.property=Animator.camelize(e),this.from=parseFloat(i),this.to=parseFloat(n),this.units=null!=o?o:"px"}function ColorStyleSubject(t,e,i,n){this.els=Animator.makeArray(t),this.property=Animator.camelize(e),this.to=this.expandColor(n),this.from=this.expandColor(i),this.origFrom=i,this.origTo=n}function DiscreteStyleSubject(t,e,i,n,o){this.els=Animator.makeArray(t),this.property=Animator.camelize(e),this.from=i,this.to=n,this.threshold=o||.5}function CSSStyleSubject(t,e,i){if(t=Animator.makeArray(t),this.subjects=[],0!=t.length){var n,o,a,s,r,l,u,c;if(i)o=this.parseStyle(e,t[0]),n=this.parseStyle(i,t[0]);else for(a in o={},n=this.parseStyle(e,t[0]))o[a]=CSSStyleSubject.getStyle(t[0],a);for(a in o)o[a]==n[a]&&(delete o[a],delete n[a]);for(a in o){var d=String(o[a]),h=String(n[a]);if(null!=n[a]){if(u=ColorStyleSubject.parseColor(d))c=ColorStyleSubject.parseColor(h),l=ColorStyleSubject;else if(d.match(CSSStyleSubject.numericalRe)&&h.match(CSSStyleSubject.numericalRe)){u=parseFloat(d),c=parseFloat(h),l=NumericalStyleSubject,r=CSSStyleSubject.numericalRe.exec(d);var p=CSSStyleSubject.numericalRe.exec(h);s=null!=r[1]?r[1]:null!=p[1]?p[1]:p}else{if(!d.match(CSSStyleSubject.discreteRe)||!h.match(CSSStyleSubject.discreteRe)){window.DEBUG&&alert("Unrecognised format for value of "+a+": '"+o[a]+"'");continue}u=d,c=h,l=DiscreteStyleSubject,s=0}this.subjects[this.subjects.length]=new l(t,a,u,c,s)}else window.DEBUG&&alert("No to style provided for '"+a+'"')}}}function AnimatorChain(t,e){this.animators=t,this.setOptions(e);for(var i=0;i<this.animators.length;i++)this.listenTo(this.animators[i]);this.forwards=!1,this.current=0}function Accordion(t){this.setOptions(t);var e,i=this.options.initialSection;this.options.rememberance&&(e=document.location.hash.substring(1)),this.rememberanceTexts=[],this.ans=[];for(var n=this,o=0;o<this.options.sections.length;o++){var a=this.options.sections[o],s=new Animator(this.options.animatorOptions),r=this.options.from+this.options.shift*o,l=this.options.to+this.options.shift*o;s.addSubject(new NumericalStyleSubject(a,this.options.property,r,l,this.options.units)),s.jumpTo(0);var u=this.options.getActivator(a);u.index=o,u.onclick=function(){n.show(this.index)},this.ans[this.ans.length]=s,this.rememberanceTexts[o]=u.innerHTML.replace(/\s/g,""),this.rememberanceTexts[o]===e&&(i=o)}this.show(i)}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,o){return jQuery.easing[jQuery.easing.def](t,e,i,n,o)},easeInQuad:function(t,e,i,n,o){return n*(e/=o)*e+i},easeOutQuad:function(t,e,i,n,o){return-n*(e/=o)*(e-2)+i},easeInOutQuad:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,o){return n*(e/=o)*e*e+i},easeOutCubic:function(t,e,i,n,o){return n*((e=e/o-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,o){return n*(e/=o)*e*e*e+i},easeOutQuart:function(t,e,i,n,o){return-n*((e=e/o-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,o){return n*(e/=o)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,o){return n*((e=e/o-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,o){return(e/=o/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,o){return-n*Math.cos(e/o*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,o){return n*Math.sin(e/o*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,o){return-n/2*(Math.cos(Math.PI*e/o)-1)+i},easeInExpo:function(t,e,i,n,o){return 0==e?i:n*Math.pow(2,10*(e/o-1))+i},easeOutExpo:function(t,e,i,n,o){return e==o?i+n:n*(1-Math.pow(2,-10*e/o))+i},easeInOutExpo:function(t,e,i,n,o){return 0==e?i:e==o?i+n:(e/=o/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,o){return-n*(Math.sqrt(1-(e/=o)*e)-1)+i},easeOutCirc:function(t,e,i,n,o){return n*Math.sqrt(1-(e=e/o-1)*e)+i},easeInOutCirc:function(t,e,i,n,o){return(e/=o/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,o){var a=1.70158,s=0,r=n;if(0==e)return i;if(1==(e/=o))return i+n;if(s||(s=.3*o),r<Math.abs(n)){r=n;a=s/4}else a=s/(2*Math.PI)*Math.asin(n/r);return-r*Math.pow(2,10*(e-=1))*Math.sin((e*o-a)*(2*Math.PI)/s)+i},easeOutElastic:function(t,e,i,n,o){var a=1.70158,s=0,r=n;if(0==e)return i;if(1==(e/=o))return i+n;if(s||(s=.3*o),r<Math.abs(n)){r=n;a=s/4}else a=s/(2*Math.PI)*Math.asin(n/r);return r*Math.pow(2,-10*e)*Math.sin((e*o-a)*(2*Math.PI)/s)+n+i},easeInOutElastic:function(t,e,i,n,o){var a=1.70158,s=0,r=n;if(0==e)return i;if(2==(e/=o/2))return i+n;if(s||(s=o*(.3*1.5)),r<Math.abs(n)){r=n;a=s/4}else a=s/(2*Math.PI)*Math.asin(n/r);return 1>e?r*Math.pow(2,10*(e-=1))*Math.sin((e*o-a)*(2*Math.PI)/s)*-.5+i:r*Math.pow(2,-10*(e-=1))*Math.sin((e*o-a)*(2*Math.PI)/s)*.5+n+i},easeInBack:function(t,e,i,n,o,a){return null==a&&(a=1.70158),n*(e/=o)*e*((a+1)*e-a)+i},easeOutBack:function(t,e,i,n,o,a){return null==a&&(a=1.70158),n*((e=e/o-1)*e*((a+1)*e+a)+1)+i},easeInOutBack:function(t,e,i,n,o,a){return null==a&&(a=1.70158),(e/=o/2)<1?n/2*(e*e*((1+(a*=1.525))*e-a))+i:n/2*((e-=2)*e*((1+(a*=1.525))*e+a)+2)+i},easeInBounce:function(t,e,i,n,o){return n-jQuery.easing.easeOutBounce(t,o-e,0,n,o)+i},easeOutBounce:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*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,o){return o/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,n,o)+i:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,n,o)+.5*n+i}}),jQuery.extend(jQuery.easing,{easeInOutMaterial:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e+i:n/4*((e-=2)*e*e+2)+i}}),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(t){function e(t){var e=t.length,n=i.type(t);return"function"!==n&&!i.isWindow(t)&&(!(1!==t.nodeType||!e)||("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?o[s.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!a.call(t,"constructor")&&!a.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||a.call(t,e)},i.each=function(t,i,n){var o=0,a=t.length,s=e(t);if(n){if(s)for(;a>o&&!1!==i.apply(t[o],n);o++);else for(o in t)if(!1===i.apply(t[o],n))break}else if(s)for(;a>o&&!1!==i.call(t[o],o,t[o]);o++);else for(o in t)if(!1===i.call(t[o],o,t[o]))break;return t},i.data=function(t,e,o){if(void 0===o){var a=(s=t[i.expando])&&n[s];if(void 0===e)return a;if(a&&e in a)return a[e]}else if(void 0!==e){var s=t[i.expando]||(t[i.expando]=++i.uuid);return n[s]=n[s]||{},n[s][e]=o,o}},i.removeData=function(t,e){var o=t[i.expando],a=o&&n[o];a&&i.each(e,(function(t,e){delete a[e]}))},i.extend=function(){var t,e,n,o,a,s,r=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[l]||{},l++),"object"!=typeof r&&"function"!==i.type(r)&&(r={}),l===u&&(r=this,l--);u>l;l++)if(null!=(a=arguments[l]))for(o in a)t=r[o],r!==(n=a[o])&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,s=t&&i.isArray(t)?t:[]):s=t&&i.isPlainObject(t)?t:{},r[o]=i.extend(c,s,n)):void 0!==n&&(r[o]=n));return r},i.queue=function(t,n,o){if(t){n=(n||"fx")+"queue";var a=i.data(t,n);return o?(!a||i.isArray(o)?a=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,o=t.length;i>n;)t[o++]=e[n++];if(i!=i)for(;void 0!==e[n];)t[o++]=e[n++];t.length=o}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}(o)):a.push(o),a):a||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,(function(t,n){e=e||"fx";var o=i.queue(n,e),a=o.shift();"inprogress"===a&&(a=o.shift()),a&&("fx"===e&&o.unshift("inprogress"),a.call(n,(function(){i.dequeue(n,e)})))}))},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),n=this.offset(),o=/^(?: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&&(o.top+=parseFloat(t.style.borderTopWidth)||0,o.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-o.top,left:n.left-o.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var o={},a=o.hasOwnProperty,s=o.toString,r="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<r.length;l++)o["[object "+r[l]+"]"]=r[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 o(t){return f.isWrapped(t)?t=[].slice.call(t):f.isNode(t)&&(t=[t]),t}function a(t){var e=d.data(t,"velocity");return null===e?n:e}function s(t){return function(e){return Math.round(e*t)*(1/t)}}function r(t,i,n,o){function a(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function r(t){return 3*t}function l(t,e,i){return((a(e,i)*t+s(e,i))*t+r(e))*t}function u(t,e,i){return 3*a(e,i)*t*t+2*s(e,i)*t+r(e)}function c(e,i){for(var o=0;m>o;++o){var a=u(i,t,n);if(0===a)return i;i-=(l(i,t,n)-e)/a}return i}function d(){for(var e=0;b>e;++e)x[e]=l(e*w,t,n)}function h(e,i,o){var a,s,r=0;do{(a=l(s=i+(o-i)/2,t,n)-e)>0?o=s:i=s}while(Math.abs(a)>v&&++r<y);return s}function p(e){for(var i=0,o=1,a=b-1;o!=a&&x[o]<=e;++o)i+=w;--o;var s=i+(e-x[o])/(x[o+1]-x[o])*w,r=u(s,t,n);return r>=g?c(e,s):0==r?s:h(e,i,i+w)}function f(){k=!0,(t!=i||n!=o)&&d()}var m=4,g=.001,v=1e-7,y=10,b=11,w=1/(b-1),S="Float32Array"in e;if(4!==arguments.length)return!1;for(var C=0;4>C;++C)if("number"!=typeof arguments[C]||isNaN(arguments[C])||!isFinite(arguments[C]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var x=S?new Float32Array(b):new Array(b),k=!1,T=function(e){return k||f(),t===i&&n===o?e:0===e?0:1===e?1:l(p(e),i,o)};T.getControlPoints=function(){return[{x:t,y:i},{x:n,y:o}]};var _="generateBezier("+[t,i,n,o]+")";return T.toString=function(){return _},T}function l(t,e){var i=t;return f.isString(t)?y.Easings[t]||(i=!1):i=f.isArray(t)&&1===t.length?s.apply(null,t):f.isArray(t)&&2===t.length?b.apply(null,t.concat([e])):!(!f.isArray(t)||4!==t.length)&&r.apply(null,t),!1===i&&(i=y.Easings[y.defaults.easing]?y.defaults.easing:v),i}function u(t){if(t){var e=(new Date).getTime(),i=y.State.calls.length;i>1e4&&(y.State.calls=function(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var o=t[e];o&&n.push(o)}return n}(y.State.calls));for(var o=0;i>o;o++)if(y.State.calls[o]){var s=y.State.calls[o],r=s[0],l=s[2],h=s[3],p=!!h,m=null;h||(h=y.State.calls[o][3]=e-16);for(var g=Math.min((e-h)/l.duration,1),v=0,b=r.length;b>v;v++){var S=r[v],x=S.element;if(a(x)){var k=!1;if(l.display!==n&&null!==l.display&&"none"!==l.display){if("flex"===l.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(t,e){w.setPropertyValue(x,"display",e)}))}w.setPropertyValue(x,"display",l.display)}for(var T in l.visibility!==n&&"hidden"!==l.visibility&&w.setPropertyValue(x,"visibility",l.visibility),S)if("element"!==T){var _,O=S[T],P=f.isString(O.easing)?y.Easings[O.easing]:O.easing;if(1===g)_=O.endValue;else{var M=O.endValue-O.startValue;if(_=O.startValue+M*P(g,l,M),!p&&_===O.currentValue)continue}if(O.currentValue=_,"tween"===T)m=_;else{if(w.Hooks.registered[T]){var A=w.Hooks.getRoot(T),E=a(x).rootPropertyValueCache[A];E&&(O.rootPropertyValue=E)}var D=w.setPropertyValue(x,T,O.currentValue+(0===parseFloat(_)?"":O.unitType),O.rootPropertyValue,O.scrollData);w.Hooks.registered[T]&&(a(x).rootPropertyValueCache[A]=w.Normalizations.registered[A]?w.Normalizations.registered[A]("extract",null,D[1]):D[1]),"transform"===D[0]&&(k=!0)}}l.mobileHA&&a(x).transformCache.translate3d===n&&(a(x).transformCache.translate3d="(0px, 0px, 0px)",k=!0),k&&w.flushTransformCache(x)}}l.display!==n&&"none"!==l.display&&(y.State.calls[o][2].display=!1),l.visibility!==n&&"hidden"!==l.visibility&&(y.State.calls[o][2].visibility=!1),l.progress&&l.progress.call(s[1],s[1],g,Math.max(0,h+l.duration-e),h,m),1===g&&c(o)}}y.State.isTicking&&C(u)}function c(t,e){if(!y.State.calls[t])return!1;for(var i=y.State.calls[t][0],o=y.State.calls[t][1],s=y.State.calls[t][2],r=y.State.calls[t][4],l=!1,u=0,c=i.length;c>u;u++){var h=i[u].element;if(e||s.loop||("none"===s.display&&w.setPropertyValue(h,"display",s.display),"hidden"===s.visibility&&w.setPropertyValue(h,"visibility",s.visibility)),!0!==s.loop&&(d.queue(h)[1]===n||!/\.velocityQueueEntryFlag/i.test(d.queue(h)[1]))&&a(h)){a(h).isAnimating=!1,a(h).rootPropertyValueCache={};var p=!1;d.each(w.Lists.transforms3D,(function(t,e){var i=/^scale/.test(e)?1:0,o=a(h).transformCache[e];a(h).transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(o)&&(p=!0,delete a(h).transformCache[e])})),s.mobileHA&&(p=!0,delete a(h).transformCache.translate3d),p&&w.flushTransformCache(h),w.Values.removeClass(h,"velocity-animating")}if(!e&&s.complete&&!s.loop&&u===c-1)try{s.complete.call(o,o)}catch(t){setTimeout((function(){throw t}),1)}r&&!0!==s.loop&&r(o),a(h)&&!0===s.loop&&!e&&(d.each(a(h).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)})),y(h,"reverse",{loop:!0,delay:s.delay})),!1!==s.queue&&d.dequeue(h,s.queue)}y.State.calls[t]=!1;for(var f=0,m=y.State.calls.length;m>f;f++)if(!1!==y.State.calls[f]){l=!0;break}!1===l&&(y.State.isTicking=!1,delete y.State.calls,y.State.calls=[])}var d,h=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+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return n}(),p=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)}}(),f={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}},m=!1;if(t.fn&&t.fn.jquery?(d=t,m=!0):d=e.Velocity.Utilities,8>=h&&!m)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=h)){var g=400,v="swing",y={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:d,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:g,easing:v,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){d.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?(y.State.scrollAnchor=e,y.State.scrollPropertyLeft="pageXOffset",y.State.scrollPropertyTop="pageYOffset"):(y.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,y.State.scrollPropertyLeft="scrollLeft",y.State.scrollPropertyTop="scrollTop");var b=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var o={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:o.v,dv:t(o)}}function i(i,n){var o={dx:i.v,dv:t(i)},a=e(i,.5*n,o),s=e(i,.5*n,a),r=e(i,n,s),l=1/6*(o.dx+2*(a.dx+s.dx)+r.dx),u=1/6*(o.dv+2*(a.dv+s.dv)+r.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function t(e,n,o){var a,s,r,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4;for(e=parseFloat(e)||500,n=parseFloat(n)||20,o=o||null,l.tension=e,l.friction=n,(a=null!==o)?s=(c=t(e,n))/o*.016:s=.016;r=i(r||l,s),u.push(1+r.x),c+=16,Math.abs(r.x)>d&&Math.abs(r.v)>d;);return a?function(t){return u[t*(u.length-1)|0]}:c}}();y.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)}},d.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){y.Easings[e[0]]=r.apply(null,e[1])}));var w=y.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<w.Lists.colors.length;t++){var e="color"===w.Lists.colors[t]?"0 0 0 1":"255 255 255 1";w.Hooks.templates[w.Lists.colors[t]]=["Red Green Blue Alpha",e]}var i,n,o;if(h)for(i in w.Hooks.templates){o=(n=w.Hooks.templates[i])[0].split(" ");var a=n[1].match(w.RegEx.valueSplit);"Color"===o[0]&&(o.push(o.shift()),a.push(a.shift()),w.Hooks.templates[i]=[o.join(" "),a.join(" ")])}for(i in w.Hooks.templates)for(var t in o=(n=w.Hooks.templates[i])[0].split(" ")){var s=i+o[t],r=t;w.Hooks.registered[s]=[i,r]}},getRoot:function(t){var e=w.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return w.RegEx.valueUnwrap.test(e)&&(e=e.match(w.RegEx.valueUnwrap)[1]),w.Values.isCSSNullValue(e)&&(e=w.Hooks.templates[t][1]),e},extractValue:function(t,e){var i=w.Hooks.registered[t];if(i){var n=i[0],o=i[1];return(e=w.Hooks.cleanRootPropertyValue(n,e)).toString().match(w.RegEx.valueSplit)[o]}return e},injectValue:function(t,e,i){var n=w.Hooks.registered[t];if(n){var o,a=n[0],s=n[1];return(o=(i=w.Hooks.cleanRootPropertyValue(a,i)).toString().match(w.RegEx.valueSplit))[s]=e,o.join(" ")}return i}},Normalizations:{registered:{clip:function(t,e,i){switch(t){case"name":return"clip";case"extract":var n;return w.RegEx.wrappedValueAlreadyExtracted.test(i)?n=i:n=(n=i.toString().match(w.RegEx.valueUnwrap))?n[1].replace(/,(\s+)?/g," "):i,n;case"inject":return"rect("+i+")"}},blur:function(t,e,i){switch(t){case"name":return y.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var o=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=o?o[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(8>=h)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>=h||y.State.isGingerbread||(w.Lists.transformsBase=w.Lists.transformsBase.concat(w.Lists.transforms3D));for(var t=0;t<w.Lists.transformsBase.length;t++)!function(){var e=w.Lists.transformsBase[t];w.Normalizations.registered[e]=function(t,i,o){switch(t){case"name":return"transform";case"extract":return a(i)===n||a(i).transformCache[e]===n?/^scale/i.test(e)?1:0:a(i).transformCache[e].replace(/[()]/g,"");case"inject":var s=!1;switch(e.substr(0,e.length-1)){case"translate":s=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":y.State.isAndroid&&a(i).transformCache[e]===n&&1>o&&(o=1),s=!/(\d)$/i.test(o);break;case"skew":s=!/(deg|\d)$/i.test(o);break;case"rotate":s=!/(deg|\d)$/i.test(o)}return s||(a(i).transformCache[e]="("+o+")"),a(i).transformCache[e]}}}();for(t=0;t<w.Lists.colors.length;t++)!function(){var e=w.Lists.colors[t];w.Normalizations.registered[e]=function(t,i,o){switch(t){case"name":return e;case"extract":var a;if(w.RegEx.wrappedValueAlreadyExtracted.test(o))a=o;else{var s,r={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(o)?s=r[o]!==n?r[o]:r.black:w.RegEx.isHex.test(o)?s="rgb("+w.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(s=r.black),a=(s||o).toString().match(w.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=h||3!==a.split(" ").length||(a+=" 1"),a;case"inject":return 8>=h?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(8>=h?"rgb":"rgba")+"("+o.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(h||y.State.isAndroid&&!y.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(y.State.prefixMatches[t])return[y.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,n=e.length;n>i;i++){var o;if(o=0===i?t:e[i]+t.replace(/^\w/,(function(t){return t.toUpperCase()})),f.isString(y.State.prefixElement.style[o]))return y.State.prefixMatches[t]=o,[o,!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,o,s){function r(t,i){function o(){c&&w.setPropertyValue(t,"display","none")}var l=0;if(8>=h)l=d.css(t,i);else{var u,c=!1;if(/^(width|height)$/.test(i)&&0===w.getPropertyValue(t,"display")&&(c=!0,w.setPropertyValue(t,"display",w.Values.getDisplayType(t))),!s){if("height"===i&&"border-box"!==w.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var p=t.offsetHeight-(parseFloat(w.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(w.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(w.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(w.getPropertyValue(t,"paddingBottom"))||0);return o(),p}if("width"===i&&"border-box"!==w.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var f=t.offsetWidth-(parseFloat(w.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(w.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(w.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(w.getPropertyValue(t,"paddingRight"))||0);return o(),f}}u=a(t)===n?e.getComputedStyle(t,null):a(t).computedStyle?a(t).computedStyle:a(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),(""===(l=9===h&&"filter"===i?u.getPropertyValue(i):u[i])||null===l)&&(l=t.style[i]),o()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var m=r(t,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(i))&&(l=d(t).position()[i]+"px")}return l}var l;if(w.Hooks.registered[i]){var u=i,c=w.Hooks.getRoot(u);o===n&&(o=w.getPropertyValue(t,w.Names.prefixCheck(c)[0])),w.Normalizations.registered[c]&&(o=w.Normalizations.registered[c]("extract",t,o)),l=w.Hooks.extractValue(u,o)}else if(w.Normalizations.registered[i]){var p,f;"transform"!==(p=w.Normalizations.registered[i]("name",t))&&(f=r(t,w.Names.prefixCheck(p)[0]),w.Values.isCSSNullValue(f)&&w.Hooks.templates[i]&&(f=w.Hooks.templates[i][1])),l=w.Normalizations.registered[i]("extract",t,f)}if(!/^[\d-]/.test(l))if(a(t)&&a(t).isSVG&&w.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=r(t,w.Names.prefixCheck(i)[0]);return w.Values.isCSSNullValue(l)&&(l=0),y.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,n,o,s){var r=i;if("scroll"===i)s.container?s.container["scroll"+s.direction]=n:"Left"===s.direction?e.scrollTo(n,s.alternateValue):e.scrollTo(s.alternateValue,n);else if(w.Normalizations.registered[i]&&"transform"===w.Normalizations.registered[i]("name",t))w.Normalizations.registered[i]("inject",t,n),r="transform",n=a(t).transformCache[i];else{if(w.Hooks.registered[i]){var l=i,u=w.Hooks.getRoot(i);o=o||w.getPropertyValue(t,u),n=w.Hooks.injectValue(l,n,o),i=u}if(w.Normalizations.registered[i]&&(n=w.Normalizations.registered[i]("inject",t,n),i=w.Normalizations.registered[i]("name",t)),r=w.Names.prefixCheck(i)[0],8>=h)try{t.style[r]=n}catch(t){y.debug&&console.log("Browser does not support ["+n+"] for ["+r+"]")}else a(t)&&a(t).isSVG&&w.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[r]=n;y.debug>=2&&console.log("Set "+i+" ("+r+"): "+n)}return[r,n]},flushTransformCache:function(t){function e(e){return parseFloat(w.getPropertyValue(t,e))}var i="";if((h||y.State.isAndroid&&!y.State.isChrome)&&a(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]};d.each(a(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 o,s;d.each(a(t).transformCache,(function(e){return o=a(t).transformCache[e],"transformPerspective"===e?(s=o,!0):(9===h&&"rotateZ"===e&&(e="rotate"),void(i+=e+o+" "))})),s&&(i="perspective"+s+" "+i)}w.setPropertyValue(t,"transform",i)}};w.Hooks.register(),w.Normalizations.register(),y.hook=function(t,e,i){var s=n;return t=o(t),d.each(t,(function(t,o){if(a(o)===n&&y.init(o),i===n)s===n&&(s=y.CSS.getPropertyValue(o,e));else{var r=y.CSS.setPropertyValue(o,e,i);"transform"===r[0]&&y.CSS.flushTransformCache(o),s=r}})),s};var S=function(){function t(){return r?P.promise||null:h}function s(){function t(t){function h(t,e){var i=n,o=n,a=n;return f.isArray(t)?(i=t[0],!f.isArray(t[1])&&/^[\d-]/.test(t[1])||f.isFunction(t[1])||w.RegEx.isHex.test(t[1])?a=t[1]:(f.isString(t[1])&&!w.RegEx.isHex.test(t[1])||f.isArray(t[1]))&&(o=e?t[1]:l(t[1],r.duration),t[2]!==n&&(a=t[2]))):i=t,e||(o=o||r.easing),f.isFunction(i)&&(i=i.call(s,k,x)),f.isFunction(a)&&(a=a.call(s,k,x)),[i||0,o,a]}function p(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(t){return i=t,""})),i||(i=w.Values.getUnitType(t)),[n,i]}function g(){var t={myParent:s.parentNode||i.body,position:w.getPropertyValue(s,"position"),fontSize:w.getPropertyValue(s,"fontSize")},n=t.position===q.lastPosition&&t.myParent===q.lastParent,o=t.fontSize===q.lastFontSize;q.lastParent=t.myParent,q.lastPosition=t.position,q.lastFontSize=t.fontSize;var r=100,l={};if(o&&n)l.emToPx=q.lastEmToPx,l.percentToPxWidth=q.lastPercentToPxWidth,l.percentToPxHeight=q.lastPercentToPxHeight;else{var u=a(s).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");y.init(u),t.myParent.appendChild(u),d.each(["overflow","overflowX","overflowY"],(function(t,e){y.CSS.setPropertyValue(u,e,"hidden")})),y.CSS.setPropertyValue(u,"position",t.position),y.CSS.setPropertyValue(u,"fontSize",t.fontSize),y.CSS.setPropertyValue(u,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(t,e){y.CSS.setPropertyValue(u,e,"100%")})),y.CSS.setPropertyValue(u,"paddingLeft","100em"),l.percentToPxWidth=q.lastPercentToPxWidth=(parseFloat(w.getPropertyValue(u,"width",null,!0))||1)/r,l.percentToPxHeight=q.lastPercentToPxHeight=(parseFloat(w.getPropertyValue(u,"height",null,!0))||1)/r,l.emToPx=q.lastEmToPx=(parseFloat(w.getPropertyValue(u,"paddingLeft"))||1)/r,t.myParent.removeChild(u)}return null===q.remToPx&&(q.remToPx=parseFloat(w.getPropertyValue(i.body,"fontSize"))||16),null===q.vwToPx&&(q.vwToPx=parseFloat(e.innerWidth)/100,q.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=q.remToPx,l.vwToPx=q.vwToPx,l.vhToPx=q.vhToPx,y.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),s),l}if(r.begin&&0===k)try{r.begin.call(m,m)}catch(t){setTimeout((function(){throw t}),1)}if("scroll"===O){var S,C,T,_=/^x$/i.test(r.axis)?"Left":"Top",M=parseFloat(r.offset)||0;r.container?f.isWrapped(r.container)||f.isNode(r.container)?(r.container=r.container[0]||r.container,
T=(S=r.container["scroll"+_])+d(s).position()[_.toLowerCase()]+M):r.container=null:(S=y.State.scrollAnchor[y.State["scrollProperty"+_]],C=y.State.scrollAnchor[y.State["scrollProperty"+("Left"===_?"Top":"Left")]],T=d(s).offset()[_.toLowerCase()]+M),c={scroll:{rootPropertyValue:!1,startValue:S,currentValue:S,endValue:T,unitType:"",easing:r.easing,scrollData:{container:r.container,direction:_,alternateValue:C}},element:s},y.debug&&console.log("tweensContainer (scroll): ",c.scroll,s)}else if("reverse"===O){if(!a(s).tweensContainer)return void d.dequeue(s,r.queue);"none"===a(s).opts.display&&(a(s).opts.display="auto"),"hidden"===a(s).opts.visibility&&(a(s).opts.visibility="visible"),a(s).opts.loop=!1,a(s).opts.begin=null,a(s).opts.complete=null,b.easing||delete r.easing,b.duration||delete r.duration,r=d.extend({},a(s).opts,r);var A=d.extend(!0,{},a(s).tweensContainer);for(var E in A)if("element"!==E){var D=A[E].startValue;A[E].startValue=A[E].currentValue=A[E].endValue,A[E].endValue=D,f.isEmptyObject(b)||(A[E].easing=r.easing),y.debug&&console.log("reverse tweensContainer ("+E+"): "+JSON.stringify(A[E]),s)}c=A}else if("start"===O){for(var I in a(s).tweensContainer&&!0===a(s).isAnimating&&(A=a(s).tweensContainer),d.each(v,(function(t,e){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(t)){var i=h(e,!0),o=i[0],a=i[1],s=i[2];if(w.RegEx.isHex.test(o)){for(var r=["Red","Green","Blue"],l=w.Values.hexToRgb(o),u=s?w.Values.hexToRgb(s):n,c=0;c<r.length;c++){var d=[l[c]];a&&d.push(a),u!==n&&d.push(u[c]),v[t+r[c]]=d}delete v[t]}}})),v){var $=h(v[I]),j=$[0],N=$[1],H=$[2];I=w.Names.camelCase(I);var F=w.Hooks.getRoot(I),R=!1;if(a(s).isSVG||"tween"===F||!1!==w.Names.prefixCheck(F)[1]||w.Normalizations.registered[F]!==n){(r.display!==n&&null!==r.display&&"none"!==r.display||r.visibility!==n&&"hidden"!==r.visibility)&&/opacity|filter/.test(I)&&!H&&0!==j&&(H=0),r._cacheValues&&A&&A[I]?(H===n&&(H=A[I].endValue+A[I].unitType),R=a(s).rootPropertyValueCache[F]):w.Hooks.registered[I]?H===n?(R=w.getPropertyValue(s,F),H=w.getPropertyValue(s,I,R)):R=w.Hooks.templates[F][1]:H===n&&(H=w.getPropertyValue(s,I));var z,V,B,W=!1;if(H=(z=p(I,H))[0],B=z[1],j=(z=p(I,j))[0].replace(/^([+-\/*])=/,(function(t,e){return W=e,""})),V=z[1],H=parseFloat(H)||0,j=parseFloat(j)||0,"%"===V&&(/^(fontSize|lineHeight)$/.test(I)?(j/=100,V="em"):/^scale/.test(I)?(j/=100,V=""):/(Red|Green|Blue)$/i.test(I)&&(j=j/100*255,V="")),/[\/*]/.test(W))V=B;else if(B!==V&&0!==H)if(0===j)V=B;else{o=o||g();var Q=/margin|padding|left|right|width|text|word|letter/i.test(I)||/X$/.test(I)||"x"===I?"x":"y";switch(B){case"%":H*="x"===Q?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:H*=o[B+"ToPx"]}switch(V){case"%":H*=1/("x"===Q?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:H*=1/o[V+"ToPx"]}}switch(W){case"+":j=H+j;break;case"-":j=H-j;break;case"*":j*=H;break;case"/":j=H/j}c[I]={rootPropertyValue:R,startValue:H,currentValue:H,endValue:j,unitType:V,easing:N},y.debug&&console.log("tweensContainer ("+I+"): "+JSON.stringify(c[I]),s)}else y.debug&&console.log("Skipping ["+F+"] due to a lack of browser support.")}c.element=s}c.element&&(w.Values.addClass(s,"velocity-animating"),L.push(c),""===r.queue&&(a(s).tweensContainer=c,a(s).opts=r),a(s).isAnimating=!0,k===x-1?(y.State.calls.push([L,m,r,null,P.resolver]),!1===y.State.isTicking&&(y.State.isTicking=!0,u())):k++)}var o,s=this,r=d.extend({},y.defaults,b),c={};switch(a(s)===n&&y.init(s),parseFloat(r.delay)&&!1!==r.queue&&d.queue(s,r.queue,(function(t){y.velocityQueueEntryFlag=!0,a(s).delayTimer={setTimeout:setTimeout(t,parseFloat(r.delay)),next:t}})),r.duration.toString().toLowerCase()){case"fast":r.duration=200;break;case"normal":r.duration=g;break;case"slow":r.duration=600;break;default:r.duration=parseFloat(r.duration)||1}!1!==y.mock&&(!0===y.mock?r.duration=r.delay=1:(r.duration*=parseFloat(y.mock)||1,r.delay*=parseFloat(y.mock)||1)),r.easing=l(r.easing,r.duration),r.begin&&!f.isFunction(r.begin)&&(r.begin=null),r.progress&&!f.isFunction(r.progress)&&(r.progress=null),r.complete&&!f.isFunction(r.complete)&&(r.complete=null),r.display!==n&&null!==r.display&&(r.display=r.display.toString().toLowerCase(),"auto"===r.display&&(r.display=y.CSS.Values.getDisplayType(s))),r.visibility!==n&&null!==r.visibility&&(r.visibility=r.visibility.toString().toLowerCase()),r.mobileHA=r.mobileHA&&y.State.isMobile&&!y.State.isGingerbread,!1===r.queue?r.delay?setTimeout(t,r.delay):t():d.queue(s,r.queue,(function(e,i){return!0===i?(P.promise&&P.resolver(m),!0):(y.velocityQueueEntryFlag=!0,void t())})),""!==r.queue&&"fx"!==r.queue||"inprogress"===d.queue(s)[0]||d.dequeue(s)}var r,h,p,m,v,b,C=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||f.isString(arguments[0].properties));if(f.isWrapped(this)?(r=!1,p=0,m=this,h=this):(r=!0,p=1,m=C?arguments[0].elements||arguments[0].e:arguments[0]),m=o(m)){C?(v=arguments[0].properties||arguments[0].p,b=arguments[0].options||arguments[0].o):(v=arguments[p],b=arguments[p+1]);var x=m.length,k=0;if(!/^(stop|finish)$/i.test(v)&&!d.isPlainObject(b)){var T=p+1;b={};for(var _=T;_<arguments.length;_++)f.isArray(arguments[_])||!/^(fast|normal|slow)$/i.test(arguments[_])&&!/^\d/.test(arguments[_])?f.isString(arguments[_])||f.isArray(arguments[_])?b.easing=arguments[_]:f.isFunction(arguments[_])&&(b.complete=arguments[_]):b.duration=arguments[_]}var O,P={promise:null,resolver:null,rejecter:null};switch(r&&y.Promise&&(P.promise=new y.Promise((function(t,e){P.resolver=t,P.rejecter=e}))),v){case"scroll":O="scroll";break;case"reverse":O="reverse";break;case"finish":case"stop":d.each(m,(function(t,e){a(e)&&a(e).delayTimer&&(clearTimeout(a(e).delayTimer.setTimeout),a(e).delayTimer.next&&a(e).delayTimer.next(),delete a(e).delayTimer)}));var M=[];return d.each(y.State.calls,(function(t,e){e&&d.each(e[1],(function(i,o){var s=b===n?"":b;return!0!==s&&e[2].queue!==s&&(b!==n||!1!==e[2].queue)||void d.each(m,(function(i,n){n===o&&((!0===b||f.isString(b))&&(d.each(d.queue(n,f.isString(b)?b:""),(function(t,e){f.isFunction(e)&&e(null,!0)})),d.queue(n,f.isString(b)?b:"",[])),"stop"===v?(a(n)&&a(n).tweensContainer&&!1!==s&&d.each(a(n).tweensContainer,(function(t,e){e.endValue=e.currentValue})),M.push(t)):"finish"===v&&(e[2].duration=1))}))}))})),"stop"===v&&(d.each(M,(function(t,e){c(e,!0)})),P.promise&&P.resolver(m)),t();default:if(!d.isPlainObject(v)||f.isEmptyObject(v)){if(f.isString(v)&&y.Redirects[v]){var A=($=d.extend({},b)).duration,E=$.delay||0;return!0===$.backwards&&(m=d.extend(!0,[],m).reverse()),d.each(m,(function(t,e){parseFloat($.stagger)?$.delay=E+parseFloat($.stagger)*t:f.isFunction($.stagger)&&($.delay=E+$.stagger.call(e,t,x)),$.drag&&($.duration=parseFloat(A)||(/^(callout|transition)/.test(v)?1e3:g),$.duration=Math.max($.duration*($.backwards?1-t/x:(t+1)/x),.75*$.duration,200)),y.Redirects[v].call(e,e,$||{},t,x,m,P.promise?P:n)})),t()}var D="Velocity: First argument ("+v+") was not a property map, a known action, or a registered redirect. Aborting.";return P.promise?P.rejecter(new Error(D)):console.log(D),t()}O="start"}var I,$,q={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},L=[];if(d.each(m,(function(t,e){f.isNode(e)&&s.call(e)})),($=d.extend({},y.defaults,b)).loop=parseInt($.loop),I=2*$.loop-1,$.loop)for(var j=0;I>j;j++){var N={delay:$.delay,progress:$.progress};j===I-1&&(N.display=$.display,N.visibility=$.visibility,N.complete=$.complete),S(m,"reverse",N)}return t()}};(y=d.extend(S,y)).animate=S;var C=e.requestAnimationFrame||p;return y.State.isMobile||i.hidden===n||i.addEventListener("visibilitychange",(function(){i.hidden?(C=function(t){return setTimeout((function(){t(!0)}),16)},u()):C=e.requestAnimationFrame||p})),t.Velocity=y,t!==e&&(t.fn.velocity=S,t.fn.velocity.defaults=y.defaults),d.each(["Down","Up"],(function(t,e){y.Redirects["slide"+e]=function(t,i,o,a,s,r){var l=d.extend({},i),u=l.begin,c=l.complete,h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};l.display===n&&(l.display="Down"===e?"inline"===y.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){for(var i in u&&u.call(s,s),h){p[i]=t.style[i];var n=y.CSS.getPropertyValue(t,i);h[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(s,s),r&&r.resolver(s)},y(t,h,l)}})),d.each(["In","Out"],(function(t,e){y.Redirects["fade"+e]=function(t,i,o,a,s,r){var l=d.extend({},i),u={opacity:"In"===e?1:0},c=l.complete;l.complete=o!==a-1?l.begin=null:function(){c&&c.call(s,s),r&&r.resolver(s)},l.display===n&&(l.display="In"===e?"auto":"none"),y(this,u,l)}})),y}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)}))),function(t,e,i,n){"use strict";function o(t,e,i){return setTimeout(c(t,i),e)}function a(t,e,i){return!!Array.isArray(t)&&(s(t,i[e],i),!0)}function s(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(o=0;o<t.length;)e.call(i,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function r(t,e,i){for(var o=Object.keys(e),a=0;a<o.length;)(!i||i&&t[o[a]]===n)&&(t[o[a]]=e[o[a]]),a++;return t}function l(t,e){return r(t,e,!0)}function u(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&r(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==et?t.apply(e&&e[0]||n,e):t}function h(t,e){return t===n?e:t}function p(t,e,i){s(v(e),(function(e){t.addEventListener(e,i,!1)}))}function f(t,e,i){s(v(e),(function(e){t.removeEventListener(e,i,!1)}))}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function v(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=[],o=[],a=0;a<t.length;){var s=e?t[a][e]:t[a];y(o,s)<0&&n.push(t[a]),o[a]=s,a++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function S(t,e){for(var i,o,a=e[0].toUpperCase()+e.slice(1),s=0;s<K.length;){if((o=(i=K[s])?i+a:e)in t)return o;s++}return n}function C(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function x(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 k(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,a=e&ht&&0==n-o,s=e&(ft|mt)&&0==n-o;i.isFirst=!!a,i.isFinal=!!s,a&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=_(e)),o>1&&!i.firstMultiple?i.firstMultiple=_(e):1===o&&(i.firstMultiple=!1);var a=i.firstInput,s=i.firstMultiple,r=s?s.center:a.center,l=e.center=O(n);e.timeStamp=ot(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=A(r,l),e.distance=M(r,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},a=t.prevInput||{};(e.eventType===ht||a.eventType===ft)&&(o=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=P(e.deltaX,e.deltaY),e.scale=s?function(t,e){return M(e[0],e[1],Tt)/M(t[0],t[1],Tt)}(s.pointers,n):1,e.rotation=s?function(t,e){return A(e[1],e[0],Tt)-A(t[1],t[0],Tt)}(s.pointers,n):0,T(i,e);var u=t.element;m(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 T(t,e){var i,o,a,s,r=t.lastInterval||e,l=e.timeStamp-r.timeStamp;if(e.eventType!=mt&&(l>dt||r.velocity===n)){var u=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,d=function(t,e,i){return{x:e/t||0,y:i/t||0}}(l,u,c);o=d.x,a=d.y,i=nt(d.x)>nt(d.y)?d.x:d.y,s=P(u,c),t.lastInterval=e}else i=r.velocity,o=r.velocityX,a=r.velocityY,s=r.direction;e.velocity=i,e.velocityX=o,e.velocityY=a,e.direction=s}function _(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:it(t.pointers[i].clientX),clientY:it(t.pointers[i].clientY)},i++;return{timeStamp:ot(),pointers:e,center:O(e),deltaX:t.deltaX,deltaY:t.deltaY}}function O(t){var e=t.length;if(1===e)return{x:it(t[0].clientX),y:it(t[0].clientY)};for(var i=0,n=0,o=0;e>o;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:it(i/e),y:it(n/e)}}function P(t,e){return t===e?gt:nt(t)>=nt(e)?t>0?vt:yt:e>0?bt:wt}function M(t,e,i){i||(i=kt);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function A(t,e,i){i||(i=kt);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function E(){this.evEl=Ot,this.evWin=Pt,this.allow=!0,this.pressed=!1,x.apply(this,arguments)}function D(){this.evEl=Et,this.evWin=Dt,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function I(){this.evTarget=$t,this.evWin=qt,this.started=!1,x.apply(this,arguments)}function $(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(ft|mt)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}function q(){this.evTarget=jt,this.targetIds={},x.apply(this,arguments)}function L(t,e){var i=b(t.touches),n=this.targetIds;if(e&(ht|pt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,a,s=b(t.changedTouches),r=[],l=this.target;if(a=i.filter((function(t){return m(t.target,l)})),e===ht)for(o=0;o<a.length;)n[a[o].identifier]=!0,o++;for(o=0;o<s.length;)n[s[o].identifier]&&r.push(s[o]),e&(ft|mt)&&delete n[s[o].identifier],o++;return r.length?[w(a.concat(r),"identifier",!0),r]:void 0}function j(){x.apply(this,arguments);var t=c(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new E(this.manager,t)}function N(t,e){this.manager=t,this.set(e)}function H(t){this.id=at++,this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=h(this.options.enable,!0),this.state=Qt,this.simultaneous={},this.requireFail=[]}function F(t){return t==wt?"down":t==bt?"up":t==vt?"left":t==yt?"right":""}function R(t,e){var i=e.manager;return i?i.get(t):t}function z(){H.apply(this,arguments)}function V(){z.apply(this,arguments),this.pX=null,this.pY=null}function B(){z.apply(this,arguments)}function W(){H.apply(this,arguments),this._timer=null,this._input=null}function Q(){z.apply(this,arguments)}function X(){z.apply(this,arguments)}function U(){H.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=h(e.recognizers,Y.defaults.preset),new G(t,e)}function G(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||(rt?D:lt?q:st?j:E))(t,k)}(this),this.touchAction=new N(this,this.options.touchAction),Z(this,!0),s(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 Z(t,e){var i=t.element;s(t.options.cssProps,(function(t,n){i.style[S(i.style,n)]=e?t:""}))}function J(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var K=["","webkit","moz","MS","ms","o"],tt=e.createElement("div"),et="function",it=Math.round,nt=Math.abs,ot=Date.now,at=1,st="ontouchstart"in t,rt=S(t,"PointerEvent")!==n,lt=st&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ut="touch",ct="mouse",dt=25,ht=1,pt=2,ft=4,mt=8,gt=1,vt=2,yt=4,bt=8,wt=16,St=vt|yt,Ct=bt|wt,xt=St|Ct,kt=["x","y"],Tt=["clientX","clientY"];x.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&&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)}};var _t={mousedown:ht,mousemove:pt,mouseup:ft},Ot="mousedown",Pt="mousemove mouseup";u(E,x,{handler:function(t){var e=_t[t.type];e&ht&&0===t.button&&(this.pressed=!0),e&pt&&1!==t.which&&(e=ft),this.pressed&&this.allow&&(e&ft&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:ct,srcEvent:t}))}});var Mt={pointerdown:ht,pointermove:pt,pointerup:ft,pointercancel:mt,pointerout:mt},At={2:ut,3:"pen",4:ct,5:"kinect"},Et="pointerdown",Dt="pointermove pointerup pointercancel";t.MSPointerEvent&&(Et="MSPointerDown",Dt="MSPointerMove MSPointerUp MSPointerCancel"),u(D,x,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=Mt[n],a=At[t.pointerType]||t.pointerType,s=a==ut,r=y(e,t.pointerId,"pointerId");o&ht&&(0===t.button||s)?0>r&&(e.push(t),r=e.length-1):o&(ft|mt)&&(i=!0),0>r||(e[r]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:a,srcEvent:t}),i&&e.splice(r,1))}});var It={touchstart:ht,touchmove:pt,touchend:ft,touchcancel:mt},$t="touchstart",qt="touchstart touchmove touchend touchcancel";u(I,x,{handler:function(t){var e=It[t.type];if(e===ht&&(this.started=!0),this.started){var i=$.call(this,t,e);e&(ft|mt)&&0==i[0].length-i[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ut,srcEvent:t})}}});var Lt={touchstart:ht,touchmove:pt,touchend:ft,touchcancel:mt},jt="touchstart touchmove touchend touchcancel";u(q,x,{handler:function(t){var e=Lt[t.type],i=L.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ut,srcEvent:t})}}),u(j,x,{handler:function(t,e,i){var n=i.pointerType==ut,o=i.pointerType==ct;if(n)this.mouse.allow=!1;else if(o&&!this.mouse.allow)return;e&(ft|mt)&&(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Nt=S(tt.style,"touchAction"),Ht=Nt!==n,Ft="compute",Rt="auto",zt="manipulation",Vt="none",Bt="pan-x",Wt="pan-y";N.prototype={set:function(t){t==Ft&&(t=this.compute()),Ht&&(this.manager.element.style[Nt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,(function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(g(t,Vt))return Vt;var e=g(t,Bt),i=g(t,Wt);return e&&i?Bt+" "+Wt:e||i?e?Bt:Wt:g(t,zt)?zt:Rt}(t.join(" "))},preventDefaults:function(t){if(!Ht){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,o=g(n,Vt),a=g(n,Wt),s=g(n,Bt);return o||a&&i&St||s&&i&Ct?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Qt=1,Xt=2,Ut=4,Yt=8,Gt=Yt,Zt=16;H.prototype={defaults:{},set:function(t){return r(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(a(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=R(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return a(t,"dropRecognizeWith",this)||(t=R(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(a(t,"requireFailure",this))return this;var e=this.requireFail;return-1===y(e,t=R(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(a(t,"dropRequireFailure",this))return this;t=R(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?function(t){return t&Zt?"cancel":t&Yt?"end":t&Ut?"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;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Qt)))return!1;t++}return!0},recognize:function(t){var e=r({},t);return d(this.options.enable,[this,e])?(this.state&(Gt|Zt|32)&&(this.state=Qt),this.state=this.process(e),void(this.state&(Xt|Ut|Yt|Zt)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},u(z,H,{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&(Xt|Ut),o=this.attrTest(t);return n&&(i&mt||!o)?e|Zt:n||o?i&ft?e|Yt:e&Xt?e|Ut:Xt:32}}),u(V,z,{defaults:{event:"pan",threshold:10,pointers:1,direction:xt},getTouchAction:function(){var t=this.options.direction,e=[];return t&St&&e.push(Wt),t&Ct&&e.push(Bt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,a=t.deltaX,s=t.deltaY;return o&e.direction||(e.direction&St?(o=0===a?gt:0>a?vt:yt,i=a!=this.pX,n=Math.abs(t.deltaX)):(o=0===s?gt:0>s?bt:wt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return z.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=F(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),u(B,z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Vt]},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(W,H,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Rt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,a=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(ft|mt)&&!a)this.reset();else if(t.eventType&ht)this.reset(),this._timer=o((function(){this.state=Gt,this.tryEmit()}),e.time,this);else if(t.eventType&ft)return Gt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Gt&&(t&&t.eventType&ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ot(),this.manager.emit(this.options.event,this._input)))}}),u(Q,z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Vt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Xt)}}),u(X,z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:St|Ct,pointers:1},getTouchAction:function(){return V.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(St|Ct)?e=t.velocity:i&St?e=t.velocityX:i&Ct&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&nt(e)>this.options.velocity&&t.eventType&ft},emit:function(t){var e=F(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(U,H,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[zt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,a=t.deltaTime<e.time;if(this.reset(),t.eventType&ht&&0===this.count)return this.failTimeout();if(n&&a&&i){if(t.eventType!=ft)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,r=!this.pCenter||M(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,r&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=o((function(){this.state=Gt,this.tryEmit()}),e.interval,this),Xt):Gt}return 32},failTimeout:function(){return this._timer=o((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Gt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Y.VERSION="2.0.4",Y.defaults={domEvents:!1,touchAction:Ft,enable:!0,inputTarget:null,inputClass:null,preset:[[Q,{enable:!1}],[B,{enable:!1},["rotate"]],[X,{direction:St}],[V,{direction:St},["swipe"]],[U],[U,{event:"doubletap",taps:2},["tap"]],[W]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};G.prototype={set:function(t){return r(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?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Gt)&&(o=e.curRecognizer=null);for(var a=0;a<n.length;)i=n[a],2===e.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&i.state&(Xt|Ut|Yt)&&(o=e.curRecognizer=i),a++}},get:function(t){if(t instanceof H)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(a(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(a(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var i=this.handlers;return s(v(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},off:function(t,e){var i=this.handlers;return s(v(t),(function(t){e?i[t].splice(y(i[t],e),1):delete i[t]})),this},emit:function(t,e){this.options.domEvents&&J(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&&Z(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},r(Y,{INPUT_START:ht,INPUT_MOVE:pt,INPUT_END:ft,INPUT_CANCEL:mt,STATE_POSSIBLE:Qt,STATE_BEGAN:Xt,STATE_CHANGED:Ut,STATE_ENDED:Yt,STATE_RECOGNIZED:Gt,STATE_CANCELLED:Zt,STATE_FAILED:32,DIRECTION_NONE:gt,DIRECTION_LEFT:vt,DIRECTION_RIGHT:yt,DIRECTION_UP:bt,DIRECTION_DOWN:wt,DIRECTION_HORIZONTAL:St,DIRECTION_VERTICAL:Ct,DIRECTION_ALL:xt,Manager:G,Input:x,TouchAction:N,TouchInput:q,MouseInput:E,PointerEventInput:D,TouchMouseInput:j,SingleTouchInput:I,Recognizer:H,AttrRecognizer:z,Tap:U,Pan:V,Swipe:X,Pinch:B,Rotate:Q,Press:W,on:p,off:f,each:s,merge:l,extend:r,inherit:u,bindFn:c,prefixed:S}),typeof define==et&&define.amd?define((function(){return Y})):"undefined"!=typeof module&&module.exports?module.exports=Y:t.Hammer=Y}(window,document),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 o=t(i);o.data("hammer")||o.data("hammer",new e(o[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.Package?Materialize={}:t.Materialize={}}(window),Materialize.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),Materialize.elementOrParentIsFixed=function(t){var e=$(t),i=e.add(e.parents()),n=!1;return i.each((function(){return"fixed"===$(this).css("position")?(n=!0,!1):void 0})),n},Vel=$?$.Velocity:jQuery?jQuery.Velocity:Velocity,function(t){t.fn.collapsible=function(e){return e=t.extend({accordion:void 0},e),this.each((function(){function i(e){s=a.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","")}}),s.not(e).removeClass("active").parent().removeClass("active"),s.not(e).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function n(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 o(t){return t.closest("li > .collapsible-header")}var a=t(this),s=t(this).find("> li > .collapsible-header"),r=a.data("collapsible");a.off("click.collapse","> li > .collapsible-header"),s.off("click.collapse"),a.on("click.collapse","> li > .collapsible-header",(function(a){var s=t(this),l=t(a.target);(function(t){return o(t).length>0})(l)&&(l=o(l)),l.toggleClass("active"),e.accordion||"accordion"===r||void 0===r?i(l):(n(l),s.hasClass("active")&&n(s))}));s=a.find("> li > .collapsible-header");e.accordion||"accordion"===r||void 0===r?i(s.filter(".active").first()):s.filter(".active").each((function(){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:!1,gutter:0,belowOrigin:!1,alignment:"left"};this.each((function(){function n(){void 0!==s.data("induration")&&(r.inDuration=s.data("inDuration")),void 0!==s.data("outduration")&&(r.outDuration=s.data("outDuration")),void 0!==s.data("constrainwidth")&&(r.constrain_width=s.data("constrainwidth")),void 0!==s.data("hover")&&(r.hover=s.data("hover")),void 0!==s.data("gutter")&&(r.gutter=s.data("gutter")),void 0!==s.data("beloworigin")&&(r.belowOrigin=s.data("beloworigin")),void 0!==s.data("alignment")&&(r.alignment=s.data("alignment"))}function o(e){"focus"===e&&(l=!0),n(),u.addClass("active"),s.addClass("active"),!0===r.constrain_width?u.css("width",s.outerWidth()):u.css("white-space","nowrap");var i=window.innerHeight,o=s.innerHeight(),a=s.offset().left,c=s.offset().top-t(window).scrollTop(),d=r.alignment,h=0,p=0,f=0;!0===r.belowOrigin&&(f=o);var m=0,g=s.parent();if(!g.is("body")&&g[0].scrollHeight>g[0].clientHeight&&(m=g[0].scrollTop),a+u.innerWidth()>t(window).width()?d="right":a-u.innerWidth()+s.innerWidth()<0&&(d="left"),c+u.innerHeight()>i)if(c+o-u.innerHeight()<0){var v=i-c-f;u.css("max-height",v)}else f||(f+=o),f-=u.innerHeight();if("left"===d)h=r.gutter,p=s.position().left+h;else if("right"===d){p=s.position().left+s.outerWidth()-u.outerWidth()+(h=-r.gutter)}u.css({position:"absolute",top:s.position().top+f+m,left:p}),u.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:r.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:r.inDuration,easing:"easeOutSine"})}function a(){l=!1,u.fadeOut(r.outDuration),u.removeClass("active"),s.removeClass("active"),setTimeout((function(){u.css("max-height","")}),r.outDuration)}var s=t(this),r=t.extend({},i,e),l=!1,u=t("#"+s.attr("data-activates"));if(n(),s.after(u),r.hover){var c=!1;s.unbind("click."+s.attr("id")),s.on("mouseenter",(function(t){!1===c&&(o(),c=!0)})),s.on("mouseleave",(function(e){var i=e.toElement||e.relatedTarget
;t(i).closest(".dropdown-content").is(u)||(u.stop(!0,!0),a(),c=!1)})),u.on("mouseleave",(function(e){var i=e.toElement||e.relatedTarget;t(i).closest(".dropdown-button").is(s)||(u.stop(!0,!0),a(),c=!1)}))}else s.unbind("click."+s.attr("id")),s.bind("click."+s.attr("id"),(function(e){l||(s[0]!=e.currentTarget||s.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?s.hasClass("active")&&(a(),t(document).unbind("click."+u.attr("id")+" touchstart."+u.attr("id"))):(e.preventDefault(),o("click")),u.hasClass("active")&&t(document).bind("click."+u.attr("id")+" touchstart."+u.attr("id"),(function(e){u.is(e.target)||s.is(e.target)||s.find(e.target).length||(a(),t(document).unbind("click."+u.attr("id")+" touchstart."+u.attr("id")))})))}));s.on("open",(function(t,e){o(e)})),s.on("close",a)}))},t(document).ready((function(){t(".dropdown-button").dropdown()}))}(jQuery),function(t){var e=0,i=0,n=function(){return"materialize-lean-overlay-"+ ++i};t.fn.extend({openModal:function(i){var o=t("body"),a=o.innerWidth();o.css("overflow","hidden"),o.width(a);var s=t(this);s.hasClass("open")||(overlayID=n(),$overlay=t('<div class="lean-overlay"></div>'),lStack=++e,$overlay.attr("id",overlayID).css("z-index",1e3+2*lStack),s.data("overlay-id",overlayID).css("z-index",1e3+2*lStack+1),s.addClass("open"),t("body").append($overlay),(i=t.extend({opacity:.5,in_duration:350,out_duration:250,ready:void 0,complete:void 0,dismissible:!0,starting_top:"4%"},i)).dismissible&&($overlay.click((function(){s.closeModal(i)})),t(document).on("keyup.leanModal"+overlayID,(function(t){27===t.keyCode&&s.closeModal(i)}))),s.find(".modal-close").on("click.close",(function(t){s.closeModal(i)})),$overlay.css({display:"block",opacity:0}),s.css({display:"block",opacity:0}),$overlay.velocity({opacity:i.opacity},{duration:i.in_duration,queue:!1,ease:"easeOutCubic"}),s.data("associated-overlay",$overlay[0]),s.hasClass("bottom-sheet")?s.velocity({bottom:"0",opacity:1},{duration:i.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof i.ready&&i.ready()}}):(t.Velocity.hook(s,"scaleX",.7),s.css({top:i.starting_top}),s.velocity({top:"10%",opacity:1,scaleX:"1"},{duration:i.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof i.ready&&i.ready()}})))}}),t.fn.extend({closeModal:function(i){var n=t(this),o=n.data("overlay-id"),a=t("#"+o);n.removeClass("open"),i=t.extend({out_duration:250,complete:void 0},i),t("body").css({overflow:"",width:""}),n.find(".modal-close").off("click.close"),t(document).off("keyup.leanModal"+o),a.velocity({opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutQuart"}),n.hasClass("bottom-sheet")?n.velocity({bottom:"-100%",opacity:0},{duration:i.out_duration,queue:!1,ease:"easeOutCubic",complete:function(){a.css({display:"none"}),"function"==typeof i.complete&&i.complete(),a.remove(),e--}}):n.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(),a.remove(),e--}})}}),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(){function e(){a=!1;var e=l.parent(".material-placeholder"),n=(window.innerWidth,window.innerHeight,l.data("width")),s=l.data("height");l.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t("#materialbox-overlay").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){o=!1,t(this).remove()}}),l.velocity({width:n,height:s,left:0,top:0},{duration:r,queue:!1,easing:"easeOutQuad"}),t(".materialbox-caption").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){e.css({height:"",width:"",position:"",top:"",left:""}),l.css({height:"",top:"",left:"",width:"","max-width":"",position:"","z-index":""}),l.removeClass("active"),a=!0,t(this).remove(),i&&i.css("overflow","")}})}if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var i,n,o=!1,a=!0,s=275,r=200,l=t(this),u=t("<div></div>").addClass("material-placeholder");l.wrap(u),l.on("click",(function(){var r=l.parent(".material-placeholder"),u=window.innerWidth,c=window.innerHeight,d=l.width(),h=l.height();if(!1===a)return e(),!1;if(o&&!0===a)return e(),!1;for(a=!1,l.addClass("active"),o=!0,r.css({width:r[0].getBoundingClientRect().width,height:r[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),i=void 0,n=r[0].parentNode;null!==n&&!t(n).is(document);){var p=t(n);"visible"!==p.css("overflow")&&(p.css("overflow","visible"),i=void 0===i?p:i.add(p)),n=n.parentNode}l.css({position:"absolute","z-index":1e3}).data("width",d).data("height",h);var f=t('<div id="materialbox-overlay"></div>').css({opacity:0}).click((function(){!0===a&&e()}));if(l.before(f),f.velocity({opacity:1},{duration:s,queue:!1,easing:"easeOutQuad"}),""!==l.data("caption")){var m=t('<div class="materialbox-caption"></div>');m.text(l.data("caption")),t("body").append(m),m.css({display:"inline"}),m.velocity({opacity:1},{duration:s,queue:!1,easing:"easeOutQuad"})}var g=0,v=0;d/u>h/c?(g=.9*u,v=.9*u*(h/d)):(g=.9*c*(d/h),v=.9*c),l.hasClass("responsive-img")?l.velocity({"max-width":g,width:d},{duration:0,queue:!1,complete:function(){l.css({left:0,top:0}).velocity({height:v,width:g,left:t(document).scrollLeft()+u/2-l.parent(".material-placeholder").offset().left-g/2,top:t(document).scrollTop()+c/2-l.parent(".material-placeholder").offset().top-v/2},{duration:s,queue:!1,easing:"easeOutQuad",complete:function(){a=!0}})}}):l.css("left",0).css("top",0).velocity({height:v,width:g,left:t(document).scrollLeft()+u/2-l.parent(".material-placeholder").offset().left-g/2,top:t(document).scrollTop()+c/2-l.parent(".material-placeholder").offset().top-v/2},{duration:s,queue:!1,easing:"easeOutQuad",complete:function(){a=!0}})})),t(window).scroll((function(){o&&e()})),t(document).keyup((function(t){27===t.keyCode&&!0===a&&o&&e()}))}}))},t(document).ready((function(){t(".materialboxed").materialbox()}))}(jQuery),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each((function(i){function n(i){var n;n=601>e?o.height()>0?o.height():o.children("img").height():o.height()>0?o.height():500;var a=o.children("img").first(),s=a.height()-n,r=o.offset().top+n,l=o.offset().top,u=t(window).scrollTop(),c=window.innerHeight,d=(u+c-l)/(n+c),h=Math.round(s*d);i&&a.css("display","block"),r>u&&u+c>l&&a.css("transform","translate3D(-50%,"+h+"px, 0)")}var o=t(this);o.addClass("parallax"),o.children("img").one("load",(function(){n(!0)})).each((function(){this.complete&&t(this).load()})),t(window).scroll((function(){e=t(window).width(),n(!1)})),t(window).resize((function(){e=t(window).width(),n(!1)}))}))}}(jQuery),function(t){var e={init:function(){return this.each((function(){var e=t(this);t(window).width(),e.width("100%");var i,n,o=e.find("li.tab a"),a=e.width(),s=Math.max(a,e[0].scrollWidth)/o.length,r=0;0===(i=t(o.filter('[href="'+location.hash+'"]'))).length&&(i=t(this).find("li.tab a.active").first()),0===i.length&&(i=t(this).find("li.tab a").first()),i.addClass("active"),0>(r=o.index(i))&&(r=0),void 0!==i[0]&&(n=t(i[0].hash)),e.append('<div class="indicator"></div>');var l=e.find(".indicator");e.is(":visible")&&(l.css({right:a-(r+1)*s}),l.css({left:r*s})),t(window).resize((function(){a=e.width(),s=Math.max(a,e[0].scrollWidth)/o.length,0>r&&(r=0),0!==s&&0!==a&&(l.css({right:a-(r+1)*s}),l.css({left:r*s}))})),o.not(i).each((function(){t(this.hash).hide()})),e.on("click","a",(function(u){if(t(this).parent().hasClass("disabled"))u.preventDefault();else{a=e.width(),s=Math.max(a,e[0].scrollWidth)/o.length,i.removeClass("active"),void 0!==n&&n.hide(),i=t(this),n=t(this.hash),o=e.find("li.tab a"),i.addClass("active");var c=r;0>(r=o.index(t(this)))&&(r=0),void 0!==n&&n.show(),r-c>=0?(l.velocity({right:a-(r+1)*s},{duration:300,queue:!1,easing:"easeOutQuad"}),l.velocity({left:r*s},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(l.velocity({left:r*s},{duration:300,queue:!1,easing:"easeOutQuad"}),l.velocity({right:a-(r+1)*s},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})),u.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(i){return"remove"===i?(this.each((function(){t("#"+t(this).attr("data-tooltip-id")).remove(),t(this).off("mouseenter.tooltip mouseleave.tooltip")})),!1):(i=t.extend({delay:350},i),this.each((function(){var n=Materialize.guid(),o=t(this);o.attr("data-tooltip-id",n);var a=t("<span></span>").text(o.attr("data-tooltip")),s=t("<div></div>");s.addClass("material-tooltip").append(a).appendTo(t("body")).attr("id",n);var r=t("<div></div>").addClass("backdrop");r.appendTo(s),r.css({top:0,left:0}),o.off("mouseenter.tooltip mouseleave.tooltip");var l,u=!1;o.on({"mouseenter.tooltip":function(t){var n=o.attr("data-delay");n=void 0===n||""===n?i.delay:n,l=setTimeout((function(){u=!0,s.velocity("stop"),r.velocity("stop"),s.css({display:"block",left:"0px",top:"0px"}),s.children("span").text(o.attr("data-tooltip"));var t,i,n,a=o.outerWidth(),l=o.outerHeight(),c=o.attr("data-position"),d=s.outerHeight(),h=s.outerWidth(),p="0px",f="0px",m=8;"top"===c?(t=o.offset().top-d-5,i=o.offset().left+a/2-h/2,n=e(i,t,h,d),p="-10px",r.css({borderRadius:"14px 14px 0 0",transformOrigin:"50% 90%",marginTop:d,marginLeft:h/2-r.width()/2})):"left"===c?(t=o.offset().top+l/2-d/2,i=o.offset().left-h-5,n=e(i,t,h,d),f="-10px",r.css({width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:d/2,marginLeft:h})):"right"===c?(t=o.offset().top+l/2-d/2,i=o.offset().left+a+5,n=e(i,t,h,d),f="+10px",r.css({width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:d/2,marginLeft:"0px"})):(t=o.offset().top+o.outerHeight()+5,i=o.offset().left+a/2-h/2,n=e(i,t,h,d),p="+10px",r.css({marginLeft:h/2-r.width()/2})),s.css({top:n.y,left:n.x}),8>(m=h/8)&&(m=8),("right"===c||"left"===c)&&(6>(m=h/10)&&(m=6)),s.velocity({marginTop:p,marginLeft:f},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),r.css({display:"block"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scale:m},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})}),n)},"mouseleave.tooltip":function(){u=!1,clearTimeout(l),setTimeout((function(){1!=u&&(s.velocity({opacity:0,marginTop:0,marginLeft:0},{duration:225,queue:!1}),r.velocity({opacity:0,scale:1},{duration:225,queue:!1,complete:function(){r.css("display","none"),s.css("display","none"),u=!1}}))}),225)}})})))};var e=function(e,i,n,o){var a=e,s=i;return 0>a?a=4:a+n>window.innerWidth&&(a-=a+n-window.innerWidth),0>s?s=4:s+o>window.innerHeight+t(window).scrollTop&&(s-=s+o-window.innerHeight),{x:a,y:s}};t(document).ready((function(){t(".tooltipped").tooltip()}))}(jQuery),function(t){"use strict";function e(t){return function(t){return null!==t&&t===t.window}(t)?t:9===t.nodeType&&t.defaultView}function i(t){var i,n,o={top:0,left:0},a=t&&t.ownerDocument;return i=a.documentElement,void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),n=e(a),{top:o.top+n.pageYOffset-i.clientTop,left:o.left+n.pageXOffset-i.clientLeft}}function n(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}function o(e){var i=function(t){if(!1===l.allowEvent(t))return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentElement;){if(!(i instanceof SVGElement||-1===i.className.indexOf("waves-effect"))){e=i;break}if(i.classList.contains("waves-effect")){e=i;break}i=i.parentElement}return e}(e);null!==i&&(r.show(e,i),"ontouchstart"in t&&(i.addEventListener("touchend",r.hide,!1),i.addEventListener("touchcancel",r.hide,!1)),i.addEventListener("mouseup",r.hide,!1),i.addEventListener("mouseleave",r.hide,!1))}var a=a||{},s=document.querySelectorAll.bind(document),r={duration:750,show:function(t,e){if(2===t.button)return!1;var o=e||this,a=document.createElement("div");a.className="waves-ripple",o.appendChild(a);var s=i(o),l=t.pageY-s.top,u=t.pageX-s.left,c="scale("+o.clientWidth/100*10+")";"touches"in t&&(l=t.touches[0].pageY-s.top,u=t.touches[0].pageX-s.left),a.setAttribute("data-hold",Date.now()),a.setAttribute("data-scale",c),a.setAttribute("data-x",u),a.setAttribute("data-y",l);var d={top:l+"px",left:u+"px"};a.className=a.className+" waves-notransition",a.setAttribute("style",n(d)),a.className=a.className.replace("waves-notransition",""),d["-webkit-transform"]=c,d["-moz-transform"]=c,d["-ms-transform"]=c,d["-o-transform"]=c,d.transform=c,d.opacity="1",d["-webkit-transition-duration"]=r.duration+"ms",d["-moz-transition-duration"]=r.duration+"ms",d["-o-transition-duration"]=r.duration+"ms",d["transition-duration"]=r.duration+"ms",d["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",d["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",d["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",d["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a.setAttribute("style",n(d))},hide:function(t){l.touchup(t);var e=this,i=(e.clientWidth,null),o=e.getElementsByClassName("waves-ripple");if(!(o.length>0))return!1;var a=(i=o[o.length-1]).getAttribute("data-x"),s=i.getAttribute("data-y"),u=i.getAttribute("data-scale"),c=350-(Date.now()-Number(i.getAttribute("data-hold")));0>c&&(c=0),setTimeout((function(){var t={top:s+"px",left:a+"px",opacity:"0","-webkit-transition-duration":r.duration+"ms","-moz-transition-duration":r.duration+"ms","-o-transition-duration":r.duration+"ms","transition-duration":r.duration+"ms","-webkit-transform":u,"-moz-transform":u,"-ms-transform":u,"-o-transform":u,transform:u};i.setAttribute("style",n(t)),setTimeout((function(){try{e.removeChild(i)}catch(t){return!1}}),r.duration)}),c)},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 o=document.createElement("i");o.className=i.className+" waves-input-wrapper";var a=i.getAttribute("style");a||(a=""),o.setAttribute("style",a),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(o,i),o.appendChild(i)}}}},l={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?l.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout((function(){l.touches>0&&(l.touches-=1)}),500):"mousedown"===t.type&&l.touches>0&&(e=!1),e},touchup:function(t){l.allowEvent(t)}};a.displayEffect=function(e){"duration"in(e=e||{})&&(r.duration=e.duration),r.wrapInput(s(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",o,!1),document.body.addEventListener("mousedown",o,!1)},a.attach=function(e){"input"===e.tagName.toLowerCase()&&(r.wrapInput([e]),e=e.parentElement),"ontouchstart"in t&&e.addEventListener("touchstart",o,!1),e.addEventListener("mousedown",o,!1)},t.Waves=a,document.addEventListener("DOMContentLoaded",(function(){a.displayEffect()}),!1)}(window),Materialize.toast=function(t,e,i,n){i=i||"";var o=document.getElementById("toast-container");null===o&&((o=document.createElement("div")).id="toast-container",document.body.appendChild(o));var a=function(t){var e=document.createElement("div");if(e.classList.add("toast"),i)for(var o=i.split(" "),a=0,s=o.length;s>a;a++)e.classList.add(o[a]);("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?e.appendChild(t):t instanceof jQuery?e.appendChild(t[0]):e.innerHTML=t;var r=new Hammer(e,{prevent_default:!1});return r.on("pan",(function(t){var i=t.deltaX;e.classList.contains("panning")||e.classList.add("panning");var n=1-Math.abs(i/80);0>n&&(n=0),Vel(e,{left:i,opacity:n},{duration:50,queue:!1,easing:"easeOutQuad"})})),r.on("panend",(function(t){var i=t.deltaX;Math.abs(i)>80?Vel(e,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),e.parentNode.removeChild(e)}}):(e.classList.remove("panning"),Vel(e,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))})),e}(t);t&&o.appendChild(a),a.style.top="35px",a.style.opacity=0,Vel(a,{top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var s=e,r=setInterval((function(){null===a.parentNode&&window.clearInterval(r),a.classList.contains("panning")||(s-=20),0>=s&&(Vel(a,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof n&&n(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(r))}),20)},function(t){var e={init:function(e){e=t.extend({menuWidth:240,edge:"left",closeOnClick:!1},e),t(this).each((function(){function i(i){!1,s=!1,t("body").css({overflow:"",width:""}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(a.css({width:"",right:"",left:"0"}),o.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===i&&(o.removeAttr("style"),o.css("width",e.menuWidth))}})):(a.css({width:"",right:"0",left:""}),o.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===i&&(o.removeAttr("style"),o.css("width",e.menuWidth))}}))}var n=t(this),o=t("#"+n.attr("data-activates"));240!=e.menuWidth&&o.css("width",e.menuWidth);var a=t('<div class="drag-target"></div>');t("body").append(a),"left"==e.edge?(o.css("transform","translateX(-100%)"),a.css({left:0})):(o.addClass("right-aligned").css("transform","translateX(100%)"),a.css({right:0})),o.hasClass("fixed")&&window.innerWidth>992&&o.css("transform","translateX(0)"),o.hasClass("fixed")&&t(window).resize((function(){window.innerWidth>992?0!=t("#sidenav-overlay").length&&s?i(!0):o.css("transform","translateX(0%)"):!1===s&&("left"===e.edge?o.css("transform","translateX(-100%)"):o.css("transform","translateX(100%)"))})),!0===e.closeOnClick&&o.on("click.itemclick","a:not(.collapsible-header)",(function(){i()}));var s=!1;a.on("click",(function(){i()})),a.hammer({prevent_default:!1}).bind("pan",(function(n){if("touch"==n.gesture.pointerType){var a,r=(n.gesture.direction,n.gesture.center.x),l=(n.gesture.center.y,n.gesture.velocityX,t("body")),u=l.innerWidth();if(l.css("overflow","hidden"),l.width(u),0===t("#sidenav-overlay").length){var c=t('<div id="sidenav-overlay"></div>');c.css("opacity",0).click((function(){i()})),t("body").append(c)}if("left"===e.edge&&(r>e.menuWidth?r=e.menuWidth:0>r&&(r=0)),"left"===e.edge)r<e.menuWidth/2?s=!1:r>=e.menuWidth/2&&(s=!0),o.css("transform","translateX("+(r-e.menuWidth)+"px)");else{r<window.innerWidth-e.menuWidth/2?s=!0:r>=window.innerWidth-e.menuWidth/2&&(s=!1);var d=r-e.menuWidth/2;0>d&&(d=0),o.css("transform","translateX("+d+"px)")}"left"===e.edge?(a=r/e.menuWidth,t("#sidenav-overlay").velocity({opacity:a},{duration:10,queue:!1,easing:"easeOutQuad"})):(a=Math.abs((r-window.innerWidth)/e.menuWidth),t("#sidenav-overlay").velocity({opacity:a},{duration:10,queue:!1,easing:"easeOutQuad"}))}})).bind("panend",(function(i){if("touch"==i.gesture.pointerType){var n=i.gesture.velocityX,r=i.gesture.center.x,l=r-e.menuWidth,u=r-e.menuWidth/2;l>0&&(l=0),0>u&&(u=0),!1,"left"===e.edge?s&&.3>=n||-.5>n?(0!=l&&o.velocity({translateX:[0,l]},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),a.css({width:"50%",right:0,left:""})):(!s||n>.3)&&(t("body").css({overflow:"",width:""}),o.velocity({translateX:[-1*e.menuWidth-10,l]},{duration:200,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),a.css({width:"10px",right:"",left:0})):s&&n>=-.3||n>.5?(o.velocity({translateX:[0,u]},{duration:300,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),a.css({width:"50%",right:"",left:0})):(!s||-.3>n)&&(t("body").css({overflow:"",width:""}),o.velocity({translateX:[e.menuWidth+10,u]},{duration:200,queue:!1,easing:"easeOutQuad"}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),a.css({width:"10px",right:0,left:""}))}})),n.click((function(){if(!0===s)s=!1,!1,i();else{var n=t("body"),r=n.innerWidth();n.css("overflow","hidden"),n.width(r),t("body").append(a),"left"===e.edge?(a.css({width:"50%",right:0,left:""}),o.velocity({translateX:[0,-1*e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(a.css({width:"50%",right:"",left:0}),o.velocity({translateX:[0,e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"}));var l=t('<div id="sidenav-overlay"></div>');l.css("opacity",0).click((function(){s=!1,!1,i(),l.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})})),t("body").append(l),l.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){s=!0,!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.sideNav"):e.init.apply(this,arguments)}}(jQuery),function(t){function e(e,i,n,o){var a=t();return t.each(s,(function(t,s){if(s.height()>0){var r=s.offset().top,l=s.offset().left,u=l+s.width(),c=r+s.height();!(l>i||o>u||r>n||e>c)&&a.push(s)}})),a}function i(){++u;var i=a.scrollTop(),n=a.scrollLeft(),o=n+a.width(),s=i+a.height(),l=e(i+c.top+200,o+c.right,s+c.bottom,n+c.left);t.each(l,(function(t,e){"number"!=typeof e.data("scrollSpy:ticks")&&e.triggerHandler("scrollSpy:enter"),e.data("scrollSpy:ticks",u)})),t.each(r,(function(t,e){var i=e.data("scrollSpy:ticks");"number"==typeof i&&i!==u&&(e.triggerHandler("scrollSpy:exit"),e.data("scrollSpy:ticks",null))})),r=l}function n(){a.trigger("scrollSpy:winSize")}function o(t,e,i){var n,o,a,s=null,r=0;i||(i={});var l=function(){r=!1===i.leading?0:d(),s=null,a=t.apply(n,o),n=o=null};return function(){var u=d();r||!1!==i.leading||(r=u);var c=e-(u-r);return n=this,o=arguments,0>=c?(clearTimeout(s),s=null,r=u,a=t.apply(n,o),n=o=null):s||!1===i.trailing||(s=setTimeout(l,c)),a}}var a=t(window),s=[],r=[],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 r=[];(e=t(e)).each((function(e,i){s.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("html, body").animate({scrollTop:i-200},{duration:400,queue:!1,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=o(i,n.throttle||100),d=function(){t(document).ready(u)};return l||(a.on("scroll",d),a.on("resize",d),l=!0),setTimeout(d,0),e.on("scrollSpy:enter",(function(){r=t.grep(r,(function(t){return 0!=t.height()}));var e=t(this);r[0]?(t('a[href="#'+r[0].attr("id")+'"]').removeClass("active"),e.data("scrollSpy:id")<r[0].data("scrollSpy:id")?r.unshift(t(this)):r.push(t(this))):r.push(t(this)),t('a[href="#'+r[0].attr("id")+'"]').addClass("active")})),e.on("scrollSpy:exit",(function(){if((r=t.grep(r,(function(t){return 0!=t.height()})))[0]){t('a[href="#'+r[0].attr("id")+'"]').removeClass("active");var e=t(this);(r=t.grep(r,(function(t){return t.attr("id")!=e.attr("id")})))[0]&&t('a[href="#'+r[0].attr("id")+'"]').addClass("active")}})),e},t.winSizeSpy=function(e){return t.winSizeSpy=function(){return a},e=e||{throttle:100},a.on("resize",o(n,e.throttle||100))},t.fn.scrollSpy=function(e){return t.scrollSpy(t(this),e)}}(jQuery),function(t){t(document).ready((function(){function e(e){var i=e.css("font-family"),o=e.css("font-size");o&&n.css("font-size",o),i&&n.css("font-family",i),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e.val()+"\n");var a=n.html().replace(/\n/g,"<br>");n.html(a),e.is(":visible")?n.css("width",e.width()):n.css("width",t(window).width()/2),e.css("height",n.height())}Materialize.updateTextFields=function(){t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each((function(e,i){t(i).val().length>0||i.autofocus||void 0!==t(this).attr("placeholder")||!0===t(i)[0].validity.badInput?t(this).siblings("label, i").addClass("active"):t(this).siblings("label, i").removeClass("active")}))};var i="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";t(document).on("change",i,(function(){(0!==t(this).val().length||void 0!==t(this).attr("placeholder"))&&t(this).siblings("label").addClass("active"),validate_field(t(this))})),t(document).ready((function(){Materialize.updateTextFields()})),t(document).on("reset",(function(e){var n=t(e.target);n.is("form")&&(n.find(i).removeClass("valid").removeClass("invalid"),n.find(i).each((function(){""===t(this).attr("value")&&t(this).siblings("label, i").removeClass("active")})),n.find("select.initialized").each((function(){var t=n.find("option[selected]").text();n.siblings("input.select-dropdown").val(t)})))})),t(document).on("focus",i,(function(){t(this).siblings("label, i").addClass("active")})),t(document).on("blur",i,(function(){var e=t(this);0===e.val().length&&!0!==e[0].validity.badInput&&void 0===e.attr("placeholder")&&e.siblings("label, i").removeClass("active"),0===e.val().length&&!0!==e[0].validity.badInput&&void 0!==e.attr("placeholder")&&e.siblings("i").removeClass("active"),validate_field(e)})),window.validate_field=function(t){var e=void 0!==t.attr("length"),i=parseInt(t.attr("length")),n=t.val().length;0===t.val().length&&!1===t[0].validity.badInput?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")&&e&&i>=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))};t(document).on("keyup.radio","input[type=radio], input[type=checkbox]",(function(e){if(9===e.which)return t(this).addClass("tabbed"),void t(this).one("blur",(function(e){t(this).removeClass("tabbed")}))}));var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n));var o=".materialize-textarea";t(o).each((function(){var i=t(this);i.val().length&&e(i)})),t("body").on("keyup keydown autoresize",o,(function(){e(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=[],o=0;o<i.length;o++)n.push(i[o].name);e.val(n.join(", ")),e.trigger("change")}));var a,s="input[type=range]",r=!1;t(s).each((function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)}));var l=".range-field";t(document).on("change",s,(function(e){t(this).siblings(".thumb").find(".value").html(t(this).val())})),t(document).on("input mousedown touchstart",s,(function(e){var i=t(this).siblings(".thumb"),n=t(this).outerWidth();i.length<=0&&(i=t('<span class="thumb"><span class="value"></span></span>'),t(this).after(i)),i.find(".value").html(t(this).val()),r=!0,t(this).addClass("active"),i.hasClass("active")||i.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),"input"!==e.type&&(0>(a=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left)?a=0:a>n&&(a=n),i.addClass("active").css("left",a)),i.find(".value").html(t(this).val())})),t(document).on("mouseup touchend",l,(function(){r=!1,t(this).removeClass("active")})),t(document).on("mousemove touchmove",l,(function(e){var i,n=t(this).children(".thumb");if(r){n.hasClass("active")||n.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),i=void 0===e.pageX||null===e.pageX?e.originalEvent.touches[0].pageX-t(this).offset().left:e.pageX-t(this).offset().left;var o=t(this).outerWidth();0>i?i=0:i>o&&(i=o),n.addClass("active").css("left",i),n.find(".value").html(n.siblings(s).val())}})),t(document).on("mouseout touchleave",l,(function(){if(!r){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){function i(t,e,i){var n=t.indexOf(e),o=-1===n;return o?t.push(e):t.splice(n,1),i.siblings("ul.dropdown-content").find("li").eq(e).toggleClass("active"),i.find("option").eq(e).prop("selected",o),function(t,e){for(var i="",n=0,o=t.length;o>n;n++){var a=e.find("option").eq(t[n]).text();i+=0===n?a:", "+a}""===i&&(i=e.find("option:disabled").eq(0).text()),e.siblings("input.select-dropdown").val(i)}(t,i),o}t(this).each((function(){var n=t(this);if(!n.hasClass("browser-default")){var o=!!n.attr("multiple"),a=n.data("select-id");if(a&&(n.parent().find("span.caret").remove(),n.parent().find("input").remove(),n.unwrap(),t("ul#select-options-"+a).remove()),"destroy"===e)return void n.data("select-id",null).removeClass("initialized");var s=Materialize.guid();n.data("select-id",s);var r=t('<div class="select-wrapper"></div>');r.addClass(n.attr("class"));var l=t('<ul id="select-options-'+s+'" class="dropdown-content select-dropdown '+(o?"multiple-select-dropdown":"")+'"></ul>'),u=n.children("option, optgroup"),c=[],d=!1,h=n.find("option:selected").html()||n.find("option:first").html()||"",p=function(e,i,n){var o=i.is(":disabled")?"disabled ":"",a="optgroup-option"===n?"optgroup-option ":"",s=i.data("icon"),r=i.attr("class");if(s){var u="";return r&&(u=' class="'+r+'"'),"multiple"===n?l.append(t('<li class="'+o+'"><img src="'+s+'"'+u+'><span><input type="checkbox"'+o+"/><label></label>"+i.html()+"</span></li>")):l.append(t('<li class="'+o+a+'"><img src="'+s+'"'+u+"><span>"+i.html()+"</span></li>")),!0}"multiple"===n?l.append(t('<li class="'+o+'"><span><input type="checkbox"'+o+"/><label></label>"+i.html()+"</span></li>")):l.append(t('<li class="'+o+a+'"><span>'+i.html()+"</span></li>"))};u.length&&u.each((function(){if(t(this).is("option"))o?p(0,t(this),"multiple"):p(0,t(this));else if(t(this).is("optgroup")){var e=t(this).children("option");l.append(t('<li class="optgroup"><span>'+t(this).attr("label")+"</span></li>")),e.each((function(){p(0,t(this),"optgroup-option")}))}})),l.find("li:not(.optgroup)").each((function(a){t(this).click((function(s){if(!t(this).hasClass("disabled")&&!t(this).hasClass("optgroup")){var r=!0;o?(t('input[type="checkbox"]',this).prop("checked",(function(t,e){return!e})),r=i(c,t(this).index(),n),g.trigger("focus")):(l.find("li").removeClass("active"),t(this).toggleClass("active"),g.val(t(this).text())),v(l,t(this)),n.find("option").eq(a).prop("selected",r),n.trigger("change"),void 0!==e&&e()}s.stopPropagation()}))})),n.wrap(r);var f=t('<span class="caret">&#9660;</span>');n.is(":disabled")&&f.addClass("disabled")
;var m=h.replace(/"/g,"&quot;"),g=t('<input type="text" class="select-dropdown" readonly="true" '+(n.is(":disabled")?"disabled":"")+' data-activates="select-options-'+s+'" value="'+m+'"/>');n.before(g),g.before(f),g.after(l),n.is(":disabled")||g.dropdown({hover:!1,closeOnClick:!1}),n.attr("tabindex")&&t(g[0]).attr("tabindex",n.attr("tabindex")),n.addClass("initialized"),g.on({focus:function(){if(t("ul.select-dropdown").not(l[0]).is(":visible")&&t("input.select-dropdown").trigger("close"),!l.is(":visible")){t(this).trigger("open",["focus"]);var e=t(this).val(),i=l.find("li").filter((function(){return t(this).text().toLowerCase()===e.toLowerCase()}))[0];v(l,i)}},click:function(t){t.stopPropagation()}}),g.on("blur",(function(){o||t(this).trigger("close"),l.find("li.selected").removeClass("selected")})),l.hover((function(){d=!0}),(function(){d=!1})),t(window).on({click:function(){o&&(d||g.trigger("close"))}}),o&&n.find("option:selected:not(:disabled)").each((function(){var e=t(this).index();i(c,e,n),l.find("li").eq(e).find(":checkbox").prop("checked",!0)}));var v=function(e,i){if(i){e.find("li.selected").removeClass("selected");var n=t(i);n.addClass("selected"),l.scrollTo(n)}},y=[];g.on("keydown",(function(e){if(9!=e.which)if(40!=e.which||l.is(":visible")){if(13!=e.which||l.is(":visible")){e.preventDefault();var i=String.fromCharCode(e.which).toLowerCase();if(i&&-1===[9,13,27,38,40].indexOf(e.which)){y.push(i);var n=y.join(""),a=l.find("li").filter((function(){return 0===t(this).text().toLowerCase().indexOf(n)}))[0];a&&v(l,a)}if(13==e.which){var s=l.find("li.selected:not(.disabled)")[0];s&&(t(s).trigger("click"),o||g.trigger("close"))}40==e.which&&(a=l.find("li.selected").length?l.find("li.selected").next("li:not(.disabled)")[0]:l.find("li:not(.disabled)")[0],v(l,a)),27==e.which&&g.trigger("close"),38==e.which&&((a=l.find("li.selected").prev("li:not(.disabled)")[0])&&v(l,a)),setTimeout((function(){y=[]}),1e3)}}else g.trigger("open");else g.trigger("close")}))}}))}}(jQuery),function(t){var e={init:function(e){return e=t.extend({indicators:!0,height:400,transition:500,interval:6e3},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>=u.length?t=0:0>t&&(t=u.length-1),(c=l.find(".active").index())!=t&&(o=u.eq(c),$caption=o.find(".caption"),o.removeClass("active"),o.velocity({opacity:0},{duration:e.transition,queue:!1,easing:"easeOutQuad",complete:function(){u.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),i($caption,e.transition),e.indicators&&a.eq(c).removeClass("active"),u.eq(t).velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),u.eq(t).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,delay:e.transition,queue:!1,easing:"easeOutQuad"}),u.eq(t).addClass("active"),e.indicators&&a.eq(t).addClass("active"))}var o,a,s,r=t(this),l=r.find("ul.slides").first(),u=l.find("li"),c=l.find(".active").index();-1!=c&&(o=u.eq(c)),r.hasClass("fullscreen")||(e.indicators?r.height(e.height+40):r.height(e.height),l.height(e.height)),u.find(".caption").each((function(){i(t(this),0)})),u.find("img").each((function(){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(this).attr("src")!==e&&(t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src",e))})),e.indicators&&(a=t('<ul class="indicators"></ul>'),u.each((function(i){var o=t('<li class="indicator-item"></li>');o.click((function(){n(l.parent().find(t(this)).index()),clearInterval(s),s=setInterval((function(){c=l.find(".active").index(),u.length==c+1?c=0:c+=1,n(c)}),e.transition+e.interval)})),a.append(o)})),r.append(a),a=r.find("ul.indicators").find("li.indicator-item")),o?o.show():(u.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),c=0,o=u.eq(c),e.indicators&&a.eq(c).addClass("active")),o.find("img").each((function(){o.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})})),s=setInterval((function(){n((c=l.find(".active").index())+1)}),e.transition+e.interval);var d=!1,h=!1;r.hammer({prevent_default:!1}).bind("pan",(function(t){if("touch"===t.gesture.pointerType){clearInterval(s);var e,i=t.gesture.direction,n=t.gesture.deltaX,o=t.gesture.velocityX;$curr_slide=l.find(".active"),$curr_slide.velocity({translateX:n},{duration:50,queue:!1,easing:"easeOutQuad"}),4===i&&(n>r.innerWidth()/2||-.65>o)?h=!0:2===i&&(n<-1*r.innerWidth()/2||o>.65)&&(d=!0),d&&(0===(e=$curr_slide.next()).length&&(e=u.first()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),h&&(0===(e=$curr_slide.prev()).length&&(e=u.last()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}})).bind("panend",(function(t){"touch"===t.gesture.pointerType&&($curr_slide=l.find(".active"),!1,curr_index=l.find(".active").index(),!h&&!d||u.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):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})}})):h&&(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})}})),d=!1,h=!1,clearInterval(s),s=setInterval((function(){c=l.find(".active").index(),u.length==c+1?c=0:c+=1,n(c)}),e.transition+e.interval))})),r.on("sliderPause",(function(){clearInterval(s)})),r.on("sliderStart",(function(){clearInterval(s),s=setInterval((function(){c=l.find(".active").index(),u.length==c+1?c=0:c+=1,n(c)}),e.transition+e.interval)})),r.on("sliderNext",(function(){n((c=l.find(".active").index())+1)})),r.on("sliderPrev",(function(){n((c=l.find(".active").index())-1)}))}))},pause:function(){t(this).trigger("sliderPause")},start:function(){t(this).trigger("sliderStart")},next:function(){t(this).trigger("sliderNext")},prev:function(){t(this).trigger("sliderPrev")}};t.fn.slider=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){t(document).ready((function(){t(document).on("click.card",".card",(function(e){t(this).find("> .card-reveal").length&&(t(e.target).is(t(".card-reveal .card-title"))||t(e.target).is(t(".card-reveal .card-title i"))?t(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){t(this).css({display:"none"})}}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&(t(e.target).closest(".card").css("overflow","hidden"),t(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))),t(".card-reveal").closest(".card").css("overflow","hidden")}))}))}(jQuery),function(t){t(document).ready((function(){t(document).on("click.chip",".chip .material-icons",(function(e){t(this).parent().remove()}))}))}(jQuery),function(t){t.fn.pushpin=function(e){return e=t.extend({top:0,bottom:1/0,offset:0},e),$index=0,this.each((function(){function i(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function n(n,o){n.each((function(){e.top<=o&&e.bottom>=o&&!t(this).hasClass("pinned")&&(i(t(this)),t(this).css("top",e.offset),t(this).addClass("pinned")),o<e.top&&!t(this).hasClass("pin-top")&&(i(t(this)),t(this).css("top",0),t(this).addClass("pin-top")),o>e.bottom&&!t(this).hasClass("pin-bottom")&&(i(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",e.bottom-s))}))}var o=Materialize.guid(),a=t(this),s=t(this).offset().top;n(a,t(window).scrollTop()),t(window).on("scroll."+o,(function(){var i=t(window).scrollTop()+e.offset;n(a,i)}))}))}}(jQuery),function(t){t(document).ready((function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",(function(i){var n=t(this);e(n)})),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",(function(e){var n=t(this);i(n)})),t(document).on("click.fixedActionBtn",".fixed-action-btn.click-to-toggle > a",(function(n){var o=t(this).parent();o.hasClass("active")?i(o):e(o)}))})),t.fn.extend({openFAB:function(){e(t(this))},closeFAB:function(){i(t(this))}});var e=function(e){if($this=e,!1===$this.hasClass("active")){var i,n;!0===$this.hasClass("horizontal")?n=40:i=40,$this.addClass("active"),$this.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:i+"px",translateX:n+"px"},{duration:0});var o=0;$this.find("ul .btn-floating").reverse().each((function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:o}),o+=40}))}},i=function(t){var e,i;$this=t,!0===$this.hasClass("horizontal")?i=40:e=40,$this.removeClass("active"),$this.find("ul .btn-floating").velocity("stop",!0),$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:e+"px",translateX:i+"px"},{duration:80})}}(jQuery),function(t){Materialize.fadeInImage=function(e){var i=t(e);i.css({opacity:0}),t(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(i).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,i){i.start=100;var n=e/100,o=150-(100-e)/1.75;100>o&&(o=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+n+")brightness("+o+"%)",filter:"grayscale("+n+")brightness("+o+"%)"})}})},Materialize.showStaggeredList=function(e){var i=0;t(e).find("li").velocity({translateX:"-100px"},{duration:0}),t(e).find("li").each((function(){t(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:i,easing:[60,10]}),i+=120}))},t(document).ready((function(){var e=!1,i=!1;t(".dismissable").each((function(){t(this).hammer({prevent_default:!1}).bind("pan",(function(n){if("touch"===n.gesture.pointerType){var o=t(this),a=n.gesture.direction,s=n.gesture.deltaX,r=n.gesture.velocityX;o.velocity({translateX:s},{duration:50,queue:!1,easing:"easeOutQuad"}),4===a&&(s>o.innerWidth()/2||-.75>r)&&(e=!0),2===a&&(s<-1*o.innerWidth()/2||r>.75)&&(i=!0)}})).bind("panend",(function(n){if(Math.abs(n.gesture.deltaX)<t(this).innerWidth()/2&&(i=!1,e=!1),"touch"===n.gesture.pointerType){var o,a=t(this);if(e||i)o=e?a.innerWidth():-1*a.innerWidth(),a.velocity({translateX:o},{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"});e=!1,i=!1}}))}))}))}(jQuery),Materialize.scrollFire=function(t){var e=!1;window.addEventListener("scroll",(function(){e=!0})),setInterval((function(){if(e){e=!1;for(var i=window.pageYOffset+window.innerHeight,n=0;n<t.length;n++){var o=t[n],a=o.selector,s=o.offset,r=o.callback,l=document.querySelector(a);null!==l&&i>l.getBoundingClientRect().top+window.pageYOffset+s&&!0!==o.done&&("function"==typeof r?r.call(this):"string"==typeof r&&new Function(r)(),o.done=!0)}}}),100)},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(o,s,u,c){function d(){return e._.node("div",e._.node("div",e._.node("div",e._.node("div",w.component.nodes(m.open),v.box),v.wrap),v.frame),v.holder)}function h(t){var e=t.keyCode,i=/^(8|46)$/.test(e);return 27==e?(w.close(),!1):void((32==e||i||!m.open&&w.component.key[e])&&(t.preventDefault(),t.stopPropagation(),i?w.clear().close():w.open()))}function p(t){t.stopPropagation(),"focus"==t.type&&w.$root.addClass(v.focused),w.open()}if(!o)return e;var f=!1,m={id:o.id||"P"+Math.abs(~~(Math.random()*new Date))},g=u?t.extend(!0,{},u.defaults,c):c||{},v=t.extend({},e.klasses(),g.klass),y=t(o),b=function(){return this.start()},w=b.prototype={constructor:b,$node:y,start:function(){return m&&m.start?w:(m.methods={},m.start=!0,m.open=!1,m.type=o.type,o.autofocus=o==a(),o.readOnly=!g.editable,o.id=o.id||m.id,"text"!=o.type&&(o.type="text"),w.component=new u(w,g),w.$root=t(e._.node("div",d(),v.picker,'id="'+o.id+'_root" tabindex="0"')),w.$root.on({keydown:h,focusin:function(t){w.$root.removeClass(v.focused),t.stopPropagation()},"mousedown click":function(e){var i=e.target;i!=w.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(i).is("input, select, textarea, button, option")||(e.preventDefault(),w.$root.eq(0).focus()))}}).on({focus:function(){y.addClass(v.target)},blur:function(){y.removeClass(v.target)}}).on("focus.toOpen",p).on("click","[data-pick], [data-nav], [data-clear], [data-close]",(function(){var e=t(this),i=e.data(),n=e.hasClass(v.navDisabled)||e.hasClass(v.disabled),o=a();o=o&&(o.type||o.href),(n||o&&!t.contains(w.$root[0],o))&&w.$root.eq(0).focus(),!n&&i.nav?w.set("highlight",w.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?w.set("select",i.pick):i.clear?w.clear().close(!0):i.close&&w.close(!0)})),n(w.$root[0],"hidden",!0),g.formatSubmit&&function(){var e;!0===g.hiddenName?(e=o.name,o.name=""):e=(e=["string"==typeof g.hiddenPrefix?g.hiddenPrefix:"","string"==typeof g.hiddenSuffix?g.hiddenSuffix:"_submit"])[0]+o.name+e[1],w._hidden=t('<input type=hidden name="'+e+'"'+(y.data("value")||o.value?' value="'+w.get("select",g.formatSubmit)+'"':"")+">")[0],y.on("change."+m.id,(function(){w._hidden.value=o.value?w.get("select",g.formatSubmit):""})),g.container?t(g.container).append(w._hidden):y.after(w._hidden)}(),y.data(s,w).addClass(v.input).attr("tabindex",-1).val(y.data("value")?w.get("select",g.format):o.value),g.editable||y.on("focus."+m.id+" click."+m.id,(function(t){t.preventDefault(),w.$root.eq(0).focus()})).on("keydown."+m.id,h),n(o,{haspopup:!0,expanded:!1,readonly:!1,owns:o.id+"_root"}),g.container?t(g.container).append(w.$root):y.after(w.$root),w.on({start:w.component.onStart,render:w.component.onRender,stop:w.component.onStop,open:w.component.onOpen,close:w.component.onClose,set:w.component.onSet}).on({start:g.onStart,render:g.onRender,stop:g.onStop,open:g.onOpen,close:g.onClose,set:g.onSet}),f=function(t){var e,i="position";return t.currentStyle?e=t.currentStyle[i]:window.getComputedStyle&&(e=getComputedStyle(t)[i]),"fixed"==e}(w.$root.children()[0]),o.autofocus&&w.open(),w.trigger("start").trigger("render"))},render:function(t){return t?w.$root.html(d()):w.$root.find("."+v.box).html(w.component.nodes(m.open)),w.trigger("render")},stop:function(){return m.start?(w.close(),w._hidden&&w._hidden.parentNode.removeChild(w._hidden),w.$root.remove(),y.removeClass(v.input).removeData(s),setTimeout((function(){y.off("."+m.id)}),0),o.type=m.type,o.readOnly=!1,w.trigger("stop"),m.methods={},m.start=!1,w):w},open:function(a){return m.open?w:(y.addClass(v.active),n(o,"expanded",!0),setTimeout((function(){w.$root.addClass(v.opened),n(w.$root[0],"hidden",!1)}),0),!1!==a&&(m.open=!0,f&&l.css("overflow","hidden").css("padding-right","+="+i()),w.$root.eq(0).focus(),r.on("click."+m.id+" focusin."+m.id,(function(t){var e=t.target;e!=o&&e!=document&&3!=t.which&&w.close(e===w.$root.children()[0])})).on("keydown."+m.id,(function(i){var n=i.keyCode,o=w.component.key[n],a=i.target;27==n?w.close(!0):a!=w.$root[0]||!o&&13!=n?t.contains(w.$root[0],a)&&13==n&&(i.preventDefault(),a.click()):(i.preventDefault(),o?e._.trigger(w.component.key.go,w,[e._.trigger(o)]):w.$root.find("."+v.highlighted).hasClass(v.disabled)||w.set("select",w.component.item.highlight).close())}))),w.trigger("open"))},close:function(t){return t&&(w.$root.off("focus.toOpen").eq(0).focus(),setTimeout((function(){w.$root.on("focus.toOpen",p)}),0)),y.removeClass(v.active),n(o,"expanded",!1),setTimeout((function(){w.$root.removeClass(v.opened+" "+v.focused),n(w.$root[0],"hidden",!0)}),0),m.open?(m.open=!1,f&&l.css("overflow","").css("padding-right","-="+i()),r.off("."+m.id),w.trigger("close")):w},clear:function(t){return w.set("clear",null,t)},set:function(e,i,n){var o,a,s=t.isPlainObject(e),r=s?e:{};if(n=s&&t.isPlainObject(i)?i:n||{},e){for(o in s||(r[e]=i),r)a=r[o],o in w.component.item&&(void 0===a&&(a=null),w.component.set(o,a,n)),("select"==o||"clear"==o)&&y.val("clear"==o?"":w.get(o,g.format)).trigger("change");w.render()}return n.muted?w:w.trigger("set",r)},get:function(t,i){if(null!=m[t=t||"value"])return m[t];if("valueSubmit"==t){if(w._hidden)return w._hidden.value;t="value"}if("value"==t)return o.value;if(t in w.component.item){if("string"==typeof i){var n=w.component.get(t);return n?e._.trigger(w.component.formats.toString,w.component,[i,n]):""}return w.component.get(t)}},on:function(e,i,n){var o,a,s=t.isPlainObject(e),r=s?e:{};if(e)for(o in s||(r[e]=i),r)a=r[o],n&&(o="_"+o),m.methods[o]=m.methods[o]||[],m.methods[o].push(a);return w},off:function(){var t,e,i=arguments;for(t=0,namesCount=i.length;t<namesCount;t+=1)(e=i[t])in m.methods&&delete m.methods[e];return w},trigger:function(t,i){var n=function(t){var n=m.methods[t];n&&n.map((function(t){e._.trigger(t,w,[i])}))};return n("_"+t),n(t),w}};return new b}function i(){if(l.height()<=s.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)[0].offsetWidth;return e.remove(),i-n}function n(e,i,n){if(t.isPlainObject(i))for(var a in i)o(e,a,i[a]);else o(e,i,n)}function o(t,e,i){t.setAttribute(("role"==e?"":"aria-")+e,i)}function a(){try{return document.activeElement}catch(t){}}var s=t(window),r=t(document),l=t(document.documentElement);return e.klasses=function(t){return{picker:t=t||"picker",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="",o=e._.trigger(t.min,t);o<=e._.trigger(t.max,t,[o]);o+=t.i)i=e._.trigger(t.item,t,[o]),n+=e._.node(t.node,i[0],i[1],i[2]);return n},node:function(e,i,n,o){return i?"<"+e+(n=n?' class="'+n+'"':"")+(o=o?" "+o:"")+">"+(i=t.isArray(i)?i.join(""):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:function(e,i){for(var n in t.isPlainObject(e)||(e={attribute:i}),i="",e){var o=("role"==n?"":"aria-")+n;i+=null==e[n]?"":o+'="'+e[n]+'"'}return i}},e.extend=function(i,n){t.fn[i]=function(o,a){var s=this.data(i);return"picker"==o?s:s&&"string"==typeof o?e._.trigger(s[o],s,[a]):this.each((function(){t(this).data(i)||new e(this,i,n,o)}))},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],o=n.value,a=t.$node.data("value"),s=a||o,r=a?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!0===t[0]?t.shift():-1}(i.item.disable),i.set("min",e.min).set("max",e.max).set("now"),s?i.set("select",s,{format:r}):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=t._;i.prototype.set=function(t,e,i){var n=this,o=n.item;return null===e?("clear"==t&&(t="select"),o[t]=e,n):(o["enable"==t?"disable":"flip"==t?"enable":t]=n.queue[t].split(" ").map((function(o){return e=n[o](t,e,i)})).pop(),"select"==t?n.set("highlight",o.select,i):"highlight"==t?n.set("view",o.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&n.disabled(o.select)&&n.set("select",o.select,i),o.highlight&&n.disabled(o.highlight)&&n.set("highlight",o.highlight,i)),n)},i.prototype.get=function(t){return this.item[t]},i.prototype.create=function(t,i,o){var a,s=this;return(i=void 0===i?t:i)==-1/0||i==1/0?a=i:e.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=n.isDate(i)?i:s.create().obj):i=n.isInteger(i)||n.isDate(i)?s.normalize(new Date(i),o):s.now(t,i,o),{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 o=this,a=function(t){return!0===t||e.isArray(t)||n.isDate(t)?o.create(t):t};return n.isInteger(t)||(t=a(t)),n.isInteger(i)||(i=a(i)),n.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:n.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 o,a,s,r,l=e.isArray(i),u=e.isPlainObject(i),c=this.item.view;if(l||u){for(u?(a=i.year,s=i.month,r=i.date):(a=+i[0],s=+i[1],r=+i[2]),n&&n.nav&&c&&c.month!==s&&(a=c.year,s=c.month),a=(o=new Date(a,s+(n&&n.nav?n.nav:0),1)).getFullYear(),s=o.getMonth();new Date(a,s,r).getMonth()!==s;)r-=1;i=[a,s,r]}return i},i.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},i.prototype.measure=function(t,e){return e?"string"==typeof e?e=this.parse(t,e):n.isInteger(e)&&(e=this.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,o){var a,s,r,l,u=this,c=i,d=o&&o.interval?o.interval:1,h=-1===u.item.enable,p=u.item.min,f=u.item.max,m=h&&u.item.disable.filter((function(t){if(e.isArray(t)){var o=u.create(t).pick;o<i.pick?a=!0:o>i.pick&&(s=!0)}return n.isInteger(t)})).length;if((!o||!o.nav)&&(!h&&u.disabled(i)||h&&u.disabled(i)&&(m||a||s)||!h&&(i.pick<=p.pick||i.pick>=f.pick)))for(h&&!m&&(!s&&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?(r=!0,d=1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=f.pick&&(l=!0,d=-1,i=u.create([f.year,f.month,f.date+(i.pick===f.pick?0:1)])),!r||!l);)i=u.create([i.year,i.month,i.date+d]);return i},i.prototype.disabled=function(t){var i=this,o=i.item.disable.filter((function(o){return n.isInteger(o)?t.day===(i.settings.firstDay?o:o-1)%7:e.isArray(o)||n.isDate(o)?t.pick===i.create(o).pick:e.isPlainObject(o)?i.withinRange(o,t):void 0}));return o=o.length&&!o.filter((function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted})).length,-1===i.item.enable?!o:o||t.pick<i.item.min.pick||t.pick>i.item.max.pick},i.prototype.parse=function(t,e,i){var o=this,a={};return e&&"string"==typeof e?(i&&i.format||((i=i||{}).format=o.settings.format),o.formats.toArray(i.format).map((function(t){var i=o.formats[t],s=i?n.trigger(i,o,[e,a]):t.replace(/^!/,"").length;i&&(a[t]=e.substr(0,s)),e=e.substr(s)})),[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?n.digits(t):e.date},dd:function(t,e){return t?2:n.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?n.digits(t):e.month+1},mm:function(t,e){return t?2:n.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 n.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")})).join("")}}}(),i.prototype.isDateExact=function(t,i){var o=this;return n.isInteger(t)&&n.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(n.isDate(t)||e.isArray(t))&&(n.isDate(i)||e.isArray(i))?o.create(t).pick===o.create(i).pick:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&(o.isDateExact(t.from,i.from)&&o.isDateExact(t.to,i.to))},i.prototype.isDateOverlap=function(t,i){var o=this,a=o.settings.firstDay?1:0;return n.isInteger(t)&&(n.isDate(i)||e.isArray(i))?(t=t%7+a)===o.create(i).day+1:n.isInteger(i)&&(n.isDate(t)||e.isArray(t))?(i=i%7+a)===o.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&o.overlapRanges(t,i)},i.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},i.prototype.deactivate=function(t,i){var o=this,a=o.item.disable.slice(0);return"flip"==i?o.flipEnable():!1===i?(o.flipEnable(1),a=[]):!0===i?(o.flipEnable(-1),a=[]):i.map((function(t){for(var i,s=0;s<a.length;s+=1)if(o.isDateExact(t,a[s])){i=!0;break}i||(n.isInteger(t)||n.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&a.push(t)})),a},i.prototype.activate=function(t,i){var o=this,a=o.item.disable,s=a.length;return"flip"==i?o.flipEnable():!0===i?(o.flipEnable(1),a=[]):!1===i?(o.flipEnable(-1),a=[]):i.map((function(t){var i,r,l,u;for(l=0;s>l;l+=1){if(r=a[l],o.isDateExact(r,t)){i=a[l]=null,u=!0;break}if(o.isDateOverlap(r,t)){e.isPlainObject(t)?(t.inverted=!0,i=t):e.isArray(t)?(i=t)[3]||i.push("inverted"):n.isDate(t)&&(i=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(i)for(l=0;s>l;l+=1)if(o.isDateExact(a[l],t)){a[l]=null;break}if(u)for(l=0;s>l;l+=1)if(o.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,a=o.now,s=o.select,r=o.highlight,l=o.view,u=o.disable,c=o.min,d=o.max,h=function(t,e){return i.firstDay&&(t.push(t.shift()),e.push(e.shift())),n.node("thead",n.node("tr",n.group({min:0,max:6,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)),p=function(t){return n.node("div"," ",i.klass["nav"+(t?"Next":"Prev")]+(t&&l.year>=d.year&&l.month>=d.month||!t&&l.year<=c.year&&l.month<=c.month?" "+i.klass.navDisabled:""),"data-nav="+(t||-1)+" "+n.ariaAttr({role:"button",controls:e.$node[0].id+"_table"})+' title="'+(t?i.labelMonthNext:i.labelMonthPrev)+'"')},f=function(o){var a=i.showMonthsShort?i.monthsShort:i.monthsFull;return"short_months"==o&&(a=i.monthsShort),i.selectMonths&&null==o?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(t){return[a[t],0,"value="+t+(l.month==t?" selected":"")+(l.year==c.year&&t<c.month||l.year==d.year&&t>d.month?" disabled":"")]}}),i.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):"short_months"==o?null!=s?n.node("div",a[s.month]):n.node("div",a[l.month]):n.node("div",a[l.month],i.klass.month)},m=function(o){var a=l.year,s=!0===i.selectYears?5:~~(i.selectYears/2);if(s){var r=c.year,u=d.year,h=a-s,p=a+s;if(r>h&&(p+=r-h,h=r),p>u){var f=h-r,m=p-u;h-=f>m?m:f,p=u}if(i.selectYears&&null==o)return n.node("select",n.group({min:h,max:p,i:1,node:"option",item:function(t){return[t,0,"value="+t+(a==t?" selected":"")]}}),i.klass.selectYear+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return"raw"==o?n.node("div",a):n.node("div",a,i.klass.year)};return createDayLabel=function(){return null!=s?n.node("div",s.date):n.node("div",a.date)},createWeekdayLabel=function(){var t;return t=null!=s?s.day:a.day,i.weekdaysFull[t]},n.node("div",n.node("div",createWeekdayLabel(),"picker__weekday-display")+n.node("div",f("short_months"),i.klass.month_display)+n.node("div",createDayLabel(),i.klass.day_display)+n.node("div",m("raw"),i.klass.year_display),i.klass.date_display)+n.node("div",n.node("div",(i.selectYears,f()+m()+p()+p(1)),i.klass.header)+n.node("table",h+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(t){var o=i.firstDay&&0===e.create([l.year,l.month,1]).day?-7:0;return[n.group({min:7*t-l.day+o+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=e.create([l.year,l.month,t+(i.firstDay?1:0)]);var o=s&&s.pick==t.pick,h=r&&r.pick==t.pick,p=u&&e.disabled(t)||t.pick<c.pick||t.pick>d.pick,f=n.trigger(e.formats.toString,e,[i.format,t]);return[n.node("div",t.date,function(e){return e.push(l.month==t.month?i.klass.infocus:i.klass.outfocus),a.pick==t.pick&&e.push(i.klass.now),o&&e.push(i.klass.selected),h&&e.push(i.klass.highlighted),p&&e.push(i.klass.disabled),e.join(" ")}([i.klass.day]),"data-pick="+t.pick+" "+n.ariaAttr({role:"gridcell",label:f,selected:!(!o||e.$node.val()!==f)||null,activedescendant:!!h||null,disabled:!!p||null})),"",n.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+e.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:e.$node[0].id,readonly:!0})),i.klass.calendar_container)+n.node("div",n.node("button",i.today,"btn-flat picker__today","type=button data-pick="+a.pick+(t&&!e.disabled(a)?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.clear,"btn-flat picker__clear","type=button data-clear=1"+(t?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.close,"btn-flat picker__close","type=button data-close=true "+(t?"":" disabled")+" "+n.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:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Close",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(t){function e(){var e=+t(this).attr("length"),i=+t(this).val().length,n=e>=i;t(this).parent().find('span[class="character-counter"]').html(i+"/"+e),function(t,e){var i=e.hasClass("invalid");t&&i?e.removeClass("invalid"):t||i||(e.removeClass("valid"),e.addClass("invalid"))}(n,t(this))}function i(){t(this).parent().find('span[class="character-counter"]').html("")}t.fn.characterCounter=function(){return this.each((function(){var n=t(this);n.parent().find('span[class="character-counter"]').length||void 0!==n.attr("length")&&(n.on("input",e),n.on("focus",e),n.on("blur",i),function(e){var i=e.parent().find('span[class="character-counter"]');i.length||(i=t("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),e.parent().append(i))}(n))}))},t(document).ready((function(){t("input, textarea").characterCounter()}))}(jQuery),function(t){var e={init:function(e){return e=t.extend({time_constant:200,dist:-100,shift:0,padding:0,full_width:!1},e),this.each((function(){function i(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function n(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function o(t){return t>=v?t%v:0>t?o(v+t%v):t}function a(t){var i,n,a,s,r,l,u;for(p="number"==typeof t?t:p,f=Math.floor((p+g/2)/g),r=-(s=0>(a=p-f*g)?1:-1)*a*2/g,e.full_width?u="translateX(0)":(u="translateX("+(A[0].clientWidth-item_width)/2+"px) ",u+="translateY("+(A[0].clientHeight-item_width)/2+"px)"),(l=h[o(f)]).style[k]=u+" translateX("+-a/2+"px) translateX("+s*e.shift*r*i+"px) translateZ("+e.dist*r+"px)",l.style.zIndex=0,e.full_width?tweenedOpacity=1:tweenedOpacity=1-.2*r,l.style.opacity=tweenedOpacity,n=v>>1,i=1;n>=i;++i)e.full_width?(zTranslation=e.dist,tweenedOpacity=i===n&&0>a?1-r:1):(zTranslation=e.dist*(2*i+r*s),tweenedOpacity=1-.2*(2*i+r*s)),(l=h[o(f+i)]).style[k]=u+" translateX("+(e.shift+(g*i-a)/2)+"px) translateZ("+zTranslation+"px)",l.style.zIndex=-i,l.style.opacity=tweenedOpacity,e.full_width?(zTranslation=e.dist,tweenedOpacity=i===n&&a>0?1-r:1):(zTranslation=e.dist*(2*i-r*s),tweenedOpacity=1-.2*(2*i-r*s)),(l=h[o(f-i)]).style[k]=u+" translateX("+(-e.shift+(-g*i-a)/2)+"px) translateZ("+zTranslation+"px)",l.style.zIndex=-i,l.style.opacity=tweenedOpacity;(l=h[o(f)]).style[k]=u+" translateX("+-a/2+"px) translateX("+s*e.shift*r+"px) translateZ("+e.dist*r+"px)",l.style.zIndex=0,e.full_width?tweenedOpacity=1:tweenedOpacity=1-.2*r,l.style.opacity=tweenedOpacity}function s(){var t,e,i;e=(t=Date.now())-_,_=t,i=p-T,T=p,x=.8*(1e3*i/(1+e))+.2*x}function r(){var t,i;S&&(t=Date.now()-_,(i=S*Math.exp(-t/e.time_constant))>2||-2>i?(a(C-i),requestAnimationFrame(r)):a(C))}function l(i){if(P)return i.preventDefault(),i.stopPropagation(),!1;if(!e.full_width){var n=t(i.target).closest(".carousel-item").index(),o=f%v-n;0>o?Math.abs(o+v)<Math.abs(o)&&(o+=v):o>0&&Math.abs(o-v)<o&&(o-=v),0>o?t(this).trigger("carouselNext",[Math.abs(o)]):o>0&&t(this).trigger("carouselPrev",[o])}}function u(t){m=!0,P=!1,M=!1,b=i(t),w=n(t),x=S=0,T=p,_=Date.now(),clearInterval(O),O=setInterval(s,100)}function c(t){var e,o;if(m)if(e=i(t),y=n(t),o=b-e,30>Math.abs(w-y)&&!M)(o>2||-2>o)&&(P=!0,b=e,a(p+o));else{if(P)return t.preventDefault(),t.stopPropagation(),!1;M=!0}return P?(t.preventDefault(),t.stopPropagation(),!1):void 0}function d(t){return m=!1,clearInterval(O),C=p,(x>10||-10>x)&&(C=p+(S=.9*x)),C=Math.round(C/g)*g,S=C-p,_=Date.now(),requestAnimationFrame(r),t.preventDefault(),t.stopPropagation(),!1}var h,p,f,m,g,v,b,w,S,C,x,k,T,_,O,P,M,A=t(this);return!!A.hasClass("initialized")||(e.full_width&&(e.dist=0,imageHeight=A.find(".carousel-item img").first().load((function(){A.css("height",t(this).height())}))),A.addClass("initialized"),m=!1,p=C=0,h=[],item_width=A.find(".carousel-item").first().innerWidth(),g=2*item_width+e.padding,A.find(".carousel-item").each((function(){h.push(t(this)[0])})),v=h.length,k="transform",["webkit","Moz","O","ms"].every((function(t){var e=t+"Transform";return void 0===document.body.style[e]||(k=e,!1)})),window.onresize=a,void 0!==window.ontouchstart&&(A[0].addEventListener("touchstart",u),A[0].addEventListener("touchmove",c),A[0].addEventListener("touchend",d)),A[0].addEventListener("mousedown",u),A[0].addEventListener("mousemove",c),A[0].addEventListener("mouseup",d),A[0].addEventListener("click",l),a(p),t(this).on("carouselNext",(function(t,e){void 0===e&&(e=1),p!==(C=p+g*e)&&(S=C-p,_=Date.now(),requestAnimationFrame(r))})),void t(this).on("carouselPrev",(function(t,e){void 0===e&&(e=1),p!==(C=p-g*e)&&(S=C-p,_=Date.now(),requestAnimationFrame(r))})))}))},next:function(e){t(this).trigger("carouselNext",[e])},prev:function(e){t(this).trigger("carouselPrev",[e])}};t.fn.carousel=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.carousel"):e.init.apply(this,arguments)}}(jQuery),function(t,e,i){var n=/\+/g;function o(t){return t}function a(t){return decodeURIComponent(t.replace(n," "))}var s=t.cookie=function(i,n,r){if(void 0!==n){if(r=t.extend({},s.defaults,r),null===n&&(r.expires=-1),"number"==typeof r.expires){var l=r.expires,u=r.expires=new Date;u.setDate(u.getDate()+l)}return n=s.json?JSON.stringify(n):String(n),e.cookie=[encodeURIComponent(i),"=",s.raw?n:encodeURIComponent(n),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}for(var c=s.raw?o:a,d=e.cookie.split("; "),h=0,p=d.length;h<p;h++){var f=d[h].split("=");if(c(f.shift())===i){var m=c(f.join("="));return s.json?JSON.parse(m):m}}return null};s.defaults={},t.removeCookie=function(e,i){return null!==t.cookie(e)&&(t.cookie(e,null,i),!0)}}(jQuery,document),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,n){var o,a=this;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.focussed=!1,a.interrupted=!1,a.hidden="hidden",a.paused=!0,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=t(i),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,o=t(i).data("slick")||{},a.options=t.extend({},a.defaults,n,o),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,void 0!==document.mozHidden?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=t.proxy(a.autoPlay,a),a.autoPlayClear=t.proxy(a.autoPlayClear,a),a.autoPlayIterator=t.proxy(a.autoPlayIterator,a),a.changeSlide=t.proxy(a.changeSlide,a),a.clickHandler=t.proxy(a.clickHandler,a),a.selectHandler=t.proxy(a.selectHandler,a),a.setPosition=t.proxy(a.setPosition,a),a.swipeHandler=t.proxy(a.swipeHandler,a),a.dragHandler=t.proxy(a.dragHandler,a),a.keyHandler=t.proxy(a.keyHandler,a),a.instanceUid=e++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(0>i||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):!0===n?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?(n[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?n[o.animType]="translate3d("+e+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout((function(){o.disableTransition(),i.call()}),o.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(!0===e.options.centerMode||!0===e.options.swipeToSlide)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,o,a,s,r=this;if(n=document.createDocumentFragment(),a=r.$slider.children(),r.options.rows>1){for(s=r.options.slidesPerRow*r.options.rows,o=Math.ceil(a.length/s),t=0;o>t;t++){var l=document.createElement("div");for(e=0;e<r.options.rows;e++){var u=document.createElement("div");for(i=0;i<r.options.slidesPerRow;i++){var c=t*s+(e*r.options.slidesPerRow+i);a.get(c)&&u.appendChild(a.get(c))}l.appendChild(u)}n.appendChild(l)}r.$slider.empty().append(n),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,o,a,s=this,r=!1,l=s.$slider.width(),u=window.innerWidth||t(window).width();if("window"===s.respondTo?a=u:"slider"===s.respondTo?a=l:"min"===s.respondTo&&(a=Math.min(u,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(n in o=null,s.breakpoints)s.breakpoints.hasOwnProperty(n)&&(!1===s.originalSettings.mobileFirst?a<s.breakpoints[n]&&(o=s.breakpoints[n]):a>s.breakpoints[n]&&(o=s.breakpoints[n]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||i)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[o]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),r=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[o]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),r=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e),r=o),e||!1===r||s.$slider.trigger("breakpoint",[s,r])}},e.prototype.changeSlide=function(e,i){var n,o,a=this,s=t(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),n=a.slideCount%a.options.slidesToScroll!=0?0:(a.slideCount-a.currentSlide)%a.options.slidesToScroll,e.data.message){case"previous":o=0===n?a.options.slidesToScroll:a.options.slidesToShow-n,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide-o,!1,i);break;case"next":o=0===n?a.options.slidesToScroll:n,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+o,!1,i);break;case"index":var r=0===e.data.index?0:e.data.index||s.index()*a.options.slidesToScroll;a.slideHandler(a.checkNavigable(r),!1,i),s.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",(function(i){i.stopImmediatePropagation();var n=t(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())}),0)}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,o=this,a=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,a=i*o.options.slidesToShow*-1),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,a=(o.options.slidesToShow-(t-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,a=o.slideCount%o.options.slidesToScroll*i*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(t+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,a=0),!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*i*-1+a,!0===o.options.variableWidth&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(o.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);t>i;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(o,a){return a.offsetLeft-i+t(a).outerWidth()/2>-1*n.swipeLeft?(e=a,!1):void 0})),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})})),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each((function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})})).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,(function(){e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,e,i])}))},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i])},n.src=i}))}var i,n,o=this;!0===o.options.centerMode?!0===o.options.infinite?n=(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),n=o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,n=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(i>0&&i--,n<=o.slideCount&&n++)),e(o.$slider.find(".slick-slide").slice(i,n)),o.slideCount<=o.options.slidesToShow?e(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?e(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&e(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&e.initADA())},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,a=this,s=t("img[data-lazy]",a.$slider);s.length?(i=s.first(),n=i.attr("data-lazy"),(o=document.createElement("img")).onload=function(){i.attr("src",n).removeAttr("data-lazy").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},o.onerror=function(){3>e?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},o.src=n):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,o=this,a=o.options.responsive||null
;if("array"===t.type(a)&&a.length){for(e in o.respondTo=o.options.respondTo||"window",a)if(n=o.breakpoints.length-1,i=a[e].breakpoint,a.hasOwnProperty(e)){for(;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=a[e].settings}o.breakpoints.sort((function(t,e){return o.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?t=!0===(e=t)?0:n.slideCount-1:t=!0===e?--t:t,!(n.slideCount<1||0>t||t>n.slideCount-1)&&(n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(o):(o={},!1===n.cssTransitions?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each((function(n,o){e=i.slideWidth*n*-1,!0===i.options.rtl?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,o,a,s=this,r=!1;if("object"===t.type(arguments[0])?(n=arguments[0],r=arguments[1],a="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],o=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?a="responsive":void 0!==arguments[1]&&(a="single")),"single"===a)s.options[n]=o;else if("multiple"===a)t.each(n,(function(t,e){s.options[t]=e}));else if("responsive"===a)for(i in o)if("array"!==t.type(s.options.responsive))s.options.responsive=[o[i]];else{for(e=s.options.responsive.length-1;e>=0;)s.options.responsive[e].breakpoint===o[i].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(o[i])}r&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,n,o,a=this;i=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(t).addClass("slick-current"),!0===a.options.centerMode?(e=Math.floor(a.options.slidesToShow/2),!0===a.options.infinite&&(t>=e&&t<=a.slideCount-1-e?a.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=a.options.slidesToShow+t,i.slice(n-e+1,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-a.options.slidesToShow).addClass("slick-center"):t===a.slideCount-1&&i.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(t).addClass("slick-center")):t>=0&&t<=a.slideCount-a.options.slidesToShow?a.$slides.slice(t,t+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=a.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=a.slideCount%a.options.slidesToShow,n=!0===a.options.infinite?a.options.slidesToShow+t:t,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-t<a.options.slidesToShow?i.slice(n-(a.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===a.options.lazyLoad&&a.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;n>e;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));return o||(o=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(o),void i.asNavFor(o)):void i.slideHandler(o)},e.prototype.slideHandler=function(t,e,i){var n,o,a,s,r,l=null,u=this;return e=e||!1,!0===u.animating&&!0===u.options.waitForAnimate||!0===u.options.fade&&u.currentSlide===t||u.slideCount<=u.options.slidesToShow?void 0:(!1===e&&u.asNavFor(t),n=t,l=u.getLeft(n),s=u.getLeft(u.currentSlide),u.currentLeft=null===u.swipeLeft?s:u.swipeLeft,!1===u.options.infinite&&!1===u.options.centerMode&&(0>t||t>u.getDotCount()*u.options.slidesToScroll)||!1===u.options.infinite&&!0===u.options.centerMode&&(0>t||t>u.slideCount-u.options.slidesToScroll)?void(!1===u.options.fade&&(n=u.currentSlide,!0!==i?u.animateSlide(s,(function(){u.postSlide(n)})):u.postSlide(n))):(u.options.autoplay&&clearInterval(u.autoPlayTimer),o=0>n?u.slideCount%u.options.slidesToScroll!=0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+n:n>=u.slideCount?u.slideCount%u.options.slidesToScroll!=0?0:n-u.slideCount:n,u.animating=!0,u.$slider.trigger("beforeChange",[u,u.currentSlide,o]),a=u.currentSlide,u.currentSlide=o,u.setSlideClasses(u.currentSlide),u.options.asNavFor&&((r=(r=u.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(u.currentSlide)),u.updateDots(),u.updateArrows(),!0===u.options.fade?(!0!==i?(u.fadeSlideOut(a),u.fadeSlide(o,(function(){u.postSlide(o)}))):u.postSlide(o),void u.animateHeight()):void(!0!==i?u.animateSlide(l,(function(){u.postSlide(o)})):u.postSlide(o))))},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),0>(n=Math.round(180*i/Math.PI))&&(n=360-Math.abs(n)),45>=n&&n>=0||360>=n&&n>=315?!1===o.options.rtl?"left":"right":n>=135&&225>=n?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?n>=35&&135>=n?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,o,a,s=this;return a=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||a&&1!==a.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==a?a[0].pageX:t.clientX,s.touchObject.curY=void 0!==a?a[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),"vertical"!==(i=s.swipeDirection())?(void 0!==t.originalEvent&&s.touchObject.swipeLength>4&&t.preventDefault(),o=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(o=s.touchObject.curY>s.touchObject.startY?1:-1),n=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===i||s.currentSlide>=s.getDotCount()&&"left"===i)&&(n=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+n*o:s.swipeLeft=e+n*(s.$list.height()/s.listWidth)*o,!0===s.options.verticalSwiping&&(s.swipeLeft=e+n*o),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,o=arguments[0],a=Array.prototype.slice.call(arguments,1),s=n.length;for(t=0;s>t;t++)if("object"==typeof o||void 0===o?n[t].slick=new e(n[t],o):i=n[t].slick[o].apply(n[t].slick,a),void 0!==i)return i;return n}})),function(t){"object"==typeof exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){"use strict";var e={},i=Math.max,n=Math.min;e.c={},e.c.d=t(document),e.c.t=function(t){return t.originalEvent.touches.length-1},e.o=function(){var i=this;this.o=null,this.$=null,this.i=null,this.g=null,this.v=null,this.cv=null,this.x=0,this.y=0,this.w=0,this.h=0,this.$c=null,this.c=null,this.t=0,this.isInit=!1,this.fgColor=null,this.pColor=null,this.dH=null,this.cH=null,this.eH=null,this.rH=null,this.scale=1,this.relative=!1,this.relativeWidth=!1,this.relativeHeight=!1,this.$div=null,this.run=function(){var e=function(t,e){var n;for(n in e)i.o[n]=e[n];i._carve().init(),i._configure()._draw()};if(!this.$.data("kontroled")){if(this.$.data("kontroled",!0),this.extend(),this.o=t.extend({min:void 0!==this.$.data("min")?this.$.data("min"):0,max:void 0!==this.$.data("max")?this.$.data("max"):100,stopper:!0,readOnly:this.$.data("readonly")||"readonly"===this.$.attr("readonly"),cursor:(!0===this.$.data("cursor")?30:this.$.data("cursor"))||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:null==this.$.data("displayinput")||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:!1,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(t){return t},parse:function(t){return parseFloat(t)}},this.o),this.o.flip="anticlockwise"===this.o.rotation||"acw"===this.o.rotation,this.o.inputColor||(this.o.inputColor=this.o.fgColor),this.$.is("fieldset")?(this.v={},this.i=this.$.find("input"),this.i.each((function(e){var n=t(this);i.i[e]=n,i.v[e]=i.o.parse(n.val()),n.bind("change blur",(function(){var t={};t[e]=n.val(),i.val(i._validate(t))}))})),this.$.find("legend").remove()):(this.i=this.$,this.v=this.o.parse(this.$.val()),""===this.v&&(this.v=this.o.min),this.$.bind("change blur",(function(){i.val(i._validate(i.o.parse(i.$.val())))}))),!this.o.displayInput&&this.$.hide(),this.$c=t(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height}),this.$div=t('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+'px;"></div>'),this.$.wrap(this.$div).before(this.$c),this.$div=this.$.parent(),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]),this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null,!this.c)throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}};return this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1),this.relativeWidth=this.o.width%1!=0&&this.o.width.indexOf("%"),this.relativeHeight=this.o.height%1!=0&&this.o.height.indexOf("%"),this.relative=this.relativeWidth||this.relativeHeight,this._carve(),this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v,this.$.bind("configure",e).parent().bind("configure",e),this._listen()._configure()._xy().init(),this.isInit=!0,this.$.val(this.o.format(this.v)),this._draw(),this}},this._carve=function(){if(this.relative){var t=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),e=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(t,e)}else this.w=this.o.width,this.h=this.o.height;return this.$div.css({width:this.w+"px",height:this.h+"px"}),this.$c.attr({width:this.w,height:this.h}),1!==this.scale&&(this.$c[0].width=this.$c[0].width*this.scale,this.$c[0].height=this.$c[0].height*this.scale,this.$c.width(this.w),this.$c.height(this.h)),this},this._draw=function(){var t=!0;i.g=i.c,i.clear(),i.dH&&(t=i.dH()),!1!==t&&i.draw()},this._touch=function(t){var n=function(t){var e=i.xy2val(t.originalEvent.touches[i.t].pageX,t.originalEvent.touches[i.t].pageY);e!=i.cv&&(i.cH&&!1===i.cH(e)||(i.change(i._validate(e)),i._draw()))};return this.t=e.c.t(t),n(t),e.c.d.bind("touchmove.k",n).bind("touchend.k",(function(){e.c.d.unbind("touchmove.k touchend.k"),i.val(i.cv)})),this},this._mouse=function(t){var n=function(t){var e=i.xy2val(t.pageX,t.pageY);e!=i.cv&&(i.cH&&!1===i.cH(e)||(i.change(i._validate(e)),i._draw()))};return n(t),e.c.d.bind("mousemove.k",n).bind("keyup.k",(function(t){if(27===t.keyCode){if(e.c.d.unbind("mouseup.k mousemove.k keyup.k"),i.eH&&!1===i.eH())return;i.cancel()}})).bind("mouseup.k",(function(t){e.c.d.unbind("mousemove.k mouseup.k keyup.k"),i.val(i.cv)})),this},this._xy=function(){var t=this.$c.offset();return this.x=t.left,this.y=t.top,this},this._listen=function(){return this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",(function(t){t.preventDefault(),i._xy()._mouse(t)})).bind("touchstart",(function(t){t.preventDefault(),i._xy()._touch(t)})),this.listen()),this.relative&&t(window).resize(t.debounce(50,(function(){i._carve().init(),i._draw()}))),this},this._configure=function(){return this.o.draw&&(this.dH=this.o.draw),this.o.change&&(this.cH=this.o.change),this.o.cancel&&(this.eH=this.o.cancel),this.o.release&&(this.rH=this.o.release),this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=this.o.fgColor,this},this._clear=function(){this.$c[0].width=this.$c[0].width},this._validate=function(t){var e=~~((t<0?-.5:.5)+t/this.o.step)*this.o.step;return Math.round(100*e)/100},this.listen=function(){},this.extend=function(){},this.init=function(){},this.change=function(t){},this.val=function(t){},this.xy2val=function(t,e){},this.draw=function(){},this.clear=function(){this._clear()},this.h2rgba=function(t,e){var i;return t=t.substring(1,7),"rgba("+(i=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)])[0]+","+i[1]+","+i[2]+","+e+")"},this.copy=function(t,e){for(var i in t)e[i]=t[i]}},e.Dial=function(){e.o.call(this),this.startAngle=null,this.xy=null,this.radius=null,this.lineWidth=null,this.cursorExt=null,this.w2=null,this.PI2=2*Math.PI,this.extend=function(){this.o=t.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)},this.val=function(t,e){if(null==t)return this.v;t=this.o.parse(t),!1!==e&&t!=this.v&&this.rH&&!1===this.rH(t)||(this.cv=this.o.stopper?i(n(t,this.o.max),this.o.min):t,this.v=this.cv,this.$.val(this.o.format(this.v)),this._draw())},this.xy2val=function(t,e){var o,a;return o=Math.atan2(t-(this.x+this.w2),-(e-this.y-this.w2))-this.angleOffset,this.o.flip&&(o=this.angleArc-o-this.PI2),this.angleArc!=this.PI2&&o<0&&o>-.5?o=0:o<0&&(o+=this.PI2),a=o*(this.o.max-this.o.min)/this.angleArc+this.o.min,this.o.stopper&&(a=i(n(a,this.o.max),this.o.min)),a},this.listen=function(){var e,o,a,s,r=this,l=function(t){t.preventDefault();var a=t.originalEvent,s=a.detail||a.wheelDeltaX,l=a.detail||a.wheelDeltaY,u=r._validate(r.o.parse(r.$.val()))+(s>0||l>0?r.o.step:s<0||l<0?-r.o.step:0);u=i(n(u,r.o.max),r.o.min),r.val(u,!1),r.rH&&(clearTimeout(e),e=setTimeout((function(){r.rH(u),e=null}),100),o||(o=setTimeout((function(){e&&r.rH(u),o=null}),200)))},u=1,c={37:-r.o.step,38:r.o.step,39:r.o.step,40:-r.o.step};this.$.bind("keydown",(function(e){var o=e.keyCode;if(o>=96&&o<=105&&(o=e.keyCode=o-48),a=parseInt(String.fromCharCode(o)),isNaN(a)&&(13!==o&&8!==o&&9!==o&&189!==o&&(190!==o||r.$.val().match(/\./))&&e.preventDefault(),t.inArray(o,[37,38,39,40])>-1)){e.preventDefault();var l=r.o.parse(r.$.val())+c[o]*u;r.o.stopper&&(l=i(n(l,r.o.max),r.o.min)),r.change(r._validate(l)),r._draw(),s=window.setTimeout((function(){u*=2}),30)}})).bind("keyup",(function(t){isNaN(a)?s&&(window.clearTimeout(s),s=null,u=1,r.val(r.$.val())):r.$.val()>r.o.max&&r.$.val(r.o.max)||r.$.val()<r.o.min&&r.$.val(r.o.min)})),this.$c.bind("mousewheel DOMMouseScroll",l),this.$.bind("mousewheel DOMMouseScroll",l)},this.init=function(){(this.v<this.o.min||this.v>this.o.max)&&(this.v=this.o.min),this.$.val(this.v),this.w2=this.w/2,this.cursorExt=this.o.cursor/100,this.xy=this.w2*this.scale,this.lineWidth=this.xy*this.o.thickness,this.lineCap=this.o.lineCap,this.radius=this.xy-this.lineWidth/2,this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset),this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc),this.angleOffset=this.o.angleOffset*Math.PI/180,this.angleArc=this.o.angleArc*Math.PI/180,this.startAngle=1.5*Math.PI+this.angleOffset,this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var t=i(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/t>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})},this.change=function(t){this.cv=t,this.$.val(this.o.format(t))},this.angle=function(t){return(t-this.o.min)*this.angleArc/(this.o.max-this.o.min)},this.arc=function(t){var e,i;return t=this.angle(t),i=this.o.flip?(e=this.endAngle+1e-5)-t-1e-5:(e=this.startAngle-1e-5)+t+1e-5,this.o.cursor&&(e=i-this.cursorExt)&&(i+=this.cursorExt),{s:e,e:i,d:this.o.flip&&!this.o.cursor}},this.draw=function(){var t,e=this.g,i=this.arc(this.cv),n=1;e.lineWidth=this.lineWidth,e.lineCap=this.lineCap,"none"!==this.o.bgColor&&(e.beginPath(),e.strokeStyle=this.o.bgColor,e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,!0),e.stroke()),this.o.displayPrevious&&(t=this.arc(this.v),e.beginPath(),e.strokeStyle=this.pColor,e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d),e.stroke(),n=this.cv==this.v),e.beginPath(),e.strokeStyle=n?this.o.fgColor:this.fgColor,e.arc(this.xy,this.xy,this.radius,i.s,i.e,i.d),e.stroke()},this.cancel=function(){this.val(this.v)}},t.fn.dial=t.fn.knob=function(i){return this.each((function(){var n=new e.Dial;n.o=i,n.$=t(this),n.run()})).parent()}})),function(t,e){var i,n=t.jQuery||t.Cowboy||(t.Cowboy={});n.throttle=i=function(t,i,o,a){var s,r=0;function l(){var n=this,l=+new Date-r,u=arguments;function c(){r=+new Date,o.apply(n,u)}function d(){s=e}a&&!s&&c(),s&&clearTimeout(s),a===e&&l>t?c():!0!==i&&(s=setTimeout(a?d:c,a===e?t-l:t))}return"boolean"!=typeof i&&(a=o,o=i,i=e),n.guid&&(l.guid=o.guid=o.guid||n.guid++),l},n.debounce=function(t,n,o){return o===e?i(t,n,!1):i(t,o,!1!==n)}}(this),
/*!
 * jQuery ClassyCountdown
 * vox.SPACE
 *
 * Written by voxspace AT riseup.net
 * Licensed under the MIT license https://vox.SPACE/LICENSE-MIT
 * Version 1.1.0
 *
 */
function(t){t.fn.ClassyCountdown=function(e,i){function n(){s=Math.floor(c/86400),r=Math.floor(c%86400/3600),l=Math.floor(c%86400%3600/60),u=Math.floor(c%86400%3600%60%60)}function o(){c--,n(),0>=c&&(h||(h=!0,p.onEndCallback()),u=l=r=s=0),d.find(".ClassyCountdown-days input").val(365-s).trigger("change"),d.find(".ClassyCountdown-hours input").val(24-r).trigger("change"),d.find(".ClassyCountdown-minutes input").val(60-l).trigger("change"),d.find(".ClassyCountdown-seconds input").val(60-u).trigger("change"),d.find(".ClassyCountdown-days .ClassyCountdown-value > div").html(s),d.find(".ClassyCountdown-hours .ClassyCountdown-value > div").html(r),d.find(".ClassyCountdown-minutes .ClassyCountdown-value > div").html(l),d.find(".ClassyCountdown-seconds .ClassyCountdown-value > div").html(u)}function a(){d.find(".ClassyCountdown-wrapper > div").each((function(){t(this).css("height",t(this).width()+"px")})),p.style.textResponsive&&d.find(".ClassyCountdown-value").css("font-size",Math.floor(d.find("> div").eq(0).width()*p.style.textResponsive/10)+"px"),d.find(".ClassyCountdown-value").each((function(){t(this).css("margin-top",Math.floor(0-parseInt(t(this).height())/2)+"px")})),d.find(".ClassyCountdown-days input").trigger("change"),d.find(".ClassyCountdown-hours input").trigger("change"),d.find(".ClassyCountdown-minutes input").trigger("change"),d.find(".ClassyCountdown-seconds input").trigger("change")}var s,r,l,u,c,d=t(this),h=!1,p={end:void 0,now:t.now(),labels:!0,labelsOptions:{lang:{days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},style:"font-size: 0.5em;"},style:{element:"",labels:!1,textResponsive:.5,days:{gauge:{thickness:.02,bgColor:"rgba(0, 0, 0, 0)",fgColor:"rgba(0, 0, 0, 1)",lineCap:"butt"},textCSS:""},hours:{gauge:{thickness:.02,bgColor:"rgba(0, 0, 0, 0)",fgColor:"rgba(0, 0, 0, 1)",lineCap:"butt"},textCSS:""},minutes:{gauge:{thickness:.02,bgColor:"rgba(0, 0, 0, 0)",fgColor:"rgba(0, 0, 0, 1)",lineCap:"butt"},textCSS:""},seconds:{gauge:{thickness:.02,bgColor:"rgba(0, 0, 0, 0)",fgColor:"rgba(0, 0, 0, 1)",lineCap:"butt"},textCSS:""}},onEndCallback:function(){}};e.theme&&(p=t.extend(!0,p,function(t){switch(t){case"flat-colors":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#1abc9c"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#2980b9"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#8e44ad"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#f39c12"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"flat-colors-wide":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#1abc9c"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#2980b9"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#8e44ad"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#f39c12"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"flat-colors-very-wide":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.12,bgColor:"rgba(0,0,0,0.05)",fgColor:"#1abc9c"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.12,bgColor:"rgba(0,0,0,0.05)",fgColor:"#2980b9"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.12,bgColor:"rgba(0,0,0,0.05)",fgColor:"#8e44ad"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.12,bgColor:"rgba(0,0,0,0.05)",fgColor:"#f39c12"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"flat-colors-black":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#1abc9c",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#2980b9",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#8e44ad",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#f39c12",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"black":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.01,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"black-wide":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.03,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"black-very-wide":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.17,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.17,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.17,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.17,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"black-black":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},hours:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},minutes:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"},seconds:{gauge:{thickness:.25,bgColor:"rgba(0,0,0,0.05)",fgColor:"#222",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#34495e;"}}};case"white":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.03,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},hours:{gauge:{thickness:.03,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},minutes:{gauge:{thickness:.03,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},seconds:{gauge:{thickness:.03,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"}}};case"white-wide":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.06,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},hours:{gauge:{thickness:.06,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},minutes:{gauge:{thickness:.06,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},seconds:{gauge:{thickness:.06,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"}}};case"white-very-wide":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.16,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},hours:{gauge:{thickness:.16,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},minutes:{gauge:{thickness:.16,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},seconds:{gauge:{thickness:.16,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"}}};case"white-black":return{labels:!0,style:{element:"",textResponsive:.5,days:{gauge:{thickness:.25,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},hours:{gauge:{thickness:.25,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},minutes:{gauge:{thickness:.25,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"},seconds:{gauge:{thickness:.25,bgColor:"rgba(255,255,255,0.05)",fgColor:"#fff",lineCap:"round"},textCSS:"font-family:'Open Sans';font-weight:300;color:#fff;"}}}}}(e.theme))),p=t.extend(!0,p,e),d.append('<div class="ClassyCountdown-wrapper"><div class="ClassyCountdown-days"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div><div class="ClassyCountdown-hours"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div><div class="ClassyCountdown-minutes"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div><div class="ClassyCountdown-seconds"><input type="text" /><span class="ClassyCountdown-value"><div></div><span></span></span></div></div>'),d.find(".ClassyCountdown-days input").knob(t.extend({width:"100%",displayInput:!1,readOnly:!0,max:365},p.style.days.gauge)),d.find(".ClassyCountdown-hours input").knob(t.extend({width:"100%",displayInput:!1,readOnly:!0,max:24},p.style.hours.gauge)),d.find(".ClassyCountdown-minutes input").knob(t.extend({width:"100%",displayInput:!1,readOnly:!0,max:60},p.style.minutes.gauge)),d.find(".ClassyCountdown-seconds input").knob(t.extend({width:"100%",displayInput:!1,readOnly:!0,max:60},p.style.seconds.gauge)),d.find(".ClassyCountdown-wrapper > div").attr("style",p.style.element),d.find(".ClassyCountdown-days .ClassyCountdown-value").attr("style",p.style.days.textCSS),d.find(".ClassyCountdown-hours .ClassyCountdown-value").attr("style",p.style.hours.textCSS),d.find(".ClassyCountdown-minutes .ClassyCountdown-value").attr("style",p.style.minutes.textCSS),d.find(".ClassyCountdown-seconds .ClassyCountdown-value").attr("style",p.style.seconds.textCSS),d.find(".ClassyCountdown-value").each((function(){t(this).css("margin-top",Math.floor(0-parseInt(t(this).height())/2)+"px")})),p.labels&&(d.find(".ClassyCountdown-days .ClassyCountdown-value > span").html(p.labelsOptions.lang.days),d.find(".ClassyCountdown-hours .ClassyCountdown-value > span").html(p.labelsOptions.lang.hours),d.find(".ClassyCountdown-minutes .ClassyCountdown-value > span").html(p.labelsOptions.lang.minutes),d.find(".ClassyCountdown-seconds .ClassyCountdown-value > span").html(p.labelsOptions.lang.seconds),d.find(".ClassyCountdown-value > span").attr("style",p.labelsOptions.style)),c=p.end-p.now,n(),o(),setInterval(o,1e3),d.find(".ClassyCountdown-wrapper > div").each((function(){t(this).css("height",t(this).width()+"px")})),p.style.textResponsive&&(d.find(".ClassyCountdown-value").css("font-size",Math.floor(d.find("> div").eq(0).width()*p.style.textResponsive/10)+"px"),d.find(".ClassyCountdown-value").each((function(){t(this).css("margin-top",Math.floor(0-parseInt(t(this).height())/2)+"px")}))),t(window).trigger("resize"),t(window).resize(t.throttle(50,a))}}(jQuery),document.createElement("canvas").getContext||function(){var t=Math,e=t.round,i=t.sin,n=t.cos,o=t.abs,a=t.sqrt,s=10;function r(){return this.context_||(this.context_=new y(this))}var l=Array.prototype.slice;var u={init:function(t){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var e=t||document;e.createElement("canvas"),e.attachEvent("onreadystatechange",function(t,e,i){var n=l.call(arguments,2);return function(){return t.apply(e,n.concat(l.call(arguments)))}}(this.init_,this,e))}},init_:function(t){if(t.namespaces.g_vml_||t.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML"),t.namespaces.g_o_||t.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML"),!t.styleSheets.ex_canvas_){var e=t.createStyleSheet();e.owningElement.id="ex_canvas_",e.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}"}for(var i=t.getElementsByTagName("canvas"),n=0;n<i.length;n++)this.initElement(i[n])},initElement:function(t){if(!t.getContext){t.getContext=r,t.innerHTML="",t.attachEvent("onpropertychange",c),t.attachEvent("onresize",d);var e=t.attributes;e.width&&e.width.specified?t.style.width=e.width.nodeValue+"px":t.width=t.clientWidth,e.height&&e.height.specified?t.style.height=e.height.nodeValue+"px":t.height=t.clientHeight}return t}};function c(t){var e=t.srcElement;switch(t.propertyName){case"width":e.style.width=e.attributes.width.nodeValue+"px",e.getContext().clearRect();break;case"height":e.style.height=e.attributes.height.nodeValue+"px",e.getContext().clearRect()}}function d(t){var e=t.srcElement;e.firstChild&&(e.firstChild.style.width=e.clientWidth+"px",e.firstChild.style.height=e.clientHeight+"px")}u.init();for(var h=[],p=0;p<16;p++)for(var f=0;f<16;f++)h[16*p+f]=p.toString(16)+f.toString(16);function m(t,e){for(var i=[[1,0,0],[0,1,0],[0,0,1]],n=0;n<3;n++)for(var o=0;o<3;o++){for(var a=0,s=0;s<3;s++)a+=t[n][s]*e[s][o];i[n][o]=a}return i}function g(t,e){e.fillStyle=t.fillStyle,e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.shadowBlur=t.shadowBlur,e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY,e.strokeStyle=t.strokeStyle,e.globalAlpha=t.globalAlpha,e.arcScaleX_=t.arcScaleX_,e.arcScaleY_=t.arcScaleY_,e.lineScale_=t.lineScale_}function v(t){var e,i=1;if("rgb"==(t=String(t)).substring(0,3)){var n=t.indexOf("(",3),o=t.indexOf(")",n+1),a=t.substring(n+1,o).split(",");e="#";for(var s=0;s<3;s++)e+=h[Number(a[s])];4==a.length&&"a"==t.substr(3,1)&&(i=a[3])}else e=t;return{color:e,alpha:i}}function y(t){this.m_=[[1,0,0],[0,1,0],[0,0,1]],this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=10,this.globalAlpha=1,this.canvas=t;var e=t.ownerDocument.createElement("div");e.style.width=t.clientWidth+"px",e.style.height=t.clientHeight+"px",e.style.overflow="hidden",e.style.position="absolute",t.appendChild(e),this.element_=e,this.arcScaleX_=1,this.arcScaleY_=1,this.lineScale_=1}var b=y.prototype;function w(t,e,i,n){t.currentPath_.push({type:"bezierCurveTo",cp1x:e.x,cp1y:e.y,cp2x:i.x,cp2y:i.y,x:n.x,y:n.y}),t.currentX_=n.x,t.currentY_=n.y}function S(t){this.type_=t,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function C(){}b.clearRect=function(){this.element_.innerHTML=""},b.beginPath=function(){this.currentPath_=[]},b.moveTo=function(t,e){var i=this.getCoords_(t,e);this.currentPath_.push({type:"moveTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},b.lineTo=function(t,e){var i=this.getCoords_(t,e);this.currentPath_.push({type:"lineTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},b.bezierCurveTo=function(t,e,i,n,o,a){var s=this.getCoords_(o,a);w(this,this.getCoords_(t,e),this.getCoords_(i,n),s)},b.quadraticCurveTo=function(t,e,i,n){var o=this.getCoords_(t,e),a=this.getCoords_(i,n),s={x:this.currentX_+2/3*(o.x-this.currentX_),y:this.currentY_+2/3*(o.y-this.currentY_)};w(this,s,{x:s.x+(a.x-this.currentX_)/3,y:s.y+(a.y-this.currentY_)/3},a)},b.arc=function(t,e,o,a,r,l){o*=s;var u=l?"at":"wa",c=t+n(a)*o-5,d=e+i(a)*o-5,h=t+n(r)*o-5,p=e+i(r)*o-5;c!=h||l||(c+=.125);var f=this.getCoords_(t,e),m=this.getCoords_(c,d),g=this.getCoords_(h,p);this.currentPath_.push({type:u,x:f.x,y:f.y,radius:o,xStart:m.x,yStart:m.y,xEnd:g.x,yEnd:g.y})},b.rect=function(t,e,i,n){this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+n),this.lineTo(t,e+n),this.closePath()},b.strokeRect=function(t,e,i,n){var o=this.currentPath_;this.beginPath(),this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+n),this.lineTo(t,e+n),this.closePath(),this.stroke(),this.currentPath_=o},b.fillRect=function(t,e,i,n){var o=this.currentPath_;this.beginPath(),this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+n),this.lineTo(t,e+n),this.closePath(),this.fill(),this.currentPath_=o},b.createLinearGradient=function(t,e,i,n){var o=new S("gradient");return o.x0_=t,o.y0_=e,o.x1_=i,o.y1_=n,o},b.createRadialGradient=function(t,e,i,n,o,a){var s=new S("gradientradial");return s.x0_=t,s.y0_=e,s.r0_=i,s.x1_=n,s.y1_=o,s.r1_=a,s},b.drawImage=function(i,n){var o,a,r,l,u,c,d,h,p=i.runtimeStyle.width,f=i.runtimeStyle.height;i.runtimeStyle.width="auto",i.runtimeStyle.height="auto";var m=i.width,g=i.height;if(i.runtimeStyle.width=p,i.runtimeStyle.height=f,3==arguments.length)o=n,a=arguments[2],u=c=0,d=r=m,h=l=g;else if(5==arguments.length)o=n,a=arguments[2],r=arguments[3],l=arguments[4],u=c=0,d=m,h=g;else{if(9!=arguments.length)throw Error("Invalid number of arguments");u=n,c=arguments[2],d=arguments[3],h=arguments[4],o=arguments[5],a=arguments[6],r=arguments[7],l=arguments[8]}var v=this.getCoords_(o,a),y=[],b=10,w=10;if(y.push(" <g_vml_:group",' coordsize="',s*b,",",s*w,'"',' coordorigin="0,0"',' style="width:',b,"px;height:",w,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]){var S=[];S.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",e(v.x/s),",","Dy=",e(v.y/s),"");var C=v,x=this.getCoords_(o+r,a),k=this.getCoords_(o,a+l),T=this.getCoords_(o+r,a+l);C.x=t.max(C.x,x.x,k.x,T.x),C.y=t.max(C.y,x.y,k.y,T.y),y.push("padding:0 ",e(C.x/s),"px ",e(C.y/s),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",S.join(""),", sizingmethod='clip');")}else y.push("top:",e(v.y/s),"px;left:",e(v.x/s),"px;");y.push(' ">','<g_vml_:image src="',i.src,'"',' style="width:',s*r,"px;"," height:",s*l,'px;"',' cropleft="',u/m,'"',' croptop="',c/g,'"',' cropright="',(m-u-d)/m,'"',' cropbottom="',(g-c-h)/g,'"'," />","</g_vml_:group>"),this.element_.insertAdjacentHTML("BeforeEnd",y.join(""))},b.stroke=function(i){var n=[],o=v(i?this.fillStyle:this.strokeStyle),a=o.color,r=o.alpha*this.globalAlpha;n.push("<g_vml_:shape",' filled="',!!i,'"',' style="position:absolute;width:',10,"px;height:",10,'px;"',' coordorigin="0 0" coordsize="',100," ",100,'"',' stroked="',!i,'"',' path="');for(var l={x:null,y:null},u={x:null,y:null},c=0;c<this.currentPath_.length;c++){var d=this.currentPath_[c];switch(d.type){case"moveTo":d,n.push(" m ",e(d.x),",",e(d.y));break;case"lineTo":n.push(" l ",e(d.x),",",e(d.y));break;case"close":n.push(" x "),d=null;break;case"bezierCurveTo":n.push(" c ",e(d.cp1x),",",e(d.cp1y),",",e(d.cp2x),",",e(d.cp2y),",",e(d.x),",",e(d.y));break;case"at":case"wa":n.push(" ",d.type," ",e(d.x-this.arcScaleX_*d.radius),",",e(d.y-this.arcScaleY_*d.radius)," ",e(d.x+this.arcScaleX_*d.radius),",",e(d.y+this.arcScaleY_*d.radius)," ",e(d.xStart),",",e(d.yStart)," ",e(d.xEnd),",",e(d.yEnd))}d&&((null==l.x||d.x<l.x)&&(l.x=d.x),(null==u.x||d.x>u.x)&&(u.x=d.x),(null==l.y||d.y<l.y)&&(l.y=d.y),(null==u.y||d.y>u.y)&&(u.y=d.y))}if(n.push(' ">'),i)if("object"==typeof this.fillStyle){var h=this.fillStyle,p=0,f={x:0,y:0},m=0,g=1;if("gradient"==h.type_){var y=h.x0_/this.arcScaleX_,b=h.y0_/this.arcScaleY_,w=h.x1_/this.arcScaleX_,S=h.y1_/this.arcScaleY_,C=this.getCoords_(y,b),x=this.getCoords_(w,S),k=x.x-C.x,T=x.y-C.y;(p=180*Math.atan2(k,T)/Math.PI)<0&&(p+=360),p<1e-6&&(p=0)}else{C=this.getCoords_(h.x0_,h.y0_);var _=u.x-l.x,O=u.y-l.y;f={x:(C.x-l.x)/_,y:(C.y-l.y)/O},_/=this.arcScaleX_*s,O/=this.arcScaleY_*s;var P=t.max(_,O);m=2*h.r0_/P,g=2*h.r1_/P-m}var M=h.colors_;M.sort((function(t,e){return t.offset-e.offset}));var A=M.length,E=M[0].color,D=M[A-1].color,I=M[0].alpha*this.globalAlpha,$=M[A-1].alpha*this.globalAlpha,q=[];for(c=0;c<A;c++){var L=M[c];q.push(L.offset*g+m+" "+L.color)}n.push('<g_vml_:fill type="',h.type_,'"',' method="none" focus="100%"',' color="',E,'"',' color2="',D,'"',' colors="',q.join(","),'"',' opacity="',$,'"',' g_o_:opacity2="',I,'"',' angle="',p,'"',' focusposition="',f.x,",",f.y,'" />')}else n.push('<g_vml_:fill color="',a,'" opacity="',r,'" />');else{var j=this.lineScale_*this.lineWidth;j<1&&(r*=j),n.push("<g_vml_:stroke",' opacity="',r,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',function(t){switch(t){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}(this.lineCap),'"',' weight="',j,'px"',' color="',a,'" />')}n.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",n.join(""))},b.fill=function(){this.stroke(!0)},b.closePath=function(){this.currentPath_.push({type:"close"})},b.getCoords_=function(t,e){var i=this.m_;return{x:s*(t*i[0][0]+e*i[1][0]+i[2][0])-5,y:s*(t*i[0][1]+e*i[1][1]+i[2][1])-5}},b.save=function(){var t={};g(this,t),this.aStack_.push(t),this.mStack_.push(this.m_),this.m_=m([[1,0,0],[0,1,0],[0,0,1]],this.m_)},b.restore=function(){g(this.aStack_.pop(),this),this.m_=this.mStack_.pop()},b.translate=function(t,e){var i=[[1,0,0],[0,1,0],[t,e,1]];this.m_=m(i,this.m_)},b.rotate=function(t){var e=n(t),o=i(t),a=[[e,o,0],[-o,e,0],[0,0,1]];this.m_=m(a,this.m_)},b.scale=function(t,e){this.arcScaleX_*=t,this.arcScaleY_*=e;var i=[[t,0,0],[0,e,0],[0,0,1]],n=this.m_=m(i,this.m_),s=n[0][0]*n[1][1]-n[0][1]*n[1][0];this.lineScale_=a(o(s))},b.clip=function(){},b.arcTo=function(){},b.createPattern=function(){return new C},S.prototype.addColorStop=function(t,e){e=v(e),this.colors_.push({offset:t,color:e.color,alpha:e.alpha})},G_vmlCanvasManager=u,CanvasRenderingContext2D=y,CanvasGradient=S,CanvasPattern=C}(),Animator.prototype={setOptions:function(t){this.options=Animator.applyDefaults({interval:20,duration:400,onComplete:function(){},onStep:function(){},transition:Animator.tx.easeInOut},t)},seekTo:function(t){this.seekFromTo(this.state,t)},seekFromTo:function(t,e){this.target=Math.max(0,Math.min(1,e)),this.state=Math.max(0,Math.min(1,t)),this.lastTime=(new Date).getTime(),this.intervalId||(this.intervalId=window.setInterval(this.timerDelegate,this.options.interval))},jumpTo:function(t){this.target=this.state=Math.max(0,Math.min(1,t)),this.propagate()},toggle:function(){this.seekTo(1-this.target)},addSubject:function(t,e){return this.subjects[this.subjects.length]=t,this.subjectScopes[this.subjectScopes.length]=e,this},clearSubjects:function(){this.subjects=[],this.subjectScopes=[]},propagate:function(){for(var t=this.options.transition(this.state),e=0;e<this.subjects.length;e++)this.subjects[e].setState?this.subjects[e].setState(t):this.subjects[e].apply(this.subjectScopes[e],[t])},onTimerEvent:function(){var t=(new Date).getTime(),e=t-this.lastTime;this.lastTime=t;var i=e/this.options.duration*(this.state<this.target?1:-1);Math.abs(i)>=Math.abs(this.state-this.target)?this.state=this.target:this.state+=i;try{this.propagate()}finally{this.options.onStep.call(this),this.target==this.state&&(window.clearInterval(this.intervalId),this.intervalId=null,this.options.onComplete.call(this))}},play:function(){this.seekFromTo(0,1)},reverse:function(){this.seekFromTo(1,0)},inspect:function(){for(var t="#<Animator:\n",e=0;e<this.subjects.length;e++)t+=this.subjects[e].inspect();return t+=">"}},Animator.applyDefaults=function(t,e){e=e||{};var i,n={};for(i in t)n[i]=void 0!==e[i]?e[i]:t[i];return n},Animator.makeArray=function(t){if(null==t)return[];if(!t.length)return[t];for(var e=[],i=0;i<t.length;i++)e[i]=t[i];return e},Animator.camelize=function(t){var e=t.split("-");if(1==e.length)return e[0];for(var i=0==t.indexOf("-")?e[0].charAt(0).toUpperCase()+e[0].substring(1):e[0],n=1,o=e.length;n<o;n++){var a=e[n];i+=a.charAt(0).toUpperCase()+a.substring(1)}return i},Animator.apply=function(t,e,i){return e instanceof Array?new Animator(i).addSubject(new CSSStyleSubject(t,e[0],e[1])):new Animator(i).addSubject(new CSSStyleSubject(t,e))},Animator.makeEaseIn=function(t){return function(e){return Math.pow(e,2*t)}},Animator.makeEaseOut=function(t){return function(e){return 1-Math.pow(1-e,2*t)}},Animator.makeElastic=function(t){return function(e){return e=Animator.tx.easeInOut(e),(1-Math.cos(e*Math.PI*t))*(1-e)+e}},Animator.makeADSR=function(t,e,i,n){return null==n&&(n=.5),function(o){return o<t?o/t:o<e?1-(o-t)/(e-t)*(1-n):o<i?n:n*(1-(o-i)/(1-i))}},Animator.makeBounce=function(t){var e=Animator.makeElastic(t);return function(t){return(t=e(t))<=1?t:2-t}},Animator.tx={easeInOut:function(t){return-Math.cos(t*Math.PI)/2+.5},linear:function(t){return t},easeIn:Animator.makeEaseIn(1.5),easeOut:Animator.makeEaseOut(1.5),strongEaseIn:Animator.makeEaseIn(2.5),strongEaseOut:Animator.makeEaseOut(2.5),elastic:Animator.makeElastic(1),veryElastic:Animator.makeElastic(3),bouncy:Animator.makeBounce(1),veryBouncy:Animator.makeBounce(3)},NumericalStyleSubject.prototype={setState:function(t){for(var e=this.getStyle(t),i=(this.property,0),n=0;n<this.els.length;n++){try{this.els[n].style[this.property]=e}catch(t){if("fontWeight"!=this.property)throw t}if(i++>20)return}},getStyle:function(t){return t=this.from+(this.to-this.from)*t,"filter"==this.property?"alpha(opacity="+Math.round(100*t)+")":"opacity"==this.property?t:Math.round(t)+this.units},inspect:function(){return"\t"+this.property+"("+this.from+this.units+" to "+this.to+this.units+")\n"}},ColorStyleSubject.prototype={expandColor:function(t){var e;if(e=ColorStyleSubject.parseColor(t))return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16)];window.DEBUG&&alert("Invalid colour: '"+t+"'")},getValueForState:function(t,e){return Math.round(this.from[t]+(this.to[t]-this.from[t])*e)},setState:function(t){for(var e="#"+ColorStyleSubject.toColorPart(this.getValueForState(0,t))+ColorStyleSubject.toColorPart(this.getValueForState(1,t))+ColorStyleSubject.toColorPart(this.getValueForState(2,t)),i=0;i<this.els.length;i++)this.els[i].style[this.property]=e},inspect:function(){return"\t"+this.property+"("+this.origFrom+" to "+this.origTo+")\n"}},ColorStyleSubject.parseColor=function(t){var e,i="#";if(e=ColorStyleSubject.parseColor.rgbRe.exec(t)){for(var n,o=1;o<=3;o++)n=Math.max(0,Math.min(255,parseInt(e[o]))),i+=ColorStyleSubject.toColorPart(n);return i}if(e=ColorStyleSubject.parseColor.hexRe.exec(t)){if(3==e[1].length){for(o=0;o<3;o++)i+=e[1].charAt(o)+e[1].charAt(o);return i}return"#"+e[1]}return!1},ColorStyleSubject.toColorPart=function(t){t>255&&(t=255);var e=t.toString(16);return t<16?"0"+e:e},ColorStyleSubject.parseColor.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i,ColorStyleSubject.parseColor.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,DiscreteStyleSubject.prototype={setState:function(t){for(var e=0;e<this.els.length;e++)this.els[e].style[this.property]=t<=this.threshold?this.from:this.to},inspect:function(){return"\t"+this.property+"("+this.from+" to "+this.to+" @ "+this.threshold+")\n"}},CSSStyleSubject.prototype={parseStyle:function(t,e){var i={};if(-1!=t.indexOf(":"))for(var n=t.split(";"),o=0;o<n.length;o++){var a=CSSStyleSubject.ruleRe.exec(n[o]);a&&(i[a[1]]=a[2])}else{var s,r,l;l=e.className,e.className=t;for(o=0;o<CSSStyleSubject.cssProperties.length;o++)s=CSSStyleSubject.cssProperties[o],null!=(r=CSSStyleSubject.getStyle(e,s))&&(i[s]=r);e.className=l}return i},setState:function(t){for(var e=0;e<this.subjects.length;e++)this.subjects[e].setState(t)},inspect:function(){for(var t="",e=0;e<this.subjects.length;e++)t+=this.subjects[e].inspect();return t}},CSSStyleSubject.getStyle=function(t,e){var i;return document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(t,"").getPropertyValue(e))?i:(e=Animator.camelize(e),t.currentStyle&&(i=t.currentStyle[e]),i||t.style[e])},CSSStyleSubject.ruleRe=/^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/,CSSStyleSubject.numericalRe=/^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/,CSSStyleSubject.discreteRe=/^\w+$/,CSSStyleSubject.cssProperties=["azimuth","background","background-attachment","background-color","background-image","background-position","background-repeat","border-collapse","border-color","border-spacing","border-style","border-top","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width","border-width","bottom","clear","clip","color","content","cursor","direction","display","elevation","empty-cells","css-float","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","height","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-top","margin-right","margin-bottom","margin-left","max-height","max-width","min-height","min-width","orphans","outline","outline-color","outline-style","outline-width","overflow","padding","padding-top","padding-right","padding-bottom","padding-left","pause","position","right","size","table-layout","text-align","text-decoration","text-indent","text-shadow","text-transform","top","vertical-align","visibility","white-space","width","word-spacing","z-index","opacity","outline-offset","overflow-x","overflow-y"],AnimatorChain.prototype={setOptions:function(t){this.options=Animator.applyDefaults({resetOnPlay:!0},t)},play:function(){if(this.forwards=!0,this.current=-1,this.options.resetOnPlay)for(var t=0;t<this.animators.length;t++)this.animators[t].jumpTo(0);this.advance()},reverse:function(){if(this.forwards=!1,this.current=this.animators.length,this.options.resetOnPlay)for(var t=0;t<this.animators.length;t++)this.animators[t].jumpTo(1);this.advance()},toggle:function(){this.forwards?this.seekTo(0):this.seekTo(1)},listenTo:function(t){var e=t.options.onComplete,i=this;t.options.onComplete=function(){e&&e.call(t),i.advance()}},advance:function(){if(this.forwards){if(null==this.animators[this.current+1])return;this.current++,this.animators[this.current].play()}else{if(null==this.animators[this.current-1])return;this.current--,this.animators[this.current].reverse()}},seekTo:function(t){t<=0?(this.forwards=!1,this.animators[this.current].seekTo(0)):(this.forwards=!0,this.animators[this.current].seekTo(1))}},Accordion.prototype={setOptions:function(t){this.options=Object.extend({sections:null,getActivator:function(t){return document.getElementById(t.getAttribute("activator"))},shift:0,initialSection:0,rememberance:!0,animatorOptions:{}},t||{})},show:function(t){for(var e=0;e<this.ans.length;e++)this.ans[e].seekTo(e>t?1:0);this.options.rememberance&&(document.location.hash=this.rememberanceTexts[t])}},
/** @license
 *
 * SoundManager 2: JavaScript Sound for the Web
 * ----------------------------------------------
 * http://schillmania.com/projects/soundmanager2/
 *
 * Copyright (c) 2007, Scott Schiller. All rights reserved.
 * Code provided under the BSD License:
 * http://schillmania.com/projects/soundmanager2/license.txt
 *
 * V2.97a.20150601
 */
function(t,e){"use strict";if(!t||!t.document)throw new Error("SoundManager requires a browser with window and document objects.");var i=null;function n(e,i){this.setupOptions={url:e||null,flashVersion:8,debugMode:!0,debugFlash:!1,useConsole:!0,consoleOnly:!0,waitForWindowLoad:!1,bgColor:"#ffffff",useHighPerformance:!1,flashPollingInterval:null,html5PollingInterval:null,flashLoadTimeout:1e3,wmode:null,allowScriptAccess:"always",useFlashBlock:!1,useHTML5Audio:!0,forceUseGlobalHTML5Audio:!1,ignoreMobileRestrictions:!1,html5Test:/^(probably|maybe)$/i,preferFlash:!1,noSWFCache:!1,idPrefix:"sound"},this.defaultOptions={autoLoad:!1,autoPlay:!1,from:null,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onposition:null,onstop:null,onfailure:null,onfinish:null,multiShot:!0,multiShotEvents:!1,position:null,pan:0,stream:!0,to:null,type:null,usePolicyFile:!1,volume:100},this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null},this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null},this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a","m4b"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!1},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},opus:{type:["audio/ogg; codecs=opus","audio/opus"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}},this.movieID="sm2-container",this.id=i||"sm2movie",this.debugID="soundmanager-debug",this.debugURLParam=/([#?&])debug=1/i,this.versionNumber="V2.97a.20150601",this.version=null,this.movieURL=null,this.altURL=null,this.swfLoaded=!1,this.enabled=!1,this.oMC=null,this.sounds={},this.soundIDs=[],this.muted=!1,this.didFlashBlock=!1,this.filePattern=null,this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i},this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1},this.sandbox={},this.html5={usingFlash:null},this.flash={},this.html5Only=!1,this.ignoreFlash=!1;var n,o,a,s,r,l,u,c,d,h,p,f,m,g,v,y,b,w,S,C,x,k,T,_,O,P,M,A,E,D,I,$,q,L,j,N,H,F,R,z,V,B,W,Q,X,U,Y,G,Z,J,K,tt,et,it,nt,ot,at,st=this,rt=null,lt=null,ut=navigator.userAgent,ct=t.location.href.toString(),dt=document,ht=[],pt=!1,ft=!1,mt=!1,gt=!1,vt=!1,yt=null,bt=null,wt=!1,St=!1,Ct=0,xt=null,kt=[],Tt=null,_t=Array.prototype.slice,Ot=!1,Pt=0,Mt=ut.match(/(ipad|iphone|ipod)/i),At=ut.match(/android/i),Et=ut.match(/msie/i),Dt=ut.match(/webkit/i),It=ut.match(/safari/i)&&!ut.match(/chrome/i),$t=ut.match(/opera/i),qt=ut.match(/(mobile|pre\/|xoom)/i)||Mt||At,Lt=!ct.match(/usehtml5audio/i)&&!ct.match(/sm2\-ignorebadua/i)&&It&&!ut.match(/silk/i)&&ut.match(/OS X 10_6_([3-7])/i),jt=(void 0!==t.console&&console.log,void 0!==dt.hasFocus?dt.hasFocus():null),Nt=It&&(void 0===dt.hasFocus||!dt.hasFocus()),Ht=!Nt,Ft=/(mp3|mp4|mpa|m4a|m4b)/i,Rt=dt.location?dt.location.protocol.match(/http/i):null,zt=Rt?"":"http://",Vt=/^\s*audio\/(?:x-)?(?:mpeg4|aac|flv|mov|mp4||m4v|m4a|m4b|mp4v|3gp|3g2)\s*(?:$|;)/i,Bt=["mpeg4","aac","flv","mov","mp4","m4v","f4v","m4a","m4b","mp4v","3gp","3g2"],Wt=new RegExp("\\.("+Bt.join("|")+")(\\?.*)?$","i");function Qt(t){return st.preferFlash&&tt&&!st.ignoreFlash&&void 0!==st.flash[t]&&st.flash[t]}function Xt(t){return function(e){var i=this._s;return i&&i._a?t.call(this,e):null}}this.mimePattern=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i,this.useAltURL=!Rt,L={swfBox:"sm2-object-box",swfDefault:"movieContainer",swfError:"swf_error",swfTimedout:"swf_timedout",swfLoaded:"swf_loaded",swfUnblocked:"swf_unblocked",sm2Debug:"sm2_debug",highPerf:"high_performance",flashDebug:"flash_debug"},this.hasHTML5=function(){try{return void 0!==Audio&&void 0!==($t&&void 0!==opera&&opera.version()<10?new Audio(null):new Audio).canPlayType}catch(t){return!1}}(),this.setup=function(t){var e=!st.url;return void 0!==t&&mt&&Tt&&st.ok()&&(void 0!==t.flashVersion||void 0!==t.url||t.html5Test),d(t),Ot||(qt?st.setupOptions.ignoreMobileRestrictions&&!st.setupOptions.forceUseGlobalHTML5Audio||(kt.push(S.globalHTML5),Ot=!0):st.setupOptions.forceUseGlobalHTML5Audio&&(kt.push(S.globalHTML5),Ot=!0)),!at&&qt&&(st.setupOptions.ignoreMobileRestrictions?kt.push(S.ignoreMobile):(st.setupOptions.useHTML5Audio=!0,st.setupOptions.preferFlash=!1,Mt?st.ignoreFlash=!0:(At&&!ut.match(/android\s2\.3/i)||!At)&&(Ot=!0))),t&&(e&&T&&void 0!==t.url&&st.beginDelayedInit(),T||void 0===t.url||"complete"!==dt.readyState||setTimeout(x,1)),at=!0,st},this.ok=function(){return Tt?mt&&!gt:st.useHTML5Audio&&st.hasHTML5},this.supported=this.ok,this.getMovie=function(e){return o(e)||dt[e]||t[e]},this.createSound=function(t,e){var i,o=null;if(!mt||!st.ok())return!1;if(void 0!==e&&(t={id:t,url:e}),(i=c(t)).url=V(i.url),void 0===i.id&&(i.id=st.setupOptions.idPrefix+Pt++),H(i.id,!0))return st.sounds[i.id];function a(){return i=j(i),st.sounds[i.id]=new n(i),st.soundIDs.push(i.id),st.sounds[i.id]}if(Q(i))(o=a())._setup_html5(i);else{if(st.html5Only)return a();if(st.html5.usingFlash&&i.url&&i.url.match(/data\:/i))return a();l>8&&null===i.isMovieStar&&(i.isMovieStar=!!(i.serverURL||i.type&&i.type.match(Vt)||i.url&&i.url.match(Wt))),i=N(i,void 0),o=a(),8===l?lt._createSound(i.id,i.loops||1,i.usePolicyFile):(lt._createSound(i.id,i.url,i.usePeakData,i.useWaveformData,i.useEQData,i.isMovieStar,!!i.isMovieStar&&i.bufferTime,i.loops||1,i.serverURL,i.duration||null,i.autoPlay,!0,i.autoLoad,i.usePolicyFile),i.serverURL||(o.connected=!0,i.onconnect&&i.onconnect.apply(o))),i.serverURL||!i.autoLoad&&!i.autoPlay||o.load(i)}return!i.serverURL&&i.autoPlay&&o.play(),o},this.destroySound=function(t,e){if(!H(t))return!1;var i,n=st.sounds[t];for(n.stop(),n._iO={},n.unload(),i=0;i<st.soundIDs.length;i++)if(st.soundIDs[i]===t){st.soundIDs.splice(i,1);break}return e||n.destruct(!0),n=null,delete st.sounds[t],!0},this.load=function(t,e){return!!H(t)&&st.sounds[t].load(e)},this.unload=function(t){return!!H(t)&&st.sounds[t].unload()},this.onPosition=function(t,e,i,n){return!!H(t)&&st.sounds[t].onposition(e,i,n)},this.onposition=this.onPosition,this.clearOnPosition=function(t,e,i){return!!H(t)&&st.sounds[t].clearOnPosition(e,i)},this.play=function(t,e){var i=null,n=e&&!(e instanceof Object);if(!mt||!st.ok())return!1;if(H(t,n))n&&(e={url:e});else{if(!n)return!1;n&&(e={url:e}),e&&e.url&&(e.id=t,i=st.createSound(e).play())}return null===i&&(i=st.sounds[t].play(e)),i},this.start=this.play,this.setPosition=function(t,e){return!!H(t)&&st.sounds[t].setPosition(e)},this.stop=function(t){return!!H(t)&&st.sounds[t].stop()},this.stopAll=function(){var t;for(t in st.sounds)st.sounds.hasOwnProperty(t)&&st.sounds[t].stop()},this.pause=function(t){return!!H(t)&&st.sounds[t].pause()},this.pauseAll=function(){var t;for(t=st.soundIDs.length-1;t>=0;t--)st.sounds[st.soundIDs[t]].pause()},this.resume=function(t){return!!H(t)&&st.sounds[t].resume()},this.resumeAll=function(){var t;for(t=st.soundIDs.length-1;t>=0;t--)st.sounds[st.soundIDs[t]].resume()},this.togglePause=function(t){return!!H(t)&&st.sounds[t].togglePause()},this.setPan=function(t,e){return!!H(t)&&st.sounds[t].setPan(e)},this.setVolume=function(t,e){var i,n;if(void 0===t||isNaN(t)||void 0!==e)return!!H(t)&&st.sounds[t].setVolume(e);for(i=0,n=st.soundIDs.length;i<n;i++)st.sounds[st.soundIDs[i]].setVolume(t)},this.mute=function(t){var e=0;if(t instanceof String&&(t=null),t)return!!H(t)&&st.sounds[t].mute();for(e=st.soundIDs.length-1;e>=0;e--)st.sounds[st.soundIDs[e]].mute();return st.muted=!0,!0},this.muteAll=function(){st.mute()},this.unmute=function(t){var e;if(t instanceof String&&(t=null),t)return!!H(t)&&st.sounds[t].unmute();for(e=st.soundIDs.length-1;e>=0;e--)st.sounds[st.soundIDs[e]].unmute();return st.muted=!1,!0},this.unmuteAll=function(){st.unmute()},this.toggleMute=function(t){return!!H(t)&&st.sounds[t].toggleMute()},this.getMemoryUse=function(){var t=0;return lt&&8!==l&&(t=parseInt(lt._getMemoryUse(),10)),t},this.disable=function(e){var i;if(void 0===e&&(e=!1),gt)return!1;for(gt=!0,i=st.soundIDs.length-1;i>=0;i--)A(st.sounds[st.soundIDs[i]]);return u(e),J.remove(t,"load",m),!0},this.canPlayMIME=function(t){var e;return st.hasHTML5&&(e=X({type:t})),!e&&Tt&&(e=t&&st.ok()?!!(l>8&&t.match(Vt)||t.match(st.mimePattern)):null),e},this.canPlayURL=function(t){var e;return st.hasHTML5&&(e=X({url:t})),!e&&Tt&&(e=t&&st.ok()?!!t.match(st.filePattern):null),e},this.canPlayLink=function(t){return!(void 0===t.type||!t.type||!st.canPlayMIME(t.type))||st.canPlayURL(t.href)},this.getSoundById=function(t,e){return t?st.sounds[t]:null},this.onready=function(e,i){if("function"!=typeof e)throw I("needFunction","onready");return i||(i=t),p("onready",e,i),f(),!0},this.ontimeout=function(e,i){if("function"!=typeof e)throw I("needFunction","ontimeout");return i||(i=t),p("ontimeout",e,i),f({type:"ontimeout"}),!0},this._writeDebug=function(t,e){return!0},this._wD=this._writeDebug,this._debug=function(){},this.reboot=function(e,i){var n,o,a;for(n=st.soundIDs.length-1;n>=0;n--)st.sounds[st.soundIDs[n]].destruct();if(lt)try{Et&&(bt=lt.innerHTML),yt=lt.parentNode.removeChild(lt)}catch(t){}if(bt=yt=Tt=lt=null,st.enabled=T=mt=wt=St=pt=ft=gt=Ot=st.swfLoaded=!1,st.soundIDs=[],st.sounds={},Pt=0,at=!1,e)ht=[];else for(n in ht)if(ht.hasOwnProperty(n))for(o=0,a=ht[n].length;o<a;o++)ht[n][o].fired=!1;return st.html5={usingFlash:null},st.flash={},st.html5Only=!1,st.ignoreFlash=!1,t.setTimeout((function(){i||st.beginDelayedInit()}),20),st},this.reset=function(){return st.reboot(!0,!0)},this.getMoviePercent=function(){return lt&&"PercentLoaded"in lt?lt.PercentLoaded():null},this.beginDelayedInit=function(){vt=!0,x(),setTimeout((function(){return!St&&(O(),C(),St=!0,!0)}),20),g()},this.destruct=function(){st.disable(!0)},n=function(t){var e,i,n,o,a,s,r,u,d,h,p=this,f=!1,m=[],g=0,v=null;d={duration:null,time:null},this.id=t.id,this.sID=this.id,this.url=t.url,this.options=c(t),this.instanceOptions=this.options,this._iO=this.instanceOptions,this.pan=this.options.pan,this.volume=this.options.volume,this.isHTML5=!1,this._a=null,h=!this.url,this.id3={},this._debug=function(){},this.load=function(t){var e;if(void 0!==t?p._iO=c(t,p.options):(t=p.options,p._iO=t,v&&v!==p.url&&(p._iO.url=p.url,p.url=null)),p._iO.url||(p._iO.url=p.url),p._iO.url=V(p._iO.url),p.instanceOptions=p._iO,!(e=p._iO).url&&!p.url)return p;if(e.url===p.url&&0!==p.readyState&&2!==p.readyState)return 3===p.readyState&&e.onload&&ot(p,(function(){e.onload.apply(p,[!!p.duration])})),p;if(p.loaded=!1,p.readyState=1,p.playState=0,p.id3={},Q(e))p._setup_html5(e)._called_load||(p._html5_canplay=!1,p.url!==e.url&&(p._a.src=e.url,p.setPosition(0)),p._a.autobuffer="auto",p._a.preload="auto",p._a._called_load=!0);else{if(st.html5Only)return p;if(p._iO.url&&p._iO.url.match(/data\:/i))return p;try{p.isHTML5=!1,p._iO=N(j(e)),p._iO.autoPlay&&(p._iO.position||p._iO.from)&&(p._iO.autoPlay=!1),e=p._iO,8===l?lt._load(p.id,e.url,e.stream,e.autoPlay,e.usePolicyFile):lt._load(p.id,e.url,!!e.stream,!!e.autoPlay,e.loops||1,!!e.autoLoad,e.usePolicyFile)}catch(t){P({type:"SMSOUND_LOAD_JS_EXCEPTION",fatal:!0})}}return p.url=e.url,p},this.unload=function(){return 0!==p.readyState&&(p.isHTML5?(o(),p._a&&(p._a.pause(),v=Y(p._a))):8===l?lt._unload(p.id,"about:blank"):lt._unload(p.id),e()),p},this.destruct=function(t){p.isHTML5?(o(),p._a&&(p._a.pause(),Y(p._a),Ot||n(),p._a._s=null,p._a=null)):(p._iO.onfailure=null,lt._destroySound(p.id)),t||st.destroySound(p.id,!0)},this.play=function(t,e){var i,n,o,r,d,m=!0,g=null;if(e=void 0===e||e,t||(t={}),p.url&&(p._iO.url=p.url),p._iO=c(p._iO,p.options),p._iO=c(t,p._iO),p._iO.url=V(p._iO.url),p.instanceOptions=p._iO,!p.isHTML5&&p._iO.serverURL&&!p.connected)return p.getAutoPlay()||p.setAutoPlay(!0),p;if(Q(p._iO)&&(p._setup_html5(p._iO),a()),1!==p.playState||p.paused||p._iO.multiShot||(p.isHTML5&&p.setPosition(p._iO.position),g=p),null!==g)return g;if(t.url&&t.url!==p.url&&(p.readyState||p.isHTML5||8!==l||!h?p.load(p._iO):h=!1),p.loaded||(0===p.readyState?(p.isHTML5||st.html5Only?p.isHTML5?p.load(p._iO):g=p:(p._iO.autoPlay=!0,p.load(p._iO)),p.instanceOptions=p._iO):2===p.readyState&&(g=p)),null!==g)return g;if(!p.isHTML5&&9===l&&p.position>0&&p.position===p.duration&&(t.position=0),p.paused&&p.position>=0&&(!p._iO.serverURL||p.position>0))p.resume();else{if(p._iO=c(t,p._iO),(!p.isHTML5&&null!==p._iO.position&&p._iO.position>0||null!==p._iO.from&&p._iO.from>0||null!==p._iO.to)&&0===p.instanceCount&&0===p.playState&&!p._iO.serverURL){if(n=function(){p._iO=c(t,p._iO),p.play(p._iO)},p.isHTML5&&!p._html5_canplay?(p.load({_oncanplay:n}),g=!1):p.isHTML5||p.loaded||p.readyState&&2===p.readyState||(p.load({onload:n}),g=!1),null!==g)return g;p._iO=u()}(!p.instanceCount||p._iO.multiShotEvents||p.isHTML5&&p._iO.multiShot&&!Ot||!p.isHTML5&&l>8&&!p.getAutoPlay())&&p.instanceCount++,p._iO.onposition&&0===p.playState&&s(p),p.playState=1,p.paused=!1,p.position=void 0===p._iO.position||isNaN(p._iO.position)?0:p._iO.position,p.isHTML5||(p._iO=N(j(p._iO))),p._iO.onplay&&e&&(p._iO.onplay.apply(p),f=!0),p.setVolume(p._iO.volume,!0),p.setPan(p._iO.pan,!0),p.isHTML5?p.instanceCount<2?(a(),i=p._setup_html5(),p.setPosition(p._iO.position),i.play()):(o=new Audio(p._iO.url),r=function(){J.remove(o,"ended",r),p._onfinish(p),Y(o),o=null},d=function(){J.remove(o,"canplay",d);try{o.currentTime=p._iO.position/1e3}catch(t){}o.play()},J.add(o,"ended",r),void 0!==p._iO.volume&&(o.volume=Math.max(0,Math.min(1,p._iO.volume/100))),p.muted&&(o.muted=!0),p._iO.position?J.add(o,"canplay",d):o.play()):(m=lt._start(p.id,p._iO.loops||1,9===l?p.position:p.position/1e3,p._iO.multiShot||!1),9!==l||m||p._iO.onplayerror&&p._iO.onplayerror.apply(p))}return p},this.start=this.play,this.stop=function(t){var e,i=p._iO;return 1===p.playState&&(p._onbufferchange(0),p._resetOnPosition(0),p.paused=!1,p.isHTML5||(p.playState=0),r(),i.to&&p.clearOnPosition(i.to),p.isHTML5?p._a&&(e=p.position,p.setPosition(0),p.position=e,p._a.pause(),p.playState=0,p._onTimer(),o()):(lt._stop(p.id,t),i.serverURL&&p.unload()),p.instanceCount=0,p._iO={},i.onstop&&i.onstop.apply(p)),p},this.setAutoPlay=function(t){p._iO.autoPlay=t,p.isHTML5||(lt._setAutoPlay(p.id,t),t&&(p.instanceCount||1!==p.readyState||p.instanceCount++))},this.getAutoPlay=function(){return p._iO.autoPlay},this.setPosition=function(t){void 0===t&&(t=0);var e,i,n=p.isHTML5?Math.max(t,0):Math.min(p.duration||p._iO.duration,Math.max(t,0));if(p.position=n,i=p.position/1e3,p._resetOnPosition(p.position),p._iO.position=n,p.isHTML5){if(p._a){if(p._html5_canplay){if(p._a.currentTime!==i)try{p._a.currentTime=i,(0===p.playState||p.paused)&&p._a.pause()}catch(t){}}else if(i)return p;p.paused&&p._onTimer(!0)}}else e=9===l?p.position:i,p.readyState&&2!==p.readyState&&lt._setPosition(p.id,e,p.paused||!p.playState,p._iO.multiShot);return p},this.pause=function(t){return p.paused||0===p.playState&&1!==p.readyState||(p.paused=!0,p.isHTML5?(p._setup_html5().pause(),o()):(t||void 0===t)&&lt._pause(p.id,p._iO.multiShot),p._iO.onpause&&p._iO.onpause.apply(p)),p},this.resume=function(){var t=p._iO;return p.paused?(p.paused=!1,p.playState=1,p.isHTML5?(p._setup_html5().play(),a()):(t.isMovieStar&&!t.serverURL&&p.setPosition(p.position),lt._pause(p.id,t.multiShot)),!f&&t.onplay?(t.onplay.apply(p),f=!0):t.onresume&&t.onresume.apply(p),p):p},this.togglePause=function(){return 0===p.playState?(p.play({position:9!==l||p.isHTML5?p.position/1e3:p.position}),p):(p.paused?p.resume():p.pause(),p)},this.setPan=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=!1),p.isHTML5||lt._setPan(p.id,t),p._iO.pan=t,e||(p.pan=t,p.options.pan=t),p},this.setVolume=function(t,e){return void 0===t&&(t=100),void 0===e&&(e=!1),p.isHTML5?p._a&&(st.muted&&!p.muted&&(p.muted=!0,p._a.muted=!0),p._a.volume=Math.max(0,Math.min(1,t/100))):lt._setVolume(p.id,st.muted&&!p.muted||p.muted?0:t),p._iO.volume=t,e||(p.volume=t,p.options.volume=t),p},this.mute=function(){return p.muted=!0,p.isHTML5?p._a&&(p._a.muted=!0):lt._setVolume(p.id,0),p},this.unmute=function(){p.muted=!1;var t=void 0!==p._iO.volume;return p.isHTML5?p._a&&(p._a.muted=!1):lt._setVolume(p.id,t?p._iO.volume:p.options.volume),p},this.toggleMute=function(){return p.muted?p.unmute():p.mute()},this.onPosition=function(t,e,i){return m.push({position:parseInt(t,10),method:e,scope:void 0!==i?i:p,fired:!1}),p},this.onposition=this.onPosition,this.clearOnPosition=function(t,e){var i;if(t=parseInt(t,10),isNaN(t))return!1;for(i=0;i<m.length;i++)t===m[i].position&&(e&&e!==m[i].method||(m[i].fired&&g--,m.splice(i,1)))},this._processOnPosition=function(){var t,e,i=m.length;if(!i||!p.playState||g>=i)return!1;for(t=i-1;t>=0;t--)!(e=m[t]).fired&&p.position>=e.position&&(e.fired=!0,g++,e.method.apply(e.scope,[e.position]),i=m.length);return!0},this._resetOnPosition=function(t){var e,i,n=m.length;if(!n)return!1;for(e=n-1;e>=0;e--)(i=m[e]).fired&&t<=i.position&&(i.fired=!1,g--);return!0},u=function(){var t,e,i=p._iO,n=i.from,o=i.to;return e=function(){p.clearOnPosition(o,e),p.stop()},t=function(){null===o||isNaN(o)||p.onPosition(o,e)},null===n||isNaN(n)||(i.position=n,i.multiShot=!1,t()),i},s=function(){var t,e=p._iO.onposition;if(e)for(t in e)e.hasOwnProperty(t)&&p.onPosition(parseInt(t,10),e[t])},r=function(){var t,e=p._iO.onposition;if(e)for(t in e)e.hasOwnProperty(t)&&p.clearOnPosition(parseInt(t,10))},a=function(){p.isHTML5&&F(p)},o=function(){p.isHTML5&&R(p)},(e=function(t){t||(m=[],g=0),f=!1,p._hasTimer=null,p._a=null,p._html5_canplay=!1,p.bytesLoaded=null,p.bytesTotal=null,p.duration=p._iO&&p._iO.duration?p._iO.duration:null,p.durationEstimate=null,p.buffered=[],p.eqData=[],p.eqData.left=[],p.eqData.right=[],p.failures=0,p.isBuffering=!1,p.instanceOptions={},p.instanceCount=0,p.loaded=!1,p.metadata={},p.readyState=0,p.muted=!1,p.paused=!1,p.peakData={left:0,right:0},p.waveformData={left:[],right:[]},p.playState=0,p.position=null,p.id3={}})(),this._onTimer=function(t){var e,i,n=!1,o={};if(p._hasTimer||t)return p._a&&(t||(p.playState>0||1===p.readyState)&&!p.paused)&&((e=p._get_html5_duration())!==d.duration&&(d.duration=e,p.duration=e,n=!0),p.durationEstimate=p.duration,(i=1e3*p._a.currentTime||0)!==d.time&&(d.time=i,n=!0),(n||t)&&p._whileplaying(i,o,o,o,o)),n},this._get_html5_duration=function(){var t=p._iO,e=p._a&&p._a.duration?1e3*p._a.duration:t&&t.duration?t.duration:null;return e&&!isNaN(e)&&e!==1/0?e:null},this._apply_loop=function(t,e){t.loop=e>1?"loop":""},this._setup_html5=function(t){var n,o=c(p._iO,t),a=Ot?rt:p._a,s=decodeURI(o.url);if(Ot?s===decodeURI(K)&&(n=!0):s===decodeURI(v)&&(n=!0),a){if(a._s)if(Ot)a._s&&a._s.playState&&!n&&a._s.stop();else if(!Ot&&s===decodeURI(v))return p._apply_loop(a,o.loops),a;n||(v&&e(!1),a.src=o.url,p.url=o.url,v=o.url,K=o.url,a._called_load=!1)}else o.autoLoad||o.autoPlay?(p._a=new Audio(o.url),p._a.load()):p._a=$t&&opera.version()<10?new Audio(null):new Audio,(a=p._a)._called_load=!1,Ot&&(rt=a);return p.isHTML5=!0,p._a=a,a._s=p,i(),p._apply_loop(a,o.loops),o.autoLoad||o.autoPlay?p.load():(a.autobuffer=!1,a.preload="auto"),a},i=function(){if(p._a._added_events)return!1;var t,e,i,n;for(t in p._a._added_events=!0,nt)nt.hasOwnProperty(t)&&(e=t,i=nt[t],n=void 0,p._a&&p._a.addEventListener(e,i,n||!1));return!0},n=function(){var t,e,i,n;for(t in p._a._added_events=!1,nt)nt.hasOwnProperty(t)&&(e=t,i=nt[t],n=void 0,p._a&&p._a.removeEventListener(e,i,n||!1))},this._onload=function(t){var e=!!t||!p.isHTML5&&8===l&&p.duration;return p.loaded=e,p.readyState=e?3:2,p._onbufferchange(0),p._iO.onload&&ot(p,(function(){p._iO.onload.apply(p,[e])})),!0},this._onbufferchange=function(t){return 0!==p.playState&&(!(t&&p.isBuffering||!t&&!p.isBuffering)&&(p.isBuffering=1===t,p._iO.onbufferchange&&p._iO.onbufferchange.apply(p,[t]),!0))},this._onsuspend=function(){return p._iO.onsuspend&&p._iO.onsuspend.apply(p),!0},this._onfailure=function(t,e,i){p.failures++,p._iO.onfailure&&1===p.failures&&p._iO.onfailure(t,e,i)},this._onwarning=function(t,e,i){p._iO.onwarning&&p._iO.onwarning(t,e,i)},this._onfinish=function(){var t=p._iO.onfinish;p._onbufferchange(0),p._resetOnPosition(0),p.instanceCount&&(p.instanceCount--,p.instanceCount||(r(),p.playState=0,p.paused=!1,p.instanceCount=0,p.instanceOptions={},p._iO={},o(),p.isHTML5&&(p.position=0)),p.instanceCount&&!p._iO.multiShotEvents||t&&ot(p,(function(){t.apply(p)})))},this._whileloading=function(t,e,i,n){var o=p._iO;p.bytesLoaded=t,p.bytesTotal=e,p.duration=Math.floor(i),p.bufferLength=n,p.isHTML5||o.isMovieStar?p.durationEstimate=p.duration:o.duration?p.durationEstimate=p.duration>o.duration?p.duration:o.duration:p.durationEstimate=parseInt(p.bytesTotal/p.bytesLoaded*p.duration,10),p.isHTML5||(p.buffered=[{start:0,end:p.duration}]),(3!==p.readyState||p.isHTML5)&&o.whileloading&&o.whileloading.apply(p)},this._whileplaying=function(t,e,i,n,o){var a,s=p._iO;return!isNaN(t)&&null!==t&&(p.position=Math.max(0,t),p._processOnPosition(),!p.isHTML5&&l>8&&(s.usePeakData&&void 0!==e&&e&&(p.peakData={left:e.leftPeak,right:e.rightPeak}),s.useWaveformData&&void 0!==i&&i&&(p.waveformData={left:i.split(","),right:n.split(",")}),s.useEQData&&void 0!==o&&o&&o.leftEQ&&(a=o.leftEQ.split(","),p.eqData=a,p.eqData.left=a,void 0!==o.rightEQ&&o.rightEQ&&(p.eqData.right=o.rightEQ.split(",")))),1===p.playState&&(p.isHTML5||8!==l||p.position||!p.isBuffering||p._onbufferchange(0),s.whileplaying&&s.whileplaying.apply(p)),!0)},this._oncaptiondata=function(t){p.captiondata=t,p._iO.oncaptiondata&&p._iO.oncaptiondata.apply(p,[t])},this._onmetadata=function(t,e){var i,n,o={};for(i=0,n=t.length;i<n;i++)o[t[i]]=e[i];p.metadata=o,p._iO.onmetadata&&p._iO.onmetadata.call(p,p.metadata)},this._onid3=function(t,e){var i,n,o=[];for(i=0,n=t.length;i<n;i++)o[t[i]]=e[i];p.id3=c(p.id3,o),p._iO.onid3&&p._iO.onid3.apply(p)},this._onconnect=function(t){t=1===t,p.connected=t,t&&(p.failures=0,H(p.id)&&(p.getAutoPlay()?p.play(void 0,p.getAutoPlay()):p._iO.autoLoad&&p.load()),p._iO.onconnect&&p._iO.onconnect.apply(p,[t]))},this._ondataerror=function(t){p.playState>0&&p._iO.ondataerror&&p._iO.ondataerror.apply(p)}},_=function(){return dt.body||dt.getElementsByTagName("div")[0]},o=function(t){return dt.getElementById(t)},c=function(t,e){var i,n,o=t||{};for(n in i=void 0===e?st.defaultOptions:e)i.hasOwnProperty(n)&&void 0===o[n]&&("object"!=typeof i[n]||null===i[n]?o[n]=i[n]:o[n]=c(o[n],i[n]));return o},ot=function(e,i){e.isHTML5||8!==l?i():t.setTimeout(i,0)},h={onready:1,ontimeout:1,defaultOptions:1,flash9Options:1,movieStarOptions:1},d=function(t,e){var i,n=!0,o=void 0!==e,a=st.setupOptions,s=h;for(i in t)if(t.hasOwnProperty(i))if("object"!=typeof t[i]||null===t[i]||t[i]instanceof Array||t[i]instanceof RegExp)o&&void 0!==s[e]?st[e][i]=t[i]:void 0!==a[i]?(st.setupOptions[i]=t[i],st[i]=t[i]):void 0===s[i]?n=!1:st[i]instanceof Function?st[i].apply(st,t[i]instanceof Array?t[i]:[t[i]]):st[i]=t[i];else{if(void 0!==s[i])return d(t[i],i);n=!1}return n},J=function(){var e=t.attachEvent,i={add:e?"attachEvent":"addEventListener",remove:e?"detachEvent":"removeEventListener"};function n(t){var i=_t.call(t),n=i.length;return e?(i[1]="on"+i[1],n>3&&i.pop()):3===n&&i.push(!1),i}function o(t,n){var o=t.shift(),a=[i[n]];e?o[a](t[0],t[1]):o[a].apply(o,t)}return{add:function(){o(n(arguments),"add")},remove:function(){o(n(arguments),"remove")}}}(),nt={abort:Xt((function(){})),canplay:Xt((function(){var t,e=this._s;if(e._html5_canplay)return!0;if(e._html5_canplay=!0,e._onbufferchange(0),t=void 0===e._iO.position||isNaN(e._iO.position)?null:e._iO.position/1e3,this.currentTime!==t)try{this.currentTime=t}catch(t){}e._iO._oncanplay&&e._iO._oncanplay()})),canplaythrough:Xt((function(){var t=this._s;t.loaded||(t._onbufferchange(0),t._whileloading(t.bytesLoaded,t.bytesTotal,t._get_html5_duration()),t._onload(!0))})),durationchange:Xt((function(){var t,e=this._s;t=e._get_html5_duration(),isNaN(t)||t===e.duration||(e.durationEstimate=e.duration=t)})),ended:Xt((function(){this._s._onfinish()})),error:Xt((function(){this._s._onload(!1)})),loadeddata:Xt((function(){var t=this._s;t._loaded||It||(t.duration=t._get_html5_duration())})),loadedmetadata:Xt((function(){})),loadstart:Xt((function(){this._s._onbufferchange(1)})),play:Xt((function(){this._s._onbufferchange(0)})),playing:Xt((function(){this._s._onbufferchange(0)})),progress:Xt((function(t){var e,i,n=this._s,o=0,a=(t.type,t.target.buffered),s=t.loaded||0,r=t.total||1;if(n.buffered=[],a&&a.length){for(e=0,i=a.length;e<i;e++)n.buffered.push({start:1e3*a.start(e),end:1e3*a.end(e)});o=1e3*(a.end(0)-a.start(0)),s=Math.min(1,o/(1e3*t.target.duration))}isNaN(s)||(n._whileloading(s,r,n._get_html5_duration()),s&&r&&s===r&&nt.canplaythrough.call(this,t))})),ratechange:Xt((function(){})),suspend:Xt((function(t){var e=this._s;nt.progress.call(this,t),e._onsuspend()})),stalled:Xt((function(){})),timeupdate:Xt((function(){this._s._onTimer()})),waiting:Xt((function(){this._s._onbufferchange(1)}))},Q=function(t){return!(!t||!(t.type||t.url||t.serverURL))&&(!(t.serverURL||t.type&&Qt(t.type))&&(t.type?X({type:t.type}):X({url:t.url})||st.html5Only||t.url.match(/data\:/i)))},Y=function(t){var e;return t&&(e=It?"about:blank":st.html5.canPlayType("audio/wav")?"data:audio/wave;base64,/UklGRiYAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQIAAAD//w==":"about:blank",t.src=e,void 0!==t._called_unload&&(t._called_load=!1)),Ot&&(K=null),e},X=function(t){if(!st.useHTML5Audio||!st.hasHTML5)return!1;var e,i,n,o,a=t.url||null,s=t.type||null,r=st.audioFormats;if(s&&void 0!==st.html5[s])return st.html5[s]&&!Qt(s);if(!U){for(o in U=[],r)r.hasOwnProperty(o)&&(U.push(o),r[o].related&&(U=U.concat(r[o].related)));U=new RegExp("\\.("+U.join("|")+")(\\?.*)?$","i")}return(n=a?a.toLowerCase().match(U):null)&&n.length?n=n[1]:s?n=(-1!==(i=s.indexOf(";"))?s.substr(0,i):s).substr(6):e=!1,n&&void 0!==st.html5[n]?e=st.html5[n]&&!Qt(n):(s="audio/"+n,e="probably"),e},Z=function(){if(!st.useHTML5Audio||!st.hasHTML5)return st.html5.usingFlash=!0,Tt=!0,!1;var t,e,i,n,o=void 0!==Audio?$t&&opera.version()<10?new Audio(null):new Audio:null,a={};function s(t){var e,i,a=!1,s=!1;if(!o||"function"!=typeof o.canPlayType)return a;if(t instanceof Array){for(n=0,i=t.length;n<i;n++)(st.html5[t[n]]||o.canPlayType(t[n]).match(st.html5Test))&&(s=!0,st.html5[t[n]]=!0,st.flash[t[n]]=!!t[n].match(Ft));a=s}else a=!(!(e=!(!o||"function"!=typeof o.canPlayType)&&o.canPlayType(t))||!e.match(st.html5Test));return a}for(t in i=st.audioFormats)if(i.hasOwnProperty(t)&&(e="audio/"+t,a[t]=s(i[t].type),a[e]=a[t],t.match(Ft)?(st.flash[t]=!0,st.flash[e]=!0):(st.flash[t]=!1,st.flash[e]=!1),i[t]&&i[t].related))for(n=i[t].related.length-1;n>=0;n--)a["audio/"+i[t].related[n]]=a[t],st.html5[i[t].related[n]]=a[t],st.flash[i[t].related[n]]=a[t];return a.canPlayType=o?s:null,st.html5=c(st.html5,a),st.html5.usingFlash=W(),Tt=st.html5.usingFlash,!0},S={},I=function(){},j=function(t){return 8===l&&t.loops>1&&t.stream&&(t.stream=!1),t},N=function(t,e){return t&&!t.usePolicyFile&&(t.onid3||t.usePeakData||t.useWaveformData||t.useEQData)&&(t.usePolicyFile=!0),t},a=function(){return!1},A=function(t){var e;for(e in t)t.hasOwnProperty(e)&&"function"==typeof t[e]&&(t[e]=a);e=null},E=function(t){void 0===t&&(t=!1),(gt||t)&&st.disable(t)},D=function(t){var e;if(t)if(t.match(/\.swf(\?.*)?$/i)){if(t.substr(t.toLowerCase().lastIndexOf(".swf?")+4))return t}else t.lastIndexOf("/")!==t.length-1&&(t+="/");return e=(t&&-1!==t.lastIndexOf("/")?t.substr(0,t.lastIndexOf("/")+1):"./")+st.movieURL,st.noSWFCache&&(e+="?ts="+(new Date).getTime()),e},b=function(){8!==(l=parseInt(st.flashVersion,10))&&9!==l&&(st.flashVersion=l=8);var t=st.debugMode||st.debugFlash?"_debug.swf":".swf";st.useHTML5Audio&&!st.html5Only&&st.audioFormats.mp4.required&&l<9&&(st.flashVersion=l=9),st.version=st.versionNumber+(st.html5Only?" (HTML5-only mode)":9===l?" (AS3/Flash 9)":" (AS2/Flash 8)"),l>8?(st.defaultOptions=c(st.defaultOptions,st.flash9Options),st.features.buffering=!0,st.defaultOptions=c(st.defaultOptions,st.movieStarOptions),st.filePatterns.flash9=new RegExp("\\.(mp3|"+Bt.join("|")+")(\\?.*)?$","i"),st.features.movieStar=!0):st.features.movieStar=!1,st.filePattern=st.filePatterns[8!==l?"flash9":"flash8"],st.movieURL=(8===l?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",t),st.features.peakData=st.features.waveformData=st.features.eqData=l>8},M=function(t,e){if(!lt)return!1;lt._setPolling(t,e)},H=this.getSoundById,q=function(){var t=[];return st.debugMode&&t.push(L.sm2Debug),st.debugFlash&&t.push(L.flashDebug),st.useHighPerformance&&t.push(L.highPerf),t.join(" ")},$=function(){I("fbHandler");var t=st.getMoviePercent(),e=L,i={type:"FLASHBLOCK"};if(st.html5Only)return!1;st.ok()?st.oMC&&(st.oMC.className=[q(),e.swfDefault,e.swfLoaded+(st.didFlashBlock?" "+e.swfUnblocked:"")].join(" ")):(Tt&&(st.oMC.className=q()+" "+e.swfDefault+" "+(null===t?e.swfTimedout:e.swfError)),st.didFlashBlock=!0,f({type:"ontimeout",ignoreInit:!0,error:i}),P(i))},p=function(t,e,i){void 0===ht[t]&&(ht[t]=[]),ht[t].push({method:e,scope:i||null,fired:!1})},f=function(t){if(t||(t={type:st.ok()?"onready":"ontimeout"}),!mt&&t&&!t.ignoreInit)return!1;if("ontimeout"===t.type&&(st.ok()||gt&&!t.ignoreInit))return!1;var e,i,n={success:t&&t.ignoreInit?st.ok():!gt},o=t&&t.type&&ht[t.type]||[],a=[],s=[n],r=Tt&&!st.ok();for(t.error&&(s[0].error=t.error),e=0,i=o.length;e<i;e++)!0!==o[e].fired&&a.push(o[e]);if(a.length)for(e=0,i=a.length;e<i;e++)a[e].scope?a[e].method.apply(a[e].scope,s):a[e].method.apply(this,s),r||(a[e].fired=!0);return!0},m=function(){t.setTimeout((function(){st.useFlashBlock&&$(),f(),"function"==typeof st.onload&&st.onload.apply(t),st.waitForWindowLoad&&J.add(t,"load",m)}),1)},et=function(){if(void 0!==tt)return tt;var e,i,n,o=!1,a=navigator,s=a.plugins,r=t.ActiveXObject;if(s&&s.length)i="application/x-shockwave-flash",(n=a.mimeTypes)&&n[i]&&n[i].enabledPlugin&&n[i].enabledPlugin.description&&(o=!0);else if(void 0!==r&&!ut.match(/MSAppHost/i)){try{e=new r("ShockwaveFlash.ShockwaveFlash")}catch(t){e=null}o=!!e,e=null}return tt=o,o},W=function(){var t,e,i=st.audioFormats;if(Mt&&!!ut.match(/os (1|2|3_0|3_1)\s/i)?(st.hasHTML5=!1,st.html5Only=!0,st.oMC&&(st.oMC.style.display="none")):st.useHTML5Audio&&(st.html5&&st.html5.canPlayType||(st.hasHTML5=!1)),st.useHTML5Audio&&st.hasHTML5)for(e in B=!0,i)i.hasOwnProperty(e)&&i[e].required&&(st.html5.canPlayType(i[e].type)?st.preferFlash&&(st.flash[e]||st.flash[i[e].type])&&(t=!0):(B=!1,t=!0));return st.ignoreFlash&&(t=!1,B=!0),st.html5Only=st.hasHTML5&&st.useHTML5Audio&&!t,!st.html5Only},V=function(t){var e,i,n,o=0;if(t instanceof Array){for(e=0,i=t.length;e<i;e++)if(t[e]instanceof Object){if(st.canPlayMIME(t[e].type)){o=e;break}}else if(st.canPlayURL(t[e])){o=e;break}t[o].url&&(t[o]=t[o].url),n=t[o]}else n=t;return n},F=function(t){t._hasTimer||(t._hasTimer=!0,!qt&&st.html5PollingInterval&&(null===xt&&0===Ct&&(xt=setInterval(z,st.html5PollingInterval)),Ct++))},R=function(t){t._hasTimer&&(t._hasTimer=!1,!qt&&st.html5PollingInterval&&Ct--)},z=function(){var t;if(null!==xt&&!Ct)return clearInterval(xt),xt=null,!1;for(t=st.soundIDs.length-1;t>=0;t--)st.sounds[st.soundIDs[t]].isHTML5&&st.sounds[st.soundIDs[t]]._hasTimer&&st.sounds[st.soundIDs[t]]._onTimer()},P=function(e){e=void 0!==e?e:{},"function"==typeof st.onerror&&st.onerror.apply(t,[{type:void 0!==e.type?e.type:null}]),void 0!==e.fatal&&e.fatal&&st.disable()},it=function(){if(!Lt||!et())return!1;var t,e,i=st.audioFormats;for(e in i)if(i.hasOwnProperty(e)&&("mp3"===e||"mp4"===e)&&(st.html5[e]=!1,i[e]&&i[e].related))for(t=i[e].related.length-1;t>=0;t--)st.html5[i[e].related[t]]=!1},this._setSandboxType=function(t){},this._externalInterfaceOK=function(t){if(st.swfLoaded)return!1;st.swfLoaded=!0,Nt=!1,Lt&&it(),setTimeout(r,Et?100:1)},O=function(t,e){if(pt&&ft)return!1;if(st.html5Only)return b(),st.oMC=o(st.movieID),r(),pt=!0,ft=!0,!1
;var i,n,a,s,l,u,c,d,h,p=e||st.url,f=st.altURL||p,m=_(),g=q(),v=dt.getElementsByTagName("html")[0];function y(t,e){return'<param name="'+t+'" value="'+e+'" />'}if(i=v&&v.dir&&v.dir.match(/rtl/i),t=void 0===t?st.id:t,b(),st.url=D(Rt?p:f),e=st.url,st.wmode=!st.wmode&&st.useHighPerformance?"transparent":st.wmode,null!==st.wmode&&(ut.match(/msie 8/i)||!Et&&!st.useHighPerformance)&&navigator.platform.match(/win32|win64/i)&&(kt.push(S.spcWmode),st.wmode=null),n={name:t,id:t,src:e,quality:"high",allowScriptAccess:st.allowScriptAccess,bgcolor:st.bgColor,pluginspage:zt+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)",type:"application/x-shockwave-flash",wmode:st.wmode,hasPriority:"true"},st.debugFlash&&(n.FlashVars="debug=1"),st.wmode||delete n.wmode,Et)a=dt.createElement("div"),l=['<object id="'+t+'" data="'+e+'" type="'+n.type+'" title="'+n.title+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">',y("movie",e),y("AllowScriptAccess",st.allowScriptAccess),y("quality",n.quality),st.wmode?y("wmode",st.wmode):"",y("bgcolor",st.bgColor),y("hasPriority","true"),st.debugFlash?y("FlashVars",n.FlashVars):"","</object>"].join("");else for(s in a=dt.createElement("embed"),n)n.hasOwnProperty(s)&&a.setAttribute(s,n[s]);if(g=q(),m=_())if(st.oMC=o(st.movieID)||dt.createElement("div"),st.oMC.id)h=st.oMC.className,st.oMC.className=(h?h+" ":L.swfDefault)+(g?" "+g:""),st.oMC.appendChild(a),Et&&((u=st.oMC.appendChild(dt.createElement("div"))).className=L.swfBox,u.innerHTML=l),ft=!0;else{if(st.oMC.id=st.movieID,st.oMC.className=L.swfDefault+" "+g,c=null,u=null,st.useFlashBlock||(st.useHighPerformance?c={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}:(c={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},i&&(c.left=Math.abs(parseInt(c.left,10))+"px"))),Dt&&(st.oMC.style.zIndex=1e4),!st.debugFlash)for(d in c)c.hasOwnProperty(d)&&(st.oMC.style[d]=c[d]);try{Et||st.oMC.appendChild(a),m.appendChild(st.oMC),Et&&((u=st.oMC.appendChild(dt.createElement("div"))).className=L.swfBox,u.innerHTML=l),ft=!0}catch(t){throw new Error(I("domError")+" \n"+t.toString())}}return pt=!0,!0},C=function(){return st.html5Only?(O(),!1):!lt&&(!!st.url&&((lt=st.getMovie(st.id))||(yt?(Et?st.oMC.innerHTML=bt:st.oMC.appendChild(yt),yt=null,pt=!0):O(st.id,st.url),lt=st.getMovie(st.id)),"function"==typeof st.oninitmovie&&setTimeout(st.oninitmovie,1),!0))},g=function(){setTimeout(v,1e3)},y=function(){t.setTimeout((function(){st.setup({preferFlash:!1}).reboot(),st.didFlashBlock=!0,st.beginDelayedInit()}),1)},v=function(){var e,i=!1;return!!st.url&&(!wt&&(wt=!0,J.remove(t,"load",g),!(tt&&Nt&&!jt)&&(mt||(e=st.getMoviePercent())>0&&e<100&&(i=!0),void setTimeout((function(){if(e=st.getMoviePercent(),i)return wt=!1,t.setTimeout(g,1),!1;!mt&&Ht&&(null===e?st.useFlashBlock||0===st.flashLoadTimeout?st.useFlashBlock&&$():!st.useFlashBlock&&B?y():f({type:"ontimeout",ignoreInit:!0,error:{type:"INIT_FLASHBLOCK"}}):0===st.flashLoadTimeout||(!st.useFlashBlock&&B?y():E(!0)))}),st.flashLoadTimeout))))},w=function(){function e(){J.remove(t,"focus",w)}return jt||!Nt?(e(),!0):(Ht=!0,jt=!0,wt=!1,g(),e(),!0)},u=function(e){if(mt)return!1;if(st.html5Only)return mt=!0,m(),!0;var i,n=!0;return st.useFlashBlock&&st.flashLoadTimeout&&!st.getMoviePercent()||(mt=!0),i={type:!tt&&Tt?"NO_FLASH":"INIT_TIMEOUT"},(gt||e)&&(st.useFlashBlock&&st.oMC&&(st.oMC.className=q()+" "+(null===st.getMoviePercent()?L.swfTimedout:L.swfError)),f({type:"ontimeout",error:i,ignoreInit:!0}),P(i),n=!1),gt||(st.waitForWindowLoad&&!vt?J.add(t,"load",m):m()),n},s=function(){var t,e=st.setupOptions;for(t in e)e.hasOwnProperty(t)&&(void 0===st[t]?st[t]=e[t]:st[t]!==e[t]&&(st.setupOptions[t]=st[t]))},r=function(){if(mt)return!1;function e(){J.remove(t,"load",st.beginDelayedInit)}if(st.html5Only)return mt||(e(),st.enabled=!0,u()),!0;C();try{lt._externalInterfaceTest(!1),M(!0,st.flashPollingInterval||(st.useHighPerformance?10:50)),st.debugMode||lt._disableDebug(),st.enabled=!0,st.html5Only||J.add(t,"unload",a)}catch(t){return P({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),E(!0),u(),!1}return u(),e(),!0},x=function(){return!T&&(T=!0,s(),!tt&&st.hasHTML5&&st.setup({useHTML5Audio:!0,preferFlash:!1}),Z(),!tt&&Tt&&(kt.push(S.needFlash),st.setup({flashLoadTimeout:1})),dt.removeEventListener&&dt.removeEventListener("DOMContentLoaded",x,!1),C(),!0)},G=function(){return"complete"===dt.readyState&&(x(),dt.detachEvent("onreadystatechange",G)),!0},k=function(){vt=!0,x(),J.remove(t,"load",k)},et(),J.add(t,"focus",w),J.add(t,"load",g),J.add(t,"load",k),dt.addEventListener?dt.addEventListener("DOMContentLoaded",x,!1):dt.attachEvent?dt.attachEvent("onreadystatechange",G):P({type:"NO_DOM2_EVENTS",fatal:!0})}void 0!==t.SM2_DEFER&&SM2_DEFER||(i=new n),"object"==typeof module&&module&&"object"==typeof module.exports?(module.exports.SoundManager=n,module.exports.soundManager=i):"function"==typeof define&&define.amd&&define((function(){return{constructor:n,getInstance:function(e){if(!t.soundManager&&e instanceof Function){var i=e(n);i instanceof n&&(t.soundManager=i)}return t.soundManager}}})),t.SoundManager=n,t.soundManager=i}(window),function(t){"use strict";function e(t){this._attr={},void 0===t&&(t={}),this.playedInterval=t.playedInterval||t.interval||3e4,this.statsInterval=t.statsInterval||t.interval||5e3,this.protocol=t.protocol||"http",this.host=t.host,this.port=parseInt(t.port,10)||8e3,this.stream=parseInt(t.stream,10)||1,this.stats_path=t.stats_path||"stats",this.played_path=t.played_path||"played",this._statsinterval=null,this._playedinterval=null,this._stats=t.stats||function(){},this._played=t.played||function(){}}e.prototype.get=function(t,e){return t?void 0!==this._attr[t.toLowerCase()]?this._attr[t.toLowerCase()]:e:this._attr},e.prototype.stats=function(e){var i,n=this;"443"!==this.port&&443!==this.port||(this.protocol="https");var o=this.protocol+"://"+this.host+":"+this.port+"/"+this.stats_path+"?sid="+this.stream+"&json=1";return null!==this._statsinterval&&clearInterval(this._statsinterval),e=e||function(){},(i=t.ajax({url:o,dataType:"jsonp",timeout:"5000"})).success((function(t){"object"==typeof t&&void 0!==t.streamstatus?(n._status=1===t.streamstatus?2:1,n._attr=t,n._attr.status=n.getStatusAsText(),e.call(n,n._attr),n._stats(n._attr)):n._status=0})),i.error((function(){null!==this._statsinterval&&clearInterval(this._statsinterval)})),this},e.prototype.played=function(e){"443"===this.port&&(this.protocol="https");var i=this,n=this.protocol+"://"+this.host+":"+this.port+"/"+this.played_path+"?sid="+this.stream+"&type=json";return t.ajax({url:n,dataType:"jsonp",timeout:2e3,success:function(t){!t instanceof Array||(e&&e.call(i,t),i._played(t))}}),this},e.prototype.startStats=function(){return this.stats(),null!==this._statsinterval&&void 0!==this._statsinterval&&clearInterval(this._statsinterval),this},e.prototype.stopStats=function(){return this._statsinterval&&clearInterval(this._statsinterval),this},e.prototype.startPlayed=function(){return this.stopPlayed(),this.played(),t.proxy(this.played,this),this},e.prototype.stopPlayed=function(){return this._playedinterval&&clearInterval(this._playedinterval),this},e.prototype.getStatus=function(){return this._status},e.prototype.getStatusAsText=function(){return["Offline","Awaiting Connection","On Air"][this._status]},e.prototype.onAir=function(){return 2===this._status},t.SHOUTcast=function(t){return new e(t)}}(jQuery),function(t){function e(){var e=this,i=this,n=soundManager,o=navigator.userAgent,a=o.match(/msie/i),s=o.match(/opera/i),r=o.match(/safari/i),l=o.match(/chrome/i),u=(o.match(/firefox/i),o.match(/ipad|iphone/i)),c=void 0===t.G_vmlCanvasManager&&void 0!==document.createElement("canvas").getContext("2d"),d=s||l?359.9:360,h=navigator.userAgent.match(/msie [678]/i)?1:2;void 0===t.soundManagerVolume&&(t.soundManagerVolume=100),void 0===t.soundManagerVolumeRad&&(t.soundManagerVolumeRad=360),this.excludeClass="threesixty-exclude",this.links=[],this.sounds=[],this.soundsByURL=[],this.indexByURL=[],this.lastSound=null,this.lastTouchedSound=null,this.soundCount=0,this.oUITemplate=null,this.oUIImageMap=null,this.vuMeter=null,this.callbackCount=0,this.peakDataHistory=[],this.config={playNext:!1,autoPlay:!1,allowMultiple:!1,loadRingColor:"#ccc",playRingColor:"#000",backgroundRingColor:"#eee",segmentRingColor:"rgba(255,255,255,0.33)",segmentRingColorAlt:"rgba(0,0,0,0.1)",loadRingColorMetadata:"#ddd",playRingColorMetadata:"rgba(128,192,256,0.9)",circleDiameter:null,circleRadius:null,animDuration:500,animTransition:t.Animator.tx.bouncy,showHMSTime:!1,scaleFont:!0,useWaveformData:!1,waveformDataColor:"#0099ff",waveformDataDownsample:3,waveformDataOutside:!1,waveformDataConstrain:!1,waveformDataLineRatio:.64,useEQData:!1,eqDataColor:"#339933",eqDataDownsample:4,eqDataOutside:!0,eqDataLineRatio:.54,usePeakData:!0,peakDataColor:"#ff33ff",peakDataOutside:!0,peakDataLineRatio:.5,useAmplifier:!0,fontSizeMax:null,scaleArcWidth:1,useFavIcon:!1,playervolume:!1},navigator.userAgent.match(/mobile/i)&&(this.config.playervolume=!1),this.css={sDefault:"sm2_link",sBuffering:"sm2_buffering",sPlaying:"sm2_playing",sPaused:"sm2_paused"},this.addEventHandler=void 0!==t.addEventListener?function(t,e,i){return t.addEventListener(e,i,!1)}:function(t,e,i){t.attachEvent("on"+e,i)},this.removeEventHandler=void 0!==t.removeEventListener?function(t,e,i){return t.removeEventListener(e,i,!1)}:function(t,e,i){return t.detachEvent("on"+e,i)},this.hasClass=function(t,e){return void 0!==t.className&&t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},this.addClass=function(t,i){if(!t||!i||e.hasClass(t,i))return!1;t.className=(t.className?t.className+" ":"")+i},this.removeClass=function(t,i){if(!t||!i||!e.hasClass(t,i))return!1;t.className=t.className.replace(new RegExp("( "+i+")|("+i+")","g"),"")},this.getElementsByClassName=function(t,i,n){var o,a,s=n||document,r=[],l=[];if(void 0!==i&&"string"!=typeof i)for(o=i.length;o--;)l&&l[i[o]]||(l[i[o]]=s.getElementsByTagName(i[o]));else l=i?s.getElementsByTagName(i):s.all||s.getElementsByTagName("*");if("string"!=typeof i)for(o=i.length;o--;)for(a=l[i[o]].length;a--;)e.hasClass(l[i[o]][a],t)&&r.push(l[i[o]][a]);else for(o=0;o<l.length;o++)e.hasClass(l[o],t)&&r.push(l[o]);return r},this.getParentByNodeName=function(t,e){if(!t||!e)return!1;for(e=e.toLowerCase();t.parentNode&&e!==t.parentNode.nodeName.toLowerCase();)t=t.parentNode;return t.parentNode&&e===t.parentNode.nodeName.toLowerCase()?t.parentNode:null},this.getParentByClassName=function(t,i){if(!t||!i)return!1;for(;t.parentNode&&!e.hasClass(t.parentNode,i);)t=t.parentNode;return t.parentNode&&e.hasClass(t.parentNode,i)?t.parentNode:null},this.getSoundByURL=function(t){return void 0!==e.soundsByURL[t]?e.soundsByURL[t]:null},this.isChildOfNode=function(t,e){if(!t||!t.parentNode)return!1;e=e.toLowerCase();do{t=t.parentNode}while(t&&t.parentNode&&t.nodeName.toLowerCase()!==e);return t&&t.nodeName.toLowerCase()===e?t:null},this.isChildOfClass=function(t,i){if(!t||!i)return!1;for(;t.parentNode&&!e.hasClass(t,i);)t=e.findParent(t);return e.hasClass(t,i)},this.findParent=function(t){if(!t||!t.parentNode)return!1;if(2===(t=t.parentNode).nodeType)for(;t&&t.parentNode&&2===t.parentNode.nodeType;)t=t.parentNode;return t},this.getStyle=function(e,i){try{if(e.currentStyle)return e.currentStyle[i];if(t.getComputedStyle)return document.defaultView.getComputedStyle(e,null).getPropertyValue(i)}catch(t){}return null},this.findXY=function(t){var e=0,i=0;do{e+=t.offsetLeft,i+=t.offsetTop}while(t=t.offsetParent);return[e,i]},this.getMouseXY=function(i){return i=i||t.event,u&&i.touches&&(i=i.touches[0]),i.pageX||i.pageY?[i.pageX,i.pageY]:i.clientX||i.clientY?[i.clientX+e.getScrollLeft(),i.clientY+e.getScrollTop()]:void 0},this.getScrollLeft=function(){return document.body.scrollLeft+document.documentElement.scrollLeft},this.getScrollTop=function(){return document.body.scrollTop+document.documentElement.scrollTop},this.events={play:function(){i.removeClass(this._360data.oUIBox,this._360data.className),this._360data.className=i.css.sPlaying,i.addClass(this._360data.oUIBox,this._360data.className),e.fanOut(this)},stop:function(){i.removeClass(this._360data.oUIBox,this._360data.className),this._360data.className="",e.fanIn(this)},pause:function(){i.removeClass(this._360data.oUIBox,this._360data.className),this._360data.className=i.css.sPaused,i.addClass(this._360data.oUIBox,this._360data.className)},resume:function(){i.removeClass(this._360data.oUIBox,this._360data.className),this._360data.className=i.css.sPlaying,i.addClass(this._360data.oUIBox,this._360data.className)},finish:function(){var t;i.removeClass(this._360data.oUIBox,this._360data.className),this._360data.className="",this._360data.didFinish=!0,e.fanIn(this),i.config.playNext&&(t=i.indexByURL[this._360data.oLink.href]+1)<i.links.length&&i.handleClick({target:i.links[t]})},whileloading:function(){this.paused&&e.updatePlaying.apply(this)},whileplaying:function(){e.updatePlaying.apply(this),this._360data.fps++},bufferchange:function(){this.isBuffering?i.addClass(this._360data.oUIBox,i.css.sBuffering):i.removeClass(this._360data.oUIBox,i.css.sBuffering)}},this.stopEvent=function(e){return void 0!==e&&void 0!==e.preventDefault?e.preventDefault():void 0!==t.event&&void 0!==t.event.returnValue&&(t.event.returnValue=!1),!1},this.getTheDamnLink=a?function(e){return e&&e.target?e.target:t.event.srcElement}:function(t){return t.target},this.handleClick=function(i){if(i.button>1)return!0;var o,a,s,r,l,u,c=e.getTheDamnLink(i);return"a"!==c.nodeName.toLowerCase()&&!(c=e.isChildOfNode(c,"a"))||(!e.isChildOfClass(c,"ui360")||(c.getAttribute("href"),c.href&&n.canPlayLink(c)&&!e.hasClass(c,e.excludeClass)?(n._writeDebug("handleClick()"),a=c.href,(s=e.getSoundByURL(a))?s===e.lastSound?s.togglePause():(s.togglePause(),n._writeDebug("sound different than last sound: "+e.lastSound.id),!e.config.allowMultiple&&e.lastSound&&e.stopSound(e.lastSound)):(r=c.parentNode,l=e.getElementsByClassName("ui360-vis","div",r.parentNode).length,s=n.createSound({id:"radioSound",url:a,onplay:e.events.play,onstop:e.events.stop,onpause:e.events.pause,onresume:e.events.resume,onfinish:e.events.finish,onbufferchange:e.events.bufferchange,type:c.type||null,whileloading:e.events.whileloading,whileplaying:e.events.whileplaying,useWaveformData:l&&e.config.useWaveformData,useEQData:l&&e.config.useEQData,usePeakData:l&&e.config.usePeakData}),u=parseInt(e.getElementsByClassName("sm2-360ui","div",r)[0].offsetWidth*h,10),o=e.getElementsByClassName("sm2-canvas","canvas",r),s._360data={oUI360:e.getParentByClassName(c,"ui360"),oLink:c,className:e.css.sPlaying,oUIBox:e.getElementsByClassName("sm2-360ui","div",r)[0],oCanvas:o[o.length-1],oButton:e.getElementsByClassName("sm2-360btn","span",r)[0],oTiming:e.getElementsByClassName("sm2-timing","div",r)[0],oCover:e.getElementsByClassName("sm2-cover","div",r)[0],circleDiameter:u,circleRadius:u/2,lastTime:null,didFinish:null,pauseCount:0,radius:0,fontSize:1,fontSizeMax:e.config.fontSizeMax,scaleFont:l&&e.config.scaleFont,showHMSTime:l,amplifier:l&&e.config.usePeakData?.9:1,radiusMax:.175*u,width:0,widthMax:.4*u,lastValues:{bytesLoaded:0,bytesTotal:0,position:0,durationEstimate:0},animating:!1,oAnim:new t.Animator({duration:e.config.animDuration,transition:e.config.animTransition,onComplete:function(){}}),oAnimProgress:function(t){this._360data.radius=parseInt(this._360data.radiusMax*this._360data.amplifier*t,10),this._360data.width=parseInt(this._360data.widthMax*this._360data.amplifier*t,10),this._360data.scaleFont&&null!==this._360data.fontSizeMax&&(this._360data.oTiming.style.fontSize=parseInt(Math.max(1,this._360data.fontSizeMax*t),10)+"px",this._360data.oTiming.style.opacity=t),(this.paused||0===this.playState||0===this._360data.lastValues.bytesLoaded||0===this._360data.lastValues.position)&&e.updatePlaying.apply(this)},fps:0},void 0!==e.Metadata&&e.getElementsByClassName("metadata","div",s._360data.oUI360).length&&(s._360data.metadata=new e.Metadata(s,e)),s._360data.scaleFont&&null!==s._360data.fontSizeMax&&(s._360data.oTiming.style.fontSize="1px"),s._360data.oAnim.addSubject(s._360data.oAnimProgress,s),e.refreshCoords(s),e.updatePlaying.apply(s),e.soundsByURL[a]=s,e.sounds.push(s),!e.config.allowMultiple&&e.lastSound&&e.stopSound(e.lastSound),s.play()),e.lastSound=s,void 0!==i&&void 0!==i.preventDefault?i.preventDefault():void 0!==t.event&&(t.event.returnValue=!1),!1):(console.log("Non MP3 link detected"),!0)))},this.fanOut=function(i){var n=i;if(1===n._360data.animating)return!1;n._360data.animating=0,soundManager._writeDebug("fanOut: "+n.id+": "+n._360data.oLink.href),n._360data.oAnim.seekTo(1),t.setTimeout((function(){n._360data.animating=0}),e.config.animDuration+20)},this.fanIn=function(i){var n=i;if(-1===n._360data.animating)return!1;n._360data.animating=-1,soundManager._writeDebug("fanIn: "+n.id+": "+n._360data.oLink.href),n._360data.oAnim.seekTo(0),t.setTimeout((function(){n._360data.didFinish=!1,n._360data.animating=0,e.resetLastValues(n)}),e.config.animDuration+20)},this.resetLastValues=function(t){t._360data.lastValues.position=0},this.refreshCoords=function(t){t._360data.canvasXY=e.findXY(t._360data.oCanvas),t._360data.canvasMid=[t._360data.circleRadius,t._360data.circleRadius],t._360data.canvasMidXY=[t._360data.canvasXY[0]+t._360data.canvasMid[0],t._360data.canvasXY[1]+t._360data.canvasMid[1]]},this.stopSound=function(t){soundManager._writeDebug("stopSound: "+t.id),soundManager.stop(t.id),u||soundManager.unload(t.id)},this.buttonClick=function(i){var n=i?i.target?i.target:i.srcElement:t.event.srcElement;return e.handleClick({target:e.getParentByClassName(n,"sm2-360ui").nextSibling}),!1},this.buttonMouseDown=function(t){return u?e.addEventHandler(document,"touchmove",e.mouseDown):document.onmousemove=function(t){e.mouseDown(t)},e.stopEvent(t),!1},this.mouseDown=function(i){if(!u&&i.button>1)return!0;if(!e.lastSound)return e.stopEvent(i),!1;var n,o,a,s=i||t.event;return u&&s.touches&&(s=s.touches[0]),n=s.target||s.srcElement,o=e.getSoundByURL(e.getElementsByClassName("sm2_link","a",e.getParentByClassName(n,"ui360"))[0].href),e.lastTouchedSound=o,e.refreshCoords(o),a=o._360data,e.addClass(a.oUIBox,"sm2_dragging"),a.pauseCount=e.lastTouchedSound.paused?1:0,e.mmh(i||t.event),u?(e.removeEventHandler(document,"touchmove",e.mouseDown),e.addEventHandler(document,"touchmove",e.mmh),e.addEventHandler(document,"touchend",e.mouseUp)):(document.onmousemove=e.mmh,document.onmouseup=e.mouseUp),e.stopEvent(i),!1},this.mouseUp=function(t){var i=e.lastTouchedSound._360data;e.removeClass(i.oUIBox,"sm2_dragging"),0===i.pauseCount&&e.lastTouchedSound.resume(),u?(e.removeEventHandler(document,"touchmove",e.mmh),e.removeEventHandler(document,"touchend",e.mouseUP)):(document.onmousemove=null,document.onmouseup=null)},this.mmh=function(i){void 0===i&&(i=t.event);var n=e.lastTouchedSound,o=e.getMouseXY(i),a=o[0],s=o[1],r=a-n._360data.canvasMidXY[0],l=s-n._360data.canvasMidXY[1],u=Math.floor(d-(e.rad2deg(Math.atan2(r,l))+180)),c=u/d*100;return!0===e.config.playervolume?navigator.userAgent.match(/mobile/i)?console.log("Is a mobile device"):(t.soundManagerVolume=c,t.soundManagerVolumeRad=u,soundManager.setVolume("radioSound",Math.round(c))):n.setPosition(n.durationEstimate*(u/d)),e.stopEvent(i),!1},this.drawSolidArc=function(t,i,n,o,a,l,u){var c,d,h,p,f=t;f.getContext&&(c=f.getContext("2d")),t=c,u||e.clearCanvas(f),i&&(c.fillStyle=i),t.beginPath(),isNaN(a)&&(a=0),d=n-o,(!(h=s||r)||h&&n>0)&&(t.arc(0,0,n,l,a,!1),p=e.getArcEndpointCoords(d,a),t.lineTo(p.x,p.y),t.arc(0,0,d,a,l,!0),t.closePath(),t.fill())},this.getArcEndpointCoords=function(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}},this.deg2rad=function(t){return t*Math.PI/180},this.rad2deg=function(t){return 180*t/Math.PI},this.getTime=function(t,e){var i=Math.floor(t/1e3),n=Math.floor(i/60),o=i-60*n;return e?n+":"+(o<10?"0"+o:o):{min:n,sec:o}},this.clearCanvas=function(t){var e,i,n=t,o=null;n.getContext&&(o=n.getContext("2d")),o&&(e=n.offsetWidth,i=n.offsetHeight,o.clearRect(-e/2,-i/2,e,i))},this.updatePlaying=function(){var i=this._360data.showHMSTime?e.getTime(this.position,!0):parseInt(this.position/1e3,10),n=e.config.scaleArcWidth;this.bytesLoaded&&(this._360data.lastValues.bytesLoaded=this.bytesLoaded,this._360data.lastValues.bytesTotal=this.bytesTotal),this.position&&(this._360data.lastValues.position=this.position),this.durationEstimate&&(this._360data.lastValues.durationEstimate=this.durationEstimate),e.drawSolidArc(this._360data.oCanvas,e.config.backgroundRingColor,this._360data.width,this._360data.radius*n,e.deg2rad(d),!1),!0!==e.config.playervolume||navigator.userAgent.match(/mobile/i)?0!==this._360data.lastValues.position&&e.drawSolidArc(this._360data.oCanvas,this._360data.metadata?e.config.playRingColorMetadata:e.config.playRingColor,this._360data.width,this._360data.radius*n,e.deg2rad(1===this._360data.didFinish?d:d*(this._360data.lastValues.position/this._360data.lastValues.durationEstimate)),0,!0):e.drawSolidArc(this._360data.oCanvas,this._360data.metadata?e.config.loadRingColorMetadata:e.config.playRingColor,this._360data.width,this._360data.radius*n,e.deg2rad(t.soundManagerVolumeRad),0,!0),this._360data.metadata&&this._360data.metadata.events.whileplaying(),i!==this._360data.lastTime&&(this._360data.lastTime=i,(!1===e.config.playervolume||navigator.userAgent.match(/mobile/i))&&(this._360data.oTiming.innerHTML=i)),!0!==e.config.playervolume||navigator.userAgent.match(/mobile/i)||(this._360data.oTiming.innerHTML=Math.round(t.soundManagerVolume)),(this.instanceOptions.useWaveformData||this.instanceOptions.useEQData)&&c&&e.updateWaveform(this),e.config.useFavIcon&&e.vuMeter&&e.vuMeter.updateVU(this)},this.updateWaveform=function(t){if(!e.config.useWaveformData&&!e.config.useEQData||!n.features.waveformData&&!n.features.eqData)return!1;if(!t.waveformData.left.length&&!t.eqData.length&&!t.peakData.left)return!1;t._360data.oCanvas.getContext("2d");var i,o,a,s,r,l,u,c,d,h,p,f,m=parseInt(t._360data.circleDiameter/2,10),g=m/2;if(e.config.useWaveformData)for(a=e.config.waveformDataDownsample,256,s=256/(a=Math.max(1,a)),r=0,l=0,u=null,c=e.config.waveformDataOutside?1:e.config.waveformDataConstrain?.5:.565,g=e.config.waveformDataOutside?.7:.75,d=e.deg2rad(360/s*e.config.waveformDataLineRatio),i=0;i<256;i+=a)l=(r=e.deg2rad(i/s*1/a*360))+d,(u=t.waveformData.left[i])<0&&e.config.waveformDataConstrain&&(u=Math.abs(u)),e.drawSolidArc(t._360data.oCanvas,e.config.waveformDataColor,t._360data.width*c*(2-e.config.scaleArcWidth),t._360data.radius*g*1.25*u,l,r,!0);if(e.config.useEQData)for(a=e.config.eqDataDownsample,0,s=(h=192)/(a=Math.max(1,a)),c=e.config.eqDataOutside?1:.565,o=e.config.eqDataOutside?-1:1,g=e.config.eqDataOutside?.5:.75,r=0,l=0,d=e.deg2rad(360/s*e.config.eqDataLineRatio),p=e.deg2rad(1===t._360data.didFinish?360:t._360data.lastValues.position/t._360data.lastValues.durationEstimate*360),0,0,i=0;i<h;i+=a)l=(r=e.deg2rad(i/h*360))+d,e.drawSolidArc(t._360data.oCanvas,l>p?e.config.eqDataColor:e.config.playRingColor,t._360data.width*c,t._360data.radius*g*(t.eqData.left[i]*o),l,r,!0);if(e.config.usePeakData&&!t._360data.animating){for(f=t.peakData.left||t.peakData.right,h=3,i=0;i<h;i++)f=f||t.eqData[i];t._360data.amplifier=e.config.useAmplifier?.9+.1*f:1,t._360data.radiusMax=.175*t._360data.circleDiameter*t._360data.amplifier,t._360data.widthMax=.4*t._360data.circleDiameter*t._360data.amplifier,t._360data.radius=parseInt(t._360data.radiusMax*t._360data.amplifier,10),t._360data.width=parseInt(t._360data.widthMax*t._360data.amplifier,10)}},this.getUIHTML=function(t){return['<canvas class="sm2-canvas" width="'+t+'" height="'+t+'"></canvas>',' <span class="sm2-360btn sm2-360btn-default"></span>',' <div class="sm2-timing'+(navigator.userAgent.match(/safari/i)?" alignTweak":"")+'"></div>',' <div class="sm2-cover"></div>']},this.uiTest=function(t){var i,n,o,a,s,r,l,u,c,d=document.createElement("div");return d.className="sm2-360ui",(i=document.createElement("div")).className="ui360"+(t?" "+t:""),n=i.appendChild(d.cloneNode(!0)),i.style.position="absolute",i.style.left="-9999px",o=document.body.appendChild(i),a=n.offsetWidth*h,s=e.getUIHTML(a),n.innerHTML=s[1]+s[2]+s[3],r=parseInt(a,10),l=parseInt(r/2,10),c=e.getElementsByClassName("sm2-timing","div",o)[0],u=parseInt(e.getStyle(c,"font-size"),10),isNaN(u)&&(u=null),i.parentNode.removeChild(i),s=i=n=o=null,{circleDiameter:r,circleRadius:l,fontSizeMax:u}},this.init=function(){n._writeDebug("threeSixtyPlayer.init()");var i,o,s,r,l,c,d,p,f,m,g,v,y,b,w=e.getElementsByClassName("ui360","div"),S=[],C=!1,x=0;for(i=0,o=w.length;i<o;i++)S.push(w[i].getElementsByTagName("a")[0]),w[i].style.backgroundImage="none";for(e.oUITemplate=document.createElement("div"),e.oUITemplate.className="sm2-360ui",e.oUITemplateVis=document.createElement("div"),e.oUITemplateVis.className="sm2-360ui",f=e.uiTest(),e.config.circleDiameter=f.circleDiameter,e.config.circleRadius=f.circleRadius,m=e.uiTest("ui360-vis"),e.config.fontSizeMax=m.fontSizeMax,e.oUITemplate.innerHTML=e.getUIHTML(e.config.circleDiameter).join(""),e.oUITemplateVis.innerHTML=e.getUIHTML(m.circleDiameter).join(""),i=0,o=S.length;i<o;i++)!n.canPlayLink(S[i])||e.hasClass(S[i],e.excludeClass)||e.hasClass(S[i],e.css.sDefault)||(e.addClass(S[i],e.css.sDefault),e.links[x]=S[i],e.indexByURL[S[i].href]=x,x++,d=((C=e.hasClass(S[i].parentNode,"ui360-vis"))?m:f).circleDiameter,p=(C?m:f).circleRadius,g=S[i].parentNode.insertBefore((C?e.oUITemplateVis:e.oUITemplate).cloneNode(!0),S[i]),a&&void 0!==t.G_vmlCanvasManager?(S[i].parentNode,(y=document.createElement("canvas")).className="sm2-canvas",b="sm2_canvas_"+i+(new Date).getTime(),y.id=b,y.width=d,y.height=d,g.appendChild(y),t.G_vmlCanvasManager.initElement(y),(s=(r=document.getElementById(b)).parentNode.getElementsByTagName("canvas")).length>1&&(r=s[s.length-1])):r=S[i].parentNode.getElementsByTagName("canvas")[0],h>1&&e.addClass(r,"hi-dpi"),c=e.getElementsByClassName("sm2-cover","div",S[i].parentNode)[0],v=S[i].parentNode.getElementsByTagName("span")[0],e.addEventHandler(v,"click",e.buttonClick),u?e.addEventHandler(c,"touchstart",e.mouseDown):e.addEventHandler(c,"mousedown",e.mouseDown),(l=r.getContext("2d")).translate(p,p),l.rotate(e.deg2rad(-90)));x>0&&(e.addEventHandler(document,"click",e.handleClick),e.config.autoPlay&&e.handleClick({target:e.links[0],preventDefault:function(){}})),n._writeDebug("threeSixtyPlayer.init(): Found "+x+" relevant items."),e.config.useFavIcon&&void 0!==this.VUMeter&&(this.vuMeter=new this.VUMeter(this))}}e.prototype.VUMeter=function(t){var e=t,i=this,n=document.getElementsByTagName("head")[0],o=navigator.userAgent.match(/opera/i),a=navigator.userAgent.match(/firefox/i);this.vuMeterData=[],this.vuDataCanvas=null,this.setPageIcon=function(t){if(!e.config.useFavIcon||!e.config.usePeakData||!t)return!1;var i=document.getElementById("sm2-favicon");i&&(n.removeChild(i),i=null),i||((i=document.createElement("link")).id="sm2-favicon",i.rel="shortcut icon",i.type="image/png",i.href=t,document.getElementsByTagName("head")[0].appendChild(i))},this.resetPageIcon=function(){if(!e.config.useFavIcon)return!1;var t=document.getElementById("favicon");t&&(t.href="/favicon.ico")},this.updateVU=function(t){soundManager.flashVersion>=9&&e.config.useFavIcon&&e.config.usePeakData&&i.setPageIcon(i.vuMeterData[parseInt(16*t.peakData.left,10)][parseInt(16*t.peakData.right,10)])},this.createVUData=function(){var t=0,e=0,n=i.vuDataCanvas.getContext("2d"),o=n.createLinearGradient(0,16,0,0),a=n.createLinearGradient(0,16,0,0);for(o.addColorStop(0,"rgb(0,192,0)"),o.addColorStop(.3,"rgb(0,255,0)"),o.addColorStop(.625,"rgb(255,255,0)"),o.addColorStop(.85,"rgb(255,0,0)"),a.addColorStop(0,"rgba(0,0,0,0.2)"),a.addColorStop(1,"rgba(0,0,0,0.5)"),t=0;t<16;t++)i.vuMeterData[t]=[];for(t=0;t<16;t++)for(e=0;e<16;e++)i.vuDataCanvas.setAttribute("width",16),i.vuDataCanvas.setAttribute("height",16),n.fillStyle=a,n.fillRect(0,0,7,15),n.fillRect(8,0,7,15),n.fillStyle=o,n.fillRect(0,15-t,7,16-(16-t)),n.fillRect(8,15-e,7,16-(16-e)),n.clearRect(0,3,16,1),n.clearRect(0,7,16,1),n.clearRect(0,11,16,1),i.vuMeterData[t][e]=i.vuDataCanvas.toDataURL("image/png")},this.testCanvas=function(){var t=document.createElement("canvas");if(!t||void 0===t.getContext)return null;if(!t.getContext("2d")||"function"!=typeof t.toDataURL)return null;try{t.toDataURL("image/png")}catch(t){return null}return t},this.init=function(){e.config.useFavIcon&&(i.vuDataCanvas=i.testCanvas(),i.vuDataCanvas&&(a||o)?i.createVUData():e.config.useFavIcon=!1)},this.init()},e.prototype.Metadata=function(t,e){soundManager._wD("Metadata()");var i,n,o=this,a=t._360data.oUI360,s=a.getElementsByTagName("ul")[0].getElementsByTagName("li");navigator.userAgent.match(/firefox/i);for(this.lastWPExec=0,this.refreshInterval=250,this.totalTime=0,this.events={whileplaying:function(){var i,n,a,s=t._360data.width,r=t._360data.radius,l=t.durationEstimate||1e3*o.totalTime,u=null;for(i=0,n=o.data.length;i<n;i++)u=i%2==0,e.drawSolidArc(t._360data.oCanvas,u?e.config.segmentRingColorAlt:e.config.segmentRingColor,s,r/2,e.deg2rad(o.data[i].endTimeMS/l*360),e.deg2rad((o.data[i].startTimeMS||1)/l*360),!0);(a=new Date)-o.lastWPExec>o.refreshInterval&&(o.refresh(),o.lastWPExec=a)}},this.refresh=function(){var e,i,n=null,o=t.position,a=t._360data.metadata.data;for(e=0,i=a.length;e<i;e++)if(o>=a[e].startTimeMS&&o<=a[e].endTimeMS){n=e;break}n!==a.currentItem&&n<a.length&&(t._360data.oLink.innerHTML=a.mainTitle+' <span class="metadata"><span class="sm2_divider"> | </span><span class="sm2_metadata">'+a[n].title+"</span></span>",a.currentItem=n)},this.strToTime=function(t){var e,i=t.split(":"),n=0;for(e=i.length;e--;)n+=parseInt(i[e],10)*Math.pow(60,i.length-1-e);return n},this.data=[],this.data.givenDuration=null,this.data.currentItem=null,this.data.mainTitle=t._360data.oLink.innerHTML,i=0;i<s.length;i++)this.data[i]={o:null,title:s[i].getElementsByTagName("p")[0].innerHTML,startTime:s[i].getElementsByTagName("span")[0].innerHTML,startSeconds:o.strToTime(s[i].getElementsByTagName("span")[0].innerHTML.replace(/[()]/g,"")),duration:0,durationMS:null,startTimeMS:null,endTimeMS:null,oNote:null};for(n=e.getElementsByClassName("duration","div",a),this.data.givenDuration=n.length?1e3*o.strToTime(n[0].innerHTML):0,i=0;i<this.data.length;i++)this.data[i].duration=parseInt(this.data[i+1]?this.data[i+1].startSeconds:(o.data.givenDuration?o.data.givenDuration:t.durationEstimate)/1e3,10)-this.data[i].startSeconds,this.data[i].startTimeMS=1e3*this.data[i].startSeconds,this.data[i].durationMS=1e3*this.data[i].duration,this.data[i].endTimeMS=this.data[i].startTimeMS+this.data[i].durationMS,this.totalTime+=this.data[i].duration},navigator.userAgent.match(/webkit/i)&&navigator.userAgent.match(/mobile/i)&&soundManager.setup({useHTML5Audio:!0}),soundManager.setup({html5PollingInterval:50,debugMode:t.location.href.match(/debug=1/i),consoleOnly:!0,flashVersion:9,useHighPerformance:!0}),soundManager.debugMode&&t.setInterval((function(){var e=t.threeSixtyPlayer;e&&e.lastSound&&e.lastSound._360data.fps&&void 0===t.isHome&&(soundManager._writeDebug("fps: ~"+e.lastSound._360data.fps),e.lastSound._360data.fps=0)}),1e3),t.ThreeSixtyPlayer=e}(window),function(t){t.fn.popupwindow=function(e){t("body").on("click",".qt-popupwindow",(function(e){var i,n,o;e.preventDefault();var a=t(this),s=a.attr("href"),r=a.attr("data-name"),l=a.attr("data-width"),u=a.attr("data-height");return i={height:600,width:600,toolbar:0,scrollbars:1,status:0,resizable:1,left:0,top:0,center:0,createnew:1,location:0,menubar:0,onUnload:null},l&&(i.width=l),u&&(i.height=u),1==i.center&&(i.top=(screen.height-(i.height+110))/2,i.left=(screen.width-i.width)/2),
n="location="+i.location+",menubar="+i.menubar+",height="+i.height+",width="+i.width+",toolbar="+i.toolbar+",scrollbars="+i.scrollbars+",status="+i.status+",resizable="+i.resizable+",left="+i.left+",screenX="+i.left+",top="+i.top+",screenY="+i.top,o=window.open(s,r,n),i.onUnload&&(unloadInterval=setInterval((function(){o&&!o.closed||(clearInterval(unloadInterval),i.onUnload.call(t(this)))}),500)),!1}))}}(jQuery),function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("div");o.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',n.appendChild(o.childNodes[1])}return e&&t.extend(i,e),this.each((function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var o=t(this).find(e.join(","));(o=(o=o.not("object object")).not(n)).each((function(){var e=t(this);if(!(e.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}}))}))},t.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(t,e,i){"use strict";function n(i){if(o=e.documentElement,a=e.body,z(),nt=this,lt=(i=i||{}).constants||{},i.easing)for(var n in i.easing)W[n]=i.easing[n];mt=i.edgeStrategy||"set",st={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},(rt=!1!==i.forceHeight)&&(Dt=i.scale||1),ut=i.mobileDeceleration||x,dt=!1!==i.smoothScrolling,ht=i.smoothScrollingDuration||T,pt={targetTop:nt.getScrollTop()},(Ft=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||t.opera)})())?((at=e.getElementById(i.skrollrBody||k))&&it(),Q(),_t(o,[y,S],[b])):_t(o,[y,w],[b]),nt.refresh(),yt(t,"resize orientationchange",(function(){var t=o.clientWidth,e=o.clientHeight;(e!==jt||t!==Lt)&&(jt=e,Lt=t,Nt=!0)}));var s=V();return function t(){U(),vt=s(t)}(),nt}var o,a,s={get:function(){return nt},init:function(t){return nt||new n(t)},VERSION:"0.6.30"},r=Object.prototype.hasOwnProperty,l=t.Math,u=t.getComputedStyle,c="touchstart",d="touchmove",h="touchcancel",p="touchend",f="skrollable",m=f+"-before",g=f+"-between",v=f+"-after",y="skrollr",b="no-"+y,w=y+"-desktop",S=y+"-mobile",C="linear",x=.004,k="skrollr-body",T=200,_="center",O="bottom",P="___skrollable_id",M=/^(?:input|textarea|button|select)$/i,A=/^\s+|\s+$/g,E=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,D=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,I=/^(@?[a-z\-]+)\[(\w+)\]$/,$=/-([a-z0-9_])/g,q=function(t,e){return e.toUpperCase()},L=/[\-+]?[\d]*\.?[\d]+/g,j=/\{\?\}/g,N=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,H=/[a-z\-]+-gradient/g,F="",R="",z=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(u){var e=u(a,null);for(var i in e)if(F=i.match(t)||+i==i&&e[i].match(t))break;if(!F)return void(F=R="");"-"===(F=F[0]).slice(0,1)?(R=F,F={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[F]):R="-"+F.toLowerCase()+"-"}},V=function(){var e=t.requestAnimationFrame||t[F.toLowerCase()+"RequestAnimationFrame"],i=Mt();return(Ft||!e)&&(e=function(e){var n=Mt()-i,o=l.max(0,1e3/60-n);return t.setTimeout((function(){i=Mt(),e()}),o)}),e},B=function(){var e=t.cancelAnimationFrame||t[F.toLowerCase()+"CancelAnimationFrame"];return(Ft||!e)&&(e=function(e){return t.clearTimeout(e)}),e},W={begin:function(){return 0},end:function(){return 1},linear:function(t){return t},quadratic:function(t){return t*t},cubic:function(t){return t*t*t},swing:function(t){return-l.cos(t*l.PI)/2+.5},sqrt:function(t){return l.sqrt(t)},outCubic:function(t){return l.pow(t-1,3)+1},bounce:function(t){var e;if(.5083>=t)e=3;else if(.8489>=t)e=9;else if(.96208>=t)e=27;else{if(!(.99981>=t))return 1;e=91}return 1-l.abs(3*l.cos(t*e*1.028)/e)}};n.prototype.refresh=function(t){var n,o,a=!1;for(t===i?(a=!0,ot=[],Ht=0,t=e.getElementsByTagName("*")):t.length===i&&(t=[t]),n=0,o=t.length;o>n;n++){var s=t[n],r=s,l=[],u=dt,c=mt,d=!1;if(a&&P in s&&delete s[P],s.attributes){for(var h=0,p=s.attributes.length;p>h;h++){var m=s.attributes[h];if("data-anchor-target"!==m.name)if("data-smooth-scrolling"!==m.name)if("data-edge-strategy"!==m.name)if("data-emit-events"!==m.name){var g=m.name.match(E);if(null!==g){var v={props:m.value,element:s,eventType:m.name.replace($,q)};l.push(v);var y=g[1];y&&(v.constant=y.substr(1));var b=g[2];/p$/.test(b)?(v.isPercentage=!0,v.offset=(0|b.slice(0,-1))/100):v.offset=0|b;var w=g[3],S=g[4]||w;w&&"start"!==w&&"end"!==w?(v.mode="relative",v.anchors=[w,S]):(v.mode="absolute","end"===w?v.isEnd=!0:v.isPercentage||(v.offset=v.offset*Dt))}}else d=!0;else c=m.value;else u="off"!==m.value;else if(null===(r=e.querySelector(m.value)))throw'Unable to find anchor target "'+m.value+'"'}var C,x,k;if(l.length)!a&&P in s?(k=s[P],C=ot[k].styleAttr,x=ot[k].classAttr):(k=s[P]=Ht++,C=s.style.cssText,x=Tt(s)),ot[k]={element:s,styleAttr:C,classAttr:x,anchorTarget:r,keyFrames:l,smoothScrolling:u,edgeStrategy:c,emitEvents:d,lastFrameIndex:-1},_t(s,[f],[])}}for(Ct(),n=0,o=t.length;o>n;n++){var T=ot[t[n][P]];T!==i&&(Y(T),Z(T))}return nt},n.prototype.relativeToAbsolute=function(t,e,i){var n=o.clientHeight,a=t.getBoundingClientRect(),s=a.top,r=a.bottom-a.top;return e===O?s-=n:e===_&&(s-=n/2),i===O?s+=r:i===_&&(s+=r/2),(s+=nt.getScrollTop())+.5|0},n.prototype.animateTo=function(t,e){e=e||{};var n=Mt(),o=nt.getScrollTop(),a=e.duration===i?1e3:e.duration;return(ct={startTop:o,topDiff:t-o,targetTop:t,duration:a,startTime:n,endTime:n+a,easing:W[e.easing||C],done:e.done}).topDiff||(ct.done&&ct.done.call(nt,!1),ct=i),nt},n.prototype.stopAnimateTo=function(){ct&&ct.done&&ct.done.call(nt,!0),ct=i},n.prototype.isAnimatingTo=function(){return!!ct},n.prototype.isMobile=function(){return Ft},n.prototype.setScrollTop=function(e,i){return ft=!0===i,Ft?Rt=l.min(l.max(e,0),Et):t.scrollTo(0,e),nt},n.prototype.getScrollTop=function(){return Ft?Rt:t.pageYOffset||o.scrollTop||a.scrollTop||0},n.prototype.getMaxScrollTop=function(){return Et},n.prototype.on=function(t,e){return st[t]=e,nt},n.prototype.off=function(t){return delete st[t],nt},n.prototype.destroy=function(){B()(vt),wt(),_t(o,[b],[y,w,S]);for(var t=0,e=ot.length;e>t;t++)et(ot[t].element);o.style.overflow=a.style.overflow="",o.style.height=a.style.height="",at&&s.setStyle(at,"transform","none"),nt=i,at=i,st=i,rt=i,Et=0,Dt=1,lt=i,ut=i,It="down",$t=-1,Lt=0,jt=0,Nt=!1,ct=i,dt=i,ht=i,pt=i,ft=i,Ht=0,mt=i,Ft=!1,Rt=0,gt=i};var Q=function(){var n,s,r,u,f,m,g,v,y,b,w;yt(o,[c,d,h,p].join(" "),(function(t){var o=t.changedTouches[0];for(u=t.target;3===u.nodeType;)u=u.parentNode;switch(f=o.clientY,m=o.clientX,y=t.timeStamp,M.test(u.tagName)||t.preventDefault(),t.type){case c:n&&n.blur(),nt.stopAnimateTo(),n=u,s=g=f,r=m,y;break;case d:M.test(u.tagName)&&e.activeElement!==u&&t.preventDefault(),v=f-g,w=y-b,nt.setScrollTop(Rt-v,!0),g=f,b=y;break;default:case h:case p:var a=s-f,S=r-m;if(49>S*S+a*a){if(!M.test(n.tagName)){n.focus();var C=e.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,t.view,1,o.screenX,o.screenY,o.clientX,o.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),n.dispatchEvent(C)}return}n=i;var x=v/w;x=l.max(l.min(x,3),-3);var k=l.abs(x/ut),T=x*k+.5*ut*k*k,_=nt.getScrollTop()-T,O=0;_>Et?(O=(Et-_)/T,_=Et):0>_&&(O=-_/T,_=0),k*=1-O,nt.animateTo(_+.5|0,{easing:"outCubic",duration:k})}})),t.scrollTo(0,0),o.style.overflow=a.style.overflow="hidden"},X=function(t,e){for(var i=0,n=ot.length;n>i;i++){var o,a,l=ot[i],u=l.element,c=l.smoothScrolling?t:e,d=l.keyFrames,h=d.length,p=d[0],y=d[d.length-1],b=c<p.frame,w=c>y.frame,S=b?p:y,C=l.emitEvents,x=l.lastFrameIndex;if(b||w){if(b&&-1===l.edge||w&&1===l.edge)continue;switch(b?(_t(u,[m],[v,g]),C&&x>-1&&(St(u,p.eventType,It),l.lastFrameIndex=-1)):(_t(u,[v],[m,g]),C&&h>x&&(St(u,y.eventType,It),l.lastFrameIndex=h)),l.edge=b?-1:1,l.edgeStrategy){case"reset":et(u);continue;case"ease":c=S.frame;break;default:case"set":var k=S.props;for(o in k)r.call(k,o)&&(a=tt(k[o].value),0===o.indexOf("@")?u.setAttribute(o.substr(1),a):s.setStyle(u,o,a));continue}}else 0!==l.edge&&(_t(u,[f,g],[m,v]),l.edge=0);for(var T=0;h-1>T;T++)if(c>=d[T].frame&&c<=d[T+1].frame){var _=d[T],O=d[T+1];for(o in _.props)if(r.call(_.props,o)){var P=(c-_.frame)/(O.frame-_.frame);P=_.props[o].easing(P),a=K(_.props[o].value,O.props[o].value,P),a=tt(a),0===o.indexOf("@")?u.setAttribute(o.substr(1),a):s.setStyle(u,o,a)}C&&x!==T&&(St(u,"down"===It?_.eventType:O.eventType,It),l.lastFrameIndex=T);break}}},U=function(){Nt&&(Nt=!1,Ct());var t,e,n=nt.getScrollTop(),o=Mt();if(ct)o>=ct.endTime?(n=ct.targetTop,t=ct.done,ct=i):(e=ct.easing((o-ct.startTime)/ct.duration),n=ct.startTop+e*ct.topDiff|0),nt.setScrollTop(n,!0);else if(!ft){pt.targetTop-n&&(pt={startTop:$t,topDiff:n-$t,targetTop:n,startTime:qt,endTime:qt+ht}),o<=pt.endTime&&(e=W.sqrt((o-pt.startTime)/ht),n=pt.startTop+e*pt.topDiff|0)}if(ft||$t!==n){ft=!1;var a={curTop:n,lastTop:$t,maxTop:Et,direction:It=n>$t?"down":$t>n?"up":It};!1!==(st.beforerender&&st.beforerender.call(nt,a))&&(X(n,nt.getScrollTop()),Ft&&at&&s.setStyle(at,"transform","translate(0, "+-Rt+"px) "+gt),$t=n,st.render&&st.render.call(nt,a)),t&&t.call(nt,!1)}qt=o},Y=function(t){for(var e=0,i=t.keyFrames.length;i>e;e++){for(var n,o,a,s,r=t.keyFrames[e],l={};null!==(s=D.exec(r.props));)a=s[1],o=s[2],null!==(n=a.match(I))?(a=n[1],n=n[2]):n=C,o=o.indexOf("!")?G(o):[o.slice(1)],l[a]={value:o,easing:W[n]};r.props=l}},G=function(t){var e=[];return N.lastIndex=0,t=t.replace(N,(function(t){return t.replace(L,(function(t){return t/255*100+"%"}))})),R&&(H.lastIndex=0,t=t.replace(H,(function(t){return R+t}))),t=t.replace(L,(function(t){return e.push(+t),"{?}"})),e.unshift(t),e},Z=function(t){var e,i,n={};for(e=0,i=t.keyFrames.length;i>e;e++)J(t.keyFrames[e],n);for(n={},e=t.keyFrames.length-1;e>=0;e--)J(t.keyFrames[e],n)},J=function(t,e){var i;for(i in e)r.call(t.props,i)||(t.props[i]=e[i]);for(i in t.props)e[i]=t.props[i]},K=function(t,e,i){var n,o=t.length;if(o!==e.length)throw"Can't interpolate between \""+t[0]+'" and "'+e[0]+'"';var a=[t[0]];for(n=1;o>n;n++)a[n]=t[n]+(e[n]-t[n])*i;return a},tt=function(t){var e=1;return j.lastIndex=0,t[0].replace(j,(function(){return t[e++]}))},et=function(t,e){for(var i,n,o=0,a=(t=[].concat(t)).length;a>o;o++)n=t[o],(i=ot[n[P]])&&(e?(n.style.cssText=i.dirtyStyleAttr,_t(n,i.dirtyClassAttr)):(i.dirtyStyleAttr=n.style.cssText,i.dirtyClassAttr=Tt(n),n.style.cssText=i.styleAttr,_t(n,i.classAttr)))},it=function(){gt="translateZ(0)",s.setStyle(at,"transform",gt);var t=u(at),e=t.getPropertyValue("transform"),i=t.getPropertyValue(R+"transform");e&&"none"!==e||i&&"none"!==i||(gt="")};s.setStyle=function(t,e,i){var n=t.style;if("zIndex"===(e=e.replace($,q).replace("-","")))isNaN(i)?n[e]=i:n[e]=""+(0|i);else if("float"===e)n.styleFloat=n.cssFloat=i;else try{F&&(n[F+e.slice(0,1).toUpperCase()+e.slice(1)]=i),n[e]=i}catch(t){}};var nt,ot,at,st,rt,lt,ut,ct,dt,ht,pt,ft,mt,gt,vt,yt=s.addEvent=function(e,i,n){for(var o,a=function(e){return(e=e||t.event).target||(e.target=e.srcElement),e.preventDefault||(e.preventDefault=function(){e.returnValue=!1,e.defaultPrevented=!0}),n.call(this,e)},s=0,r=(i=i.split(" ")).length;r>s;s++)o=i[s],e.addEventListener?e.addEventListener(o,n,!1):e.attachEvent("on"+o,a),zt.push({element:e,name:o,listener:n})},bt=s.removeEvent=function(t,e,i){for(var n=0,o=(e=e.split(" ")).length;o>n;n++)t.removeEventListener?t.removeEventListener(e[n],i,!1):t.detachEvent("on"+e[n],i)},wt=function(){for(var t,e=0,i=zt.length;i>e;e++)t=zt[e],bt(t.element,t.name,t.listener);zt=[]},St=function(t,e,i){st.keyframe&&st.keyframe.call(nt,t,e,i)},Ct=function(){var t=nt.getScrollTop();Et=0,rt&&!Ft&&(a.style.height=""),function(){var t,e,i,n,a,s,r,u,c,d,h,p=o.clientHeight,f=xt();for(u=0,c=ot.length;c>u;u++)for(e=(t=ot[u]).element,i=t.anchorTarget,a=0,s=(n=t.keyFrames).length;s>a;a++)d=(r=n[a]).offset,h=f[r.constant]||0,r.frame=d,r.isPercentage&&(d*=p,r.frame=d),"relative"===r.mode&&(et(e),r.frame=nt.relativeToAbsolute(i,r.anchors[0],r.anchors[1])-d,et(e,!0)),r.frame+=h,rt&&!r.isEnd&&r.frame>Et&&(Et=r.frame);for(Et=l.max(Et,kt()),u=0,c=ot.length;c>u;u++){for(a=0,s=(n=(t=ot[u]).keyFrames).length;s>a;a++)h=f[(r=n[a]).constant]||0,r.isEnd&&(r.frame=Et-r.offset+h);t.keyFrames.sort(At)}}(),rt&&!Ft&&(a.style.height=Et+o.clientHeight+"px"),Ft?nt.setScrollTop(l.min(nt.getScrollTop(),Et)):nt.setScrollTop(t,!0),ft=!0},xt=function(){var t,e,i=o.clientHeight,n={};for(t in lt)"function"==typeof(e=lt[t])?e=e.call(nt):/p$/.test(e)&&(e=e.slice(0,-1)/100*i),n[t]=e;return n},kt=function(){var t=0;return at&&(t=l.max(at.offsetHeight,at.scrollHeight)),l.max(t,a.scrollHeight,a.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight)-o.clientHeight},Tt=function(e){var i="className";return t.SVGElement&&e instanceof t.SVGElement&&(e=e[i],i="baseVal"),e[i]},_t=function(e,n,o){var a="className";if(t.SVGElement&&e instanceof t.SVGElement&&(e=e[a],a="baseVal"),o!==i){for(var s=e[a],r=0,l=o.length;l>r;r++)s=Pt(s).replace(Pt(o[r])," ");s=Ot(s);for(var u=0,c=n.length;c>u;u++)-1===Pt(s).indexOf(Pt(n[u]))&&(s+=" "+n[u]);e[a]=Ot(s)}else e[a]=n},Ot=function(t){return t.replace(A,"")},Pt=function(t){return" "+t+" "},Mt=Date.now||function(){return+new Date},At=function(t,e){return t.frame-e.frame},Et=0,Dt=1,It="down",$t=-1,qt=Mt(),Lt=0,jt=0,Nt=!1,Ht=0,Ft=!1,Rt=0,zt=[];"function"==typeof define&&define.amd?define([],(function(){return s})):"undefined"!=typeof module&&module.exports?module.exports=s:t.skrollr=s}(window,document),function(t){"use strict";t.onAir2Obj={},t.onAir2Obj.body=t("body"),t.onAir2Obj.htmlAndbody=t("html,body"),window.goBack=function(t){var e=window.location.hash;return history.back(),window.location.hash!==e||"string"==typeof document.referrer&&""!==document.referrer||window.setTimeout((function(){window.location.href="http://www.mysite.com"}),1e3),t&&(t.preventDefault&&t.preventDefault(),t.preventPropagation&&t.preventPropagation()),!1},t.fn.qtIsMobileBrowser=function(){return!!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||t(window).width()<1180)||(t("body").hasClass("qt-playerbar-open-desktop")&&t("body").addClass("qt-playerbar-open"),!1)},t.fn.embedMixcloudPlayer=function(t){var e=encodeURIComponent(t);return'<iframe data-state="0" class="mixcloudplayer" width="100%" height="80" src="//www.mixcloud.com/widget/iframe/?feed='+(e=e.replace("https","http"))+'&embed_uuid=addfd1ba-1531-4f6e-9977-6ca2bd308dcc&stylecolor=&embed_type=widget_standard" frameborder="0"></iframe><div class="canc"></div>'},t.fn.embedVideo=function(t,e,i){i=e/16*9;var n=t.match(/=[\w-]{11}/)[0].replace(/=/,"");return'<iframe width="'+e+'" height="'+i+'" src="'+window.location.protocol+"//www.youtube.com/embed/"+n+'?html5=1" frameborder="0" class="youtube-player" allowfullscreen></iframe>'},t.fn.embedSpotify=function(t,e,i){return'<iframe src="https://open.spotify.com/embed/track/'+t.split("https://open.spotify.com/track/").join("")+'" width="'+e+'" height="'+i+'" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>'},t.fn.NewYoutubeResize=function(){t("iframe").each((function(e,i){var n=t(i);if(n.attr("src")){var o=n.attr("src");if(o.match("youtube.com")||o.match("vimeo.com")||o.match("vevo.com")||o.match("dailymotion.com")){var a=n.parent().width();n.height();n.css({width:a}),n.height(a/16*9)}}}))},t.fn.imagesLoaded=function(){var e=this.find('img[src!=""]');if(!e.length)return t.Deferred().resolve().promise();var i=[];return e.each((function(){var e=t.Deferred();i.push(e);var n=new Image;n.onload=function(){e.resolve()},n.onerror=function(){e.resolve()},n.src=this.src})),t.when.apply(t,i)},t.fn.transformlinks=function(e){void 0===e&&(e="body"),t("body").hasClass("qt-autoembed-disable")||(jQuery(e).find("a[href*='youtube.com'],a[href*='youtu.be'],a[href*='mixcloud.com'],a[href*='soundcloud.com'], [data-autoembed]").not(".qw-disableembedding").each((function(e){var i=jQuery(this);if(!i.parent().hasClass("qw-disableembedding")){var n=i.attr("href");i.attr("data-autoembed")&&(n=i.attr("data-autoembed"));var o=i.parent().width();0===o&&(o=i.parent().parent().parent().width()),0===o&&(o=i.parent().parent().parent().width()),0===o&&(o=i.parent().parent().parent().parent().width());i.height(),e=i;var a=/(http|https):\/\/(\w{0,3}\.)?youtube\.\w{2,3}\/watch\?v=[\w-]{11}/gi,s=n.match(a);if(null!==s)for(var r=0;r<s.length;r++)p(n=n.replace(s[r],t.fn.embedVideo(s[r],o,o/16*9)));a=/https:\/\/open\.spotify\.\w{2,3}\/track\/[\w-]{22}/gi;var l=n.match(a);if(null!==l)for(r=0;r<l.length;r++)p(n=n.replace(l[r],t.fn.embedSpotify(l[r],o,80)));var u,c="",d=(a=/(http|https)(\:\/\/soundcloud.com\/+([a-zA-Z0-9\/\-_]*))/g,n.match(a));if(null!==d)for(r=0;r<d.length;r++){var h=d[r].replace(":","%3A");h=h.replace("https","http"),jQuery.getJSON("https://soundcloud.com/oembed?maxheight=140&format=js&url="+h+"&iframe=true&callback=?",(function(e){c=e.html,i.closest("li").length>0?i.closest("li").hasClass("qt-collapsible-item")&&(u=t(c),p('<div class="qt-dynamic-iframe" data-src="'+u.attr("src")+'"></div>')):p(c)}))}a=/(http|https)\:\/\/www\.mixcloud\.com\/[\w-]{0,150}\/[\w-]{0,150}\/[\w-]{0,1}/gi;if(null!==(s=n.match(a)))for(r=0;r<s.length;r++)p(n=n.replace(s[r],t.fn.embedMixcloudPlayer(s[r])));t.fn.NewYoutubeResize()}function p(t){return e.replaceWith(t),!0}})),t.onAir2Obj.body.on("click",".qt-collapsible li",(function(e){var i=t(this);if(i.hasClass("active")){var n=i.find(".qt-dynamic-iframe"),o=n.attr("data-src");n.replaceWith('<iframe src="'+o+'" frameborder="0"></iframe>'),t.fn.NewYoutubeResize()}})))},t.fn.qtFitvids=function(){void 0!==t.fn.fitVids&&t("#maincontent").fitVids()},t.fn.qtMobileNav=function(){return t.onAir2Obj.body.find(".side-nav li.menu-item-has-children").each((function(e,i){var n=t(i);n.append("<a class='qt-openthis'><i class='dripicons-chevron-down'></i></a>"),n.on("click",".qt-openthis",(function(t){t.preventDefault(),n.toggleClass("open")}))})),!0},t.fn.slickGallery=function(){0!==t(".qt-slickslider, .qt-slick").length&&t(".qt-slickslider, .qt-slick").not(".slick-initialized").each((function(){var e=t(this),i=e.attr("data-slidestoshow"),n=e.attr("data-slidestoshowmobile"),o=e.attr("data-slidestoshowipad"),a=e.attr("data-appendArrows");void 0!==i&&""!==i||(i=1),void 0!==n&&""!==n||(n=1),void 0!==o&&""!==o||(o=i),a=void 0===a||""===a?e:e.closest(a),e.slick({slidesToScroll:1,pauseOnHover:"true"===e.attr("data-pauseonhover"),infinite:"true"===e.attr("data-infinite"),autoplay:"true"===e.attr("data-autoplay"),autoplaySpeed:4e3,centerPadding:0,slide:".qt-item",dots:"true"===e.attr("data-dots"),variableWidth:"true"===e.attr("data-variablewidth"),arrows:"true"===e.attr("data-arrows"),centerMode:"true"===e.attr("data-centermode"),slidesToShow:i,appendArrows:a,responsive:[{breakpoint:1170,settings:{slidesToShow:o,arrows:1===o,dots:o>1}},{breakpoint:600,settings:{arrows:"true"===e.attr("data-arrowsmobile"),centerMode:"true"===e.attr("data-centermodemobile"),centerPadding:0,variableWidth:"true"===e.attr("data-variablewidthmobile"),variableHeight:!1,dots:"true"===e.attr("data-dotsmobile"),slidesToShow:1,draggable:!1,swipe:!0,touchMove:!0,infinite:"true"===e.attr("data-infinitemobile")}}]}).promise().done((function(){e.removeClass("qt-invisible")}))}))},t.fn.qtQtSwitch=function(){t.onAir2Obj.body.off("click","[data-qtswitch]"),t.onAir2Obj.body.on("click","[data-qtswitch]",(function(e){var i=t(this);e.preventDefault(),t(i.attr("data-target")).toggleClass(i.attr("data-qtswitch"))})),t("[data-expandable]").each((function(e,i){var n=t(i).attr("data-expandable"),o=t(n);""!==n&&o.hasClass("open")&&o.velocity({properties:{height:o.find(".qt-expandable-inner").height()+"px"},options:{duration:50}})})),t.onAir2Obj.body.off("click","[data-expandable]"),t.onAir2Obj.body.on("click","[data-expandable]",(function(e){e.preventDefault();var i=t(this),n=t(i.attr("data-expandable"));n.hasClass("open")?(n.removeClass("open"),n.velocity({properties:{height:0},options:{duration:300}})):(n.addClass("open"),n.velocity({properties:{height:n.find(".qt-expandable-inner").height()+"px"},options:{duration:300}}))}))},t.fn.parallaxV3=function(e){t(window).height();var i=t(window).width(),n=0;/Mozilla/i.test(navigator.userAgent)&&(n=800);var o=t.extend({speed:.12},e);return this.each((function(){var e=t(this),a=t(window).scrollTop(),s=e.offset().top,r=e.outerHeight()+0,l=0;l=Math.round((s-a)*o.speed);var u=o.speed/6;if(e.initialBlur=e.attr("data-blurStart"),e.css("background-position","center "+l+"px"),e.scrolling=e.attr("data-scrolling"),e.hasClass("vc_parallax")?e.css({opacity:1}):e.css({opacity:.85}),e.css("background-attachment","fixed"),t.fn.qtIsMobileBrowser()||i<1279)return e.css("background-attachment","local"),void e.css("background-position","center center");if(e.css("background-attachment","fixed"),!t.onAir2Obj.body.hasClass("mobile")){var c=Date.now(),d=c;a=t(window).scrollTop(),s=e.offset().top-n,r=e.outerHeight()+0,l=Math.round((s-a)*u),e.css({"background-position":"center "+l+"px","min-height":r}),t(document).scroll((function(){(c=Date.now())>d+5&&(console.log("s"),a=t(window).scrollTop(),s=e.offset().top-n,r=e.outerHeight(),l=Math.round((s-a)*u),e.css("background-position","center "+l+"px"),d=c)}))}}))},t.fn.dynamicBackgrounds=function(e){void 0===e&&(e="body"),t(e+" [data-bgimage]").each((function(){var e=t(this),i=e.attr("data-bgimage"),n=e.attr("data-parallax"),o=e.attr("data-bgattachment");void 0===o&&(o="static"),""!==i&&(e.css({"background-image":"url("+i+")","background-size":"cover","background-position":"center center","background-repeat":"no-repeat","-webkit-transform":"translate3d(0, 0, 0)","-webkit-backface-visibility":"hidden","-webkit-perspective":"1000"}),e.hasClass("vc_parallax")?e.css({opacity:1}):e.css({opacity:.85}),"1"===n?e.data("speed")&&e.data("speed"):e.css({opacity:.85}))}))},t.fn.qtPageloadInit=function(){t(".button-collapse").sideNav(),t(".button-playlistswitch").sideNav({menuWidth:280,edge:"right",closeOnClick:!1,draggable:!1}),t.onAir2Obj.body.off("click",".button-playlistswitch-close"),t.onAir2Obj.body.on("click",".button-playlistswitch-close",(function(e){e.preventDefault(),t(".button-playlistswitch").sideNav("hide")})),t.onAir2Obj.body.off("click",".qt-scrolltop"),t.onAir2Obj.body.on("click",".qt-scrolltop",(function(e){e.preventDefault(),t("html, body").animate({scrollTop:0},"slow")}))},t.fn.qtPushpin=function(){void 0!==t.fn.pushpin&&t(window).width()>1280&&t(".qt-pushpin").length>0&&t(".qt-pushpin").css({width:t(".qt-pushpin").width()}).delay("1000").promise().done((function(){var e=t(".qt-pushpin-container").parent(),i=e.offset().top+e.outerHeight(!0)-(t(".qt-sharepage").outerHeight(!0)+40),n=t(".qt-pushpin-container").offset().top,o=0;t("body").hasClass("qt-playertype-header")&&t("body").hasClass("qt-stickymenu")?(o+=140,n-=140,i-=140):(o+=50,n-=50,i-=140),t(".qt-pushpin").pushpin({top:n,offset:o,bottom:i})}))},t.fn.qtCountdown=function(){t.each(t(".qt-countdown"),(function(e,i){var n,o=t(i),a=o.attr("data-end"),s=o.data("now");o.html(""),void 0!==a&&""!==a&&(a=new Date(a),s=new Date(s),n=a.getTime()-s.getTime(),t(i).ClassyCountdown({theme:"white-wide",end:t.now()+n/1e3}),o.find(".ClassyCountdown-days .ClassyCountdown-value span").html(o.attr("data-dayslabel")),o.find(".ClassyCountdown-hours .ClassyCountdown-value span").html(o.attr("data-hourslabel")),o.find(".ClassyCountdown-minutes .ClassyCountdown-value span").html(o.attr("data-minuteslabel")),o.find(".ClassyCountdown-seconds .ClassyCountdown-value span").html(o.attr("data-secondslabel")))}))},t.fn.qtSharelink=function(){t(".qt-sharelink").each((function(){}))},t.fn.qtMasonry=function(e){return void 0===e&&(e="body"),t(e).find(".qt-masonry").each((function(e,i){var n=t(i).attr("id"),o=document.querySelector("#"+n);if(o)new Masonry(o,{itemSelector:".qt-ms-item",columnWidth:".qt-ms-item"})})),t.onAir2Obj.body.imagesLoaded().then((function(){t(e).find(".gallery").each((function(e,i){var n=t(i).attr("id"),o=document.querySelector("#"+n);if(o)new Masonry(o,{itemSelector:".gallery-item",columnWidth:".gallery-item"})}))})),!0},t.fn.destroyAll360Sounds=function(){void 0!==threeSixtyPlayer&&threeSixtyPlayer.sounds.forEach((function(t,e,i){soundManager.stop(t.id),soundManager.destroySound(t.id)}))},t.fn.qt360player=function(e,i){var n=t("#qtplayercontainer"),o="",a=n.data("fullstop"),s=t("body");soundManager.setup({url:n.attr("data-soundmanagerurl"),allowScriptAccess:"always",useHighPerformance:!0,consoleOnly:!0,debugMode:!1,debugFlash:!1,bufferTime:2}),soundManager.flash9Options.useWaveformData=!0,soundManager.flash9Options.useEQData=!0,soundManager.flash9Options.usePeakData=!0,soundManager.preferFlash=!0,soundManager.flashVersion=9;navigator.userAgent.match(/mobile/i)||n.attr("data-playervolume"),(threeSixtyPlayer=new ThreeSixtyPlayer).config={fullStop:a,playNext:!1,autoPlay:!1,allowMultiple:!1,playervolume:!0,loadRingColor:n.attr("data-textcolor"),playRingColor:n.attr("data-accentcolor"),backgroundRingColor:n.attr("data-accentcolordark"),circleDiameter:280,circleRadius:140,animDuration:500,animTransition:Animator.tx.bouncy,showHMSTime:!0,useWaveformData:!0,waveformDataColor:"#fff",waveformDataDownsample:3,waveformDataOutside:!1,waveformDataConstrain:!1,waveformDataLineRatio:.8,useEQData:!0,eqDataColor:"#FFF",eqDataDownsample:2,eqDataOutside:!0,eqDataLineRatio:.73,usePeakData:!0,peakDataColor:"#FFF",peakDataOutside:!0,peakDataLineRatio:1.8,scaleArcWidth:.8,useAmplifier:!0,useFavIcon:!0},soundManager.onready(threeSixtyPlayer.init);var r=threeSixtyPlayer.events.play,l=(threeSixtyPlayer.events.resume,threeSixtyPlayer.events.finish),u=threeSixtyPlayer.events.pause,c=threeSixtyPlayer.events.stop;a&&(u=threeSixtyPlayer.events.stop),t("#qtpausebtn .pause").hide();threeSixtyPlayer.events.play=function(){"play",d.addClass("qt-btn-primary"),t("#qtpausebtn i").addClass("dripicons-media-pause").removeClass("dripicons-media-play"),t("#qtpausebtn .pause").show(),t("#qtpausebtn .play").hide(),r.apply(this)};var d=t(".qtlistenbutton");threeSixtyPlayer.events.resume=function(){d.addClass("qt-btn-primary"),t("#qtpausebtn i").addClass("dripicons-media-pause").removeClass("dripicons-media-play"),t("#qtpausebtn .pause").show(),t("#qtpausebtn .play").hide(),r.apply(this)};threeSixtyPlayer.events.finish=function(){l.apply(this)};threeSixtyPlayer.events.pause=function(){d.removeClass("qt-btn-primary"),t("#qtpausebtn i").removeClass("dripicons-media-pause").addClass("dripicons-media-play"),t("#qtpausebtn .pause").hide(),t("#qtpausebtn .play").show(),u.apply(this),a&&t.fn.destroyAll360Sounds()};threeSixtyPlayer.events.stop=function(){d.removeClass("qt-btn-primary"),t("#qtpausebtn i").removeClass("dripicons-media-pause").addClass("dripicons-media-play"),t("#qtpausebtn .pause").hide(),t("#qtpausebtn .play").show(),t.fn.destroyAll360Sounds(),c.apply(this)},threeSixtyPlayer.config.useWaveformData=!0,threeSixtyPlayer.config.useEQData=!0,threeSixtyPlayer.config.useWaveformData&&(soundManager.flash9Options.useWaveformData=!0),threeSixtyPlayer.config.useEQData&&(soundManager.flash9Options.useEQData=!0),threeSixtyPlayer.config.usePeakData&&(soundManager.flash9Options.usePeakData=!0),(threeSixtyPlayer.config.useWaveformData||threeSixtyPlayer.flash9Options.useEQData||threeSixtyPlayer.flash9Options.usePeakData)&&(soundManager.preferFlash=!1),threeSixtyPlayer.config.fullStop=a,"destroy"===i&&t.fn.destroyAll360Sounds(),void 0===e&&(e="body");var h=t(e).find("#qtradiotitle"),p=t(e).find("#qtradiosubtitle"),f="dripicons-media-play",m="dripicons-media-pause";function g(i,n){if(t.fn.destroyAll360Sounds(),void 0!==i.attr("data-playtrack")){o=i.attr("data-playtrack").split("geo-sample").join("sample"),soundManager.stopAll();var a=t(".qt-ui360");a.empty();var s=Math.floor(1e6*Math.random());a.append('<a id="playerlink" href="'+o+"?ver="+s+'"></a>'),n?(threeSixtyPlayer.config.autoPlay=!0,t(e).find("a.beingplayed").removeClass("beingplayed").find("i").removeClass(m).addClass(f),o,i.addClass("beingplayed").find("i").removeClass(f).addClass(m)):(t(e).find("a.beingplayed").removeClass("beingplayed").find("i").removeClass(m).addClass(f),threeSixtyPlayer.config.autoPlay=!1);var r=i.attr("data-background"),l=(i.attr("data-logo"),i.attr("data-title")),u=i.attr("data-subtitle");h.html(l),p.html(u),t("#playerimage").attr("data-bgimage",r).css({"background-image":"url("+r+")"}),t("#playerimage img").attr("src",r),threeSixtyPlayer.init()}}s.off("click","a[data-playtrack]"),s.on("click","a[data-playtrack]",(function(e){e.preventDefault();var i=t(this);i.hasClass("beingplayed")?g(t(this),!1):g(i,!0),t(".activeRadioChannel").removeClass("activeRadioChannel"),i.addClass("activeRadioChannel");var n=t("#qtShoutcastFeedData"),o=i.attr("data-icymetadata"),a=i.attr("data-playtrack"),s=i.attr("data-host"),r=i.attr("data-port"),l=i.attr("data-channel"),u=i.attr("data-protocol"),c=i.attr("data-icecasturl"),d=i.attr("data-icecastmountpoint"),h=i.attr("data-icecastchannel"),p=i.attr("data-radiodotco"),f=i.attr("data-airtime"),m=i.attr("data-radionomy"),v=i.attr("data-live365"),y=i.attr("data-securesystems"),b=i.attr("data-winmedia"),w=i.attr("data-textfeed"),S=i.attr("data-jazler"),C=i.attr("data-mediacp"),x=i.attr("data-qtradioid");n.attr("data-style");return""!==l&&void 0!==l||(l="1"),n.attr("data-playtrack",a),n.attr("data-icymetadata",o),n.attr("data-host",s),n.attr("data-port",r),n.attr("data-icecasturl",c),n.attr("data-icecastmountpoint",d),n.attr("data-icecastchannel",h),n.attr("data-channel",l),n.attr("data-protocol",u),n.attr("data-radiodotco",p),n.attr("data-airtime",f),n.attr("data-radionomy",m),n.attr("data-live365",v),n.attr("data-securesystems",y),n.attr("data-winmedia",b),n.attr("data-textfeed",w),n.attr("data-jazler",S),n.attr("data-qtradioid",x),n.attr("data-mediacp",C),t("#qtPlayerTrackInfo").hide(),t.fn.qtShoutcastFeedNew(),!1})),s.on("click","#qtpausebtn",(function(e){e.preventDefault(),t(".activeRadioChannel").click()}));var v=t(".qt-autoselect-channel");v.length>0&&g(v,!1)},t.fn.qtRadioAutoplay=function(){jQuery("#qtfirstchannel").click()},t.fn.qtGetThumbnail={cachedThumbsArray:[],displayThumbnail:function(e){t(".onair-artwork img").remove(),e&&(t(".onair-artwork a").append('<img src="'+e+'">'),t(".onair-artwork a").attr("href",e))},init:function(e,i,n){if(!(t(".onair-artwork").length<1)){var o,a=i.split("\x3c!--");a.length>1&&(i=a[0]);var s="https://itunes.apple.com/search?term="+(i=i.split(" - ").join("-").split(" ").join("+"));if("Song title unavailable"==i||"No Titles Available"==i)return e.cachedThumbsArray[i]=!1,void e.displayThumbnail(!1);void 0===e.cachedThumbsArray[i]?t.ajax({type:"GET",cache:!0,url:s,async:!0,dataType:"jsonp",context:this,success:function(t){if("object"!=typeof t&&(t=JSON.parse(t)),t.resultCount>0)return o=t.results[0].artworkUrl100.split("100x100bb.jpg").join("1000x1000bb.jpg"),e.cachedThumbsArray[i]=o,
void e.displayThumbnail(o)}}):e.displayThumbnail(e.cachedThumbsArray[i])}}},t.fn.qtApplyTitle=function(e){if(e){var i,n,o=e.split(" - ");o.length>1?(i=o[0],n=o[1]):(i="",n=e),t("#qtFeedPlayerTrack, .qtFeedPlayerTrack").html(n),t("#qtFeedPlayerAuthor, .qtFeedPlayerAuthor").html(i),t("#qtPlayerTrackInfo").show(),t(".qt-short-nowonairtextual span").html(" "+i+" - "+n),t.fn.qtGetThumbnail.init(t.fn.qtGetThumbnail,i+" - "+n)}},t.fn.qtShoutcastFeedNew=function(){if(0!==t("#qtShoutcastFeedData").length)if(t("body").hasClass("qt-customizer-active"))t.fn.qtApplyTitle("Disabled during customization - Song title");else{var e,i=t("#qantumthemesproxyurl").data("proxyurl"),n=t("#qtShoutcastFeedData"),o=n.attr("data-playtrack"),a=n.attr("data-icymetadata"),s=n.attr("data-host"),r=n.attr("data-port"),l=n.attr("data-protocol"),u=n.attr("data-icecasturl"),c=n.attr("data-icecastmountpoint"),d=n.attr("data-icecastchannel"),h=n.attr("data-radiodotco"),p=n.attr("data-airtime"),f=n.attr("data-radionomy"),m=n.attr("data-mediacp"),g=n.attr("data-live365"),v=n.attr("data-securesystems"),y=n.attr("data-winmedia"),b=n.attr("data-textfeed"),w=n.attr("data-useproxy"),S=n.attr("data-jazler"),C=(t("#qtFeedPlayerTrack"),t("#qtFeedPlayerAuthor"),n.attr("data-channel")),x=(t("#qtPlayerTrackInfo"),n.attr("data-qtradioid"));(new Date).getUTCMilliseconds();if(""!==v||""!==m||""!==y||""!==a||""!==S||""!==b||""!==f||""!==g||""!==p||""!==s&&""!==r&&void 0!==s||""!==u&&void 0!==u||""!==h&&void 0!==h)if("1"===a||1===a){if(!o||""===o)return;if(-1==o.indexOf("/proxy/")||-1==o.indexOf("https")||-1==o.indexOf("?mp=/")&&-1==o.indexOf("/stream"))t.ajax({type:"GET",url:i,jsonpCallback:"parseMusic",async:!0,cache:!1,data:{qtdir:x,qtproxycall:window.btoa(x+"[-]"+o),icymetadata:"1"},success:function(e){t.fn.qtApplyTitle(e)},error:function(t){console.log("Your stream does not provide ICY metadata. Please contact your streaming provider or use another server format."),console.log(t)}});else{s=(s=(s=o.split("?mp=/"))[0]+"?mp=/stats").split("stream").join("stats");var k={};w&&(s=i+"?qtproxycall="+window.btoa(x+"[-]"+s),k={qtdir:x,qtproxycall:window.btoa(x+"[-]"+s)}),t.ajax({type:"GET",url:s,async:!0,cache:!1,dataType:"xml",data:k,beforeSend:function(t){t.withCredentials=!1},success:function(e){t.fn.qtApplyTitle(t(e).find("SONGTITLE").html())},error:function(e){t.fn.qtApplyTitle(!1),console.log(e)}})}}else{if(""!==m)return void t.ajax({type:"GET",cache:!1,url:m,async:!0,jsonp:!0,success:function(e){t.fn.qtApplyTitle(e.nowplaying)},error:function(t){console.log("MediaCP Feed not working - see error:"),console.log(t)}});if(""!==v)t.ajax({type:"GET",cache:!1,url:v,async:!0,dataType:"xml",success:function(e){t.fn.qtApplyTitle(t(e).find("artist").html()+" - "+t(e).find("title").html())},error:function(t){}});else if(""!==g)t.ajax({type:"GET",cache:!1,url:"https://api.live365.com/station/"+g,async:!0,success:function(e){t.fn.qtApplyTitle(e["current-track"].artist+" - "+e["current-track"].title)},error:function(t){}});else if(""!==b){"1"!==w?t.ajax({type:"GET",cache:!1,url:b,async:!0,dataType:"html",success:function(e){t.fn.qtApplyTitle(e)},error:function(t){}}):t.ajax({type:"GET",cache:!1,url:i,async:!0,data:{qtdir:x,qtproxycall:window.btoa(x+"[-]"+b)},dataType:"html",success:function(e){t.fn.qtApplyTitle(e)},error:function(t){}})}else if(""!==f)t.ajax({type:"GET",url:f,async:!0,cache:!1,dataType:"xml",success:function(e){t.fn.qtApplyTitle(t(e).find("artists").html()+" - "+t(e).find("title").html())},error:function(t){}});else if(""!==p&&"undefined"!==p&&void 0!==p&&void 0!==p){t.ajax({type:"GET",cache:!1,url:i,async:!0,data:{qtproxycall:window.btoa(x+"[-]"+p),qtdir:x},contentType:"application/json",success:function(e){_=JSON.parse(e),O=_.tracks.current.name,t.fn.qtApplyTitle(O)},error:function(t){}})}else if(""!==u&&void 0!==u){if("1"!==w)t.ajax({type:"GET",url:u,async:!0,jsonpCallback:"parseMusic",jsonp:!1,success:function(i){if("object"==typeof i){var n=i.icestats.source;if(void 0===n)return;""!==c?(e=n[0][c].title,n[0][c].artist&&(e=n[0][c].artist+" - "+e)):n[0]?(e=n[0].title,n[0].artist&&(e=n[0].artist+" - "+e)):n.title&&(e=n.title,n.artist&&(e=n.artist+" - "+e))}else"array"==typeof i&&(""!==c?void 0!==i[c]?e=i[c].title:void 0!==i.source[c]&&(e=i.source[c].title):i.icestats.source.title?(e=i.icestats.source.title,i.icestats.source.artist&&(e=i.icestats.source.artist+" - "+e)):i.icestats.source[0].title&&(e=i.icestats.source[0].title,i.icestats.source.artist&&(e=i.icestats.source.artist+" - "+e)));t.fn.qtApplyTitle(e)},error:function(t){console.log("Error: your icecast feed is not available. You can try to enable the Proxy in the WP Customizer, under Radio Settings."),console.log(t)}});else t.ajax({type:"GET",cache:!1,url:i,async:!0,data:{qtproxycall:window.btoa(x+"[-]"+u),qtdir:x},contentType:"application/json",success:function(e){"object"!=typeof e&&(e=JSON.parse(e)),_=e,d?(_.icestats.source[d].title||_.icestats.source[d].title||_.icestats.source[d].title)&&(O=_.icestats.source[d].title):_.icestats.source.title?O=_.icestats.source.title:_.icestats.source[1].title?O=_.icestats.source[1].title:_.icestats.source[0].title&&(O=_.icestats.source[0].title),t.fn.qtApplyTitle(O)},error:function(t){console.log(t)}})}else if(""!==s&&""!==r&&void 0!==s){var T="http";"https"==l&&(T="https");var _,O,P=T+"://"+s+":"+r+"/stats?sid="+C+"&json=1";"1"===w?t.ajax({type:"GET",cache:!1,url:i,async:!0,data:{urltocheck:window.btoa(s),qtproxycall:window.btoa(x+"[-]"+P),qtdir:x},contentType:"application/json",success:function(e){_=JSON.parse(e),t.fn.qtApplyTitle(_.songtitle)},error:function(t){console.log(t)}}):t.SHOUTcast({host:s,port:r,protocol:l,interval:1e4,stream:C,stats_path:"stats",stats:function(){this.onAir()&&(e=this.get("songtitle"),t.fn.qtApplyTitle(e))}}).startStats()}else if(""!==h&&void 0!==h){var M="https://public.radio.co/stations/"+h+"/status";t.ajax({type:"GET",cache:!1,url:M,async:!0,contentType:"application/json",success:function(e){O=e.current_track.title,t.fn.qtApplyTitle(O)},error:function(t){}})}}}},t.fn.qtSkrollrInit=function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||(t.skrollrInstance=skrollr.init({smoothScrolling:!0,forceHeight:!1}))},t.fn.qtPopupwindow=function(){void 0!==t.fn.popupwindow&&t.fn.popupwindow(),t.onAir2Obj.body.on("click","#qtmainmenucontainer .qt-popupwindow",(function(e,i){t(".sm2_playing .sm2-360btn").click()}))},t.fn.qtAjaxElementsRefresh=function(){if(!(t("#qtcurrentpermalink").length<=0)){var e=window.location.href,i=new Array(".qt-qtonairhero","#qtupcomingshowscarousel","#qtshowslidercontainer",".qtnowonairwidget",".qt-upcoming-refresh",".qt-nowonair-refresh",".qt-shows-schedule-refresh",".qt-widget-upcoming");t.ajax({url:e,success:function(e){t.ajaxData=e,i.forEach((function(e){t(e).animate({opacity:0},0,(function(){t(e).html(t(t.ajaxData).find(e).html()).animate({opacity:1},0,(function(){t.fn.dynamicBackgrounds(e),t.fn.slickGallery()}))}))})),"function"==typeof jQuery.fn.tabs&&jQuery(".qt-shows-schedule-refresh ul.tabs").tabs()}})}},setInterval((function(){t.fn.qtAjaxElementsRefresh()}),6e4),t.fn.qtOpenPlayerBar=function(){t.onAir2Obj.body.on("click",".qt-openplayerbar",(function(e){return e.preventDefault(),t.onAir2Obj.body.toggleClass("qt-playerbar-open"),!0}))},t.fn.initializeVisualComposerAfterAjax=function(){"function"==typeof vc_toggleBehaviour&&vc_toggleBehaviour(),"function"==typeof vc_tabsBehaviour&&vc_tabsBehaviour(),"function"==typeof vc_accordionBehaviour&&vc_accordionBehaviour(),"function"==typeof vc_teaserGrid&&vc_teaserGrid(),"function"==typeof vc_carouselBehaviour&&vc_carouselBehaviour(),"function"==typeof vc_slidersBehaviour&&vc_slidersBehaviour(),"function"==typeof vc_prettyPhoto&&vc_prettyPhoto(),"function"==typeof vc_googleplus&&vc_googleplus(),"function"==typeof vc_pinterest&&vc_pinterest(),"function"==typeof vc_initVideoBackgrounds&&vc_initVideoBackgrounds(),window.setTimeout((function(){jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each((function(){var t=jQuery(this);t.vcwaypoint((function(){t.addClass("wpb_start_animation animated")}),{offset:"85%"})}))}),250),t("body [data-bgimagevc]").each((function(){var e=t(this),i=e.attr("data-bgimagevc"),n=e.attr("data-bgattachment");void 0===n&&(n="static"),""!==i&&e.css({"background-image":"url("+i+")","background-attachment":"fixed"})}))},t.fn.initializeOnlyAfterAjax=function(){var e=t(".qt-autoselect-channel");e.length>0&&e.click()},t.fn.initializeAfterAjax=function(){return t.fn.slickGallery(),t.fn.qtQtSwitch(),t.fn.dynamicBackgrounds(),t(".qt-pageheader").attr("data-start","@class: qt-pageheader qt-js qt-negative").attr("data-10-start","@class: qt-pageheader qt-js qt-negative qt-pageheader-scrolled").promise().done((function(){t.fn.qtSkrollrInit()})),void 0!==t.skrollrInstance&&t.skrollrInstance.refresh(),t.fn.qtSharelink(),t.fn.qtMasonry(),t.fn.qtCountdown(),t.fn.qtFitvids(),t.fn.qtPushpin(),t.fn.transformlinks("#maincontent"),t.fn.NewYoutubeResize(),void 0!==t.fn.qtChartvoteInit&&t.fn.qtChartvoteInit(),t(".qt-collapsible").collapsible(),"function"==typeof jQuery.fn.tabs&&jQuery("ul.tabs").tabs(),!1===t.fn.qtIsMobileBrowser()&&t(window).width()>1279&&t(".qt-tooltipped").tooltip({delay:50}),"function"==typeof jQuery.vdl_Init&&jQuery.vdl_Init(),"function"==typeof t.qtSwipeboxFunction&&t.qtSwipeboxFunction(),"function"==typeof t.fn.qtDynamicMaps&&t.fn.qtDynamicMaps(),"function"==typeof t.fn.qtPlacesInit&&t.fn.qtPlacesInit(),t("#qwShowDropdown").on("change",(function(){t(this).closest(".qt-show-schedule").find("#"+this.value).click()})),t.fn.qtPopupwindow(),t("body").hasClass("qt-html5audio-disable")||"function"==typeof jQuery.fn.mediaelementplayer&&(jQuery("video").mediaelementplayer(),jQuery("audio").mediaelementplayer()),!0},jQuery(document).ready((function(){t.fn.qtPageloadInit(),t.fn.qtMobileNav(),t.fn.qt360player(),t.fn.qtShoutcastFeedNew(),t.fn.qtOpenPlayerBar(),setInterval((function(){t.fn.qtShoutcastFeedNew()}),15e3),t.fn.initializeAfterAjax(),t.fn.qtRadioAutoplay()}))}(jQuery);