1function mr_parallax(){"use strict";function t(){var t,e=0;return n()?(e=jQuery(".viu").find("nav:first").outerHeight(!0),("absolute"===(t=jQuery(".viu").find("nav:first").css("position"))||"fixed"===t)&&(e=0)):e=jQuery(document).find("nav:first").outerHeight(!0),Math.floor(e)}function e(){return/Android/i.test(navigator.userAgent||navigator.vendor||window.opera)?screen.height*window.devicePixelRatio:/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)?0===window.orientation&&screen.height>screen.width?screen.height:screen.width:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}function i(){!1===h&&(h=!0,o(f.mr_parallaxBackground))}function n(){return void 0!==window.mr_variant}var r,o=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,a=function(t){for(var e=0;e<t.length;e++)if(void 0!==document.body.style[t[e]])return t[e];return null}(["transform","msTransform","webkitTransform","mozTransform","oTransform"]),s="translate3d(0,",l="px,0)",u=e(),c=0,d=window,h=(n(),!1),f=this;jQuery(document).ready(function(){f.documentReady()}),jQuery(window).on("load",function(){f.windowLoad()}),this.documentReady=function(t){return u=e(),jQuery("body").hasClass("parallax-2d")&&(s="translate(0,",l="px)"),o&&(f.profileParallaxElements(),f.setupParallax()),function(t){return t&&"[object Function]"==={}.toString.call(t)}(t)?void t():void 0},this.windowLoad=function(){u=e(),c=t(),window.mr_parallax.profileParallaxElements()},this.setupParallax=function(){n()&&(d=jQuery(".viu").get(0)),void 0!==d&&((void 0===window.mr||n())&&(d.onscroll=i),window.addEventListener("resize",function(){u=e(),c=t(),f.profileParallaxElements(),f.mr_parallaxBackground()},!1),window.addEventListener("orientationchange",function(){},!1),f.mr_parallaxBackground())},this.profileParallaxElements=function(){var i;r=[],u=e(),c=t();var o=".parallax > .background-image-holder, .parallax ul.slides > li > .background-image-holder, .parallax ul.slides .owl-item > li > .background-image-holder";n()&&(o=".viu .parallax > .background-image-holder, .viu .parallax ul.slides > li > .background-image-holder, .parallax ul.slides .owl-item > li > .background-image-holder"),i=jQuery(o),/Android|iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&(i=i.not(".parallax-disable-mobile .background-image-holder, body.parallax-disable-mobile *")),jQuery(i).each(function(t){var e=jQuery(this).closest(".parallax"),i=n()?e.position().top:e.offset().top,o=screen.height,a=screen.width;r.push({section:e.get(0),outerHeight:e.outerHeight(),elemTop:i,elemBottom:i+e.outerHeight(),isFirstSection:!!e.is(":nth-of-type(1)"),imageHolder:jQuery(this).get(0)}),/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&screen.width<1024&&(0===window.orientation&&o>a?(jQuery(this).css("top","-"+o/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*o:1.2*o})):(jQuery(this).css("top","-"+a/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*a:1.2*a}))),/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&screen.width>=1024&&(0===window.orientation&&o>a?(jQuery(this).css("top","-"+o/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*o:1.2*o})):(jQuery(this).css("top","-"+a/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*a:1.2*a}))),/Android/i.test(navigator.userAgent||navigator.vendor||window.opera)&&(jQuery(this).css({top:"-"+o*window.devicePixelRatio/(e.is(":nth-of-type(1)")?8:2)+"px"}),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*o:1.2*o})),n()?n()&&(e.is(":nth-of-type(1)")?f.mr_setTranslate3DTransform(jQuery(this).get(0),0===f.mr_getScrollPosition()?0:f.mr_getScrollPosition()/2):f.mr_setTranslate3DTransform(jQuery(this).get(0),(f.mr_getScrollPosition()-i-c)/2)):e.is(":nth-of-type(1)")?f.mr_setTranslate3DTransform(jQuery(this).get(0),0===f.mr_getScrollPosition()?0:f.mr_getScrollPosition()/2):f.mr_setTranslate3DTransform(jQuery(this).get(0),(f.mr_getScrollPosition()+u-i)/2)})}
1,this.mr_parallaxBackground=function(){for(var t,e=r.length,i="undefined"==typeof mr||n()?f.mr_getScrollPosition():mr.scroll.y;e--;)t=r[e],n()?i+u-c>t.elemTop&&i-c<t.elemBottom&&(t.isFirstSection?t.imageHolder.style[a]=s+i/2+l:t.imageHolder.style[a]=s+(i-t.elemTop-c)/2+l):i+u>=t.elemTop&&i<=t.elemBottom&&(t.isFirstSection?t.imageHolder.style[a]=s+i/2+l:t.imageHolder.style[a]=s+(i+u-t.elemTop)/2+l);h=!1},this.mr_setTranslate3DTransform=function(t,e){t.style[a]=s+e+l},this.mr_getScrollPosition=function(){return d!==window?d.scrollTop:0===document.documentElement.scrollTop?document.body.scrollTop:document.documentElement.scrollTop}}function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function setUnit(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+jQuery/)?""+t+e:t}function setFilter(t,e,i){var n=uncamel(e),r=jQuery.browser.mozilla?"":jQuery.CSS.sfx;t[r+"filter"]=t[r+"filter"]||"",i=setUnit(i>jQuery.CSS.filters[e].max?jQuery.CSS.filters[e].max:i,jQuery.CSS.filters[e].unit),t[r+"filter"]+=n+"("+i+") ",delete t[e]}function isTouchSupported(){var t=nAgt.msMaxTouchPoints,e="ontouchstart"in document.createElement("div");return!(!t&&!e)}!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){"use strict";function e(t){var e=t.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(e)}function i(t){return function(i){var r=i.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(r)for(var o=0,a=r.length;o<a;++o){var l=r[o].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),u=e(l[0]),c=l[1]||"",d=l[3]||"",h=null;l=l[2],s.hasOwnProperty(l)&&(h=s[l],h=Number(t[h])),null!==h&&("!"===c&&(h=n(d,h)),""===c&&h<10&&(h="0"+h.toString()),i=i.replace(u,h.toString()))}return i.replace(/%%/,"%")}}function n(t,e){var i="s",n="";return t&&(1===(t=t.replace(/(:|;|\s)/gi,"").split(/\,/)).length?i=t[0]:(n=t[0],i=t[1])),Math.abs(e)>1?i:n}var r=[],o=[],a={precision:100,elapse:!1,defer:!1};o.push(/^[0-9]*$/.source),o.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),o.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),o=new RegExp(o.join("|"));var s={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},l=function(e,i,n){this.el=e,this.$el=t(e),this.interval=null,this.offset={},this.options=t.extend({},a),this.instanceNumber=r.length,r.push(this),this.$el.data("countdown-instance",this.instanceNumber),n&&("function"==typeof n?(this.$el.on("update.countdown",n),this.$el.on("stoped.countdown",n),this.$el.on("finish.countdown",n)):this.options=t.extend({},a,n)),this.setFinalDate(i),!1===this.options.defer&&this.start()};t.extend(l.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),r[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=function(t){if(t instanceof Date)return t;if(String(t).match(o))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}(t)},update:function(){if(0!==this.$el.closest("html").length){var e,i=void 0!==t._data(this.el,"events"),n=new Date;e=this.finalDate.getTime()-n.getTime(),e=Math.ceil(e/1e3),e=!this.options.elapse&&e<0?0:Math.abs(e),this.totalSecsLeft!==e&&i&&(this.totalSecsLeft=e,this.elapsed=n>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-n.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))}else this.remove()},dispatchEvent:function(e){var n=t.Event(e+".countdown");n.finalDate=this.finalDate,n.elapsed=this.elapsed,n.offset=t.extend({},this.offset),n.strftime=i(this.offset),this.$el.trigger(n)}}),t.fn.countdown=function(){var e=Array.prototype.slice.call(arguments,0);
1return this.each(function(){var i=t(this).data("countdown-instance");if(void 0!==i){var n=r[i],o=e[0];l.prototype.hasOwnProperty(o)?n[o].apply(n,e.slice(1)):null===String(o).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(n.setFinalDate.call(n,o),n.start()):t.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,o))}else new l(this,e[0],e[1])})}}),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):this.Picker=t(jQuery)}(function(t){function e(r,a,c,d){function h(){return e._.node("div",e._.node("div",e._.node("div",e._.node("div",P.component.nodes(g.open),b.box),b.wrap),b.frame),b.holder,'tabindex="-1"')}function f(){P.$holder.on({keydown:m,"focus.toOpen":p,blur:function(){w.removeClass(b.target)},focusin:function(t){P.$root.removeClass(b.focused),t.stopPropagation()},"mousedown click":function(e){var i=e.target;i!=P.$holder[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(i).is("input, select, textarea, button, option")||(e.preventDefault(),P.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),i=e.data(),n=e.hasClass(b.navDisabled)||e.hasClass(b.disabled),r=o();r=r&&(r.type||r.href),(n||r&&!t.contains(P.$root[0],r))&&P.$holder[0].focus(),!n&&i.nav?P.set("highlight",P.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?(P.set("select",i.pick),v.closeOnSelect&&P.close(!0)):i.clear?(P.clear(),v.closeOnClear&&P.close(!0)):i.close&&P.close(!0)})}function p(t){t.stopPropagation(),w.addClass(b.target),P.$root.addClass(b.focused),P.open()}function m(t){var e=t.keyCode,i=/^(8|46)$/.test(e);return 27==e?(P.close(!0),!1):void((32==e||i||!g.open&&P.component.key[e])&&(t.preventDefault(),t.stopPropagation(),i?P.clear().close():P.open()))}if(!r)return e;var y=!1,g={id:r.id||"P"+Math.abs(~~(Math.random()*new Date))},v=c?t.extend(!0,{},c.defaults,d):d||{},b=t.extend({},e.klasses(),v.klass),w=t(r),T=function(){return this.start()},P=T.prototype={constructor:T,$node:w,start:function(){return g&&g.start?P:(g.methods={},g.start=!0,g.open=!1,g.type=r.type,r.autofocus=r==o(),r.readOnly=!v.editable,r.id=r.id||g.id,"text"!=r.type&&(r.type="text"),P.component=new c(P,v),P.$root=t('<div class="'+b.picker+'" id="'+r.id+'_root" />'),n(P.$root[0],"hidden",!0),P.$holder=t(h()).appendTo(P.$root),f(),v.formatSubmit&&(!0===v.hiddenName?(e=r.name,r.name=""):e=(e=["string"==typeof v.hiddenPrefix?v.hiddenPrefix:"","string"==typeof v.hiddenSuffix?v.hiddenSuffix:"_submit"])[0]+r.name+e[1],P._hidden=t('<input type=hidden name="'+e+'"'+(w.data("value")||r.value?' value="'+P.get("select",v.formatSubmit)+'"':"")+">")[0],w.on("change."+g.id,function(){P._hidden.value=r.value?P.get("select",v.formatSubmit):""})),w.data(a,P).addClass(b.input).val(w.data("value")?P.get("select",v.format):r.value),v.editable||w.on("focus."+g.id+" click."+g.id,function(t){t.preventDefault(),P.open()}).on("keydown."+g.id,m),n(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"}),v.containerHidden?t(v.containerHidden).append(P._hidden):w.after(P._hidden),v.container?t(v.container).append(P.$root):w.after(P.$root),P.on({start:P.component.onStart,render:P.component.onRender,stop:P.component.onStop,open:P.component.onOpen,close:P.component.onClose,set:P.component.onSet}).on({start:v.onStart,render:v.onRender,stop:v.onStop,open:v.onOpen,close:v.onClose,set:v.onSet}),y=function(t){var e,i="position";return t.currentStyle?e=t.currentStyle[i]:window.getComputedStyle&&(e=getComputedStyle(t)[i]),"fixed"==e}(P.$holder[0]),r.autofocus&&P.open(),P.trigger("start").trigger("render"));var e},render:function(e){return e?(P.$holder=t(h()),f(),P.$root.html(P.$holder)):P.$root.find("."+b.box).html(P.component.nodes(g.open)),P.trigger("render")},stop:function(){return g.start?(P.close(),P._hidden&&P._hidden.parentNode.removeChild(P._hidden),P.$root.remove(),w.removeClass(b.input).removeData(a),setTimeout(function(){w.off("."+g.id)},0),r.type=g.type,r.readOnly=!1,P.trigger("stop"),g.methods={},g.start=!1,P):P},open:function(o){return g.open?P:(w.addClass(b.active),n(r,"expanded",!0),setTimeout(function(){P.$root.addClass(b.opened),n(P.$root[0],"hidden",!1)},0),!1!==o&&(g.open=!0,y&&l.css("overflow","hidden").css("padding-right","+="+i()),y&&u?P.$holder.find("."+b.frame).one("transitionend",function(){P.$holder[0].focus()}):P.$holder[0].focus(),s.on("click."+g.id+" focusin."+g.id,function(t){var e=t.target;e!=r&&e!=document&&3!=t.which&&P.close(e===P.$holder[0])}).on("keydown."+g.id,function(i){var n=i.keyCode,r=P.component.key[n],o=i.target;27==n?P.close(!0):o!=P.$holder[0]||!r&&13!=n?t.contains(P.$root[0],o)&&13==n&&(i.preventDefault(),o.click()):(i.preventDefault(),r?e._.trigger(P.component.key.go,P,[e._.trigger(r)]):P.$root.find("."+b.highlighted).hasClass(b.disabled)||(P.set("select",P.component.item.highlight),v.closeOnSelect&&P.close(!0)))})),P.trigger("open"))},close:function(t){return t&&(v.editable?r.focus():(P.$holder.off("focus.toOpen").focus(),setTimeout(function(){P.$holder.on("focus.toOpen",p)},0))),w.removeClass(b.active),n(r,"expanded",!1),setTimeout(function(){P.$root.removeClass(b.opened+" "+b.focused),n(P.$root[0],"hidden",!0)},0),g.open?(g.open=!1,y&&l.css("overflow","").css("padding-right","-="+i()),s.off("."+g.id),P.trigger("close")):P},clear:function(t){return P.set("clear",null,t)},set:function(e,i,n){var r,o,a=t.isPlainObject(e),s=a?e:{};if(n=a&&t.isPlainObject(i)?i:n||{},e){for(r in a||(s[e]=i),s)o=s[r],r in P.component.item&&(void 0===o&&(o=null),P.component.set(r,o,n)),("select"==r||"clear"==r)&&w.val("clear"==r?"":P.get(r,v.format)).trigger("change");P.render()}
1return n.muted?P:P.trigger("set",s)},get:function(t,i){if(null!=g[t=t||"value"])return g[t];if("valueSubmit"==t){if(P._hidden)return P._hidden.value;t="value"}if("value"==t)return r.value;if(t in P.component.item){if("string"==typeof i){var n=P.component.get(t);return n?e._.trigger(P.component.formats.toString,P.component,[i,n]):""}return P.component.get(t)}},on:function(e,i,n){var r,o,a=t.isPlainObject(e),s=a?e:{};if(e)for(r in a||(s[e]=i),s)o=s[r],n&&(r="_"+r),g.methods[r]=g.methods[r]||[],g.methods[r].push(o);return P},off:function(){var t,e,i=arguments;for(t=0,namesCount=i.length;t<namesCount;t+=1)(e=i[t])in g.methods&&delete g.methods[e];return P},trigger:function(t,i){var n=function(t){var n=g.methods[t];n&&n.map(function(t){e._.trigger(t,P,[i])})};return n("_"+t),n(t),P}};return new T}function i(){if(l.height()<=a.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 o in i)r(e,o,i[o]);else r(e,i,n)}function r(t,e,i){t.setAttribute(("role"==e?"":"aria-")+e,i)}function o(){try{return document.activeElement}catch(t){}}var a=t(window),s=t(document),l=t(document.documentElement),u=null!=document.documentElement.style.transition;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="",r=e._.trigger(t.min,t);r<=e._.trigger(t.max,t,[r]);r+=t.i)i=e._.trigger(t.item,t,[r]),n+=e._.node(t.node,i[0],i[1],i[2]);return n},node:function(e,i,n,r){return i?"<"+e+(n=n?' class="'+n+'"':"")+(r=r?" "+r:"")+">"+(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 r=("role"==n?"":"aria-")+n;i+=null==e[n]?"":r+'="'+e[n]+'"'}return i}},e.extend=function(i,n){t.fn[i]=function(r,o){var a=this.data(i);return"picker"==r?a:a&&"string"==typeof r?e._.trigger(a[r],a,[o]):this.each(function(){t(this).data(i)||new e(this,i,n,r)})},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],r=n.value,o=t.$node.data("value"),a=o||r,s=o?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"),a?i.set("select",a,{format:s,defaultValue:!0}):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._;
vendor: 9,112 bytes, line 1
1i.prototype.set=function(t,e,i){var n=this,r=n.item;return null===e?("clear"==t&&(t="select"),r[t]=e,n):(r["enable"==t?"disable":"flip"==t?"enable":t]=n.queue[t].split(" ").map(function(r){return e=n[r](t,e,i)}).pop(),"select"==t?n.set("highlight",r.select,i):"highlight"==t?n.set("view",r.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&n.disabled(r.select)&&n.set("select",r.select,i),r.highlight&&n.disabled(r.highlight)&&n.set("highlight",r.highlight,i)),n)},i.prototype.get=function(t){return this.item[t]},i.prototype.create=function(t,i,r){var o,a=this;return(i=void 0===i?t:i)==-1/0||i==1/0?o=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:a.create().obj):i=n.isInteger(i)||n.isDate(i)?a.normalize(new Date(i),r):a.now(t,i,r),{year:o||i.getFullYear(),month:o||i.getMonth(),date:o||i.getDate(),day:o||i.getDay(),obj:o||i,pick:o||i.getTime()}},i.prototype.createRange=function(t,i){var r=this,o=function(t){return!0===t||e.isArray(t)||n.isDate(t)?r.create(t):t};return n.isInteger(t)||(t=o(t)),n.isInteger(i)||(i=o(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:o(t),to:o(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 r,o,a,s,l=e.isArray(i),u=e.isPlainObject(i),c=this.item.view;if(l||u){for(u?(o=i.year,a=i.month,s=i.date):(o=+i[0],a=+i[1],s=+i[2]),n&&n.nav&&c&&c.month!==a&&(o=c.year,a=c.month),o=(r=new Date(o,a+(n&&n.nav?n.nav:0),1)).getFullYear(),a=r.getMonth();new Date(o,a,s).getMonth()!==a;)s-=1;i=[o,a,s]}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,r){var o,a,s,l,u=this,c=i,d=r&&r.interval?r.interval:1,h=-1===u.item.enable,f=u.item.min,p=u.item.max,m=h&&u.item.disable.filter(function(t){if(e.isArray(t)){var r=u.create(t).pick;r<i.pick?o=!0:r>i.pick&&(a=!0)}return n.isInteger(t)}).length;if((!r||!r.nav&&!r.defaultValue)&&(!h&&u.disabled(i)||h&&u.disabled(i)&&(m||o||a)||!h&&(i.pick<=f.pick||i.pick>=p.pick)))for(h&&!m&&(!a&&d>0||!o&&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<=f.pick?(s=!0,d=1,i=u.create([f.year,f.month,f.date+(i.pick===f.pick?0:-1)])):i.pick>=p.pick&&(l=!0,d=-1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},i.prototype.disabled=function(t){var i=this,r=i.item.disable.filter(function(r){return n.isInteger(r)?t.day===(i.settings.firstDay?r:r-1)%7:e.isArray(r)||n.isDate(r)?t.pick===i.create(r).pick:e.isPlainObject(r)?i.withinRange(r,t):void 0});return r=r.length&&!r.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!r:r||t.pick<i.item.min.pick||t.pick>i.item.max.pick},i.prototype.parse=function(t,e,i){var r=this,o={};return e&&"string"==typeof e?(i&&i.format||((i=i||{}).format=r.settings.format),r.formats.toArray(i.format).map(function(t){var i=r.formats[t],a=i?n.trigger(i,r,[e,o]):t.replace(/^!/,"").length;i&&(o[t]=e.substr(0,a)),e=e.substr(a)}),[o.yyyy||o.yy,+(o.mm||o.m)-1,o.dd||o.d]):e},i.prototype.formats=function(){function t(t,e,i){var n=t.match(/[^\x00-\x7F]+|\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 r=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))?r.create(t).pick===r.create(i).pick:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&(r.isDateExact(t.from,i.from)&&r.isDateExact(t.to,i.to))},i.prototype.isDateOverlap=function(t,i){var r=this,o=r.settings.firstDay?1:0;return n.isInteger(t)&&(n.isDate(i)||e.isArray(i))?(t=t%7+o)===r.create(i).day+1:n.isInteger(i)&&(n.isDate(t)||e.isArray(t))?(i=i%7+o)===r.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&r.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 r=this,o=r.item.disable.slice(0);return"flip"==i?r.flipEnable():!1===i?(r.flipEnable(1),o=[]):!0===i?(r.flipEnable(-1),o=[]):i.map(function(t){for(var i,a=0;a<o.length;a+=1)if(r.isDateExact(t,o[a])){i=!0;break}i||(n.isInteger(t)||n.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&o.push(t)}),o},i.prototype.activate=function(t,i){var r=this,o=r.item.disable,a=o.length;return"flip"==i?r.flipEnable():!0===i?(r.flipEnable(1),o=[]):!1===i?(r.flipEnable(-1),o=[]):i.map(function(t){var i,s,l,u;for(l=0;a>l;l+=1){if(s=o[l],r.isDateExact(s,t)){i=o[l]=null,u=!0;break}if(r.isDateOverlap(s,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;a>l;l+=1)if(r.isDateExact(o[l],t)){o[l]=null;break}if(u)for(l=0;a>l;l+=1)if(r.isDateOverlap(o[l],t)){o[l]=null;break}i&&o.push(i)}),o.filter(function(t){return null!=t})},i.prototype.nodes=function(t){var e=this,i=e.settings,r=e.item,o=r.now,a=r.select,s=r.highlight,l=r.view,u=r.disable,c=r.min,d=r.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.weekdaysShort).slice(0),i.weekdaysFull.slice(0)),f=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)+'"')},p=function(){var r=i.showMonthsShort?i.monthsShort:i.monthsFull;return i.selectMonths?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(t){return[r[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,(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):n.node("div",r[l.month],i.klass.month)},m=function(){var r=l.year,o=!0===i.selectYears?5:~~(i.selectYears/2);if(o){var a=c.year,s=d.year,u=r-o,h=r+o;if(a>u&&(h+=a-u,u=a),h>s){var f=u-a,p=h-s;u-=f>p?p:f,h=s}return n.node("select",n.group({min:u,max:h,i:1,node:"option",item:function(t){return[t,0,"value="+t+(r==t?" selected":"")]}}),i.klass.selectYear,(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return n.node("div",r,i.klass.year)};return n.node("div",(i.selectYears?m()+p():p()+m())+f()+f(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 r=i.firstDay&&0===e.create([l.year,l.month,1]).day?-7:0;return[n.group({min:7*t-l.day+r+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 r=a&&a.pick==t.pick,h=s&&s.pick==t.pick,f=u&&e.disabled(t)||t.pick<c.pick||t.pick>d.pick,p=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),o.pick==t.pick&&e.push(i.klass.now),r&&e.push(i.klass.selected),h&&e.push(i.klass.highlighted),f&&e.push(i.klass.disabled),e.join(" ")}([i.klass.day]),"data-pick="+t.pick+" "+n.ariaAttr({role:"gridcell",label:p,selected:!(!r||e.$node.val()!==p)||null,activedescendant:!!h||null,disabled:!!f||null})),"",n.ariaAttr({role:"presentation"})]}})]}}
1)),i.klass.table,'id="'+e.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:e.$node[0].id,readonly:!0}))+n.node("div",n.node("button",i.today,i.klass.buttonToday,"type=button data-pick="+o.pick+(t&&!e.disabled(o)?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.clear,i.klass.buttonClear,"type=button data-clear=1"+(t?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.close,i.klass.buttonClose,"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"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:t+"table",header:t+"header",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,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,function(t){var e=function(t,e){var i,n=document.createElement("canvas");t.appendChild(n),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var r=n.getContext("2d");n.width=n.height=e.size;var o=1;window.devicePixelRatio>1&&(o=window.devicePixelRatio,n.style.width=n.style.height=[e.size,"px"].join(""),n.width=n.height=e.size*o,r.scale(o,o)),r.translate(e.size/2,e.size/2),r.rotate((e.rotate/180-.5)*Math.PI);var a=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(a-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(t,e,i){var n=0>=(i=Math.min(Math.max(-1,i||0),1));r.beginPath(),r.arc(0,0,a,0,2*Math.PI*i,n),r.strokeStyle=t,r.lineWidth=e,r.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},u=function(){e.scaleColor&&function(){var t,i;r.lineWidth=1,r.fillStyle=e.scaleColor,r.save();for(var n=24;n>0;--n)n%6==0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),r.fillRect(-e.size/2+t,0,i,1),r.rotate(Math.PI/12);r.restore()}(),e.trackColor&&s(e.trackColor,e.trackWidth||e.lineWidth,1)};this.getCanvas=function(){return n},this.getCtx=function(){return r},this.clear=function(){r.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){var n;e.scaleColor||e.trackColor?r.getImageData&&r.putImageData?i?r.putImageData(i,0,0):(u(),i=r.getImageData(0,0,e.size*o,e.size*o)):(this.clear(),u()):this.clear(),r.lineCap=e.lineCap,n="function"==typeof e.barColor?e.barColor(t):e.barColor,s(n,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var n=Date.now();e.onStart(t,i);var r=function(){var o=Math.min(Date.now()-n,e.animate.duration),a=e.easing(this,o,t,i-t,e.animate.duration);this.draw(a),e.onStep(t,i,a),o>=e.animate.duration?e.onStop(t,i):l(r)}.bind(this);l(r)}.bind(this)},i=function(t,i){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,n,r){return 1>(e/=r/2)?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},onStart:function(t,e){},onStep:function(t,e,i){},onStop:function(t,e){}};if(void 0!==e)n.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var r={},o=0,a=function(){for(var e in this.el=t,this.options=r,n)n.hasOwnProperty(e)&&(r[e]=i&&void 0!==i[e]?i[e]:n[e],"function"==typeof r[e]&&(r[e]=r[e].bind(this)));"string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?r.easing=jQuery.easing[r.easing]:r.easing=n.easing,"number"==typeof r.animate&&(r.animate={duration:r.animate,enabled:!0}),"boolean"!=typeof r.animate||r.animate||(r.animate={duration:1e3,enabled:r.animate}),this.renderer=new r.renderer(t,r),this.renderer.draw(o),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),r.animate.enabled?this.renderer.animate(o,t):this.renderer.draw(t),o=t,this}.bind(this),this.disableAnimation=function(){return r.animate.enabled=!1,this},this.enableAnimation=function(){return r.animate.enabled=!0,this},a()};t.fn.easyPieChart=function(e){return this.each(function(){var n;t.data(this,"easyPieChart")||(n=t.extend({},e,t(this).data()),t.data(this,"easyPieChart",new i(this,n)))})}}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){s.isPlainObject(t)&&(this.options=s.extend(!0,this.options,t))}),s.fn[i]=function(t){return"string"==typeof t?function(t,e,n){var r,o="$()."+i+'("'+e+'")';return t.each(function(t,l){var u=s.data(l,i);if(u){var c=u[e];
1if(c&&"_"!=e.charAt(0)){var d=c.apply(u,n);r=void 0===r?d:r}else a(o+" is not a valid method")}else a(i+" not initialized. Cannot call methods, i.e. "+o)}),void 0!==r?r:t}(this,t,r.call(arguments,1)):(function(t,e){t.each(function(t,n){var r=s.data(n,i);r?(r.option(e),r._init()):(r=new o(n,e),s.data(n,i,r))})}(this,t),this)},n(s))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var r=Array.prototype.slice,o=t.console,a=void 0===o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,r=i[n];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];r;){var a=o&&o[r];a&&(this.off(t,r),delete o[r]),r.apply(this,e),r=i[n+=a?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(t){var e=getComputedStyle(t);return e||o("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function i(){if(!l){l=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var o=document.body||document.documentElement;o.appendChild(i);var a=e(i);n.isBoxSizeOuter=r=200==t(a.width),o.removeChild(i)}}
1function n(n){if(i(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){var o=e(n);if("none"==o.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<s;e++)t[a[e]]=0;return t}();var l={};l.width=n.offsetWidth,l.height=n.offsetHeight;for(var u=l.isBorderBox="border-box"==o.boxSizing,c=0;c<s;c++){var d=a[c],h=o[d],f=parseFloat(h);l[d]=isNaN(f)?0:f}var p=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,y=l.marginLeft+l.marginRight,g=l.marginTop+l.marginBottom,v=l.borderLeftWidth+l.borderRightWidth,b=l.borderTopWidth+l.borderBottomWidth,w=u&&r,T=t(o.width);!1!==T&&(l.width=T+(w?0:p+v));var P=t(o.height);return!1!==P&&(l.height=P+(w?0:m+b)),l.innerWidth=l.width-(p+v),l.innerHeight=l.height-(m+b),l.outerWidth=l.width+y,l.outerHeight=l.height+g,l}}var r,o="undefined"==typeof console?function(){}:function(t){console.error(t)},a=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=a.length,l=!1;return n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=i.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void r.push(t);e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)r.push(i[o])}}),r},debounceMethod:function(t,e,i){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout(function(){n.apply(o,e),delete o[r]},i||100)}},docReady:function(t){var e=document.readyState;"complete"==e||"interactive"==e?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},n=t.console;return i.htmlInit=function(e,r){i.docReady(function(){var o=i.toDashed(r),a="data-"+o,s=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+o),u=i.makeArray(s).concat(i.makeArray(l)),c=a+"-options",d=t.jQuery;u.forEach(function(t){var i,o=t.getAttribute(a)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(e){return void(n&&n.error("Error parsing "+a+" on "+t.className+": "+e))}var s=new e(t,i);d&&d.data(t,r,s)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.x=0,this.shift=0},n.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.changeSelectedClass("add")},e.unselect=function(){this.changeSelectedClass("remove")}
1,e.changeSelectedClass=function(t){this.cells.forEach(function(e){e.element.classList[t]("is-selected")})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.fizzyUIUtils))}(window,function(t,e){var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame,n=0;i||(i=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-n)),r=setTimeout(t,i);return n=e+i,r});var r={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;i(function(){e.animate()})}}},o="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform";return r.positionSlider=function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft&&o?-t:t;var i=this.getPositionValue(t);this.slider.style[o]=this.isAnimating?"translate3d("+i+",0,0)":"translateX("+i+")";var n=this.slides[0];if(n){var r=-this.x-n.target,a=r/this.slidesWidth;this.dispatchEvent("scroll",null,[a,r])}},r.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.positionSlider())},r.getPositionValue=function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},r.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle"))},r.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},r._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var r=t[n],o=e>0?i:0;r.wrapShift(o),e-=r.size.outerWidth}},r._unshiftCells=function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},r.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},r.applyForce=function(t){this.velocity+=t},r.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},r.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},r.applyDragForce=function(){if(this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},r.applySelectedAttraction=function(){if(!this.isPointerDown&&!this.isFreeScrolling&&this.cells.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}},r}),function(t,e){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(i,n,r,o,a,s){return e(t,i,n,r,o,a,s)});else if("object"==typeof module&&module.exports)module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
vendor: 4,873 bytes, line 1
1de"),require("./animate"));else{var i=t.Flickity;t.Flickity=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,function(t,e,i,n,r,o,a){function s(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}function l(t,e){var i=n.getQueryElement(t);return i?(this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),void this._create()):void(d&&d.error("Bad element for Flickity: "+(i||t)))}var u=t.jQuery,c=t.getComputedStyle,d=t.console,h=0,f={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;n.extend(p,e.prototype),p._create=function(){var e=this.guid=++h;this.element.flickityGUID=e,f[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),l.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){n.extend(this.options,t)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),s(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var t,e=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==e&&this.cells[e]?e:0,this.select(t,!1,!0),this.isInitActivated=!0}},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new r(t,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,r=t;r<n;r++){var o=this.cells[r];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach(function(n,r){if(t.cells.length){var a=t.outerWidth-t.firstMargin+(n.size.outerWidth-n.size[e]);i.call(this,r,a)?t.addCell(n):(t.updateTarget(),t=new o(this),this.slides.push(t),t.addCell(n))}else t.addCell(n)},this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=m[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}}
1,p._getGapCells=function(t,e,i){for(var n=[];t>0;){var r=this.cells[e];if(!r)break;n.push(r),e+=i,t-=r.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],r=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],a=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){r?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,a))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u&&this.$element){var r=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=u.Event(e);o.type=t,r=o}this.$element.trigger(r,i)}},p.select=function(t,e,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t]&&(this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select"),this.dispatchEvent("cellSelect")))},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),r=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),a=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<r?t+=e:!this.isDragSelect&&a<r&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t){this.select(this.selectedIndex-1,t)},p.next=function(t){this.select(this.selectedIndex+1,t)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(t,e,i){var n;"number"==typeof t?n=this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),n=this.getCell(t));for(var r=0;n&&r<this.slides.length;r++){if(-1!=this.slides[r].cells.indexOf(n))return void this.select(r,e,i)}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var r=[],o=e-t;o<=e+t;o++){var a=this.options.wrapAround?n.modulo(o,i):o,s=this.slides[a];s&&(r=r.concat(s.getCellElements()))}return r},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=c(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element))if(37==t.keyCode){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()}else if(39==t.keyCode){var i=this.options.rightToLeft?"previous":"next";this.uiChange(),this[i]()}},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.cells.forEac
1h(function(t){t.destroy()}),this.unselectSelectedSlide(),this.element.removeChild(this.viewport),s(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),u&&this.$element&&u.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},n.extend(p,a),l.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&f[e]},n.htmlInit(l,"flickity"),u&&u.bridget&&u.bridget("flickity",l),l.Cell=r,l}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindStartEvent=function(t){this._bindStartEvent(t,!0)},n.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},n._bindStartEvent=function(e,i){var n=(i=void 0===i||!!i)?"addEventListener":"removeEventListener";t.navigator.pointerEnabled?e[n]("pointerdown",this):t.navigator.msPointerEnabled?e[n]("MSPointerDown",this):(e[n]("mousedown",this),e[n]("touchstart",this))},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},n.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},n.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},n.onMSPointerDown=n.onpointerdown=function(t){this._pointerDown(t,t)},n._pointerDown=function(t,e){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},n.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var r={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};return n._bindPostStartEvents=function(e){if(e){var i=r[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},n.onmousemove=function(t){this._pointerMove(t,t)},n.onMSPointerMove=n.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},n.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},n._pointerMove=function(t,e){this.pointerMove(t,e)},n.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},n.onmouseup=function(t){this._pointerUp(t,t)},n.onMSPointerUp=n.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},n.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},n._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},n._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},n.pointerDone=function(){},n.onMSPointerCancel=n.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},n.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},n._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},n.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},i.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},i}),function(t,e){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.Unidragger=e(t,t.Unipointer)}(window,function(t,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindHandles=function(){this._bindHandles(!0)},r.unbindHandles=function(){this._bindHandles(!1)};var o=t.navigator;return r._bindHandles=function(t){var e;t=void 0===t||!!t,e=o.pointerEnabled?function(e){e.style.touchAction=t?"none":""}:o.msPointerEnabled?function(e){e.style.msTouchAction=t?"none":""}:i;for(var n=t?"addEventListener":"removeEventListener",r=0;r<this.handles.length;r++){var a=this.handles[r];this._bindStartEvent(a,t),e(a),a[n]("click",this)}},r.pointerDown=function(t,e){if("INPUT"==t.target.nodeName&&"range"==t.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(t,e);var i=document.activeElement;i&&i.blur&&i.blur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])},r._dragPointerDown=function(t,i){this.pointerDownPoint=e.getPointerPoint(i),this.canPreventDefaultOnPointerDown(t,i)&&t.preventDefault()},r.canPreventDefaultOnPointerDown=function(t){return"SELECT"!=t.target.nodeName},r.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},r._dragPointerMove=function(t,i){var n=e.getPointerPoint(i),r={x:n.x-this.pointerDownPoint.x,y:n.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(r)&&this._dragStart(t,i),r},r.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},r._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},r._dragStart=function(t,i){this.isDragging=!0,this.dragStartPoint=e.getPointerPoint(i),this.isPreventing
1Clicks=!0,this.dragStart(t,i)},r.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},r._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},r.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},r._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},r.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},r.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},r._staticClick=function(t,e){if(!this.isIgnoringMouseUp||"mouseup"!=t.type){var i=t.target.nodeName;"INPUT"!=i&&"TEXTAREA"!=i||t.target.focus(),this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400))}},r.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},n.getPointerPoint=e.getPointerPoint,n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,i,n){function r(){return{x:t.pageXOffset,y:t.pageYOffset}}n.extend(e.defaults,{draggable:!0,dragThreshold:3}),e.createMethods.push("_createDrag");var o=e.prototype;n.extend(o,i.prototype),o._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag)},o.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(this.element.classList.add("is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},o.unbindDrag=function(){this.isDragBound&&(this.element.classList.remove("is-draggable"),this.unbindHandles(),delete this.isDragBound)},o._uiChangeDrag=function(){delete this.isFreeScrolling},o._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)};var a={TEXTAREA:!0,INPUT:!0},s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};o.pointerDown=function(e,i){if(a[e.target.nodeName]&&!s[e.target.type])return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(e,i);var n=document.activeElement;n&&n.blur&&n!=this.element&&n!=document.body&&n.blur(),this.pointerDownFocus(e),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this._bindPostStartEvents(e),this.pointerDownScroll=r(),t.addEventListener("scroll",this),this.dispatchEvent("pointerDown",e,[i])};var l={touchstart:!0,MSPointerDown:!0},u={INPUT:!0,SELECT:!0};return o.pointerDownFocus=function(e){if(this.options.accessibility&&!l[e.type]&&!u[e.target.nodeName]){var i=t.pageYOffset;this.element.focus(),t.pageYOffset!=i&&t.scrollTo(t.pageXOffset,i)}},o.canPreventDefaultOnPointerDown=function(t){var e="touchstart"==t.type,i=t.target.nodeName;return!e&&"SELECT"!=i},o.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},o.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},o.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(t,e){this.dragStartPosition=this.x,this.startAnimation(),this.dispatchEvent("dragStart",t,[e])},o.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},o.dragMove=function(t,e,i){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1,r=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>o?.5*(r+o):r;var a=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<a?.5*(r+a):r}this.dragX=r,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])},o.dragEnd=function(t,e){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])},o.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index}
1,o._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,r=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,r)&&(n+=i,r=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:r,index:n-i}},o.getSlideDistance=function(t,e){var i=this.slides.length,r=this.options.wrapAround&&i>1,o=r?n.modulo(e,i):e,a=this.slides[o];if(!a)return null;var s=r?this.slideableWidth*Math.floor(e/i):0;return t-(a.target+s)},o.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},o.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,r=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,r])},o.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}),function(t,e){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.TapListener=e(t,t.Unipointer)}(window,function(t,e){function i(t){this.bindTap(t)}var n=i.prototype=Object.create(e.prototype);return n.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var r=e.getPointerPoint(n),o=this.tapElement.getBoundingClientRect(),a=t.pageXOffset,s=t.pageYOffset;if(r.x>=o.left+a&&r.x<=o.right+a&&r.y>=o.top+s&&r.y<=o.bottom+s&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";function r(t,e){this.direction=t,this.parent=e,this._create()}var o="http://www.w3.org/2000/svg";r.prototype=new i,r.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"previous":"next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",function(){this.update()}.bind(this)),this.on("tap",this.onTap),this.on("pointerDown",function(t,e){this.parent.childUIPointerDown(e)}.bind(this))},r.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},r.prototype.createSVG=function(){var t=document.createElementNS(o,"svg");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(o,"path"),i=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},r.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},r.prototype.handleEvent=n.handleEvent,r.prototype.onclick=function(){var t=document.activeElement;t&&t==this.element&&this.onTap()},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},r.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=r,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}
1(window,function(t,e,i,n){function r(t){this.parent=t,this._create()}r.prototype=new i,r.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap)},r.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},r.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[];t;){var n=document.createElement("li");n.className="dot",e.appendChild(n),i.push(n),t--}this.holder.appendChild(e),this.dots=this.dots.concat(i)},r.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},r.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},r.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},r.prototype.destroy=function(){this.deactivate()},e.PageDots=r,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new r(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots),this.pageDots.on("pointerDown",function(t,e){this.childUIPointerDown(e)}.bind(this)))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=r,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",o&&(this.onVisibilityChange=function(){this.visibilityChange()}.bind(this),this.onVisibilityPlay=function(){this.visibilityPlay()}.bind(this))}var r,o;"hidden"in document?(r="hidden",o="visibilitychange"):"webkitHidden"in document&&(r="webkitHidden",o="webkitvisibilitychange"),n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document[r];if(o&&t)return void document.addEventListener(o,this.onVisibilityPlay);this.state="playing",o&&document.addEventListener(o,this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),o&&document.removeEventListener(o,this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document[r]?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(o,this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var a=i.prototype;return a._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},a.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},a.playPlayer=function(){this.player.play()},a.stopPlayer=function(){this.player.stop()},a.pausePlayer=function(){this.player.pause()},a.unpausePlayer=function(){this.player.unpause()},a.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},a.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},a.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}
1(window,function(t,e,i){var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var r=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),o=e==n;if(o)this.slider.appendChild(r);else{var a=this.cells[e].element;this.slider.insertBefore(r,a)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var s=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(s)}this._sizeCells(i);var l=e>this.selectedIndex?0:i.length;this._cellAddedRemoved(e,l)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e,n,r=this.getCells(t),o=0,a=r.length;for(e=0;e<a;e++){n=r[e],o-=this.cells.indexOf(n)<this.selectedIndex?1:0}for(e=0;e<a;e++)(n=r[e]).remove(),i.removeFrom(this.cells,n);r.length&&this._cellAddedRemoved(0,o)},n._cellAddedRemoved=function(t,e){e=e||0,this.selectedIndex+=e,this.selectedIndex=Math.max(0,Math.min(this.slides.length-1,this.selectedIndex)),this.cellChange(t,!0),this.emitEvent("cellAddedRemoved",[t,e])},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.slideableWidth;if(this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("cellChange",[t]),this.options.freeScroll){var n=i-this.slideableWidth;this.x+=n*this.cellAlign,this.positionSlider()}else e&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i){"use strict";function n(t){if("IMG"==t.nodeName&&t.getAttribute("data-flickity-lazyload"))return[t];var e=t.querySelectorAll("img[data-flickity-lazyload]");return i.makeArray(e)}function r(t,e){this.img=t,this.flickity=e,this.load()}e.createMethods.push("_createLazyload");var o=e.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=[];i.forEach(function(t){var e=n(t);o=o.concat(e)}),o.forEach(function(t){new r(t,this)},this)}},r.prototype.handleEvent=i.handleEvent,r.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},r.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=r,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(t){return t}),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i){e.createMethods.push("_createAsNavFor");var n=e.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},n.setNavCompanion=function(t){t=i.getQueryElement(t);var n=e.data(t);
1if(n&&n!=this){this.navCompanion=n;var r=this;this.onNavCompanionSelect=function(){r.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect()}},n.navCompanionSelect=function(){if(this.navCompanion){var t=this.navCompanion.selectedCells[0],e=this.navCompanion.cells.indexOf(t);this.selectCell(e),this.removeNavSelectedElements(),e>=this.cells.length||(this.navSelectedElements=this.slides[this.selectedIndex].getCellElements(),this.changeNavSelectedClass("add"))}},n.changeNavSelectedClass=function(t){this.navSelectedElements.forEach(function(e){e.classList[t]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect()},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t,e,r){return this instanceof n?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(function(){this.check()}.bind(this))):new n(t,e,r)}function r(t){this.img=t}function o(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,s=t.console;n.prototype=Object.create(e.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var a=o[n];this.addElementBackgroundImages(a)}}}};var l={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,t),n=i.exec(e.backgroundImage)}},n.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},n.prototype.addBackground=function(t,e){var i=new o(t,e);this.images.push(i)},n.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+i,t,e)},n.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWi
1dth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype=Object.create(r.prototype),o.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((a=e).fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(a(this))})},n.makeJQueryPlugin(),n}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("flickity"),require("imagesloaded")):t.Flickity=e(t,t.Flickity,t.imagesLoaded)}(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(this.options.imagesLoaded){var t=this;i(this.slider).on("progress",function(e,i){var n=t.getParentCell(i.img);t.cellSizeChange(n&&n.element),t.options.freeScroll||t.positionSliderAtSelected()})}},e}),function t(e,i,n){function r(a,s){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[a]={exports:{}};e[a][0].call(c.exports,function(t){var i=e[a][1][t];return r(i||t)},c,c.exports,t,e,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";function n(t){this.canvas=document.querySelector(t.element),this.x1=0,this.y1=0,this.name=t.name||!1,this.elToSetClassOn=t.elToSetClassOn||"body",this.direction=t.direction||"diagonal",this.isPausedWhenNotInView=t.isPausedWhenNotInView||!1,this.opacity=t.opacity,this.states=t.states,this.stateTransitionSpeed=t.stateTransitionSpeed||1e3,this.previousTimeStamp=null,this.progress=0,this.isPaused=!1,this.isPausedBecauseNotInView=!1,this.iscurrentColorsSet=!1,this.context=this.canvas.getContext("2d"),this.channels={},this.channelsIndex=0,this.activeState=t.defaultStateName||"default-state",this.isChangingState=!1,this.activeColors=[],this.activeColorDiff=[],this.activetransitionSpeed=null,this.currentColors=[],this.eventPolyfill(),this.events={start:new CustomEvent("granim:start"),end:new CustomEvent("granim:end"),gradientChange:function(t){return new CustomEvent("granim:gradientChange",{detail:{isLooping:t.isLooping,colorsFrom:t.colorsFrom,colorsTo:t.colorsTo,activeState:t.activeState},bubbles:!1,cancelable:!1})}},this.callbacks={onStart:"function"==typeof t.onStart&&t.onStart,onGradientChange:"function"==typeof t.onGradientChange&&t.onGradientChange,onEnd:"function"==typeof t.onEnd&&t.onEnd},this.getDimensions(),this.canvas.setAttribute("width",this.x1),this.canvas.setAttribute("height",this.y1),this.setColors(),this.refreshColors(),window.addEventListener("resize",this.onResize.bind(this)),this.isPausedWhenNotInView?this.pauseWhenNotInView():this.animation=requestAnimationFrame(this.animateColors.bind(this)),this.callbacks.onStart&&this.callbacks.onStart(),this.canvas.dispatchEvent(this.events.start)}n.prototype.setColors=t("./setColors.js"),n.prototype.eventPolyfill=t("./eventPolyfill.js"),n.prototype.colorDiff=t("./colorDiff.js"),n.prototype.hexToRgb=t("./hexToRgb.js"),n.prototype.setDirection=t("./setDirection.js"),n.prototype.makeGradient=t("./makeGradient.js"),n.prototype.getDimensions=t("./getDimensions.js"),n.prototype.animateColors=t("./animateColors.js"),n.prototype.getLightness=t("./getLightness.js"),n.prototype.refreshColors=t("./refreshColors.js"),n.prototype.changeState=t("./changeState.js"),n.prototype.pause=t("./pause.js"),n.prototype.play=t("./play.js"),n.prototype.clear=t("./clear.js"),n.prototype.getCurrentColors=t("./getCurrentColors.js"),n.prototype.pauseWhenNotInView=t("./pauseWhenNotInView.js"),n.prototype.onResize=t
1("./onResize.js"),e.exports=n},{"./animateColors.js":2,"./changeState.js":3,"./clear.js":4,"./colorDiff.js":5,"./eventPolyfill.js":6,"./getCurrentColors.js":7,"./getDimensions.js":8,"./getLightness.js":9,"./hexToRgb.js":10,"./makeGradient.js":11,"./onResize.js":12,"./pause.js":13,"./pauseWhenNotInView.js":14,"./play.js":15,"./refreshColors.js":16,"./setColors.js":17,"./setDirection.js":18}],2:[function(t,e,i){"use strict";e.exports=function(t){var e,i,n,r=t-this.previousTimeStamp>100,o=void 0===this.states[this.activeState].loop||this.states[this.activeState].loop;(null===this.previousTimeStamp||r)&&(this.previousTimeStamp=t),this.progress=this.progress+(t-this.previousTimeStamp),e=(this.progress/this.activetransitionSpeed*100).toFixed(2),this.previousTimeStamp=t,this.refreshColors(e),e<100?this.animation=requestAnimationFrame(this.animateColors.bind(this)):this.channelsIndex<this.states[this.activeState].gradients.length-2||o?(this.isChangingState&&(this.activetransitionSpeed=this.states[this.activeState].transitionSpeed||5e3),this.previousTimeStamp=null,this.progress=0,this.channelsIndex++,i=!1,this.channelsIndex===this.states[this.activeState].gradients.length-1?i=!0:this.channelsIndex===this.states[this.activeState].gradients.length&&(this.channelsIndex=0),n=void 0===this.states[this.activeState].gradients[this.channelsIndex+1]?this.states[this.activeState].gradients[0]:this.states[this.activeState].gradients[this.channelsIndex+1],this.setColors(),this.animation=requestAnimationFrame(this.animateColors.bind(this)),this.callbacks.onGradientChange&&this.callbacks.onGradientChange({isLooping:i,colorsFrom:this.states[this.activeState].gradients[this.channelsIndex],colorsTo:n,activeState:this.activeState}),this.canvas.dispatchEvent(this.events.gradientChange({isLooping:i,colorsFrom:this.states[this.activeState].gradients[this.channelsIndex],colorsTo:n,activeState:this.activeState}))):(cancelAnimationFrame(this.animation),this.callbacks.onEnd&&this.callbacks.onEnd(),this.canvas.dispatchEvent(new CustomEvent("granim:end")))}},{}],3:[function(t,e,i){"use strict";e.exports=function(t){var e,i,n=this;this.activeState!==t&&(this.isPaused||(this.isPaused=!0,this.pause()),this.channelsIndex=-1,this.activetransitionSpeed=this.stateTransitionSpeed,this.activeColorDiff=[],this.activeColors=this.getCurrentColors(),this.progress=0,this.previousTimeStamp=null,this.isChangingState=!0,this.states[t].gradients[0].forEach(function(r,o,a){e=n.hexToRgb(n.states[t].gradients[0][o]),i=n.colorDiff(n.activeColors[o],e),n.activeColorDiff.push(i)}),this.activeState=t,this.play())}},{}],4:[function(t,e,i){"use strict";e.exports=function(){cancelAnimationFrame(this.animation),this.context.clearRect(0,0,this.x1,this.y1)}},{}],5:[function(t,e,i){"use strict";e.exports=function(t,e){var i,n=[];for(i=0;i<3;i++)n.push(e[i]-t[i]);return n}},{}],6:[function(t,e,i){"use strict";e.exports=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}},{}],7:[function(t,e,i){"use strict";e.exports=function(){var t,e=[];return this.currentColors.forEach(function(i,n,r){for(e.push([]),t=0;t<3;t++)e[n].push(i[t])}),e}},{}],8:[function(t,e,i){"use strict";e.exports=function(){this.x1=this.canvas.offsetWidth,this.y1=this.canvas.offsetHeight}},{}],9:[function(t,e,i){"use strict";e.exports=function(){var t,e=this.getCurrentColors(),i=[],n=null;return e.forEach(function(t,e,n){i.push(Math.max(t[0],t[1],t[2]))}
1),i.forEach(function(e,r,o){n=null===n?e:n+e,r===i.length-1&&(t=Math.round(n/(r+1)))}),t>=128?"light":"dark"}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){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});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null}},{}],11:[function(t,e,i){"use strict";e.exports=function(){var t,e,i=this.setDirection(),n=document.querySelector(this.elToSetClassOn).classList;for(this.context.clearRect(0,0,this.x1,this.y1),t=0;t<this.currentColors.length;t++)e=t?(1/(this.currentColors.length-1)*t).toFixed(2):0,i.addColorStop(e,"rgba("+this.currentColors[t][0]+", "+this.currentColors[t][1]+", "+this.currentColors[t][2]+", "+this.opacity[t]+")");this.name&&("light"===this.getLightness()?(n.remove(this.name+"-dark"),n.add(this.name+"-light")):(n.remove(this.name+"-light"),n.add(this.name+"-dark"))),this.context.fillStyle=i,this.context.fillRect(0,0,this.x1,this.y1)}},{}],12:[function(t,e,i){"use strict";e.exports=function(){this.getDimensions(),this.canvas.setAttribute("width",this.x1),this.canvas.setAttribute("height",this.y1),this.refreshColors()}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){"isPausedBecauseNotInView"===t||(this.isPaused=!0),cancelAnimationFrame(this.animation)}},{}],14:[function(t,e,i){"use strict";e.exports=function(){function t(t){e&&clearTimeout(e),e=setTimeout(function(){var e=i.canvas.getBoundingClientRect();e.bottom<0||e.right<0||e.left>window.innerWidth||e.top>window.innerHeight?i.isPaused||i.isPausedBecauseNotInView||(i.isPausedBecauseNotInView=!0,i.pause("isPausedBecauseNotInView")):i.isPaused&&!0!==t||(i.isPausedBecauseNotInView=!1,i.play("isPausedBecauseNotInView"))},300)}var e,i=this;window.addEventListener("scroll",t),t(!0)}},{}],15:[function(t,e,i){"use strict";e.exports=function(t){"isPausedBecauseNotInView"===t||(this.isPaused=!1),this.animation=requestAnimationFrame(this.animateColors.bind(this))}},{}],16:[function(t,e,i){"use strict";e.exports=function(t){var e,i,n=this;this.activeColors.forEach(function(r,o,a){for(i=0;i<3;i++)(e=n.activeColors[o][i]+Math.ceil(n.activeColorDiff[o][i]/100*t))<=255&&e>=0&&(n.currentColors[o][i]=e)}),this.makeGradient()}},{}],17:[function(t,e,i){"use strict";e.exports=function(){var t,e,i=this;return this.channels[this.activeState]||(this.channels[this.activeState]=[]),void 0!==this.channels[this.activeState][this.channelsIndex]?(this.activeColors=this.channels[this.activeState][this.channelsIndex].colors,void(this.activeColorDiff=this.channels[this.activeState][this.channelsIndex].colorsDiff)):(this.channels[this.activeState].push([{}]),this.channels[this.activeState][this.channelsIndex].colors=[],this.channels[this.activeState][this.channelsIndex].colorsDiff=[],this.activeColors=[],this.activeColorDiff=[],this.states[this.activeState].gradients[this.channelsIndex].forEach(function(n,r,o){var a=i.hexToRgb(n),s=i.channels[i.activeState];s[i.channelsIndex].colors.push(a),i.activeColors.push(a),i.iscurrentColorsSet||i.currentColors.push(i.hexToRgb(n)),i.channelsIndex===i.states[i.activeState].gradients.length-1?t=i.colorDiff(s[i.channelsIndex].colors[r],s[0].colors[r]):(e=i.hexToRgb(i.states[i.activeState].gradients[i.channelsIndex+1][r]),t=i.colorDiff(s[i.channelsIndex].colors[r],e)),s[i.channelsIndex].colorsDiff.push(t),i.activeColorDiff.push(t)}),this.activetransitionSpeed=this.states[this.activeState].transitionSpeed||5e3,void(this.iscurrentColorsSet=!0))}},{}],18:[function(t,e,i){"use strict";e.exports=function(){var t=this.context;switch(this.direction){default:case"diagonal":return t.createLinearGradient(0,0,this.x1,this.y1);case"left-right":return t.createLinearGradient(0,0,this.x1,0);case"top-bottom":return t.createLinearGradient(this.x1/2,0,this.x1/2,this.y1);case"radial":return t.createRadialGradient(this.x1/2,this.y1/2,this.x1/2,this.x1/2,this.y1/2,0)}}},{}],19:[function(t,e,i){window.Granim=t("./lib/Granim.js")},{"./lib/Granim.js":1}]},{},[19]),function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){s.isPlainObject(t)&&(this.options=s.extend(!0,this.options,t))}),s.fn[i]=function(t){return"string"==typeof t?function(t,e,n){var r,o="$()."+i+'("'+e+'")';return t.each(function(t,l){var u=s.data(l,i);if(u){var c=u[e];
1if(c&&"_"!=e.charAt(0)){var d=c.apply(u,n);r=void 0===r?d:r}else a(o+" is not a valid method")}else a(i+" not initialized. Cannot call methods, i.e. "+o)}),void 0!==r?r:t}(this,t,r.call(arguments,1)):(function(t,e){t.each(function(t,n){var r=s.data(n,i);r?(r.option(e),r._init()):(r=new o(n,e),s.data(n,i,r))})}(this,t),this)},n(s))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var r=Array.prototype.slice,o=t.console,a=void 0===o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,r=i[n];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];r;){var a=o&&o[r];a&&(this.off(t,r),delete o[r]),r.apply(this,e),r=i[n+=a?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(t){var e=getComputedStyle(t);return e||o("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function i(){if(!l){l=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var o=document.body||document.documentElement;o.appendChild(i);var a=e(i);n.isBoxSizeOuter=r=200==t(a.width),o.removeChild(i)}}
1function n(n){if(i(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){var o=e(n);if("none"==o.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;s>e;e++)t[a[e]]=0;return t}();var l={};l.width=n.offsetWidth,l.height=n.offsetHeight;for(var u=l.isBorderBox="border-box"==o.boxSizing,c=0;s>c;c++){var d=a[c],h=o[d],f=parseFloat(h);l[d]=isNaN(f)?0:f}var p=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,y=l.marginLeft+l.marginRight,g=l.marginTop+l.marginBottom,v=l.borderLeftWidth+l.borderRightWidth,b=l.borderTopWidth+l.borderBottomWidth,w=u&&r,T=t(o.width);!1!==T&&(l.width=T+(w?0:p+v));var P=t(o.height);return!1!==P&&(l.height=P+(w?0:m+b)),l.innerWidth=l.width-(p+v),l.innerHeight=l.height-(m+b),l.outerWidth=l.width+y,l.outerHeight=l.height+g,l}}var r,o="undefined"==typeof console?function(){}:function(t){console.error(t)},a=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=a.length,l=!1;return n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=i.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void r.push(t);e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)r.push(i[o])}}),r},debounceMethod:function(t,e,i){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout(function(){n.apply(o,e),delete o[r]},i||100)}},docReady:function(t){var e=document.readyState;"complete"==e||"interactive"==e?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},n=t.console;return i.htmlInit=function(e,r){i.docReady(function(){var o=i.toDashed(r),a="data-"+o,s=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+o),u=i.makeArray(s).concat(i.makeArray(l)),c=a+"-options",d=t.jQuery;u.forEach(function(t){var i,o=t.getAttribute(a)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(e){return void(n&&n.error("Error parsing "+a+" on "+t.className+": "+e))}var s=new e(t,i);d&&d.data(t,r,s)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],s={transform:o,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},l=i.prototype=Object.create(t.prototype);l.constructor=i,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t){e[s[i]||i]=t[i]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],r=t[i?"top":"bottom"],o=this.layout.size,a=-1!=n.indexOf("%")?parseFloat(n)/100*o.width:parseInt(n,10),s=-1!=r.indexOf("%")?parseFloat(r)/100*o.height:parseInt(r,10);a=isNaN(a)?0:a,s=isNaN(s)?0:s,a-=e?o.paddingLeft:o.paddingRight,s-=i?o.paddingTop:o.paddingBottom,this.position.x=a,this.position.y=s},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=i?"paddingLeft":"paddingRight",o=i?"left":"right",a=i?"right":"left",s=this.position.x+t[r];e[o]=this.getXValue(s),e[a]="";var l=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",c=n?"bottom":"top",d=this.position.y+t[l];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,r=parseInt(t,10),o=parseInt(e,10),a=r===this.position.x&&o===this.position.y;if(this.setPosition(t,e),!a||this.isTransitioning){var s=t-i,l=e-n,u={};u.transform=this.getTranslate(s,l),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var u="opacity,"+function(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}(o);l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:u,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,r,o){return e(t,i,n,r,o)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.f
vendor: 4,086 bytes, line 1
1izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,r){"use strict";function o(t,e){var i=n.getQueryElement(t);if(i){this.element=i,l&&(this.$element=l(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var r=++c;this.element.outlayerGUID=r,d[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}var s=t.console,l=t.jQuery,u=function(){},c=0,d={};o.namespace="outlayer",o.Item=r,o.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=o.prototype;n.extend(h,e.prototype),h.option=function(t){n.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],r=0;r<e.length;r++){var o=new i(e[r],this);n.push(o)}return n},h._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=i(this.element)},h._getMeasurement=function(t,e){var n,r=this.options[t];r?("string"==typeof r?n=this.element.querySelector(r):r instanceof HTMLElement&&(n=r),this[t]=n?i(n)[e]:r):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];return i.length?(i=parseFloat(i))*(f[n]||1):0}(t),this.stagger)},h._positionItem=function(t,e,i,n,r){n?t.goTo(e,i):(t.stagger(r*this.stagger),t.moveTo(e,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},h._getContainerSize=u,h._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},h._emitCompleteOnItems=function(t,e){function i(){r.dispatchEvent(t+"Complete",null,[e])}function n(){++a==o&&i()}var r=this,o=e.length;if(e&&o){var a=0;e.forEach(function(e){e.once(t,n)})}else i()}
vendor: 5,319 bytes, line 1
1,h.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),l)if(this.$element=this.$element||l(this.element),e){var r=l.Event(e);r.type=t,this.$element.trigger(r,i)}else this.$element.trigger(t,i)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=u,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,r=i(t);return{left:e.left-n.left-r.marginLeft,top:e.top-n.top-r.marginTop,right:n.right-e.right-r.marginRight,bottom:n.bottom-e.bottom-r.marginBottom}},h.handleEvent=n.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(o,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=i(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},h.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},h.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete d[e],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},o.data=function(t){var e=(t=n.getQueryElement(t))&&t.outlayerGUID;return e&&d[e]},o.create=function(t,e){var i=a(o);return i.defaults=n.extend({},o.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},o.compatOptions),i.namespace=t,i.data=o.data,i.Item=a(r),n.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i};var f={ms:1,s:1e3};return o.Item=r,o}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var r=i.destroy;return i.destroy=function(){r.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element);
1return this.isotope.size&&e&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var r=this.getFirstItemSize();this[i]=r&&r[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function r(){i.apply(this,arguments)}return r.prototype=Object.create(n),r.prototype.constructor=r,e&&(r.options=e),r.prototype.namespace=t,i.modes[t]=r,r},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,o=r/n,a=n-r%n;o=Math[a&&1>a?"round":"floor"](o),this.cols=Math.max(o,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&1>e?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this._getColGroup(i),r=Math.min.apply(Math,n),o=n.indexOf(r),a={x:this.columnWidth*o,y:r},s=r+t.size.outerHeight,l=this.cols+1-n.length,u=0;l>u;u++)this.colYs[o+u]=s;return a},i.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var r=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,r)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),r=this._getOption("originLeft")?
1n.left:n.right,o=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var s=Math.floor(o/this.columnWidth);s-=o%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var l=(this._getOption("originTop")?n.top:n.bottom)+i.outerHeight,u=a;s>=u;u++)this.colYs[u]=Math.max(l,this.colYs[u])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,r={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)r[o]||(n[o]=e.prototype[o]);var a=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var s=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,r,o,a,s){return e(t,i,n,r,o,a,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,r,o,a){var s=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=a;var c=u.prototype;c._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(t)},c.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},c._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){t[i].id=this.itemGUID++}return this._updateItemsSortData(t),t},c._initLayoutMode=function(t){var e=a.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},c.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},c._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},c.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},c._init=c.arrange,c._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},c._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},c._bindArrangeComplete=function(){function t(){e&&i&&n&&r.dispatchEvent("arrangeComplete",null,[r.filteredItems])}var e,i,n,r=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},c._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],r=[],o=this._getFilterTest(e),a=0;a<t.length;a++){var s=t[a];if(!s.isIgnored){var l=o(s);l&&i.push(s),l&&s.isHidden?n.push(s):l||s.isHidden||r.push(s)}}return{matches:i,needReveal:n,needHide:r}},c._getFilterTest=function(t){return s&&this.options.isJQueryFiltering?function(e){return s(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},c.updateSortData=function(t){var e;t?(t=r.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},c._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=d(i)}},c._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].updateSortData()}};var d=function(){return function(t){if("string"!=typeof t)return t;var e=l(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),r=function(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}(n&&n[1],i),o=u.sortDataParsers[e[1]];return o?function(t){return t&&o(r(t))}:function(t){return t&&r(t)}}}();u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},c._sort=function(){var t=this.options.sortBy;if(t){var e=function(t,e){return function(i,n){for(var r=0;r<t.length;r++){var o=t[r],a=i.sortData[o],s=n.sortData[o];if(a>s||s>a)return(a>s?1:-1)*((void 0!==e[o]?e[o]:e)?1:-1)}return 0}}([].concat.apply(t,this.sortHistory),this.options.sortAscending);this.filteredItems.sort(e),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},c._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},c._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},c._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},c._manageStamp=function(t){this._mode()._manageStamp(t)},c._getContainerSize=function(){return this._mode()._getContainerSize()},c.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},c.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},c._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},c.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,r=e.length;for(i=0;r>i;i++)n=e[i],this.element.appendChild(n.element);var o=this._filter(e).matches;for(i=0;r>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;r>i;i++)delete e[i].isLayoutInstant;this.reveal(o)}};var h=c.remove;return c.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);h.call(this,t);for(var i=e&&e.length,n=0;i&&i>n;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},c.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},c._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},c.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}),function(t,e){function i(i,n,r){var o=i.children(n.headerTag),a=i.children(n.bodyTag);o.length>a.length?_(R,"contents"):o.length<a.length&&_(R,"titles");var s=n.startIndex;if(r.stepCount=o.length,n.saveState&&t.cookie){var l=t.cookie(A+d(i)),c=parseInt(l,0);!isNaN(c)&&c<r.stepCount&&(s=c)}r.currentIndex=s,o.each(function(n){var r=t(this),o=a.eq(n),s=o.data("mode"),l=null==s?F.html:h(F,/^\s*$/.test(s)||isNaN(s)?s:parseInt(s,0)),c=l===F.html||o.data("url")===e?"":o.data("url"),d=l!==F.html&&"1"===o.data("loaded"),f=t.extend({},q,{title:r.html(),content:l===F.html?o.html():"",contentUrl:c,contentMode:l,contentLoaded:d});!function(t,e){u(t).push(e)}(i,f)})}function n(t,e){var i=t.find(".steps li").eq(e.currentIndex);t.triggerHandler("finishing",[e.currentIndex])?(i.addClass("done").removeClass("error"),t.triggerHandler("finished",[e.currentIndex])):i.addClass("error")}function r(t){var e=t.data("eventNamespace");return null==e&&(e="."+d(t),t.data("eventNamespace",e)),e}function o(t,e){var i=d(t);return t.find("#"+i+z+e)}function a(t,e){var i=d(t);return t.find("#"+i+M+e)}function s(t){return t.data("options")}function l(t){return t.data("state")}function u(t){return t.data("steps")}function c(t,e){var i=u(t);return(0>e||e>=i.length)&&_(O),i[e]}function d(t){var e=t.data("uid");return null==e&&(null==(e=t._id())&&(e="steps-uid-".concat(D),t._id(e)),D++,t.data("uid",e)),e}function h(t,i){if(E("enumType",t),E("keyOrValue",i),"string"==typeof i){var n=t[i];return n===e&&_("The enum key '{0}' does not exist.",i),n}if("number"==typeof i){for(var r in t)if(t[r]===i)return i;_("Invalid enum value '{0}'.",i)}else _("Invalid key or value type.")}function f(t,e,i){return b(t,e,i,function(t,e){return t.currentIndex+e}(i,1))}
1function p(t,e,i){return b(t,e,i,function(t,e){return t.currentIndex-e}(i,1))}function m(e){var n=t.extend(!0,{},N,e);return this.each(function(){var e=t(this),a={currentIndex:n.startIndex,currentStep:null,stepCount:0,transitionElement:null};e.data("options",n),e.data("state",a),e.data("steps",[]),i(e,n,a),function(e,i,n){var r='<{0} class="{1}">{2}</{0}>',o=h(B,i.stepsOrientation)===B.vertical?" vertical":"",a=t(r.format(i.contentContainerTag,"content "+i.clearFixCssClass,e.html())),s=t(r.format(i.stepsContainerTag,"steps "+i.clearFixCssClass,'<ul role="tablist"></ul>')),l=a.children(i.headerTag),u=a.children(i.bodyTag);e.attr("role","application").empty().append(s).append(a).addClass(i.cssClass+" "+i.clearFixCssClass+o),u.each(function(i){C(e,n,t(this),i)}),l.each(function(r){k(e,i,n,t(this),r)}),P(e,i,n),function(t,e,i){if(e.enablePagination){var n='<li><a href="#{0}" role="menuitem">{1}</a></li>',r="";e.forceMoveForward||(r+=n.format("previous",e.labels.previous)),r+=n.format("next",e.labels.next),e.enableFinishButton&&(r+=n.format("finish",e.labels.finish)),e.enableCancelButton&&(r+=n.format("cancel",e.labels.cancel)),t.append('<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>'.format(e.actionContainerTag,e.clearFixCssClass,e.labels.pagination,r)),T(t,e,i),v(t,e,i)}}(e,i,n)}(e,n,a),function(t,e){var i=r(t);t.bind("canceled"+i,e.onCanceled),t.bind("contentLoaded"+i,e.onContentLoaded),t.bind("finishing"+i,e.onFinishing),t.bind("finished"+i,e.onFinished),t.bind("init"+i,e.onInit),t.bind("stepChanging"+i,e.onStepChanging),t.bind("stepChanged"+i,e.onStepChanged),e.enableKeyNavigation&&t.bind("keyup"+i,g),t.find(".actions a").bind("click"+i,w)}(e,n),n.autoFocus&&0===D&&o(e,n.startIndex).focus(),e.triggerHandler("init",[n.startIndex])})}function y(e,i,n,r,o){(0>r||r>n.stepCount)&&_(O),function(t,e,i){u(t).splice(e,0,i)}(e,r,o=t.extend({},q,o)),n.currentIndex!==n.stepCount&&n.currentIndex>=r&&(n.currentIndex++,Y(e,i,n)),n.stepCount++;var s=e.find(".content"),l=t("<{0}>{1}</{0}>".format(i.headerTag,o.title)),c=t("<{0}></{0}>".format(i.bodyTag));return(null==o.contentMode||o.contentMode===F.html)&&c.html(o.content),0===r?s.prepend(c).prepend(l):a(e,r-1).after(c).after(l),C(e,n,c,r),k(e,i,n,l,r),x(e,i,n,r),r===n.currentIndex&&P(e,i,n),T(e,i,n),e}function g(e){var i=t(this),n=s(i),r=l(i);if(n.suppressPaginationOnFocus&&i.find(":focus").is(":input"))return e.preventDefault(),!1;var o=37,a=39;e.keyCode===o?(e.preventDefault(),p(i,n,r)):e.keyCode===a&&(e.preventDefault(),f(i,n,r))}function v(e,i,n){if(n.stepCount>0){var r=n.currentIndex,o=c(e,r);if(!i.enableContentCache||!o.contentLoaded)switch(h(F,o.contentMode)){case F.iframe:e.find(".content > .body").eq(n.currentIndex).empty().html('<iframe src="'+o.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case F.async:var s=a(e,r)._aria("busy","true").empty().append(S(i.loadingTemplate,{text:i.labels.loading}));t.ajax({url:o.contentUrl,cache:!1}).done(function(t){s.empty().html(t)._aria("busy","false").data("loaded","1"),e.triggerHandler("contentLoaded",[r])})}}}function b(t,e,i,n){var r=i.currentIndex;if(n>=0&&n<i.stepCount&&!(e.forceMoveForward&&n<i.currentIndex)){var a=o(t,n),s=a.parent(),l=s.hasClass("disabled");return s._enableAria(),a.click(),r!==i.currentIndex||!l||(s._enableAria(!1),!1)}return!1}function w(e){e.preventDefault();var i=t(this),r=i.parent().parent().parent().parent(),o=s(r),a=l(r),u=i.attr("href");switch(u.substring(u.lastIndexOf("#")+1)){case"cancel":!function(t){t.triggerHandler("canceled")}(r);break;case"finish":n(r,a);break;case"next":f(r,o,a);break;case"previous":p(r,o,a)}}function T(t,e,i){if(e.enablePagination){var n=t.find(".actions a[href$='#finish']").parent(),r=t.find(".actions a[href$='#next']").parent();if(!e.forceMoveForward)t.find(".actions a[href$='#previous']").parent()._enableAria(i.currentIndex>0);e.enableFinishButton&&e.showFinishButtonAlways?(n._enableAria(i.stepCount>0),r._enableAria(i.stepCount>1&&i.stepCount>i.currentIndex+1)):(n._showAria(e.enableFinishButton&&i.stepCount===i.currentIndex+1),r._showAria(0===i.stepCount||i.stepCount>i.currentIndex+1)._enableAria(i.stepCount>i.currentIndex+1||!e.enableFinishButton))}}function P(e,i,n,r){var a=o(e,n.currentIndex),s=t('<span class="current-info audible">'+i.labels.current+" </span>"),l=e.find(".content > .title");if(null!=r){var u=o(e,r);u.parent().addClass("done").removeClass("error")._selectAria(!1),l.eq(r).removeClass("current").next(".body").removeClass("current"),s=u.find(".current-info"),a.focus()}a.prepend(s).parent()._selectAria().removeClass("done")._enableAria(),l.eq(n.currentIndex).addClass("current").next(".body").addClass("current")}function x(t,e,i,n){for(var r=d(t),o=n;o<i.stepCount;o++){var a=r+z+o,s=r+M+o,l=r+L+o,u=t.find(".title").eq(o)._id(l);t.find(".steps a").eq(o)._id(a)._aria("controls",s).attr("href","#"+l).html(S(e.titleTemplate,{index:o+1,title:u.html()})),t.find(".body").eq(o)._id(s)._aria("labelledby",l)}}function j(t,e,i,n){return!(0>n||n>=i.stepCount||i.currentIndex===n)&&(function(t,e){u(t).splice(e,1)}
1(t,n),i.currentIndex>n&&(i.currentIndex--,Y(t,e,i)),i.stepCount--,function(t,e){var i=d(t);return t.find("#"+i+L+e)}(t,n).remove(),a(t,n).remove(),o(t,n).parent().remove(),0===n&&t.find(".steps li").first().addClass("first"),n===i.stepCount&&t.find(".steps li").eq(n).addClass("last"),x(t,e,i,n),T(t,e,i),!0)}function C(t,e,i,n){var r=d(t),o=r+M+n,a=r+L+n;i._id(o).attr("role","tabpanel")._aria("labelledby",a).addClass("body")._showAria(e.currentIndex===n)}function S(t,i){for(var n=t.match(/#([a-z]*)#/gi),r=0;r<n.length;r++){var o=n[r],a=o.substring(1,o.length-1);i[a]===e&&_("The key '{0}' does not exist in the substitute collection!",a),t=t.replace(o,i[a])}return t}function k(e,i,n,o,a){var s=d(e),l=s+z+a,u=s+M+a,c=s+L+a,h=e.find(".steps > ul"),f=S(i.titleTemplate,{index:a+1,title:o.html()}),p=t('<li role="tab"><a id="'+l+'" href="#'+c+'" aria-controls="'+u+'">'+f+"</a></li>");p._enableAria(i.enableAllSteps||n.currentIndex>a),n.currentIndex>a&&p.addClass("done"),o._id(c).attr("tabindex","-1").addClass("title"),0===a?h.prepend(p):h.find("li").eq(a-1).after(p),0===a&&h.find("li").removeClass("first").eq(a).addClass("first"),a===n.stepCount-1&&h.find("li").removeClass("last").eq(a).addClass("last"),p.children("a").bind("click"+r(e),I)}function Y(e,i,n){i.saveState&&t.cookie&&t.cookie(A+d(e),n.currentIndex)}function Q(e,i,n,r,o,a){var s=e.find(".content > .body"),u=h(W,i.transitionEffect),c=i.transitionEffectSpeed,d=s.eq(r),f=s.eq(o);switch(u){case W.fade:case W.slide:var p=u===W.fade?"fadeOut":"slideUp",m=u===W.fade?"fadeIn":"slideDown";n.transitionElement=d,f[p](c,function(){var e=l(t(this)._showAria(!1).parent().parent());e.transitionElement&&(e.transitionElement[m](c,function(){t(this)._showAria()}).promise().done(a),e.transitionElement=null)});break;case W.slideLeft:var y=f.outerWidth(!0),g=r>o?-y:y,v=r>o?y:-y;t.when(f.animate({left:g},c,function(){t(this)._showAria(!1)}),d.css("left",v+"px")._showAria().animate({left:0},c)).done(a);break;default:t.when(f._showAria(!1),d._showAria()).done(a)}}function I(e){e.preventDefault();var i=t(this),n=i.parent().parent().parent().parent(),r=s(n),a=l(n),u=a.currentIndex;if(i.parent().is(":not(.disabled):not(.current)")){var c=i.attr("href");!function(t,e,i,n){if((0>n||n>=i.stepCount)&&_(O),!(e.forceMoveForward&&n<i.currentIndex)){var r=i.currentIndex;t.triggerHandler("stepChanging",[i.currentIndex,n])?(i.currentIndex=n,Y(t,e,i),P(t,e,i,r),T(t,e,i),v(t,e,i),Q(t,e,i,n,r,function(){t.triggerHandler("stepChanged",[n,r])})):t.find(".steps li").eq(r).addClass("error")}}(n,r,a,parseInt(c.substring(c.lastIndexOf("-")+1),0))}return u===a.currentIndex?(o(n,u).focus(),!1):void 0}function _(t){throw arguments.length>1&&(t=t.format(Array.prototype.slice.call(arguments,1))),new Error(t)}function E(t,e){null==e&&_("The argument '{0}' is null or undefined.",t)}t.fn.extend({_aria:function(t,e){return this.attr("aria-"+t,e)},_removeAria:function(t){return this.removeAttr("aria-"+t)},_enableAria:function(t){return null==t||t?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(t){return null==t||t?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(t){return null==t||t?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(t){return t?this.attr("id",t):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(){for(var e=1===arguments.length&&t.isArray(arguments[0])?arguments[0]:arguments,i=this,n=0;n<e.length;n++){var r=new RegExp("\\{"+n+"\\}","gm");i=i.replace(r,e[n])}return i});var D=0,A="jQu3ry_5teps_St@te_",z="-t-",M="-p-",L="-h-",O="Index out of range.",R="One or more corresponding step {0} are missing.";t.fn.steps=function(e){return t.fn.steps[e]?t.fn.steps[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.steps"):m.apply(this,arguments)},t.fn.steps.add=function(t){var e=l(this);return y(this,s(this),e,e.stepCount,t)},t.fn.steps.destroy=function(){return function(e,i){var n=r(e);e.unbind(n).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(n),e.removeClass(i.
1clearFixCssClass+" vertical");var o=e.find(".content > *");o.removeData("loaded").removeData("mode").removeData("url"),o.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),e.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var a=t('<{0} class="{1}"></{0}>'.format(e.get(0).tagName,e.attr("class"))),s=e._id();return null!=s&&""!==s&&a._id(s),a.html(e.find(".content").html()),e.after(a),e.remove(),a}(this,s(this))},t.fn.steps.finish=function(){n(this,l(this))},t.fn.steps.getCurrentIndex=function(){return l(this).currentIndex},t.fn.steps.getCurrentStep=function(){return c(this,l(this).currentIndex)},t.fn.steps.getStep=function(t){return c(this,t)},t.fn.steps.insert=function(t,e){return y(this,s(this),l(this),t,e)},t.fn.steps.next=function(){return f(this,s(this),l(this))},t.fn.steps.previous=function(){return p(this,s(this),l(this))},t.fn.steps.remove=function(t){return j(this,s(this),l(this),t)},t.fn.steps.setStep=function(){throw new Error("Not yet implemented!")},t.fn.steps.skip=function(){throw new Error("Not yet implemented!")};var F=t.fn.steps.contentMode={html:0,iframe:1,async:2},B=t.fn.steps.stepsOrientation={horizontal:0,vertical:1},W=t.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},q=t.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:F.html,contentLoaded:!1},N=t.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOr
vendor: 5,986 bytes, line 1
1ientation:B.horizontal,titleTemplate:'<span class="number">#index#.</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:W.none,transitionEffectSpeed:200,onStepChanging:function(){return!0},onStepChanged:function(){},onCanceled:function(){},onFinishing:function(){return!0},onFinished:function(){},onContentLoaded:function(){},onInit:function(){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finish",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery),function(){var t=jQuery,e=function(){function t(){this.fadeDuration=500,this.fitImagesInViewport=!0,this.resizeDuration=700,this.positionFromTop=50,this.showImageNumberLabel=!0,this.alwaysShowNavOnTouchDevices=!1,this.wrapAround=!1}return t.prototype.albumLabel=function(t,e){return"Image "+t+" of "+e},t}(),i=function(){function e(t){this.options=t,this.album=[],this.currentImageIndex=void 0,this.init()}return e.prototype.init=function(){this.enable(),this.build()},e.prototype.enable=function(){var e=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(i){return e.start(t(i.currentTarget)),!1})},e.prototype.build=function(){var e=this;t("<div id='lightboxOverlay' class='lightboxOverlay'></div><div id='lightbox' class='lightbox'><div class='lb-outerContainer'><div class='lb-container'><img class='lb-image' src='' /><div class='lb-nav'><a class='lb-prev' href='' ></a><a class='lb-next' href='' ></a></div><div class='lb-loader'><a class='lb-cancel'></a></div></div></div><div class='lb-dataContainer'><div class='lb-data'><div class='lb-details'><span class='lb-caption'></span><span class='lb-number'></span></div><div class='lb-closeContainer'><a class='lb-close'></a></div></div></div></div>").appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return e.end(),!1}),this.$lightbox.hide().on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$outerContainer.on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return e.changeImage(0===e.currentImageIndex?e.album.length-1:e.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return e.changeImage(e.currentImageIndex===e.album.length-1?0:e.currentImageIndex+1),!1}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return e.end(),!1})},e.prototype.start=function(e){function i(t){n.album.push({link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var n=this,r=t(window);r.on("resize",t.proxy(this.sizeOverlay,this)),t("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var o,a=0,s=e.attr("data-lightbox");if(s){o=t(e.prop("tagName")+'[data-lightbox="'+s+'"]');for(var l=0;l<o.length;l=++l)i(t(o[l])),o[l]===e[0]&&(a=l)}else if("lightbox"===e.attr("rel"))i(e);else{o=t(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var u=0;u<o.length;u=++u)i(t(o[u])),o[u]===e[0]&&(a=u)}var c=r.scrollTop()+this.options.positionFromTop,d=r.scrollLeft();this.$lightbox.css({top:c+"px",left:d+"px"}).fadeIn(this.options.fadeDuration),this.changeImage(a)},e.prototype.changeImage=function(e){var i=this;this.disableKeyboardNav();var n=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var r=new Image;r.onload=function(){var o,a,s,l,u,c;n.attr("src",i.album[e].link),t(r),n.width(r.width),n.height(r.height),i.options.fitImagesInViewport&&(c=t(window).width(),u=t(window).height(),l=c-i.containerLeftPadding-i.containerRightPadding-20,s=u-i.containerTopPadding-i.containerBottomPadding-120,(r.width>l||r.height>s)&&(r.width/l>r.height/s?(a=l,o=parseInt(r.height/(r.width/a),10),n.width(a),n.height(o)):(o=s,a=parseInt(r.width/(r.height/o),10),n.width(a),n.height(o)))),i.sizeContainer(n.width(),n.height())},r.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){this.$overlay.width(t(window).width()).height(t(document).height())},e.prototype.sizeContainer=function(t,e){function i(){n.$lightbox.find(".lb-dataContainer").width(a),n.$lightbox.find(".lb-prevLink").height(s),n.$lightbox.find(".lb-nextLink").height(s),n.showImage()}var n=this,r=this.$outerContainer.outerWidth(),o=this.$outerContainer.outerHeight(),a=t+this.containerLeftPadding+this.containerRightPadding,s=e+this.containerTopPadding+this.containerBottomPadding;r!==a||o!==s?this.$outerContainer.animate({width:a,height:s},this.options.resizeDuration,"swing",function(){i()}):i()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").hide(),this.$lightbox.find(".lb-image").fadeIn("slow"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").
1css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var e=this;void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title&&this.$lightbox.find(".lb-caption").html(this.album[this.currentImageIndex].title).fadeIn("fast").find("a").on("click",function(){location.href=t(this).attr("href")}),this.album.length>1&&this.options.showImageNumberLabel?this.$lightbox.find(".lb-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".lb-number").hide(),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return e.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link);this.currentImageIndex>0&&((new Image).src=this.album[this.currentImageIndex-1].link)},e.prototype.enableKeyboardNav=function(){t(document).on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){t(document).off(".keyboard")},e.prototype.keyboardAction=function(t){var e=t.keyCode,i=String.fromCharCode(e).toLowerCase();27===e||i.match(/x|o|c/)?this.end():"p"===i||37===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):("n"===i||39===e)&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),t("select, object, embed").css({visibility:"visible"})},e}();t(function(){var t=new e;new i(t)})}.call(this),window.mr_parallax=new mr_parallax,window.mr=window.mr||{},mr=function(t,e,i,n){"use strict";var r={documentReady:[],documentReadyDeferred:[],windowLoad:[],windowLoadDeferred:[]};function o(i){i=void 0===i?e:i,r.documentReady.concat(r.documentReadyDeferred).forEach(function(t){t(i)}),t.status.documentReadyRan=!0,t.status.windowLoadPending&&a(t.setContext())}function a(i){t.status.documentReadyRan?(t.status.windowLoadPending=!1,i="object"==typeof i?e:i,r.windowLoad.concat(r.windowLoadDeferred).forEach(function(t){t(i)})):t.status.windowLoadPending=!0}return(t=t||{}).status={documentReadyRan:!1,windowLoadPending:!1},e(n).ready(o),e(i).on("load",a),t.setContext=function(t){return void 0!==t?function(i){return e(t).find(i)}:e},t.components=r,t.documentReady=o,t.windowLoad=a,t}(window.mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.util={},t.util.requestAnimationFrame=i.requestAnimationFrame||i.mozRequestAnimationFrame||i.webkitRequestAnimationFrame||i.msRequestAnimationFrame,t.util.documentReady=function(t){var e=(new Date).getFullYear();t(".update-year").text(e)},t.util.windowLoad=function(t){t("[data-delay-src]").each(function(){var e=t(this);e.attr("src",e.attr("data-delay-src")),e.removeAttr("data-delay-src")})},t.util.getURLParameter=function(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[void 0,""])[1].replace(/\+/g,"%20"))||null},t.util.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.util.slugify=function(t,e){return void 0!==e?t.replace(/ +/g,""):t.toLowerCase().replace(/[\~\!\@\#\$\%\^\&\*\(\)\-\_\=\+\]\[\}\{\'\"\;\\\:\?\/\>\<\.\,]+/g,"").replace(/ +/g,"-")},t.util.sortChildrenByText=function(t,i){var n=e(t),r=n.children().get(),o=-1,a=1;void 0!==i&&(o=1,a=-1),r.sort(function(t,i){var n=e(t).text(),r=e(i).text();return n<r?o:n>r?a:0}),n.empty(),e(r).each(function(t,e){n.append(e)})},t.util.idleSrc=function(t,i){i=void 0!==i?i:"",(t.is(i+"[src]")?t:t.find(i+"[src]")).each(function(t,i){var n=(i=e(i)).attr("src");void 0===i.attr("data-src")&&i.attr("data-src",n),i.attr("src","")})},t.util.activateIdleSrc=function(t,i){i=void 0!==i?i:"",(t.is(i+"[data-src]")?t:t.find(i+"[data-src]")).each(function(t,i){var n=(i=e(i)).attr("data-src");i.attr("src",n)})},t.util.pauseVideo=function(t){(t.is("video")?t:t.find("video")).each(function(t,i){e(i).get(0).pause()})},t.util.parsePixels=function(t){var n=e(i).height();return/^[1-9]{1}[0-9]*[p][x]$/.test(t)?parseInt(t.replace("px",""),10):/^[1-9]{1}[0-9]*[v][h]$/.test(t)?n*(parseInt(t.replace("vh",""),10)/100):-1},t.util.removeHash=function(){history.pushState("",n.title,i.location.pathname+i.location.search)},t.components.documentReady.push(t.util.documentReady),t.components.windowLoad.push(t.util.windowLoad),t}
1(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.window={},t.window.height=e(i).height(),t.window.width=e(i).width(),e(i).on("resize",function(){t.window.height=e(i).height(),t.window.width=e(i).width()}),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";t.scroll={};var r=i.requestAnimationFrame||i.mozRequestAnimationFrame||i.webkitRequestAnimationFrame||i.msRequestAnimationFrame;t.scroll.listeners=[],t.scroll.busy=!1,t.scroll.y=0,t.scroll.x=0;var o=function(e){jQuery(i).off("scroll.mr"),jQuery(i).on("scroll.mr",function(e){!1===t.scroll.busy&&(t.scroll.busy=!0,r(function(e){t.scroll.update(e)})),e.stopPropagation&&e.stopPropagation()})};return t.scroll.update=function(e){var n=void 0!==i.mr_parallax;if(t.scroll.y=n?mr_parallax.mr_getScrollPosition():i.pageYOffset,t.scroll.busy=!1,n&&mr_parallax.mr_parallaxBackground(),t.scroll.listeners.length>0)for(var r=0,o=t.scroll.listeners.length;r<o;r++)t.scroll.listeners[r](e)},t.scroll.documentReady=o,t.components.documentReady.push(o),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";t.scroll.classModifiers={},t.scroll.classModifiers.rules=[],t.scroll.classModifiers.parseScrollRules=function(e){return e.attr("data-scroll-class").split(";").forEach(function(i){var n,r,o={};if(2===(n=i.replace(/\s/g,"").split(":")).length){if(!((r=t.util.parsePixels(n[0]))>-1))return!1;if(o.scrollPoint=r,!n[1].length)return!1;var a=n[1];o.toggleClass=a,o.hasClass=e.hasClass(a),o.element=e.get(0),t.scroll.classModifiers.rules.push(o)}}),!!t.scroll.classModifiers.rules.length},t.scroll.classModifiers.update=function(e){for(var i,n=t.scroll.y,r=t.scroll.classModifiers.rules,o=r.length;o--;)n>(i=r[o]).scrollPoint&&!i.hasClass&&(i.element.classList.add(i.toggleClass),i.hasClass=t.scroll.classModifiers.rules[o].hasClass=!0),n<i.scrollPoint&&i.hasClass&&(i.element.classList.remove(i.toggleClass),i.hasClass=t.scroll.classModifiers.rules[o].hasClass=!1)};var r=function(){e('.main-container [data-scroll-class*="pos-fixed"]').each(function(){var t=e(this);t.css("max-width",t.parent().outerWidth()),t.parent().css("min-height",t.outerHeight())})},o=function(e){e("[data-scroll-class]").each(function(){var i=e(this);t.scroll.classModifiers.parseScrollRules(i)||console.log("Error parsing scroll rules on: "+i)}),r(),e(i).on("resize",r),t.scroll.classModifiers.rules.length&&t.scroll.listeners.push(t.scroll.classModifiers.update)};return t.components.documentReady.push(o),t.scroll.classModifiers.documentReady=o,t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.accordions=t.accordions||{},t.accordions.documentReady=function(e){e(".accordion__title").on("click",function(){t.accordions.activatePanel(e(this))}),e(".accordion").each(function(){var t=e(this),i=t.outerHeight(!0);t.css("min-height",i)}),""!==i.location.hash&&"#"!==i.location.hash&&null===i.location.hash.match(/#\/.*/)&&e(".accordion > li > .accordion__title"+i.location.hash).length&&t.accordions.activatePanelById(i.location.hash,!0),jQuery(n).on("click",'a[href^="#"]:not(a[href="#"])',function(){e(".accordion > li > .accordion__title"+e(this).attr("href")).length&&t.accordions.activatePanelById(e(this).attr("href"),!0)})},t.accordions.activatePanel=function(t,i){var r=e(t),o=r.closest(".accordion"),a=r.closest("li"),s=n.createEvent("Event"),l=n.createEvent("Event");if(s.initEvent("panelOpened.accordions.mr",!0,!0),l.initEvent("panelClosed.accordions.mr",!0,!0),a.hasClass("active"))!0!==i&&(a.removeClass("active"),r.trigger("panelClosed.accordions.mr").get(0).dispatchEvent(l));else if(o.hasClass("accordion--oneopen")){var u=o.find("li.active");u.length&&(u.removeClass("active"),u.trigger("panelClosed.accordions.mr").get(0).dispatchEvent(l)),a.addClass("active"),a.trigger("panelOpened.accordions.mr").get(0).dispatchEvent(s)}else a.is(".active")||a.trigger("panelOpened.accordions.mr").get(0).dispatchEvent(s),a.addClass("active")},t.accordions.activatePanelById=function(i,n){var r;""!==i&&"#"!==i&&null===i.match(/#\/.*/)&&(r=e(".accordion > li > .accordion__title#"+i.replace("#",""))).length&&(e("html, body").stop(!0).animate({scrollTop:r.offset().top-50},1200),t.accordions.activatePanel(r,n))},t.components.documentReady.push(t.accordions.documentReady),t}
1(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.alerts=t.alerts||{},t.alerts.documentReady=function(t){t(".alert__close").on("click touchstart",function(){jQuery(this).closest(".alert").addClass("alert--dismissed")})},t.components.documentReady.push(t.alerts.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.backgrounds=t.backgrounds||{},t.backgrounds.documentReady=function(t){t(".background-image-holder").each(function(){var e=t(this).children("img").attr("src");t(this).css("background",'url("'+e+'")').css("background-position","initial").css("opacity","1")})},t.components.documentReady.push(t.backgrounds.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.bars=t.bars||{},t.bars.documentReady=function(t){t('.nav-container .bar[data-scroll-class*="fixed"]:not(.bar--absolute)').each(function(){var e=t(this),i=e.outerHeight(!0);e.closest(".nav-container").css("min-height",i)})},t.components.documentReady.push(t.bars.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.cookies={getItem:function(t){return t&&decodeURIComponent(n.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(t,e,i,r,o,a){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var s="";if(i)switch(i.constructor){case Number:s=i===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+i;break;case String:s="; expires="+i;break;case Date:s="; expires="+i.toUTCString()}return n.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+s+(o?"; domain="+o:"")+(r?"; path="+r:"")+(a?"; secure":""),!0},removeItem:function(t,e,i){return!!this.hasItem(t)&&(n.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(e?"; path="+e:""),!0)},hasItem:function(t){return!!t&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(n.cookie)},keys:function(){for(var t=n.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=t.length,i=0;i<e;i++)t[i]=decodeURIComponent(t[i]);return t}},t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.countdown=t.countdown||{},t.countdown.options=t.countdown.options||{},t.countdown.documentReady=function(e){e(".countdown[data-date]").each(function(){var i,n=e(this),r=n.attr("data-date"),o=void 0!==n.attr("data-days-text")?"%D "+n.attr("data-days-text")+" %H:%M:%S":"%D days %H:%M:%S",a=(o=void 0!==t.countdown.options.format?t.countdown.options.format:o,void 0!==n.attr("data-date-format")?n.attr("data-date-format"):o);void 0!==n.attr("data-date-fallback")&&(i=n.attr("data-date-fallback")||"Timer Done"),n.countdown(r,function(t){t.elapsed?n.text(i):n.text(t.strftime(a))})})},t.components.documentReadyDeferred.push(t.countdown.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";t.datepicker=t.datepicker||{};var r=t.datepicker.options||{};return t.datepicker.documentReady=function(t){t(".datepicker").length&&t(".datepicker").pickadate(r)},t.components.documentReadyDeferred.push(t.datepicker.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.dropdowns=t.dropdowns||{},t.dropdowns.done=!1,t.dropdowns.documentReady=function(e){var r=!1;e('html[dir="rtl"]').length&&(r=!0),t.dropdowns.done||(jQuery(n).on("click","body:not(.dropdowns--hover) .dropdown, body.dropdowns--hover .dropdown.dropdown--click",function(t){var i=jQuery(this);jQuery(t.target).is(".dropdown--active > .dropdown__trigger")?(i.siblings().removeClass("dropdown--active").find(".dropdown").removeClass("dropdown--active"),i.toggleClass("dropdown--active")):(e(".dropdown--active").removeClass("dropdown--active"),i.addClass("dropdown--active"))}),jQuery(n).on("click touchstart","body:not(.dropdowns--hover)",function(t){jQuery(t.target).is('[class*="dropdown"], [class*="dropdown"] *')||e(".dropdown--active").removeClass("dropdown--active")}),jQuery("body.dropdowns--hover .dropdown").on("click",function(t){t.stopPropagation(),jQuery(this).toggleClass("dropdown--active")}),jQuery("body").append('<div class="container containerMeasure" style="opacity:0;pointer-events:none;"></div>'),!1===r?(t.dropdowns.repositionDropdowns(e),jQuery(i).on("resize",function(){t.dropdowns.repositionDropdowns(e)})):(t.dropdowns.repositionDropdownsRtl(e),jQuery(i).on("resize",function(){t.dropdowns.repositionDropdownsRtl(e)})),t.dropdowns.done=!0)},t.dropdowns.repositionDropdowns=function(t){t(".dropdown__container").each(function(){var t,e,i,n;jQuery(this).css("left",""),e=(t=jQuery(this)).offset().left,i=jQuery(".containerMeasure").offset().left,n=t.closest(".dropdown").offset().left,t.css("left",-e+i),t.find('.dropdown__content:not([class*="lg-12"])').length&&t.find(".dropdown__content").css("left",n-i)}),t(".dropdown__content").each(function(){var t,e,n,r,o;
1n=(t=jQuery(this)).offset().left+(e=t.outerWidth(!0)),r=jQuery(i).outerWidth(!0),o=jQuery(".containerMeasure").outerWidth()-e,n>r&&t.css("left",o)})},t.dropdowns.repositionDropdownsRtl=function(t){var e=jQuery(i).width();t(".dropdown__container").each(function(){var t,i,n,r;jQuery(this).css("left",""),t=jQuery(this),i=e-(t.offset().left+t.outerWidth(!0)),n=jQuery(".containerMeasure").offset().left,r=e-(t.closest(".dropdown").offset().left+t.closest(".dropdown").outerWidth(!0)),t.css("right",-i+n),t.find('.dropdown__content:not([class*="lg-12"])').length&&t.find(".dropdown__content").css("right",r-n)}),t(".dropdown__content").each(function(){var t,n,r,o,a;t=jQuery(this),r=e-(t.offset().left+t.outerWidth(!0))+(n=t.outerWidth(!0)),o=jQuery(i).outerWidth(!0),a=jQuery(".containerMeasure").outerWidth()-n,r>o&&t.css("right",a)})},t.components.documentReady.push(t.dropdowns.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.forms=t.forms||{},t.forms.captcha={},t.forms.captcha.widgets=[],t.forms.captcha.done=!1,t.forms.documentReady=function(e){t.forms.captcha.widgets=[],e('.input-checkbox input[type="checkbox"], .input-radio input[type="radio"]').each(function(t){var i=e(this),n=i.siblings("label"),r="input-assigned-"+t;void 0===i.attr("id")||""===i.attr("id")?(i.attr("id",r),n.attr("for",r)):(r=i.attr("id"),n.attr("for",r))}),e(".input-number__controls > span").off("click.mr").on("click.mr",function(){var t=jQuery(this),e=t.closest(".input-number"),i=e.find('input[type="number"]'),n=i.attr("max"),r=i.attr("min"),o=1,a=parseInt(i.val(),10);e.is("[data-step]")&&(o=parseInt(e.attr("data-step"),10)),t.hasClass("input-number__increase")?a+o<=n&&i.val(a+o):a-o>=r&&i.val(a-o)}),e(".input-file .btn").off("click.mr").on("click.mr",function(){return e(this).siblings("input").trigger("click"),!1}),e('form.form-email, form[action*="list-manage.com"], form[action*="createsend.com"]').attr("novalidate",!0).off("submit").on("submit",t.forms.submit),e(n).on("change, input, paste, keyup",".attempted-submit .field-error",function(){e(this).removeClass("field-error")}),e('form[data-recaptcha-sitekey]:not([data-recaptcha-sitekey=""])').each(function(){var e,i,n,r,o,a=jQuery(this),s=a.find("div.recaptcha");r=void 0!==(r=a.attr("data-recaptcha-theme"))?r:"",o=void 0!==(o=a.attr("data-recaptcha-size"))?o:"",t.forms.captcha.sitekey=a.attr("data-recaptcha-sitekey"),s.length||(e=a.find("button[type=submit]").closest('[class*="col-"]'),s=jQuery("<div>").addClass("recaptcha"),jQuery("<div>").addClass("col-12").append(s).insertBefore(e)),i={element:s.get(0),parentForm:a,theme:r,size:o},t.forms.captcha.widgets.push(i),!1===t.forms.captcha.done?jQuery('script[src*="recaptcha/api.js"]').length||("https://www.google.com/recaptcha/api.js?onload=mrFormsCaptchaInit&render=explicit",(n=jQuery("<script async defer>")).attr("src","https://www.google.com/recaptcha/api.js?onload=mrFormsCaptchaInit&render=explicit"),jQuery("body").append(n),t.forms.captcha.done=!0):"undefined"!=typeof grecaptcha&&t.forms.captcha.renderWidgets()})},t.forms.submit=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1;var r,o,a,s,l,u=e("body"),c=e(n.target).closest("form"),d=void 0!==c.attr("action")?c.attr("action"):"",h=c.find('button[type="submit"], input[type="submit"]'),f=c.attr("original-error"),p=!!c.find("div.recaptcha").length;if(u.find(".form-error, .form-success").remove(),h.attr("data-text",h.text()),s=c.attr("data-error")?c.attr("data-error"):"Please fill all fields correctly",l=c.attr("data-success")?c.attr("data-success"):"Thanks, we'll be in touch shortly",u.append('<div class="form-error" style="display: none;">'+s+"</div>"),u.append('<div class="form-success" style="display: none;">'+l+"</div>"),o=u.find(".form-error"),a=u.find(".form-success"),c.addClass("attempted-submit"),-1!==d.indexOf("createsend.com")||-1!==d.indexOf("list-manage.com"))if(console.log("Mail list form signup detected."),void 0!==f&&!1!==f&&o.html(f),1!==t.forms.validateFields(c)){c.removeClass("attempted-submit"),o.fadeOut(200),h.addClass("btn--loading");try{e.ajax({url:c.attr("action"),crossDomain:!0,data:c.serialize(),method:"GET",cac
1he:!1,dataType:"json",contentType:"application/json; charset=utf-8",success:function(e){"success"!==e.result&&200!==e.Status?(o.attr("original-error",o.text()),o.html(e.msg).stop(!0).fadeIn(1e3),a.stop(!0).fadeOut(1e3),h.removeClass("btn--loading")):(h.removeClass("btn--loading"),void 0!==(r=c.attr("data-success-redirect"))&&!1!==r&&""!==r?i.location=r:(t.forms.resetForm(c),t.forms.showFormSuccess(a,o,1e3,5e3,500)))}})}catch(e){o.attr("original-error",o.text()),o.html(e.message),t.forms.showFormError(a,o,1e3,5e3,500),h.removeClass("btn--loading")}}else t.forms.showFormError(a,o,1e3,5e3,500);else void 0!==f&&!1!==f&&o.text(f),1===t.forms.validateFields(c)?t.forms.showFormError(a,o,1e3,5e3,500):(c.removeClass("attempted-submit"),o.fadeOut(200),h.addClass("btn--loading"),jQuery.ajax({type:"POST",url:""!==d?d:"mail/mail.php",data:c.serialize()+"&url="+i.location.href+"&captcha="+p,success:function(n){h.removeClass("btn--loading"),e.isNumeric(n)?parseInt(n,10)>0&&(void 0!==(r=c.attr("data-success-redirect"))&&!1!==r&&""!==r&&(i.location=r),t.forms.resetForm(c),t.forms.showFormSuccess(a,o,1e3,5e3,500),t.forms.captcha.resetWidgets()):(o.attr("original-error",o.text()),o.text(n).stop(!0).fadeIn(1e3),a.stop(!0).fadeOut(1e3))},error:function(t,e,i){o.attr("original-error",o.text()),o.text(i).stop(!0).fadeIn(1e3),a.stop(!0).fadeOut(1e3),h.removeClass("btn--loading")}}));return!1},t.forms.validateFields=function(t){var i,n=e(n),r=!1;if((t=e(t)).find('.validate-required[type="checkbox"]').each(function(){var t=e(this);e('[name="'+e(this).attr("name")+'"]:checked').length||(r=1,e(this).attr("data-name")||"check",t.parent().addClass("field-error"))}),t.find(".validate-required, .required, [required]").not('input[type="checkbox"]').each(function(){""===e(this).val()?(e(this).addClass("field-error"),r=1):e(this).removeClass("field-error")}),t.find('.validate-email, .email, [name*="cm-"][type="email"]').each(function(){/(.+)@(.+){2,}\.(.+){2,}/.test(e(this).val())?e(this).removeClass("field-error"):(e(this).addClass("field-error"),r=1)}),t.find(".validate-number-dash").each(function(){/^[0-9][0-9-]+[0-9]$/.test(e(this).val())?e(this).removeClass("field-error"):(e(this).addClass("field-error"),r=1)}),t.find("div.recaptcha").length&&void 0!==t.attr("data-recaptcha-sitekey")&&(i=e(t.find("div.recaptcha")),""!==grecaptcha.getResponse(t.data("recaptchaWidgetID"))?i.removeClass("field-error"):(i.addClass("field-error"),r=1)),t.find(".field-error").length){var o=e(t).find(".field-error:first");o.length&&e("html, body").stop(!0).animate({scrollTop:o.offset().top-100},1200,function(){o.focus()})}else n.find(".form-error").fadeOut(1e3);return r},t.forms.showFormSuccess=function(t,e,i,n,r){t.stop(!0).fadeIn(i),e.stop(!0).fadeOut(i),setTimeout(function(){t.stop(!0).fadeOut(r)},n)},t.forms.showFormError=function(t,e,i,n,r){e.stop(!0).fadeIn(i),t.stop(!0).fadeOut(i),setTimeout(function(){e.stop(!0).fadeOut(r)},n)},t.forms.resetForm=function(t){(t=e(t)).get(0).reset(),t.find(".input-radio, .input-checkbox").removeClass("checked"),t.find("[data-default-value]").filter('[type="text"],[type="number"],[type="email"],[type="url"],[type="search"],[type="tel"]').each(function(){var t=jQuery(this);t.val(t.attr("data-default-value"))})},i.mrFormsCaptchaInit=function(){t.forms.captcha.renderWidgets()},t.forms.captcha.renderWidgets=function(){t.forms.captcha.widgets.forEach(function(e){""===e.element.innerHTML.replace(/[\s\xA0]+/g,"")&&(e.id=grecaptcha.render(e.element,{sitekey:t.forms.captcha.sitekey,theme:e.theme,size:e.size,callback:t.forms.captcha.setHuman}),e.parentForm.data("recaptchaWidgetID",e.id))})},t.forms.captcha.resetWidgets=function(){t.forms.captcha.widgets.forEach(function(t){grecaptcha.reset(t.id)})},t.forms.captcha.setHuman=function(){jQuery("div.recaptcha.field-error").removeClass("field-error")},t.components.documentReadyDeferred.push(t.forms.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.granim=t.granim||{},t.granim.documentReady=function(e){e("[data-gradient-bg]").each(function(i,n){var r,o,a,s,l=e(this),u="granim-"+i,c=l.attr("data-gradient-bg"),d=[],h=[],f={};
1if(l.prepend('<canvas id="'+u+'"></canvas>'),!0===/^(#[0-9|a-f|A-F]{6}){1}([ ]*,[ ]*#[0-9|a-f|A-F]{6})*$/.test(c)){for((r=(c=(c=c.replace(" ","")).split(",")).length)%2!=0&&c.push(c[r-1]),o=0;o<r/2;o++)(h=[]).push(c.shift()),h.push(c.shift()),d.push(h);f.states={"default-state":{gradients:d}}}a={element:"#"+u,name:"basic-gradient",direction:"left-right",opacity:[1,1],isPausedWhenNotInView:!0,states:{"default-state":{gradients:d}}},s=jQuery.extend({},a,t.granim.options,f),e(this).data("gradientOptions",s);e(this),new Granim(s)})},t.components.documentReadyDeferred.push(t.granim.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.instagram=t.instagram||{},t.instagram.documentReady=function(e){var i,n,r={};if(e(".instafeed").length){var o,a,s="4079540202.b9b1d8a.1d13c245c68d4a17bfbff87919aaeb14",l="b9b1d8ae049d4153b24a6332f0088686";e(".instafeed[data-access-token][data-client-id]").length&&(""!==(o=e(".instafeed[data-access-token][data-client-id]").first().attr("data-access-token"))&&(s=o),""!==(a=e(".instafeed[data-access-token][data-client-id]").first().attr("data-client-id"))&&(l=a)),jQuery.fn.spectragram.accessData={accessToken:s,clientID:l}}e(".instafeed").each(function(){var o=e(this);o.attr("data-user-name");i={query:"mediumrarethemes",max:12},r.max=o.attr("data-amount"),r.query=o.attr("data-user-name"),n=jQuery.extend({},i,t.instagram.options,r),o.append("<ul></ul>"),o.children("ul").spectragram("getUserFeed",n)})},t.components.documentReadyDeferred.push(t.instagram.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.maps=t.maps||{},t.maps.options=t.maps.options||{},t.maps.documentReady=function(e){e(".map-holder").on("click",function(){e(this).addClass("interact")}).removeClass("interact");var i=e(".map-container[data-maps-api-key]");i.length&&(i.addClass("gmaps-active"),t.maps.initAPI(e),t.maps.init())},t.maps.initAPI=function(t){if(n.querySelector("[data-maps-api-key]")&&!n.querySelector(".gMapsAPI")&&t("[data-maps-api-key]").length){var e=n.createElement("script"),i=t("[data-maps-api-key]:first").attr("data-maps-api-key");""!==(i=void 0!==i?i:"")&&(e.type="text/javascript",e.src="https://maps.googleapis.com/maps/api/js?key="+i+"&callback=mr.maps.init",e.className="gMapsAPI",n.body.appendChild(e))}},t.maps.init=function(){void 0!==i.google&&void 0!==i.google.maps&&(t.maps.instances=[],jQuery(".gmaps-active").each(function(){var e,i,r,o,a,s,l=this,u=jQuery(this),c=jQuery(n).width()>766,d=(u.attr("data-zoom-controls"),void 0!==u.attr("data-zoom-controls")&&u.attr("data-zoom-controls")),h=void 0!==u.attr("data-latlong")&&u.attr("data-latlong"),f=!!h&&1*h.substr(0,h.indexOf(",")),p=!!h&&1*h.substr(h.indexOf(",")+1),m=new google.maps.Geocoder,y=void 0!==u.attr("data-address")?u.attr("data-address").split(";"):[""],g={},v={};(s=n.createEvent("Event")).initEvent("mapCreated.maps.mr",!0,!0),r={disableDefaultUI:!0,draggable:c,scrollwheel:!1,styles:[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}],zoom:17,zoomControl:!1},g.styles=void 0!==u.attr("data-map-style")?JSON.parse(u.attr("data-map-style")):void 0,g.zoom=u.attr("data-map-zoom")?parseInt(u.attr("data-map-zoom"),10):void 0,g.zoomControlOptions=!1!==d?{position:google.maps.ControlPosition[d]}:void 0,i={icon:{url:("undefined"!=typeof mr_variant?"../":"")+"img/mapmarker.png",scaledSize:new google.maps.Size(50,50)},title:"We Are Here",optimised:!1}
1,v.icon=void 0!==u.attr("data-marker-image")?{url:u.attr("data-marker-image"),scaledSize:new google.maps.Size(50,50)}:void 0,v.title=u.attr("data-marker-title"),o=jQuery.extend({},r,t.maps.options.map,g),a=jQuery.extend({},i,t.maps.options.marker,v),void 0!==y&&""!==y[0]?m.geocode({address:y[0].replace("[nomarker]","")},function(i,n){n===google.maps.GeocoderStatus.OK?(e=new google.maps.Map(l,o),t.maps.instances.push(e),jQuery(l).trigger("mapCreated.maps.mr").get(0).dispatchEvent(s),e.setCenter(i[0].geometry.location),y.forEach(function(t){if(/(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)/.test(t)){var i=t.split(",");new google.maps.Marker(jQuery.extend({},a,{position:{lat:1*i[0],lng:1*i[1]},map:e}))}else t.indexOf("[nomarker]")<0&&(new google.maps.Geocoder).geocode({address:t.replace("[nomarker]","")},function(t,i){i===google.maps.GeocoderStatus.OK?new google.maps.Marker(jQuery.extend({},a,{map:e,position:t[0].geometry.location})):console.log("Map marker error: "+i)})})):console.log("There was a problem geocoding the address.")}):void 0!==f&&""!==f&&!1!==f&&void 0!==p&&""!==p&&!1!==p&&(o.center={lat:f,lng:p},e=new google.maps.Map(l,o),new google.maps.Marker(jQuery.extend({},a,{position:{lat:f,lng:p},map:e})),t.maps.instances.push(e),jQuery(l).trigger("mapCreated.maps.mr").get(0).dispatchEvent(s))}))},t.components.documentReady.push(t.maps.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.masonry=t.masonry||{},t.masonry.documentReady=function(e){t.masonry.updateFilters(),e(n).on("click touchstart",".masonry__filters li:not(.js-no-action)",function(){var t=e(this),i=t.closest(".masonry").find(".masonry__container"),n="*";"*"!==t.attr("data-masonry-filter")&&(n=".filter-"+t.attr("data-masonry-filter")),t.siblings("li").removeClass("active"),t.addClass("active"),i.removeClass("masonry--animate"),i.on("layoutComplete",function(){e(this).addClass("masonry--active"),void 0!==mr_parallax&&setTimeout(function(){mr_parallax.profileParallaxElements()},100)}),i.isotope({filter:n})})},t.masonry.windowLoad=function(){e(".masonry").each(function(){var i,n=e(this).find(".masonry__container"),r=e(this),o="*",a={};i={itemSelector:".masonry__item",filter:"*",masonry:{columnWidth:".masonry__item"}},r.is("[data-default-filter]")&&(o=".filter-"+(o=r.attr("data-default-filter").toLowerCase()),r.find("li[data-masonry-filter]").removeClass("active"),r.find('li[data-masonry-filter="'+r.attr("data-default-filter").toLowerCase()+'"]').addClass("active")),a.filter="*"!==o?o:void 0,n.on("layoutComplete",function(){n.addClass("masonry--active"),void 0!==mr_parallax&&setTimeout(function(){mr_parallax.profileParallaxElements()},100)}),n.isotope(jQuery.extend({},i,t.masonry.options,a))})},t.masonry.updateFilters=function(i){e(i=void 0!==i?i:".masonry").each(function(){var i,n=e(this),r=n.find(".masonry__container"),o=n.find(".masonry__filters"),a=void 0!==o.attr("data-filter-all-text")?o.attr("data-filter-all-text"):"All";n.is(".masonry")&&r.find(".masonry__item[data-masonry-filter]").length&&((i=o.find("> ul")).length||(i=o.append("<ul></ul>").find("> ul")),r.find(".masonry__item[data-masonry-filter]").each(function(){var n=e(this),r=n.attr("data-masonry-filter"),o=[];void 0!==r&&""!==r&&(o=r.split(",")),e(o).each(function(e,r){var o=t.util.slugify(r);n.addClass("filter-"+o),i.find('[data-masonry-filter="'+o+'"]').length||i.append('<li data-masonry-filter="'+o+'">'+r+"</li>")})}),i.find("[data-masonry-filter]").each(function(){var t=e(this),i=t.text();"*"!==e(this).attr("data-masonry-filter")&&(n.find('.masonry__item[data-masonry-filter*="'+i+'"]').length||t.remove())}),t.util.sortChildrenByText(e(this).find(".masonry__filters ul")),i.find('[data-masonry-filter="*"]').length||i.prepend('<li class="active" data-masonry-filter="*">'+a+"</li>"))})},t.masonry.updateLayout=function(t){e(t=void 0!==t?t:".masonry").each(function(){var t=e(this),i=t.find(".masonry__item:not([style])"),n=t.find(".masonry__container");t.is(".masonry")&&(i.length&&n.isotope("appended",i).isotope("layout"),n.isotope("layout"))})},t.components.documentReady.push(t.masonry.documentReady),t.components.windowLoad.push(t.masonry.windowLoad),t}
1(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.modals=t.modals||{},t.modals.documentReady=function(e){var r=e("div.main-container");if(r.length?(jQuery('<div class="all-page-modals"></div>').insertAfter(r),t.modals.allModalsContainer=e("div.all-page-modals")):(jQuery("body").append('<div class="all-page-modals"></div>'),t.modals.allModalsContainer=jQuery("body div.all-page-modals")),e(".modal-container").each(function(){var n=e(this),r=(e(i),n.find(".modal-content"));if(n.find(".modal-close").length||n.find(".modal-content").append('<div class="modal-close modal-close-cross"></div>'),void 0!==r.attr("data-width")){var o=1*r.attr("data-width").substr(0,r.attr("data-width").indexOf("%"));r.css("width",o+"%")}if(void 0!==r.attr("data-height")){var a=1*r.attr("data-height").substr(0,r.attr("data-height").indexOf("%"));r.css("height",a+"%")}t.util.idleSrc(n,"iframe")}),e(".modal-instance").each(function(i){var n=e(this),r=n.find(".modal-container"),o=(n.find(".modal-content"),n.find(".modal-trigger"));o.attr("data-modal-index",i),r.attr("data-modal-index",i),void 0!==r.attr("data-modal-id")&&o.attr("data-modal-id",r.attr("data-modal-id")),r=r.detach(),t.modals.allModalsContainer.append(r)}),e(".modal-trigger").on("click",function(){var i,n,r=e(this);return void 0!==r.attr("data-modal-id")?(i=r.attr("data-modal-id"),n=t.modals.allModalsContainer.find('.modal-container[data-modal-id="'+i+'"]')):(i=e(this).attr("data-modal-index"),n=t.modals.allModalsContainer.find('.modal-container[data-modal-index="'+i+'"]')),t.util.activateIdleSrc(n,"iframe"),t.modals.autoplayVideo(n),t.modals.showModal(n),!1}),jQuery(n).on("click",".modal-close",t.modals.closeActiveModal),jQuery(n).keyup(function(e){27===e.keyCode&&t.modals.closeActiveModal()}),e(".modal-container:not(.modal--prevent-close)").on("click",function(e){e.target===this&&t.modals.closeActiveModal()}),e(".modal-container[data-autoshow]").each(function(){var i=e(this),n=1*i.attr("data-autoshow");t.util.activateIdleSrc(i),t.modals.autoplayVideo(i),void 0!==i.attr("data-cookie")&&t.cookies.hasItem(i.attr("data-cookie"))||t.modals.showModal(i,n)}),e(".modal-container[data-show-on-exit]").each(function(){var i=jQuery(this),r=i.attr("data-show-on-exit"),o=0;i.attr("data-delay")&&(o=parseInt(i.attr("data-delay"),10)||0),e(r).length&&(i.prepend(e('<i class="ti-close close-modal">')),jQuery(n).on("mouseleave",r,function(){e(".modal-active").length||void 0!==i.attr("data-cookie")&&t.cookies.hasItem(i.attr("data-cookie"))||t.modals.showModal(i,o)}))}),2===i.location.href.split("#").length){var o=i.location.href.split("#").pop();e('[data-modal-id="'+o+'"]').length&&(t.modals.closeActiveModal(),t.modals.showModal(e('[data-modal-id="'+o+'"]')))}jQuery(n).on("click",'a[href^="#"]',function(){var i=e(this).attr("href").replace("#","");e('[data-modal-id="'+i+'"]').length&&(t.modals.closeActiveModal(),setTimeout(t.modals.showModal,500,'[data-modal-id="'+i+'"]',0))}),jQuery(n).on("wheel mousewheel scroll",".modal-content, .modal-content .scrollable",function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),this.scrollTop+=t.originalEvent.deltaY})},t.modals.showModal=function(t,i){var r=void 0!==i?1*i:0;e(t).length&&setTimeout(function(){var i=n.createEvent("Event");i.initEvent("modalOpened.modals.mr",!0,!0),e(t).addClass("modal-active").trigger("modalOpened.modals.mr").get(0).dispatchEvent(i)},r)},t.modals.closeActiveModal=function(){var e=jQuery("body div.modal-active"),r=n.createEvent("Event");t.util.idleSrc(e,"iframe"),t.util.pauseVideo(e),void 0!==e.attr("data-cookie")&&t.cookies.setItem(e.attr("data-cookie"),"true",1/0,"/"),e.length&&(e.is("[data-modal-id]")&&i.location.hash==="#"+e.attr("data-modal-id")&&t.util.removeHash(),r.initEvent("modalClosed.modals.mr",!0,!0),e.removeClass("modal-active").trigger("modalClosed.modals.mr").get(0).dispatchEvent(r))},t.modals.autoplayVideo=function(t){t.find("video[autoplay]").length&&t.find("video").get(0).play()},t.components.documentReady.push(t.modals.documentReady),t}
1(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.newsletters=t.newsletters||{},t.newsletters.documentReady=function(e){var i,n,r,o,a,s;e('form[action*="createsend.com"]').each(function(){(i=e(this)).attr("novalidate","novalidate"),i.is(".form--no-placeholders")?i.find("input[placeholder]").removeAttr("placeholder"):i.find("input:not([checkbox]):not([radio])").each(function(){var t=e(this);void 0!==t.attr("placeholder")?""===t.attr("placeholder")&&t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),i.is(".form--no-labels")&&t.siblings("label").first().remove()):t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),i.is(".form--no-labels")&&t.siblings("label").first().remove()),t.parent().is("p")&&t.unwrap()}),i.find("select").wrap('<div class="input-select"></div>'),i.find('input[type="radio"]').wrap('<div class="input-radio"></div>'),i.find('input[type="checkbox"]').each(function(){n=e(this),o=n.attr("id"),(r=i.find("label[for="+o+"]")).length||(r=e('<label for="'+o+'"></label>')),n.before('<div class="input-checkbox" data-id="'+o+'"></div>'),e('.input-checkbox[data-id="'+o+'"]').prepend(n),e('.input-checkbox[data-id="'+o+'"]').prepend(r)}),i.find('button[type="submit"]').each(function(){var t=e(this);t.addClass("btn"),t.parent().is("p")&&t.unwrap()}),i.find("[required]").attr("required","required").addClass("validate-required"),i.addClass("form--active"),t.newsletters.prepareAjaxAction(i)}),e('form[action*="list-manage.com"]').each(function(){(i=e(this)).attr("novalidate","novalidate"),i.is(".form--no-placeholders")?i.find("input[placeholder]").removeAttr("placeholder"):i.find("input:not([checkbox]):not([radio])").each(function(){var t=e(this);void 0!==t.attr("placeholder")?""===t.attr("placeholder")&&t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),i.is(".form--no-labels")&&t.siblings("label").first().remove()):t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),i.is(".form--no-labels")&&t.siblings("label").first().remove())}),i.is(".form--no-labels")&&i.find("input:not([checkbox]):not([radio])").each(function(){var t=e(this);t.siblings("label").length&&t.siblings("label").first().remove()}),i.find("select").wrap('<div class="input-select"></div>'),i.find('input[type="checkbox"]').each(function(){n=jQuery(this),a=n.parent(),(r=a.find("label")).length||(r=jQuery("<label>")),n.before('<div class="input-checkbox"></div>'),a.find(".input-checkbox").append(n),a.find(".input-checkbox").append(r)}),i.find('input[type="radio"]').each(function(){s=jQuery(this),a=s.closest("li"),(r=a.find("label")).length||(r=jQuery("<label>")),s.before('<div class="input-radio"></div>'),a.find(".input-radio").prepend(s),a.find(".input-radio").prepend(r)}),i.find('input[type="submit"]').each(function(){var t=e(this),i=jQuery("<button/>").attr("type","submit").attr("class",t.attr("class")).addClass("btn").text(t.attr("value"));t.parent().is("div.clear")&&t.unwrap(),i.insertBefore(t),t.remove()}),i.find("input").each(function(){var t=e(this);t.hasClass("required")&&t.removeClass("required").addClass("validate-required")}),i.find('input[type="email"]').removeClass("email").addClass("validate-email"),i.find("#mce-responses").remove(),i.find(".mc-field-group").each(function(){e(this).children().first().unwrap()}),i.find("[required]").attr("required","required").addClass("validate-required"),i.addClass("form--active"),t.newsletters.prepareAjaxAction(i)}),t.forms.documentReady(t.setContext("form.form--active"))},t.newsletters.prepareAjaxAction=function(t){var i=e(t).attr("action");/list-manage\.com/.test(i)&&"//"===(i=i.replace("/post?","/post-json?")+"&c=?").substr(0,2)&&(i="http:"+i),/createsend\.com/.test(i)&&(i+="?callback=?"),e(t).attr("action",i)},t.components.documentReady.push(t.newsletters.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.notifications=t.notifications||{},t.notifications.documentReady=function(e){e(".notification").each(function(){var t=e(this);t.find(".notification-close").length||t.append('<div class="notification-close-cross notification-close"></div>')}),e(".notification[data-autoshow]").each(function(){var i=e(this),n=parseInt(i.attr("data-autoshow"),10);
1void 0!==i.attr("data-cookie")&&t.cookies.hasItem(i.attr("data-cookie"))||t.notifications.showNotification(i,n)}),e("[data-notification-link]:not(.notification)").on("click",function(){var i=jQuery(this).attr("data-notification-link"),n=e('.notification[data-notification-link="'+i+'"]');return jQuery(".notification--reveal").addClass("notification--dismissed"),n.removeClass("notification--dismissed"),t.notifications.showNotification(n,0),!1}),e(".notification-close").on("click",function(){var e=jQuery(this);if(t.notifications.closeNotification(e),"#"===e.attr("href"))return!1}),e(".notification .inner-link").on("click",function(){var e=jQuery(this).closest(".notification").attr("data-notification-link");t.notifications.closeNotification(e)})},t.notifications.showNotification=function(e,i){var r=jQuery(e),o=void 0!==i?1*i:0,a=n.createEvent("Event");if(setTimeout(function(){a.initEvent("notificationOpened.notifications.mr",!0,!0),r.addClass("notification--reveal").trigger("notificationOpened.notifications.mr").get(0).dispatchEvent(a),r.closest("nav").addClass("notification--reveal"),r.find("input").length&&r.find("input").first().focus()},o),e.is("[data-autohide]")){var s=parseInt(e.attr("data-autohide"),10);setTimeout(function(){t.notifications.closeNotification(e)},s+o)}},t.notifications.closeNotification=function(i){var r=jQuery(i),o=n.createEvent("Event");i=r.is(".notification")?r:r.is(".notification-close")?r.closest(".notification"):e('.notification[data-notification-link="'+i+'"]'),o.initEvent("notificationClosed.notifications.mr",!0,!0),i.addClass("notification--dismissed").trigger("notificationClosed.notifications.mr").get(0).dispatchEvent(o),i.closest("nav").removeClass("notification--reveal"),void 0!==i.attr("data-cookie")&&t.cookies.setItem(i.attr("data-cookie"),"true",1/0,"/")},t.components.documentReady.push(t.notifications.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.parallax=t.parallax||{},t.parallax.documentReady=function(t){var e=t(i),n=e.width(),r=e.height(),o=t("nav").outerHeight(!0);if(n>768){var a=t(".parallax:nth-of-type(1)"),s=t(".parallax:nth-of-type(1) .background-image-holder");s.css("top",-o),a.outerHeight(!0)===r&&s.css("height",r+o)}},t.parallax.update=function(){void 0!==mr_parallax&&(mr_parallax.profileParallaxElements(),mr_parallax.mr_parallaxBackground())},t.components.documentReady.push(t.parallax.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.progressHorizontal=t.progressHorizontal||{},t.progressHorizontal.documentReady=function(t){var e=[];t(".progress-horizontal").each(function(){var t=jQuery(this).find(".progress-horizontal__bar"),i={},n=jQuery('<div class="progress-horizontal__progress"></div>');t.prepend(n),i.element=t,i.progress=n,i.value=parseInt(t.attr("data-value"),10)+"%",i.offsetTop=t.offset().top,i.animate=!1,jQuery(this).hasClass("progress-horizontal--animate")?i.animate=!0:n.css("width",i.value),e.push(i)})},t.components.documentReady.push(t.progressHorizontal.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.easypiecharts=t.easypiecharts||{},t.easypiecharts.pies=[],t.easypiecharts.options=t.easypiecharts.options||{},t.easypiecharts.documentReady=function(e){e(".radial").each(function(){var e,i,n=jQuery(this),r=110,o={};e={animate:{duration:2e3,enabled:!0},barColor:"#000000",scaleColor:!1,size:r,lineWidth:3},void 0!==t.easypiecharts.options.size&&(r=t.easypiecharts.options.size),void 0!==n.attr("data-timing")&&(o.animate={duration:parseInt(n.attr("data-timing"),10),enabled:!0}),void 0!==n.attr("data-color")&&(o.barColor=n.attr("data-color")),void 0!==n.attr("data-size")&&(r=o.size=parseInt(n.attr("data-size"),10)),void 0!==n.attr("data-bar-width")&&(o.lineWidth=parseInt(n.attr("data-bar-width"),10)),n.css("height",r).css("width",r),"object"==typeof t.easypiecharts.options&&(i=jQuery.extend({},e,t.easypiecharts.options,o)),n.easyPieChart(i),n.data("easyPieChart").update(0)}),e(".radial").length&&(t.easypiecharts.init(e),t.easypiecharts.activate(),t.scroll.listeners.push(t.easypiecharts.activate))},t.easypiecharts.init=function(e){t.easypiecharts.pies=[],e(".radial").each(function(){var e={},i=jQuery(this);e.element=i,e.value=parseInt(i.attr("data-value"),10),e.top=i.offset().top,e.height=i.height()/2,e.active=!1,t.easypiecharts.pies.push(e)})},t.easypiecharts.activate=function(){t.easypiecharts.pies.forEac
1h(function(e){Math.round(t.scroll.y+t.window.height)>=Math.round(e.top+e.height)&&!1===e.active&&(e.element.data("easyPieChart").enableAnimation(),e.element.data("easyPieChart").update(e.value),e.element.addClass("radial--active"),e.active=!0)})},t.components.documentReadyDeferred.push(t.easypiecharts.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.sliders=t.sliders||{},t.sliders.documentReady=function(e){e(".slider").each(function(i){var n=e(this),r=n.find("ul.slides");r.find(">li").addClass("slide");var o=r.find("li").length,a={cellSelector:".slide",cellAlign:"left",wrapAround:!0,pageDots:!1,prevNextButtons:!1,autoPlay:!0,draggable:!(o<2),imagesLoaded:!0,accessibility:!0,rightToLeft:!1,initialIndex:0,freeScroll:!1},s={};s.pageDots="true"===n.attr("data-paging")&&r.find("li").length>1||void 0,s.prevNextButtons="true"===n.attr("data-arrows")||void 0,s.draggable="false"!==n.attr("data-draggable")&&void 0,s.autoPlay="false"!==n.attr("data-autoplay")&&(n.attr("data-timing")?parseInt(n.attr("data-timing"),10):void 0),s.accessibility="false"!==n.attr("data-accessibility")&&void 0,s.rightToLeft="true"===n.attr("data-rtl")||void 0,s.initialIndex=n.attr("data-initial")?parseInt(n.attr("data-initial"),10):void 0,s.freeScroll="true"===n.attr("data-freescroll")||void 0,n.attr("data-children",o),e(this).data("sliderOptions",jQuery.extend({},a,t.sliders.options,s)),e(r).flickity(e(this).data("sliderOptions")),e(r).on("scroll.flickity",function(t,e){n.find(".is-selected").hasClass("controls--dark")?n.addClass("controls--dark"):n.removeClass("controls--dark")})}),t.parallax.update&&t.parallax.update()},t.components.documentReadyDeferred.push(t.sliders.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.smoothscroll=t.smoothscroll||{},t.smoothscroll.sections=[],t.smoothscroll.init=function(){t.smoothscroll.sections=[],e("a.inner-link").each(function(){var i={},n=e(this),r=n.attr("href");new RegExp("^#[^\r\n\t\f\v#.]+$","gm").test(r)&&e("section"+r).length&&(i.id=r,i.top=Math.round(e(r).offset().top),i.height=Math.round(e(r).outerHeight()),i.link=n.get(0),i.active=!1,t.smoothscroll.sections.push(i))}),t.smoothscroll.highlight()},t.smoothscroll.highlight=function(){t.smoothscroll.sections.forEach(function(e){t.scroll.y>=e.top&&t.scroll.y<e.top+e.height?!1===e.active&&(e.link.classList.add("inner-link--active"),e.active=!0):(e.link.classList.remove("inner-link--active"),e.active=!1)})},t.scroll.listeners.push(t.smoothscroll.highlight),t.smoothscroll.documentReady=function(e){var n,r,o=e("a.inner-link"),a={};r={selector:".inner-link",selectorHeader:null,speed:750,easing:"easeInOutCubic",offset:0},o.length&&(o.each(function(t){var i=e(this);"#"!==i.attr("href").charAt(0)&&i.removeClass("inner-link")}),t.smoothscroll.init(),e(i).on("resize",t.smoothscroll.init),n=0,e("body[data-smooth-scroll-offset]").length&&(n=e("body").attr("data-smooth-scroll-offset"),n*=1),a.offset=0!==n?n:void 0,smoothScroll.init(jQuery.extend({},r,t.smoothscroll.options,a)))},t.components.documentReady.push(t.smoothscroll.documentReady),t.components.windowLoad.push(t.smoothscroll.init),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.tabs=t.tabs||{},t.tabs.documentReady=function(e){e(".tabs").each(function(){var t=e(this);t.after('<ul class="tabs-content">'),t.find("li").each(function(){var t=e(this),i=t.find(".tab__content").wrap("<li></li>").parent(),n=i.clone(!0,!0);i.remove(),t.closest(".tabs-container").find(".tabs-content").append(n)})}),e(".tabs > li").on("click",function(){var i,n=e(this);t.tabs.activateTab(n),n.is("[id]")&&(i="#"+n.attr("id"),history.pushState?history.pushState(null,null,i):location.hash=i)}),e(".tabs li.active").each(function(){t.tabs.activateTab(this)}),""!==i.location.hash&&t.tabs.activateTabById(i.location.hash),e('a[href^="#"]').on("click",function(){t.tabs.activateTabById(e(this).attr("href"))})},t.tabs.activateTab=function(t){var i,r=e(t),o=r.closest(".tabs-container"),a=1*r.index()+1,s=o.find("> .tabs-content > li:nth-of-type("+a+")"),l=n.createEvent("Event");l.initEvent("tabOpened.tabs.mr",!0,!0),o.find("> .tabs > li").removeClass("active"),o.find("> .tabs-content > li").removeClass("active"),r.addClass("active").trigger("tabOpened.tabs.mr").get(0).dispatchEvent(l),s.addClass("active"),(i=s.find("iframe")).length&&i.attr("src",i.attr("src"))},t.tabs.activateTabById=function(t){""!==t&&"#"!==t&&null===t.match(/#\/.*/)&&e(".tabs > li#"+t.replace("#","")).length&&e(".tabs > li#"+t.replace("#","")).click()},t.components.documentReady.push(t.tabs.documentReady),t}
1(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.toggleClass=t.toggleClass||{},t.toggleClass.documentReady=function(t){t("[data-toggle-class]").each(function(){var e=t(this),i=e.attr("data-toggle-class").split("|");t(i).each(function(){var i=e,n=[],r="",o="";2===(n=this.split(";")).length?(o=n[0],r=n[1],t(i).on("click",function(){return i.hasClass("toggled-class")?i.removeClass("toggled-class"):i.toggleClass("toggled-class"),t(o).toggleClass(r),!1})):console.log('Error in [data-toggle-class] attribute. This attribute accepts an element, or comma separated elements terminated witha ";" followed by a class name to toggle')})})},t.components.documentReady.push(t.toggleClass.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.typed=t.typed||{},t.typed.documentReady=function(e){e(".typed-text").each(function(){var i=e(this),n=(i.attr("data-typed-strings")&&i.attr("data-typed-strings").split(","),{});n.strings=i.attr("data-typed-strings")?i.attr("data-typed-strings").split(","):void 0,e(i).typed(jQuery.extend({},{strings:[],typeSpeed:100,loop:!0,showCursor:!1},t.typed.options,n))})},t.components.documentReady.push(t.typed.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.twitter=t.twitter||{},t.twitter.options=t.twitter.options||{},t.twitter.documentReady=function(e){e(".tweets-feed").each(function(t){e(this).attr("id","tweets-"+t)}).each(function(i){var n=e("#tweets-"+i),r={domId:"",maxTweets:6,enableLinks:!0,showUser:!0,showTime:!0,dateFunction:"",showRetweet:!1,customCallback:function(e){var i=e.length,r=0,o='<ul class="slides">';for(;r<i;)o+="<li>"+e[r]+"</li>",r++;if(o+="</ul>",n.html(o),n.closest(".slider").length)return t.sliders.documentReady(t.setContext()),o}};r=jQuery.extend(r,t.twitter.options),void 0!==n.attr("data-widget-id")?r.id=n.attr("data-widget-id"):void 0!==n.attr("data-feed-name")&&""!==n.attr("data-feed-name")?r.profile={screenName:n.attr("data-feed-name").replace("@","")}:void 0!==t.twitter.options.profile?r.profile={screenName:t.twitter.options.profile.replace("@","")}:r.profile={screenName:"twitter"},r.maxTweets=n.attr("data-amount")?n.attr("data-amount"):r.maxTweets,n.closest(".twitter-feed--slider").length&&n.addClass("slider"),twitterFetcher.fetch(r)})},t.components.documentReady.push(t.twitter.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.video=t.video||{},t.video.options=t.video.options||{},t.video.options.ytplayer=t.video.options.ytplayer||{},t.video.documentReady=function(e){e(".youtube-background").length&&e(".youtube-background").each(function(){var i=e(this),n={};n.videoURL=e(this).attr("data-video-url"),n.startAt=e(this).attr("data-start-at")?parseInt(e(this).attr("data-start-at"),10):void 0,i.closest(".videobg").append('<div class="loading-indicator"></div>'),i.YTPlayer(jQuery.extend({},{containment:"self",autoPlay:!0,mute:!0,opacity:1},t.video.options.ytplayer,n)),i.on("YTPStart",function(){i.closest(".videobg").addClass("video-active")})}),e(".videobg").find("video").length&&e(".videobg").find("video").closest(".videobg").addClass("video-active"),e(".video-cover").each(function(){var t=e(this);t.find("iframe[src]").length&&(t.find("iframe").attr("data-src",t.find("iframe").attr("src")),t.find("iframe").attr("src",""))}),e(".video-cover .video-play-icon").on("click",function(){var t=e(this).closest(".video-cover");if(t.find("video").length){var i=t.find("video").get(0);return t.addClass("reveal-video"),i.play(),!1}if(t.find("iframe").length){var n=t.find("iframe");return n.attr("src",n.attr("data-src")),t.addClass("reveal-video"),!1}})},t.components.documentReady.push(t.video.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,i,n){"use strict";return t.wizard=t.wizard||{},t.wizard.documentReady=function(e){e(".wizard").each(function(){var e,i=jQuery(this);e={headerTag:"h5",bodyTag:"section",transitionEffect:"slideLeft",autoFocus:!0,startIndex:1,labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finalizar",next:"Próximo",previous:"Voltar",loading:"Loading ..."}},i.is('[role="application"][id^="steps-uid"]')||(i.steps(jQuery.extend({},e,t.wizard.options)),i.addClass("active"))})},t.components.documentReady.push(t.wizard.documentReady),t}(mr,jQuery,window,document),function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.smoothScroll=e(t)}("undefined"!=typeof global?global:this.window||this.global,function(t){"use strict";var e,i,n,r,o,a,s,l={},u="querySelector"in document&&"addEventListener"in t,c={selector:"[data-scroll]",selectorHeader:null,speed:500,easing:"easeInOutCubic",offset:0,callback:function(){}},d=function(){var t={},e=!1,i=0,n=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],i++);for(var r=function(i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e&&"[object Object]"===Object.prototype.toString.call(i[n])?t[n]=d(!0,t[n],i[n]):t[n]=i[n])};i<n;i++){r(arguments[i])}return t}
1,h=function(t,e,i){var n=0;if(t.offsetParent)do{n+=t.offsetTop,t=t.offsetParent}while(t);return n=Math.max(n-e-i,0),Math.min(n,p()-f())},f=function(){return Math.max(document.documentElement.clientHeight,t.innerHeight||0)},p=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},m=function(t){return t?function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)}(t)+t.offsetTop:0};l.animateScroll=function(i,n,a){var l=function(t){return t&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(t):{}}(n?n.getAttribute("data-options"):null),u=d(e||c,a||{},l),f="[object Number]"===Object.prototype.toString.call(i),y=f||!i.tagName?null:i;if(f||y){var g=t.pageYOffset;u.selectorHeader&&!r&&(r=document.querySelector(u.selectorHeader)),o||(o=m(r));var v,b,w=f?i:h(y,o,parseInt(u.offset,10)),T=w-g,P=p(),x=0,j=function(e,r,o){var a=t.pageYOffset;(e==r||a==r||t.innerHeight+a>=P)&&(clearInterval(o),function(e,i,n){n||(e.focus(),document.activeElement.id!==e.id&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),t.scrollTo(0,i))}(i,r,f),u.callback(i,n))},C=function(){v=(v=(x+=16)/parseInt(u.speed,10))>1?1:v,b=g+T*function(t,e){var i;return"easeInQuad"===t&&(i=e*e),"easeOutQuad"===t&&(i=e*(2-e)),"easeInOutQuad"===t&&(i=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t&&(i=e*e*e),"easeOutCubic"===t&&(i=--e*e*e+1),"easeInOutCubic"===t&&(i=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t&&(i=e*e*e*e),"easeOutQuart"===t&&(i=1- --e*e*e*e),"easeInOutQuart"===t&&(i=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t&&(i=e*e*e*e*e),"easeOutQuint"===t&&(i=1+--e*e*e*e*e),"easeInOutQuint"===t&&(i=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),i||e}(u.easing,v),t.scrollTo(0,Math.floor(b)),j(b,w,s)};0===t.pageYOffset&&t.scrollTo(0,0),clearInterval(s),s=setInterval(C,16)}};var y=function(e){t.location.hash,i&&(i.id=i.getAttribute("data-scroll-id"),l.animateScroll(i,n),i=null,n=null)},g=function(r){if(0===r.button&&!r.metaKey&&!r.ctrlKey&&((n=function(t,e){var i,n,r=e.charAt(0),o="classList"in document.documentElement;for("["===r&&(i=(e=e.substr(1,e.length-2)).split("=")).length>1&&(n=!0,i[1]=i[1].replace(/"/g,"").replace(/'/g,""));t&&t!==document&&1===t.nodeType;t=t.parentNode){if("."===r)if(o){if(t.classList.contains(e.substr(1)))return t}else if(new RegExp("(^|\\s)"+e.substr(1)+"(\\s|$)").test(t.className))return t;if("#"===r&&t.id===e.substr(1))return t;if("["===r&&t.hasAttribute(i[0])){if(!n)return t;if(t.getAttribute(i[0])===i[1])return t}if(t.tagName.toLowerCase()===e)return t}return null}(r.target,e.selector))&&"a"===n.tagName.toLowerCase()&&n.hostname===t.location.hostname&&n.pathname===t.location.pathname&&/#/.test(n.href))){var o=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,i=String(t),n=i.length,r=-1,o="",a=i.charCodeAt(0);++r<n;){if(0===(e=i.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");o+=e>=1&&e<=31||127==e||0===r&&e>=48&&e<=57||1===r&&e>=48&&e<=57&&45===a?"\\"+e.toString(16)+" ":e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?i.charAt(r):"\\"+i.charAt(r)}return"#"+o}(n.hash);if("#"===o){r.preventDefault();var a=(i=document.body).id?i.id:"smooth-scroll-top";return i.setAttribute("data-scroll-id",a),i.id="",void(t.location.hash.substring(1)===a?y():t.location.hash=a)}(i=document.querySelector(o))&&(i.setAttribute("data-scroll-id",i.id),i.id="",n.hash===t.location.hash&&(r.preventDefault(),y()))}},v=function(t){a||(a=setTimeout(function(){a=null,o=m(r)},66))};return l.destroy=function(){e&&(document.removeEventListener("click",g,!1),t.removeEventListener("resize",v,!1),e=null,i=null,n=null,r=null,o=null,a=null,s=null)},l.init=function(i){u&&(l.destroy(),e=d(c,i||{}),r=e.selectorHeader?document.querySelector(e.selectorHeader):null,o=m(r),document.addEventListener("click",g,!1),t.addEventListener("hashchange",y,!1),r&&t.addEventListener("resize",v,!1))},l}),function(t){"use strict";var e=function(e,i){this.el=t(e),this.options=t.extend({}
1,t.fn.typed.defaults,i),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};e.prototype={constructor:e,init:function(){var t=this;t.timeout=setTimeout(function(){for(var e=0;e<t.strings.length;++e)t.sequence[e]=e;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var e=this;if(!0===this.showCursor&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children());var i=this.stringsElement.children();t.each(i,function(i,n){e.strings.push(t(n).html())})}this.init()},typewrite:function(t,e){if(!0!==this.stop){var i=Math.round(70*Math.random())+this.typeSpeed,n=this;n.timeout=setTimeout(function(){var i=0,r=t.substr(e);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(o+=(r=/\d+/.exec(r)[0]).length,i=parseInt(r)),t=t.substring(0,e)+t.substring(e+o)}if("html"===n.contentType){var a=t.substr(e).charAt(0);if("<"===a||"&"===a){var s;for(s="<"===a?">":";";t.substr(e+1).charAt(0)!==s&&(t.substr(e).charAt(0),!(++e+1>t.length)););e++,s}}n.timeout=setTimeout(function(){if(e===t.length){if(n.options.onStringTyped(n.arrayPos),n.arrayPos===n.strings.length-1&&(n.options.callback(),n.curLoop++,!1===n.loop||n.curLoop===n.loopCount))return;n.timeout=setTimeout(function(){n.backspace(t,e)},n.backDelay)}else{0===e&&n.options.preStringTyped(n.arrayPos);var i=t.substr(0,e+1);n.attr?n.el.attr(n.attr,i):n.isInput?n.el.val(i):"html"===n.contentType?n.el.html(i):n.el.text(i),e++,n.typewrite(t,e)}},i)},i)}},backspace:function(t,e){if(!0!==this.stop){var i=Math.round(70*Math.random())+this.backSpeed,n=this;n.timeout=setTimeout(function(){if("html"===n.contentType&&">"===t.substr(e).charAt(0)){for(;"<"!==t.substr(e-1).charAt(0)&&(t.substr(e).charAt(0),!(0>--e)););e--,"<"}var i=t.substr(0,e);n.attr?n.el.attr(n.attr,i):n.isInput?n.el.val(i):"html"===n.contentType?n.el.html(i):n.el.text(i),e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))},i)}},shuffleArray:function(t){var e,i,n=t.length;if(n)for(;--n;)e=t[i=Math.floor(Math.random()*(n+1))],t[i]=t[n],t[n]=e;return t},reset:function(){clearInterval(this.timeout),this.el.attr("id"),this.el.empty(),void 0!==this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},t.fn.typed=function(i){return this.each(function(){var n=t(this),r=n.data("typed"),o="object"==typeof i&&i;r&&r.reset(),n.data("typed",r=new e(this,o)),"string"==typeof i&&r[i]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);var ytp=ytp||{},getYTPVideoID=function(t){var e,i;return t.indexOf("youtu.be")>0?(i=(e=t.substr(t.lastIndexOf("/")+1,t.length)).indexOf("?list=")>0?e.substr(e.lastIndexOf("="),e.length):null,e=i?e.substr(0,e.lastIndexOf("?")):e):t.indexOf("http")>-1?(e=t.match(/[\\?&]v=([^&#]*)/)[1],i=t.indexOf("list=")>0?t.match(/[\\?&]list=([^&#]*)/)[1]:null):i=(e=t.length>15?null:t)?null:t,{videoID:e,playlistID:i}};!function(jQuery,ytp){jQuery.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"3.0.20",build:"6258",author:"Matteo Bicocchi (pupunzi)",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,mask:!1,opacity:1,qual
1ity:"default",mute:!1,loop:!0,fadeOnStartTime:500,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,mobileFallbackImage:null,gaTrack:!0,optimizeDisplay:!0,remember_last_time:!1,anchor:"center,center",onReady:function(t){},onError:function(t,e){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},controlBar:null,loading:null,locationProtocol:"https:",filters:{grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},buildPlayer:function(options){return this.each(function(){var YTPlayer=this,$YTPlayer=jQuery(YTPlayer);YTPlayer.loop=0,YTPlayer.opt={},YTPlayer.state={},YTPlayer.filters=jQuery.mbYTPlayer.filters,YTPlayer.filtersEnabled=!0,YTPlayer.id=YTPlayer.id||"YTP_"+(new Date).getTime(),$YTPlayer.addClass("mb_YTPlayer");var property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");void 0!==property&&void 0!==property.vol&&(property.vol=0===property.vol?property.vol=1:property.vol),jQuery.extend(YTPlayer.opt,jQuery.mbYTPlayer.defaults,options,property),YTPlayer.hasChanged||(YTPlayer.defaultOpt={},jQuery.extend(YTPlayer.defaultOpt,jQuery.mbYTPlayer.defaults,options)),"true"==YTPlayer.opt.loop&&(YTPlayer.opt.loop=9999),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1;var isIframe=function(){var t=!1;try{self.location.href!=top.location.href&&(t=!0)}catch(e){t=!0}return t};YTPlayer.canGoFullScreen=!(jQuery.mbBrowser.msie||jQuery.mbBrowser.opera||isIframe()),YTPlayer.canGoFullScreen||(YTPlayer.opt.realfullscreen=!1),$YTPlayer.attr("id")||$YTPlayer.attr("id","ytp_"+(new Date).getTime());var playerID="iframe_"+YTPlayer.id;YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0,YTPlayer.videoID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).videoID,YTPlayer.playlistID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).playlistID,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"1":"3";var start_from_last=0;jQuery.mbCookie.get("YTPlayer_"+YTPlayer.videoID)&&(start_from_last=parseFloat(jQuery.mbCookie.get("YTPlayer_"+YTPlayer.videoID))),YTPlayer.opt.remember_last_time&&start_from_last&&(YTPlayer.start_from_last=start_from_last,jQuery.mbCookie.remove("YTPlayer_"+YTPlayer.videoID));var playerVars={modestbranding:1,autoplay:0,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations};if(document.createElement("video").canPlayType&&jQuery.extend(playerVars,{html5:1}),jQuery.mbBrowser.msie&&jQuery.mbBrowser.version<9&&(this.opt.opacity=1),YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.defaultOpt.containment=YTPlayer.opt.containment=jQuery("self"==YTPlayer.opt.containment?this:YTPlayer.opt.containment),YTPlayer.isBackground=YTPlayer.opt.containment.is("body"),!YTPlayer.isBackground||!ytp.backgroundIsInited){var isPlayer=YTPlayer.opt.containment.is(jQuery(this));YTPlayer.canPlayOnMobile=isPlayer&&0===jQuery(this).children().length,YTPlayer.isPlayer=!1,isPlayer?YTPlayer.isPlayer=!0:$YTPlayer.hide();var overlay=jQuery("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay");YTPlayer.isPlayer&&overlay.on("click",function(){$YTPlayer.YTPTogglePlay()});var wrapper=jQuery("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+YTPlayer.id);wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0});var playerBox=jQuery("<div/>").attr("id",playerID).addClass("playerBox");if(playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}
1),YTPlayer.isBackground?(jQuery("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),jQuery.mbBrowser.mobile||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.removeClass("visible")}),ytp.YTAPIReady)setTimeout(function(){jQuery(document).trigger("YTAPIReady")},100);else{jQuery("#YTAPI").remove();var tag=jQuery("<script><\/script>").attr({src:jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+jQuery.mbYTPlayer.version,id:"YTAPI"});jQuery("head").prepend(tag)}if(jQuery.mbBrowser.mobile&&!YTPlayer.canPlayOnMobile)return YTPlayer.opt.mobileFallbackImage&&wrapper.css({backgroundImage:"url("+YTPlayer.opt.mobileFallbackImage+")",backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat",opacity:1}),YTPlayer.isPlayer||$YTPlayer.remove(),void jQuery(document).trigger("YTPUnavailable");jQuery(document).on("YTAPIReady",function(){YTPlayer.isBackground&&ytp.backgroundIsInited||YTPlayer.isInit||(YTPlayer.isBackground&&(ytp.backgroundIsInited=!0),YTPlayer.opt.autoPlay=void 0===YTPlayer.opt.autoPlay?!!YTPlayer.isBackground:YTPlayer.opt.autoPlay,YTPlayer.opt.vol=YTPlayer.opt.vol?YTPlayer.opt.vol:100,jQuery.mbYTPlayer.getDataFromAPI(YTPlayer),jQuery(YTPlayer).on("YTPChanged",function(){if(!YTPlayer.isInit){if(YTPlayer.isInit=!0,jQuery.mbBrowser.mobile&&YTPlayer.canPlayOnMobile){if(YTPlayer.opt.containment.outerWidth()>jQuery(window).width()){YTPlayer.opt.containment.css({maxWidth:"100%"});var h=.563*YTPlayer.opt.containment.outerWidth();YTPlayer.opt.containment.css({maxHeight:h})}return void new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),width:"100%",height:h,playerVars:playerVars,events:{onReady:function(t){YTPlayer.player=t.target,playerBox.css({opacity:1}),YTPlayer.wrapper.css({opacity:1})}}})}new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),playerVars:playerVars,events:{onReady:function(t){YTPlayer.player=t.target,YTPlayer.isReady||(YTPlayer.isReady=!(YTPlayer.isPlayer&&!YTPlayer.opt.autoPlay),YTPlayer.playerEl=YTPlayer.player.getIframe(),jQuery(YTPlayer.playerEl).unselectable(),$YTPlayer.optimizeDisplay(),jQuery(window).off("resize.YTP_"+YTPlayer.id).on("resize.YTP_"+YTPlayer.id,function(){$YTPlayer.optimizeDisplay()}),YTPlayer.opt.remember_last_time&&jQuery(window).on("unload.YTP_"+YTPlayer.id,function(){var t=YTPlayer.player.getCurrentTime();jQuery.mbCookie.set("YTPlayer_"+YTPlayer.videoID,t,0)}),jQuery.mbYTPlayer.checkForState(YTPlayer))},onStateChange:function(event){if("function"==typeof event.target.getPlayerState){var state=event.target.getPlayerState(),eventType;if(YTPlayer.preventTrigger)return void(YTPlayer.preventTrigger=!1);switch(YTPlayer.state=state,state){case-1:eventType="YTPUnstarted";break;case 0:eventType="YTPRealEnd";break;case 1:eventType="YTPPlay",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()]),"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString());break;case 2:eventType="YTPPause",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 3:YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality),eventType="YTPBuffering",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 5:eventType="YTPCued"}var YTPEvent=jQuery.Event(eventType);YTPEvent.time=YTPlayer.currentTime,YTPlayer.canTrigger&&jQuery(YTPlayer).trigger(YTPEvent)}},onPlaybackQualityChange:function(t){var e=t.target.getPlaybackQuality(),i=jQuery.Event("YTPQualityChange");i.quality=e,jQuery(YTPlayer).trigger(i)},onError:function(t){150==t.data&&(console.log("Embedding this video is restricted by Youtube."),YTPlayer.isPlayList&&jQuery(YTPlayer).playNext()),2==t.data&&YTPlayer.isPlayList&&jQuery(YTPlayer).playNext(),"function"==typeof YTPlayer.opt.onError&&YTPlayer.opt.onError($YTPlayer,t)}}})}}))}
1),$YTPlayer.off("YTPTime.mask"),jQuery.mbYTPlayer.applyMask(YTPlayer)}})},getDataFromAPI:function(t){if(t.videoData=jQuery.mbStorage.get("YTPlayer_data_"+t.videoID),jQuery(t).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(t.hasData&&t.isPlayer&&!t.opt.autoPlay){var e=t.videoData.thumb_max||t.videoData.thumb_high||t.videoData.thumb_medium;t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+e+") center center",backgroundSize:"cover"}),t.opt.backgroundUrl=e}}),t.videoData)setTimeout(function(){t.opt.ratio="auto"==t.opt.ratio?"16/9":t.opt.ratio,t.dataReceived=!0,jQuery(t).trigger("YTPChanged");var e=jQuery.Event("YTPData");for(var i in e.prop={},t.videoData)e.prop[i]=t.videoData[i];jQuery(t).trigger(e)},t.opt.fadeOnStartTime),t.hasData=!0;else if(jQuery.mbYTPlayer.apiKey)jQuery.getJSON(jQuery.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+t.videoID+"&key="+jQuery.mbYTPlayer.apiKey+"&part=snippet",function(e){t.dataReceived=!0,jQuery(t).trigger("YTPChanged"),function(e){t.videoData={},t.videoData.id=t.videoID,t.videoData.channelTitle=e.channelTitle,t.videoData.title=e.title,t.videoData.description=e.description.length<400?e.description:e.description.substring(0,400)+" ...",t.videoData.aspectratio="auto"==t.opt.ratio?"16/9":t.opt.ratio,t.opt.ratio=t.videoData.aspectratio,t.videoData.thumb_max=e.thumbnails.maxres?e.thumbnails.maxres.url:null,t.videoData.thumb_high=e.thumbnails.high?e.thumbnails.high.url:null,t.videoData.thumb_medium=e.thumbnails.medium?e.thumbnails.medium.url:null,jQuery.mbStorage.set("YTPlayer_data_"+t.videoID,t.videoData)}(e.items[0].snippet),t.hasData=!0;var i=jQuery.Event("YTPData");for(var n in i.prop={},t.videoData)i.prop[n]=t.videoData[n];jQuery(t).trigger(i)});else{if(setTimeout(function(){jQuery(t).trigger("YTPChanged")},50),t.isPlayer&&!t.opt.autoPlay){var e=jQuery.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+t.videoID+"/hqdefault.jpg";e&&t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+e+") center center",backgroundSize:"cover"}),t.opt.backgroundUrl=e}t.videoData=null,t.opt.ratio="auto"==t.opt.ratio?"16/9":t.opt.ratio}!t.isPlayer||t.opt.autoPlay||jQuery.mbBrowser.mobile||(t.loading=jQuery("<div/>").addClass("loading").html("Loading").hide(),jQuery(t).append(t.loading),t.loading.fadeIn())},removeStoredData:function(){jQuery.mbStorage.remove()},getVideoData:function(){return this.get(0).videoData},getVideoID:function(){return this.get(0).videoID||!1},setVideoQuality:function(t){this.get(0).player.setPlaybackQuality(t)},playlist:function(t,e,i){var n=this.get(0);return n.isPlayList=!0,e&&(t=jQuery.shuffle(t)),n.videoID||(n.videos=t,n.videoCounter=0,n.videoLength=t.length,jQuery(n).data("property",t[0]),jQuery(n).mb_YTPlayer()),"function"==typeof i&&jQuery(n).one("YTPChanged",function(){i(n)}),jQuery(n).on("YTPEnd",function(){jQuery(n).playNext()}),this},playNext:function(){var t=this.get(0);return t.checkForStartAt&&(clearInterval(t.checkForStartAt),clearInterval(t.getState)),t.videoCounter++,t.videoCounter>=t.videoLength&&(t.videoCounter=0),jQuery(t).YTPChangeMovie(t.videos[t.videoCounter]),this},playPrev:function(){var t=this.get(0);return t.checkForStartAt&&(clearInterval(t.checkForStartAt),clearInterval(t.getState)),t.videoCounter--,t.videoCounter<0&&(t.videoCounter=t.videoLength-1),jQuery(t).YTPChangeMovie(t.videos[t.videoCounter]),this},playIndex:function(t){var e=this.get(0);return t-=1,e.checkForStartAt&&(clearInterval(e.checkForStartAt),clearInterval(e.getState)),e.videoCounter=t,e.videoCounter>=e.videoLength-1&&(e.videoCounter=e.videoLength-1),jQuery(e).YTPChangeMovie(e.videos[e.videoCounter]),this},changeMovie:function(t){var e=this.get(0);e.opt.startAt=0,e.opt.stopAt=0,e.opt.mask=!1,e.opt.mute=!0,e.hasData=!1,e.hasChanged=!0,e.player.loopTime=void 0,t&&jQuery.extend(e.opt,t),e.videoID=getYTPVideoID(e.opt.videoURL).videoID,"true"==e.opt.loop&&(e.opt.loop=9999),jQuery(e.playerEl).CSSAnimate({opacity:0}
1,e.opt.fadeOnStartTime,function(){var t=jQuery.Event("YTPChangeMovie");t.time=e.currentTime,t.videoId=e.videoID,jQuery(e).trigger(t),jQuery(e).YTPGetPlayer().cueVideoByUrl(encodeURI(jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+e.videoID),1,e.opt.quality),jQuery(e).optimizeDisplay(),jQuery.mbYTPlayer.checkForState(e),jQuery.mbYTPlayer.getDataFromAPI(e)}),jQuery.mbYTPlayer.applyMask(e)},getPlayer:function(){return jQuery(this).get(0).player},playerDestroy:function(){var t=this.get(0);return ytp.YTAPIReady=!0,ytp.backgroundIsInited=!1,t.isInit=!1,t.videoID=null,t.isReady=!1,t.wrapper.remove(),jQuery("#controlBar_"+t.id).remove(),clearInterval(t.checkForStartAt),clearInterval(t.getState),this},fullscreen:function(real){function hideMouse(){YTPlayer.overlay.css({cursor:"none"})}function RunPrefixMethod(t,e){for(var i,n,r=["webkit","moz","ms","o",""],o=0;o<r.length&&!t[i];){if(i=e,""==r[o]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),"undefined"!=(n=typeof t[i=r[o]+i]))return r=[r[o]],"function"==n?t[i]():t[i];o++}}function launchFullscreen(t){RunPrefixMethod(t,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var YTPlayer=this.get(0);void 0===real&&(real=YTPlayer.opt.realfullscreen),real=eval(real);var controls=jQuery("#controlBar_"+YTPlayer.id),fullScreenBtn=controls.find(".mb_OnlyYT"),videoWrapper=YTPlayer.isSelf?YTPlayer.opt.containment:YTPlayer.wrapper;if(real){var fullscreenchange=jQuery.mbBrowser.mozilla?"mozfullscreenchange":jQuery.mbBrowser.webkit?"webkitfullscreenchange":"fullscreenchange";jQuery(document).off(fullscreenchange).on(fullscreenchange,function(){RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen")?(jQuery(YTPlayer).YTPSetVideoQuality("default"),jQuery(YTPlayer).trigger("YTPFullScreenStart")):(YTPlayer.isAlone=!1,fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),jQuery(YTPlayer).YTPSetVideoQuality(YTPlayer.opt.quality),videoWrapper.removeClass("YTPFullscreen"),videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime),videoWrapper.css({zIndex:0}),YTPlayer.isBackground?jQuery("body").after(controls):YTPlayer.wrapper.before(controls),jQuery(window).resize(),jQuery(YTPlayer).trigger("YTPFullScreenEnd"))})}return YTPlayer.isAlone?(jQuery(document).off("mousemove.YTPlayer"),clearTimeout(YTPlayer.hideCursor),YTPlayer.overlay.css({cursor:"auto"}),real?cancelFullscreen():(videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime),videoWrapper.css({zIndex:0})),fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),YTPlayer.isAlone=!1):(jQuery(document).on("mousemove.YTPlayer",function(t){YTPlayer.overlay.css({cursor:"auto"}),clearTimeout(YTPlayer.hideCursor),jQuery(t.target).parents().is(".mb_YTPBar")||(YTPlayer.hideCursor=setTimeout(hideMouse,3e3))}),hideMouse(),real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("YTPFullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.CSSAnimate({opacity:1},2*YTPlayer.opt.fadeOnStartTime),YTPlayer.wrapper.append(controls),jQuery(YTPlayer).optimizeDisplay(),YTPlayer.player.seekTo(YTPlayer.player.getCurrentTime()+.1,!0)},YTPlayer.opt.fadeOnStartTime)):videoWrapper.css({zIndex:1e4}).CSSAnimate({opacity:1},2*YTPlayer.opt.fadeOnStartTime),fullScreenBtn.html(jQuery.mbYTPlayer.controls.showSite),YTPlayer.isAlone=!0),this},toggleLoops:function(){var t=this.get(0),e=t.opt;return 1==e.loop?e.loop=0:(e.startAt?t.player.seekTo(e.startAt):t.player.playVideo(),e.loop=1),this},play:function(){var t=this.get(0);return t.isReady?(t.player.playVideo(),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},4*t.opt.fadeOnStartTime),jQuery(t.playerEl).CSSAnimate({opacity:1},2*t.opt.fadeOnStartTime),jQuery("#controlBar_"+t.id).find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),t.state=1,t.orig_background=jQuery(t).css("background-image"),this):this},togglePlay:function(t){var e=this.get(0);return 1==e.state?this.YTPPause():this.YTPPlay(),"function"==typeof t&&t(e.state),this},stop:function(){var t=this.get(0);return jQuery("#controlBar_"+t.id).find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play),t.player.stopVideo(),this},pause:function(){var t=this.get(0);return t.player.pauseVideo(),t.state=2,this},seekTo:function(t){return this.get(0).player.seekTo(t,!0),this},setVolume:function(t){var e=this.get(0);return t||e.opt.vol||0!=e.player.getVolume()?!t&&e.player.getVolume()>0||t&&e.opt.vol==t?e.isMute?jQuery(e).YTPUnmute():jQuery(e).YTPMute():(e.opt.vol=t,e.player.setVolume(e.opt.vol),e.volumeBar&&e.volumeBar.length&&e.volumeBar.updateSliderVal(t)):jQuery(e).YTPUnmute(),this},toggleVolume:function(){var t=this.get(0);if(t)return t.player.isMuted()?(jQuery(t).YTPUnmute(),!0):(jQuery(t).YTPMute(),!1)},mute:function(){var t=this.get(0);if(!t.isMute){t.player.mute(),t.isMute=!0,t.player.setVolume(0),t.volumeBar&&t.volumeBar.length&&t.volumeBar.width()>10&&t.volumeBar.updateSliderVal(0),jQuery("#controlBar_"+t.id).find(".mb_YTPMuteUnmute").html(jQuery.mbYTPlayer.controls.unmute),jQuery(t).addClass("isMuted"),t.volumeBar&&t.volumeBar.length&&t.volumeBar.addClass("muted");var e=jQuery.Event("YTPMuted");return e.time=t.currentTime,t.canTrigger&&jQuery(t).trigger(e),this}},unmute:function(){var t=this.get(0);if(t.isMute){t.player.unMute(),t.isMute=!1,t.player.setVolume(t.opt.vol),t.volumeBar&&t.volumeBar.length&&t.volumeBar.updateSliderVal(t.opt.vol>10?t.opt.vol:10),jQuery("#controlBar_"+t.id).find(".mb_YTPMuteUnmute").html(jQuery.mbYTPlayer.controls.mute),jQuery(t).removeClass("isMuted"),t.volumeBar&&t.volumeBar.length&&t.volumeBar.removeClass("muted");var e=jQuery.Event("YTPUnmuted");return e.time=t.currentTime,t.canTrigger&&jQuery(t).trigger(e),this}},applyFilter:function(t,e){return this.each(function(){var i=this;i.filters[t].value=e,i.filtersEnabled&&jQuery(i).YTPEnableFilters()})},applyFilters:function(t){return this.each(function(){var e=this;if(e.isReady){for(var i in t)jQuery(e).YTPApplyFilter(i,t[i]);jQuery(e).trigger("YTPFiltersApplied")}else jQuery(e).on("YTPReady",function(){jQuery(e).YTPApplyFilters(t)})})},toggleFilter:function(t,e){return this.each(function(){var i=this;i.filters[t].value?i.filters[t].value=0:i.filters[t].value=e,i.filtersEnabled&&jQuery(this).YTPEnableFilters()})},toggleFilters:function(t){return this.each(function(){var e=this;e.filtersEnabled?(jQuery(e).trigger("YTPDisableFilters"),jQuery(e).YTPDisableFilters()):(jQuery(e).YTPEnableFilters(),jQuery(e).trigger("YTPEnableFilters")),"function"==typeof t&&t(e.filtersEnabled)})},disableFilters:function(){return this.each(function(){var t=jQuery(this.playerEl);t.css("-webkit-filter",""),t.css("filter",""),this.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var t=this,e=jQuery(t.playerEl),i="";for(var n in t.filters)t.filters[n].value&&(i+=n.replace("_","-")+"("+t.filters[n].value+t.filters[n].unit+") ");e.css("-webkit-filter",i),e.css("filter",i),t.filtersEnabled=!0})},removeFilter:function(t,e){return this.each(function(){if("function"==typeof t&&(e=t,t=null),t)jQuery(this).YTPApplyFilter(t,0),"function"==typeof e&&e(t);else for(var i in this.filters)jQuery(this).YTPApplyFilter(i,0),"function"==typeof e&&e(i)})},getFilters:function(){return this.get(0).filters},addMask:function(t){var e=this.get(0),i=e.overlay;t||(t=e.actualMask);var n=jQuery("<img/>").attr("src",t).on("load",function(){i.CSSAnimate({opacity:0}
1,e.opt.fadeOnStartTime,function(){e.hasMask=!0,n.remove(),i.css({backgroundImage:"url("+t+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}),i.CSSAnimate({opacity:1},e.opt.fadeOnStartTime)})});return this},removeMask:function(){var t=this.get(0),e=t.overlay;return e.CSSAnimate({opacity:0},t.opt.fadeOnStartTime,function(){t.hasMask=!1,e.css({backgroundImage:"",backgroundRepeat:"",backgroundPosition:"",backgroundSize:""}),e.CSSAnimate({opacity:1},t.opt.fadeOnStartTime)}),this},applyMask:function(t){var e=jQuery(t);if(e.off("YTPTime.mask"),t.opt.mask)if("string"==typeof t.opt.mask)e.YTPAddMask(t.opt.mask),t.actualMask=t.opt.mask;else if("object"==typeof t.opt.mask){for(var i in t.opt.mask)t.opt.mask[i]&&jQuery("<img/>").attr("src",t.opt.mask[i]);t.opt.mask[0]&&e.YTPAddMask(t.opt.mask[0]),e.on("YTPTime.mask",function(i){for(var n in t.opt.mask)i.time==n&&(t.opt.mask[n]?(e.YTPAddMask(t.opt.mask[n]),t.actualMask=t.opt.mask[n]):e.YTPRemoveMask())})}},toggleMask:function(){var t=this.get(0),e=$(t);return t.hasMask?e.YTPRemoveMask():e.YTPAddMask(),this},manageProgress:function(){var t=this.get(0),e=jQuery("#controlBar_"+t.id),i=e.find(".mb_YTPProgress"),n=e.find(".mb_YTPLoaded"),r=e.find(".mb_YTPseekbar"),o=i.outerWidth(),a=Math.floor(t.player.getCurrentTime()),s=Math.floor(t.player.getDuration()),l=a*o/s,u=100*t.player.getVideoLoadedFraction();return n.css({left:0,width:u+"%"}),r.css({left:0,width:l}),{totalTime:s,currentTime:a}},buildControls:function(YTPlayer){var data=YTPlayer.opt;if(data.showYTLogo=data.showYTLogo||data.printUrl,!jQuery("#controlBar_"+YTPlayer.id).length){YTPlayer.controlBar=jQuery("<span/>").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide();var buttonBar=jQuery("<div/>").addClass("buttonBar"),playpause=jQuery("<span>"+jQuery.mbYTPlayer.controls.play+"</span>").addClass("mb_YTPPlaypause ytpicon").click(function(){1==YTPlayer.player.getPlayerState()?jQuery(YTPlayer).YTPPause():jQuery(YTPlayer).YTPPlay()}),MuteUnmute=jQuery("<span>"+jQuery.mbYTPlayer.controls.mute+"</span>").addClass("mb_YTPMuteUnmute ytpicon").click(function(){0==YTPlayer.player.getVolume()?jQuery(YTPlayer).YTPUnmute():jQuery(YTPlayer).YTPMute()}),volumeBar=jQuery("<div/>").addClass("mb_YTPVolumeBar").css({display:"inline-block"});YTPlayer.volumeBar=volumeBar;var idx=jQuery("<span/>").addClass("mb_YTPTime"),vURL=data.videoURL?data.videoURL:"";vURL.indexOf("http")<0&&(vURL=jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+data.videoURL);var movieUrl=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){jQuery(YTPlayer).YTPFullscreen(data.realfullscreen)}),progressBar=jQuery("<div/>").addClass("mb_YTPProgress").css("position","absolute").click(function(t){timeBar.css({width:t.clientX-timeBar.offset().left}),YTPlayer.timeW=t.clientX-timeBar.offset().left,YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0});var e=Math.floor(YTPlayer.player.getDuration());YTPlayer.goto=timeBar.outerWidth()*e/progressBar.outerWidth(),YTPlayer.player.seekTo(parseFloat(YTPlayer.goto),!0),YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0})}),loadedBar=jQuery("<div/>").addClass("mb_YTPLoaded").css("position","absolute"),timeBar=jQuery("<div/>").addClass("mb_YTPseekbar").css("position","absolute");progressBar.append(loadedBar).append(timeBar),buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx),data.showYTLogo&&buttonBar.append(movieUrl),(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo),YTPlayer.controlBar.append(buttonBar).append(progressBar),YTPlayer.isBackground?jQuery("body").after(YTPlayer.controlBar):(YTPlayer.controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(YTPlayer.controlBar)),volumeBar.simpleSlider({initialval:YTPlayer.opt.vol,scale:100,orientation:"h",callback:function(t){0==t.value?jQuery(YTPlayer).YTPMute():jQuery(YTPlayer).YTPUnmute(),YTPlayer.player.setVolume(t.value),YTPlayer.isMute||(YTPlayer.opt.vol=t.value)}})}},checkForState:function(YTPlayer){var interval=YTPlayer.opt.showControls?100:400;return clearInterval(YTPlayer.getState),jQuery.contains(document,YTPlayer)?(jQuery.mbYTPlayer.checkForStart(YTPlayer),void(YTPlayer.getState=setInterval(function(){var prog=jQuery(YTPlayer).YTPManageProgress(),$YTPlayer=jQuery(YTPlayer),data=YTPlayer.opt,startAt=YTPlayer.start_from_last?YTPlayer.start_from_last:YTPlayer.opt.startAt?YTPlayer.opt.startAt:1;YTPlayer.start_from_last=null;var stopAt=YTPlayer.opt.stopAt>YTPlayer.opt.startAt?YTPlayer.opt.stopAt:0;if(stopAt=stopAt<YTPlayer.player.getDuration()?stopAt:0,YTPlayer.currentTime!=prog.currentTime){var YTPEvent=jQuery.Event("YTPTime");YTPEvent.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(YTPEvent)}if(YTPlayer.currentTime=prog.currentTime,YTPlayer.totalTime=YTPlayer.player.getDuration(),0==YTPlayer.player.getVolume()?$YTPlayer.addClass("isMuted"):$YTPlayer.removeClass("isMuted"),YTPlayer.opt.showControls&&(prog.totalTime?YTPlayer.controlBar.find(".mb_YTPTime").html(jQuery.mbYTPlayer.formatTime(prog.currentTime)+" / "+jQuery.mbYTPlayer.formatTime(prog.totalTime)):YTPlayer.controlBar.find(".mb_YTPTime").html("-- : -- / -- : --")),eval(YTPlayer.opt.stopMovieOnBlur)&&(document.hasFocus()?document.hasFocus()&&!YTPlayer.hasFocus&&-1!=YTPlayer.state&&0!=YTPlayer.state&&(YTPlayer.hasFocus=!0,$YTPlayer.YTPPlay()):1==YTPlayer.state&&(YTPlayer.hasFocus=!1,$YTPlayer.YTPPause())),YTPlayer.controlBar.length&&YTPlayer.controlBar.outerWidth()<=400&&!YTPlayer.isCompact?(YTPlayer.controlBar.addClass("compact"),YTPlayer.isCompact=!0,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)):YTPlayer.controlBar.length&&YTPlayer.controlBar.outerWidth()>400&&YTPlayer.isCompact&&(YTPlayer.controlBar.removeClass("compact"),YTPlayer.isCompact=!1,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)),1==YTPlayer.player.getPlayerState()&&(parseFloat(YTPlayer.player.getDuration()-.5)<YTPlayer.player.getCurrentTime()||stopAt>0&&parseFloat(YTPlayer.player.getCurrentTime())>stopAt)){if(YTPlayer.isEnded)return;if(YTPlayer.isEnded=!0,setTimeout(function(){YTPlayer.isEnded=!1},1e3),YTPlayer.isPlayList){if(!data.loop||data.loop>0&&YTPlayer.player.loopTime===data.loop-1){YTPlayer.player.loopTime=void 0,clearInterval(YTPlayer.getState);var YTPEnd=jQuery.Event("YTPEnd");return YTPEnd.time=YTPlayer.currentTime,void jQuery(YTPlayer).trigger(YTPEnd)}}else if(!data.loop||data.loop>0&&YTPlayer.player.loopTime===data.loop-1)return YTPlayer.player.loopTime=void 0,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),void YTPlayer.wrapper.CSSAnimate({opacity:0}
1,YTPlayer.opt.fadeOnStartTime,function(){YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);var t=jQuery.Event("YTPEnd");t.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(t),YTPlayer.player.seekTo(startAt,!0),YTPlayer.isBackground?YTPlayer.orig_background&&jQuery(YTPlayer).css("background-image",YTPlayer.orig_background):YTPlayer.opt.backgroundUrl&&YTPlayer.isPlayer&&(YTPlayer.opt.backgroundUrl=YTPlayer.opt.backgroundUrl||YTPlayer.orig_background,YTPlayer.opt.containment.css({background:"url("+YTPlayer.opt.backgroundUrl+") center center",backgroundSize:"cover"}))});YTPlayer.player.loopTime=YTPlayer.player.loopTime?++YTPlayer.player.loopTime:1,startAt=startAt||1,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),YTPlayer.player.seekTo(startAt,!0),$YTPlayer.YTPPlay()}},interval))):(jQuery(YTPlayer).YTPPlayerDestroy(),clearInterval(YTPlayer.getState),void clearInterval(YTPlayer.checkForStartAt))},getTime:function(){var t=this.get(0);return jQuery.mbYTPlayer.formatTime(t.currentTime)},getTotalTime:function(){var t=this.get(0);return jQuery.mbYTPlayer.formatTime(t.totalTime)},checkForStart:function(t){var e=jQuery(t);if(jQuery.contains(document,t)){if(t.preventTrigger=!0,t.state=2,jQuery(t).YTPPause(),jQuery(t).muteYTPVolume(),jQuery("#controlBar_"+t.id).remove(),t.controlBar=!1,t.opt.showControls&&jQuery.mbYTPlayer.buildControls(t),t.opt.addRaster){var i="dot"==t.opt.addRaster?"raster-dot":"raster";t.overlay.addClass(t.isRetina?i+" retina":i)}else t.overlay.removeClass(function(t,e){var i=e.split(" "),n=[];return jQuery.each(i,function(t,e){/raster.*/.test(e)&&n.push(e)}),n.push("retina"),n.join(" ")});var n=t.start_from_last?t.start_from_last:t.opt.startAt?t.opt.startAt:1;t.start_from_last=null,t.player.playVideo(),t.player.seekTo(n,!0),clearInterval(t.checkForStartAt),t.checkForStartAt=setInterval(function(){jQuery(t).YTPMute();var i=t.player.getVideoLoadedFraction()>=n/t.player.getDuration();if(t.player.getDuration()>0&&t.player.getCurrentTime()>=n&&i){clearInterval(t.checkForStartAt),"function"==typeof t.opt.onReady&&t.opt.onReady(t),t.isReady=!0;var r=jQuery.Event("YTPReady");if(r.time=t.currentTime,jQuery(t).trigger(r),t.preventTrigger=!0,t.state=2,jQuery(t).YTPPause(),t.opt.mute||jQuery(t).YTPUnmute(),t.canTrigger=!0,t.opt.autoPlay){var o=jQuery.Event("YTPStart");o.time=t.currentTime,jQuery(t).trigger(o),jQuery(t.playerEl).CSSAnimate({opacity:1},1e3),e.YTPPlay(),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},2*t.opt.fadeOnStartTime),"mac"==jQuery.mbBrowser.os.name&&jQuery.mbBrowser.safari&&jQuery.mbBrowser.versionCompare(jQuery.mbBrowser.fullVersion,"10.1")<0&&(t.safariPlay=setInterval(function(){1!=t.state?e.YTPPlay():clearInterval(t.safariPlay)},10)),e.one("YTPReady",function(){e.YTPPlay()})}else t.player.pauseVideo(),t.isPlayer||(jQuery(t.playerEl).CSSAnimate({opacity:1},t.opt.fadeOnStartTime),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},t.opt.fadeOnStartTime)),t.controlBar.length&&t.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);t.isPlayer&&!t.opt.autoPlay&&t.loading&&t.loading.length&&(t.loading.html("Ready"),setTimeout(function(){t.loading.fadeOut()},100)),t.controlBar&&t.controlBar.length&&t.controlBar.slideDown(1e3)}else"mac"==jQuery.mbBrowser.os.name&&jQuery.mbBrowser.safari&&jQuery.mbBrowser.fullVersion&&jQuery.mbBrowser.versionCompare(jQuery.mbBrowser.fullVersion,"10.1")<0&&(t.player.playVideo(),n>=0&&t.player.seekTo(n,!0))},10)}else jQuery(t).YTPPlayerDestroy()},setAnchor:function(t){this.optimizeDisplay(t)},getAnchor:function(){return this.get(0).opt.anchor},formatTime:function(t){var e=Math.floor(t/60),i=Math.floor(t-60*e);return(9>=e?"0"+e:e)+" : "+(9>=i?"0"+i:i)}},jQuery.fn.optimizeDisplay=function(anchor){var YTPlayer=this.get(0),playerBox=jQuery(YTPlayer.playerEl),vid={};YTPlayer.opt.anchor=anchor||YTPlayer.opt.anchor,YTPlayer.opt.anchor="undefined "!=typeof YTPlayer.opt.anchor?YTPlayer.opt.anchor:"center,center";var YTPAlign=YTPlayer.opt.anchor.split(",");if(YTPlayer.opt.optimizeDisplay){var abundance=YTPlayer.isPlayer?0:80,win={},el=YTPlayer.wrapper;win.width=el.outerWidth(),win.height=el.outerHeight()+abundance,YTPlayer.opt.ratio=eval(YTPlayer.opt.ratio),vid.width=win.width,vid.height=Math.ceil(vid.width/YTPlayer.opt.ratio),vid.marginTop=Math.ceil(-(vid.height-win.height)/2),vid.marginLeft=0;var lowest=vid.height<win.height;for(var a in lowest&&(vid.height=win.height,vid.width=Math.ceil(vid.height*YTPlayer.opt.ratio),vid.marginTop=0,vid.marginLeft=Math.ceil(-(vid.width-win.width)/2)),YTPAlign)if(YTPAlign.hasOwnProperty(a)){var al=YTPAlign[a].replace(/ /g,"");switch(al){case"top":vid.marginTop=lowest?-(vid.height-win.height)/2:0;break;case"bottom":vid.marginTop=lowest?0:-(vid.height-win.height);break;case"left":vid.marginLeft=0;break;
1case"right":vid.marginLeft=lowest?-(vid.width-win.width):0;break;default:vid.width>win.width&&(vid.marginLeft=-(vid.width-win.width)/2)}}}else vid.width="100%",vid.height="100%",vid.marginTop=0,vid.marginLeft=0;playerBox.css({width:vid.width,height:vid.height,marginTop:vid.marginTop,marginLeft:vid.marginLeft,maxWidth:"initial"})},jQuery.shuffle=function(t){for(var e=t.slice(),i=e.length,n=i;n--;){var r=parseInt(Math.random()*i),o=e[n];e[n]=e[r],e[r]=o}return e},jQuery.fn.unselectable=function(){return this.each(function(){jQuery(this).css({"-moz-user-select":"none","-webkit-user-select":"none","user-select":"none"}).attr("unselectable","on")})},jQuery.fn.YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.YTPGetPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.YTPGetVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.YTPChangeMovie=jQuery.mbYTPlayer.changeMovie,jQuery.fn.YTPPlayerDestroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.YTPPlay=jQuery.mbYTPlayer.play,jQuery.fn.YTPTogglePlay=jQuery.mbYTPlayer.togglePlay,jQuery.fn.YTPStop=jQuery.mbYTPlayer.stop,jQuery.fn.YTPPause=jQuery.mbYTPlayer.pause,jQuery.fn.YTPSeekTo=jQuery.mbYTPlayer.seekTo,jQuery.fn.YTPlaylist=jQuery.mbYTPlayer.playlist,jQuery.fn.YTPPlayNext=jQuery.mbYTPlayer.playNext,jQuery.fn.YTPPlayPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.YTPPlayIndex=jQuery.mbYTPlayer.playIndex,jQuery.fn.YTPMute=jQuery.mbYTPlayer.mute,jQuery.fn.YTPUnmute=jQuery.mbYTPlayer.unmute,jQuery.fn.YTPToggleVolume=jQuery.mbYTPlayer.toggleVolume,jQuery.fn.YTPSetVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.YTPGetVideoData=jQuery.mbYTPlayer.getVideoData,jQuery.fn.YTPFullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.YTPToggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.YTPSetVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.YTPManageProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPApplyFilter=jQuery.mbYTPlayer.applyFilter,jQuery.fn.YTPApplyFilters=jQuery.mbYTPlayer.applyFilters,jQuery.fn.YTPToggleFilter=jQuery.mbYTPlayer.toggleFilter,jQuery.fn.YTPToggleFilters=jQuery.mbYTPlayer.toggleFilters,jQuery.fn.YTPRemoveFilter=jQuery.mbYTPlayer.removeFilter,jQuery.fn.YTPDisableFilters=jQuery.mbYTPlayer.disableFilters,jQuery.fn.YTPEnableFilters=jQuery.mbYTPlayer.enableFilters,jQuery.fn.YTPGetFilters=jQuery.mbYTPlayer.getFilters,jQuery.fn.YTPGetTime=jQuery.mbYTPlayer.getTime,jQuery.fn.YTPGetTotalTime=jQuery.mbYTPlayer.getTotalTime,jQuery.fn.YTPAddMask=jQuery.mbYTPlayer.addMask,jQuery.fn.YTPRemoveMask=jQuery.mbYTPlayer.removeMask,jQuery.fn.YTPToggleMask=jQuery.mbYTPlayer.toggleMask,jQuery.fn.YTPSetAnchor=jQuery.mbYTPlayer.setAnchor,jQuery.fn.YTPGetAnchor=jQuery.mbYTPlayer.getAnchor,jQuery.fn.mb_YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.playNext=jQuery.mbYTPlayer.playNext,jQuery.fn.playPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.changeMovie=jQuery.mbYTPlayer.changeMovie,jQuery.fn.getVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.getPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.playerDestroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.fullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.buildYTPControls=jQuery.mbYTPlayer.buildControls,jQuery.fn.playYTP=jQuery.mbYTPlayer.play,jQuery.fn.toggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.stopYTP=jQuery.mbYTPlayer.stop,jQuery.fn.pauseYTP=jQuery.mbYTPlayer.pause,jQuery.fn.seekToYTP=jQuery.mbYTPlayer.seekTo,jQuery.fn.muteYTPVolume=jQuery.mbYTPlayer.mute,jQuery.fn.unmuteYTPVolume=jQuery.mbYTPlayer.unmute,jQuery.fn.setYTPVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.setVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.manageYTPProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPGetDataFromFeed=jQuery.mbYTPlayer.getVideoData}(jQuery,ytp),jQuery.support.CSStransition=function(){var t=(document.body||document.documentElement).style;return void 0!==t.transition||void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.MsTransition||void 0!==t.OTransition}(),jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(t){var e=jQuery.extend(!0,{},t);for(var i in jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-"),e){"transform"===i&&(e[jQuery.CSS.sfx+"transform"]=e[i],delete e[i]),"transform-origin"===i&&(e[jQuery.CSS.sfx+"transform-origin"]=t[i],delete e[i]),"filter"!==i||jQuery.browser.mozilla||(e[jQuery.CSS.sfx+"filter"]=t[i],delete e[i]),"blur"===i&&setFilter(e,"blur",t[i]),"brightness"===i&&setFilter(e,"brightness",t[i]),"contrast"===i&&setFilter(e,"contrast",t[i]),"grayscale"===i&&setFilter(e,"grayscale",t[i]),"hueRotate"===i&&setFilter(e,"hueRotate",t[i]),"invert"===i&&setFilter(e,"invert",t[i]),"saturate"===i&&setFilter(e,"saturate",t[i]),"sepia"===i&&setFilter(e,"sepia",t[i]);var n="";"x"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" translateX("+setUnit(t[i],"px")+")",delete e[i]),"y"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" translateY("+setUnit(t[i],"px")+")",delete e[i]),"z"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" translateZ("+setUnit(t[i],"px")+")",delete e[i]),"rotate"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" rotate("+setUnit(t[i],"deg")+")",delete e[i]),"rotateX"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" rotateX("+setUnit(t[i],"deg")+")",delete e[i]),"rotateY"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" rotateY("+setUnit(t[i],"deg")+")",delete e[i]),"rotateZ"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" rotateZ("+setUnit(t[i],"deg")+")",delete e[i]),"scale"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" scale("+setUnit(t[i],"")+")",delete e[i]),"scaleX"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" scaleX("+setUnit(t[i],"")+")",delete e[i]),"scaleY"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" scaleY("+setUnit(t[i],"")+")",delete e[i]),"scaleZ"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" scaleZ("+setUnit(t[i],"")+")",delete e[i]),"skew"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" skew("+setUnit(t[i],"deg")+")",delete e[i]),"skewX"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" skewX("+setUnit(t[i],"deg")+")",delete e[i]),"skewY"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" skewY("+setUnit(t[i],"deg")+")",delete e[i]),"perspective"===i&&(e[n=jQuery.CSS.sfx+"transform"]=e[n]||"",e[n]+=" perspective("+setUnit(t[i],"px")+")",delete e[i])}return e},getProp:function(t){var e=[];for(var i in t)e.indexOf(i)<0&&e.push(uncamel(i));return e.join(",")}
vendor: 12,159 bytes, line 1
1,animate:function(t,e,i,n,r){return this.each(function(){function o(){a.called=!0,a.CSSAIsRunning=!1,s.off(jQuery.CSS.transitionEnd+"."+a.id),clearTimeout(a.timeout),s.css(jQuery.CSS.sfx+"transition",""),"function"==typeof r&&r.apply(a),"function"==typeof a.CSSqueue&&(a.CSSqueue(),a.CSSqueue=null)}var a=this,s=jQuery(this);a.id=a.id||"CSSA_"+(new Date).getTime();var l=l||{type:"noEvent"};if(a.CSSAIsRunning&&a.eventType==l.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)a.CSSqueue=function(){s.CSSAnimate(t,e,i,n,r)};else if(a.CSSqueue=null,a.eventType=l.type,0!==s.length&&t){if(t=jQuery.normalizeCss(t),a.CSSAIsRunning=!0,"function"==typeof e&&(r=e,e=jQuery.fx.speeds._default),"function"==typeof i&&(n=i,i=0),"string"==typeof i&&(r=i,i=0),"function"==typeof n&&(r=n,n="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof e)for(var u in jQuery.fx.speeds){if(e==u){e=jQuery.fx.speeds[u];break}e=jQuery.fx.speeds._default}if(e||(e=jQuery.fx.speeds._default),"string"==typeof r&&(n=r,r=null),!jQuery.support.CSStransition){for(var c in t){if("transform"===c&&delete t[c],"filter"===c&&delete t[c],"transform-origin"===c&&delete t[c],"auto"===t[c]&&delete t[c],"x"===c){var d=t[c];t["left"]=d,delete t[c]}if("y"===c){d=t[c];t["top"]=d,delete t[c]}("-ms-transform"===c||"-ms-filter"===c)&&delete t[c]}return void s.delay(i).animate(t,e,r)}var h={default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};h[n]&&(n=h[n]),s.off(jQuery.CSS.transitionEnd+"."+a.id);var f=jQuery.CSS.getProp(t),p={};jQuery.extend(p,t),p[jQuery.CSS.sfx+"transition-property"]=f,p[jQuery.CSS.sfx+"transition-duration"]=e+"ms",p[jQuery.CSS.sfx+"transition-delay"]=i+"ms",p[jQuery.CSS.sfx+"transition-timing-function"]=n,setTimeout(function(){s.one(jQuery.CSS.transitionEnd+"."+a.id,o),s.css(p)},1),a.timeout=setTimeout(function(){return a.called||!r?(a.called=!1,void(a.CSSAIsRunning=!1)):(s.css(jQuery.CSS.sfx+"transition",""),r.apply(a),a.CSSAIsRunning=!1,void("function"==typeof a.CSSqueue&&(a.CSSqueue(),a.CSSqueue=null)))},e+i+10)}})}},jQuery.fn.CSSAnimate=jQuery.CSS.animate,jQuery.normalizeCss=jQuery.CSS.normalizeCss,jQuery.fn.css3=function(t){return this.each(function(){var e=jQuery(this),i=jQuery.normalizeCss(t);e.css(i)})};var nAgt=navigator.userAgent;jQuery.browser=jQuery.browser||{},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.edge=!1,jQuery.browser.ua=nAgt;var getOS=function(){var t={version:"Unknown version",name:"Unknown OS"};return-1!=navigator.appVersion.indexOf("Win")&&(t.name="Windows"),-1!=navigator.appVersion.indexOf("Mac")&&0>navigator.appVersion.indexOf("Mobile")&&(t.name="Mac"),-1!=navigator.appVersion.indexOf("Linux")&&(t.name="Linux"),/Mac OS X/.test(nAgt)&&!/Mobile/.test(nAgt)&&(t.version=/Mac OS X (10[\.\_\d]+)/.exec(nAgt)[1],t.version=t.version.replace(/_/g,".").substring(0,5)),/Windows/.test(nAgt)&&(t.version="Unknown.Unknown"),/Windows NT 5.1/.test(nAgt)&&(t.version="5.1"),/Windows NT 6.0/.test(nAgt)&&(t.version="6.0"),/Windows NT 6.1/.test(nAgt)&&(t.version="6.1"),/Windows NT 6.2/.test(nAgt)&&(t.version="6.2"),/Windows NT 10.0/.test(nAgt)&&(t.version="10.0"),/Linux/.test(nAgt)&&/Linux/.test(nAgt)&&(t.version="Unknown.Unknown"),t.name=t.name.toLowerCase(),t.major_version="Unknown",t.minor_version="Unknown","Unknown.Unknown"!=t.version&&(t.major_version=parseFloat(t.version.split(".")[0]),t.minor_version=parseFloat(t.version.split(".")[1])),t},nameOffset,verOffset,ix;if(jQuery.browser.os=getOS(),jQuery.browser.hasTouch=isTouchSupported(),jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10),-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer";var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Edge"))?(jQuery.browser.edge=!0,jQuery.browser.name="Microsoft Edge",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1<nAgt.indexOf("mozilla/5.0")&&-1<nAgt.indexOf("android ")&&-1<nAgt.indexOf("applewebkit")&&!(-1<nAgt.indexOf("chrome"))?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion,jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&765<jQuery(window).width(),jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),jQuery.mbBrowser=jQuery.browser,jQuery.browser.versionCompare=function(t,e){if("stringstring"!=typeof t+typeof e)return!1;for(var i=t.split("."),n=e.split("."),r=0,o=Math.max(i.length,n.length);o>r;r++){if(i[r]&&!n[r]&&0<parseInt(i[r])||parseInt(i[r])>parseInt(n[r]))return 1;if(n[r]&&!i[r]&&0<parseInt(n[r])||parseInt(i[r])<parseInt(n[r]))return-1}return 0},function(t){t.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:t.browser.mobile?"touchstart":"mousedown",end:t.browser.mobile?"touchend":"mouseup",move:t.browser.mobile?"touchmove":"mousemove"},init:function(e){return this.each(function(){var i=this,n=t(i);n.addClass("simpleSlider"),i.opt={},t.extend(i.opt,t.simpleSlider.defaults,e),t.extend(i.opt,n.data());var r="h"==i.opt.orientation?"horizontal":"vertical";r=t("<div/>").addClass("level").addClass(r);n.prepend(r),i.level=r,n.css({cursor:"default"}),"auto"==i.opt.scale&&(i.opt.scale=t(i).outerWidth()),n.updateSliderVal(),i.opt.readonly||(n.on(t.simpleSlider.events.start,function(e){t.browser.mobile&&(e=e.changedTouches[0]),i.canSlide=!0,n.updateSliderVal(e),"h"==i.opt.orientation?n.css({cursor:"col-resize"}):n.css({cursor:"row-resize"}),e.preventDefault(),e.stopPropagation()}),t(document).on(t.simpleSlider.events.move,function(e){t.browser.mobile&&(e=e.changedTouches[0]),i.canSlide&&(t(document).css({cursor:"default"}),n.updateSliderVal(e),e.preventDefault(),e.stopPropagation())}).on(t.simpleSlider.events.end,function(){t(document).css({cursor:"auto"}),i.canSlide=!1,n.css({cursor:"auto"})}))})},updateSliderVal:function(e){var i=this.get(0);if(i.opt){i.opt.initialval="number"==typeof i.opt.initialval?i.opt.initialval:i.opt.initialval(i);var n=t(i).outerWidth(),r=t(i).outerHeight();i.x="object"==typeof e?e.clientX+document.body.scrollLeft-this.offset().left:"number"==typeof e?e*n/i.opt.scale:i.opt.initialval*n/i.opt.scale,i.y="object"==typeof e?e.clientY+document.body.scrollTop-this.offset().top:"number"==typeof e?(i.opt.scale-i.opt.initialval-e)*r/i.opt.scale:i.opt.initialval*r/i.opt.scale,i.y=this.outerHeight()-i.y,i.scaleX=i.x*i.opt.scale/n,i.scaleY=i.y*i.opt.scale/r,i.outOfRangeX=i.scaleX>i.opt.scale?i.scaleX-i.opt.scale:0>i.scaleX?i.scaleX:0,i.outOfRangeY=i.scaleY>i.opt.scale?i.scaleY-i.opt.scale:0>i.scaleY?i.scaleY:0,i.outOfRange="h"==i.opt.orientation?i.outOfRangeX:i.outOfRangeY,i.value=void 0!==e?"h"==i.opt.orientation?i.x>=this.outerWidth()?i.opt.scale:0>=i.x?0:i.scaleX:i.y>=this.outerHeight()?i.opt.scale:0>=i.y?0:i.scaleY:"h"==i.opt.orientation?i.scaleX:i.scaleY,"h"==i.opt.orientation?i.level.width(Math.floor(100*i.x/n)+"%"):i.level.height(Math.floor(100*i.y/r)),"function"==typeof i.opt.callback&&i.opt.callback(i)}}},t.fn.simpleSlider=t.simpleSlider.init,t.fn.updateSliderVal=t.simpleSlider.updateSliderVal}(jQuery),function(t){t.mbCookie={set:function(t,e,i,n){"object"==typeof e&&(e=JSON.stringify(e)),n=n?"; domain="+n:"";var r=new Date,o="";i>0&&(r.setTime(r.getTime()+864e5*i),o="; expires="+r.toGMTString()),document.cookie=t+"="+e+o+"; path=/"+n},get:function(t){t+="=";for(var e=document.cookie.split(";"),i=0;i<e.length;i++){for(var n=e[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(t))try{return JSON.parse(n.substring(t.length,n.length))}catch(e){return n.substring(t.length,n.length)}}return null},remove:function(e){t.mbCookie.set(e,"",-1)}},t.mbStorage={set:function(t,e){"object"==typeof e&&(e=JSON.stringify(e)),localStorage.setItem(t,e)},get:function(t){if(!localStorage[t])return null;try{return JSON.parse(localStorage[t])}catch(e){return localStorage[t]}},remove:function(t){t?localStorage.removeItem(t):localStorage.clear()}}}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.