function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ColorFinder(t){this.callback=t,this.getMostProminentColor=function(t){var e=null;this.callback||(this.callback=function(){return 1});var i=this.getImageData(t);return e=this.getMostProminentRGBImpl(i,6,e,this.callback),e=this.getMostProminentRGBImpl(i,4,e,this.callback),e=this.getMostProminentRGBImpl(i,2,e,this.callback),e=this.getMostProminentRGBImpl(i,0,e,this.callback)},this.getImageData=function(t,e,i,n){var o,s,r,a,l,c,d=document.createElement("canvas"),u=d.getContext&&d.getContext("2d"),p=-4;if(!u)return defaultRGB;a=d.height=t.naturalHeight||t.offsetHeight||t.height,r=d.width=t.naturalWidth||t.offsetWidth||t.width,u.drawImage(t,0,0);try{s=u.getImageData(0,0,r,a)}catch(t){return null}c=s.data.length;for(var h=Math.max(1,Math.round(c/5e3)),f={};(p+=4*h)32&&(l=(s.data[p]>>e)+","+(s.data[p+1]>>e)+","+(s.data[p+2]>>e),f.hasOwnProperty(l)?(o=f[l],o.count++):(o={r:s.data[p],g:s.data[p+1],b:s.data[p+2],count:1},o.weight=this.callback(o.r,o.g,o.b),o.weight<=0&&(o.weight=1e-10),f[l]=o));return f},this.getMostProminentRGBImpl=function(t,e,i,n){var o,s,r,a,l,c,d,u={r:0,g:0,b:0,count:0,d:e},p={},h=0;for(s in t)o=t[s],a=o.weight*o.count,++h,this.doesRgbMatch(i,o.r,o.g,o.b)&&(r=(o.r>>e)+","+(o.g>>e)+","+(o.b>>e),p.hasOwnProperty(r)?p[r]+=a:p[r]=a);for(var f in p){var m=f.split(","),l=m[0],c=m[1],d=m[2];h=p[f],h>u.count&&(u.count=h,m=f.split(","),u.r=l,u.g=c,u.b=d)}return u},this.doesRgbMatch=function(t,e,i,n){return null==t||(e>>=t.d,i>>=t.d,n>>=t.d,t.r==e&&t.g==i&&t.b==n)}}var global=Function("return this;")(),Symbol=global.Symbol,idCounter=0;Symbol||(Symbol=function(t){return"__"+t+"_"+Math.floor(1e9*Math.random())+"_"+ ++idCounter+"__"},Symbol.iterator=Symbol("Symbol.iterator")),("undefined"!=typeof module?exports:global).Symbol=Symbol;var _extends=Object.assign||function(t){for(var e=1;e=e(t)+n+t.offsetHeight},r=function(t,e,i){return(e===window?window.pageXOffset:n(e))>=n(t)+i+t.offsetWidth},a=function(t,e,n){return!(i(t,e,n)||s(t,e,n)||o(t,e,n)||r(t,e,n))},l=function(t,e){t&&t(e)},c=function(t){var e=new u(t),i=new CustomEvent("LazyLoad::Initialized",{detail:{instance:e}});window.dispatchEvent(i)},d={elements_selector:"img",container:window,threshold:300,throttle:150,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_initial:"initial",skip_invisible:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null},u=function(){function e(t){_classCallCheck(this,e),this._settings=_extends({},d,t),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._boundHandleScroll=this.handleScroll.bind(this),this._isFirstLoop=!0,window.addEventListener("resize",this._boundHandleScroll),this.update()}return _createClass(e,[{key:"_setSourcesForPicture",value:function(t,e){var i=t.parentElement;if("PICTURE"===i.tagName)for(var n=0;n0;)i.splice(s.pop(),1),l(e.callback_processed,i.length);0===n&&this._stopScrollHandler(),r&&(this._isFirstLoop=!1)}},{key:"_purgeElements",value:function(){var t=this._elements,e=t.length,i=void 0,n=[];for(i=0;i0;)t.splice(n.pop(),1)}},{key:"_startScrollHandler",value:function(){this._isHandlingScroll||(this._isHandlingScroll=!0,this._settings.container.addEventListener("scroll",this._boundHandleScroll))}},{key:"_stopScrollHandler",value:function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,this._settings.container.removeEventListener("scroll",this._boundHandleScroll))}},{key:"handleScroll",value:function(){var t=this,e=this._settings.throttle;0!==e?function(){var i=function(){(new Date).getTime()},n=i(),o=e-(n-t._previousLoopTime);o<=0||o>e?(t._loopTimeout&&(clearTimeout(t._loopTimeout),t._loopTimeout=null),t._previousLoopTime=n,t._loopThroughElements()):t._loopTimeout||(t._loopTimeout=setTimeout(function(){this._previousLoopTime=i(),this._loopTimeout=null,this._loopThroughElements()}.bind(t),o))}():this._loopThroughElements()}},{key:"update",value:function(){this._elements=Array.prototype.slice.call(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()}},{key:"destroy",value:function(){window.removeEventListener("resize",this._boundHandleScroll),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null}}]),e}(),p=window.lazyLoadOptions;return p&&function(t){var e=t.length;if(e)for(var i=0;iPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){f();var n=t(this);if("string"==typeof i)if("open"===i){var o,s=l?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?o=s.items[r]:(o=n,s.delegate&&(o=o.find(s.delegate)),o=o.eq(r)),e._openClick({mfpEl:o},n,s)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),l?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var g,v,y,w=function(){y&&(v.after(y.addClass(g)).detach(),y=null)};t.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push("inline"),d("Close.inline",function(){w()})},getInline:function(i,n){if(w(),i.src){var o=e.st.inline,s=t(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(v||(g=o.hiddenClass,v=u(g),g="mfp-"+g),y=s.after(v).detach().removeClass(g)),e.updateStatus("ready")}else e.updateStatus("error",o.tNotFound),s=t("
");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var b,k=function(){b&&t(document.body).removeClass(b)},T=function(){k(),e.req&&e.req.abort()};t.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push("ajax"),b=e.st.ajax.cursor,d("Close.ajax",T),d("BeforeChange.ajax",T)},getAjax:function(i){b&&t(document.body).addClass(b),e.updateStatus("loading");var n=t.extend({url:i.src,success:function(n,o,s){var r={data:n,xhr:s};p("ParseAjax",r),e.appendContent(t(r.data),"ajax"),i.finished=!0,k(),e._setFocus(),setTimeout(function(){e.wrap.addClass("mfp-ready")},16),e.updateStatus("ready"),p("AjaxContentAdded")},error:function(){k(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(n),""}}});var C,S=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,n=".image";e.types.push("image"),d("Open"+n,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),d("Close"+n,function(){i.cursor&&t(document.body).removeClass(i.cursor),c.off("resize.mfp")}),d("Resize"+n,e.resizeImage),e.isLowIE&&d("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,C&&clearInterval(C),t.isCheckingImgSize=!1,p("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],o=function(s){C&&clearInterval(C),C=setInterval(function(){if(n.naturalWidth>0)return void e._onImageHasSize(t);i>200&&clearInterval(C),i++,3===i?o(10):40===i?o(50):100===i&&o(500)},s)};o(1)},getImage:function(i,n){var o=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,p("ImageLoadComplete")):(o++,o<200?setTimeout(s,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",s).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(n,{title:S(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(C&&clearInterval(C),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var x,E=function(){return void 0===x&&(x=void 0!==document.createElement("p").style.MozTransform),x};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,n=".zoom";if(i.enabled&&e.supportsTransition){var o,s,r=i.duration,a=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return o["-webkit-"+s]=o["-moz-"+s]=o["-o-"+s]=o[s]=n,e.css(o),e},l=function(){e.content.css("visibility","visible")};d("BuildControls"+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void l();s=a(t),s.css(e._getOffset()),e.wrap.append(s),o=setTimeout(function(){s.css(e._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){s.remove(),t=s=null,p("ZoomAnimationEnded")},16)},r)},16)}}),d("BeforeClose"+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;s=a(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout(function(){s.css(e._getOffset())},16)}}),d("Close"+n,function(){e._allowZoom()&&(l(),s&&s.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n;n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var o=n.offset(),s=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=t(window).scrollTop()-s;var a={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-r-s};return E()?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var A=function(t){if(e.currTemplate.iframe){var i=e.currTemplate.iframe.find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule("iframe",{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push("iframe"),d("BeforeChange",function(t,e,i){e!==i&&("iframe"===e?A():"iframe"===i&&A(!0))}),d("Close.iframe",function(){A()})},getIframe:function(i,n){var o=i.src,s=e.st.iframe;t.each(s.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return s.srcAction&&(r[s.srcAction]=o),e._parseMarkup(n,r,i),e.updateStatus("ready"),n}}});var _=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},M=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,o=".mfp-gallery";if(e.direction=!0,!i||!i.enabled)return!1;s+=" mfp-gallery",d("Open"+o,function(){i.navigateByImgClick&&e.wrap.on("click"+o,".mfp-img",function(){if(e.items.length>1)return e.next(),!1}),n.on("keydown"+o,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),d("UpdateStatus"+o,function(t,i){i.text&&(i.text=M(i.text,e.currItem.index,e.items.length))}),d("MarkupParse"+o,function(t,n,o,s){var r=e.items.length;o.counter=r>1?M(i.tCounter,s.index,r):""}),d("BuildControls"+o,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,o=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),s=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){e.prev()}),s.click(function(){e.next()}),e.container.append(o.add(s))}}),d("Change"+o,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),d("Close"+o,function(){n.off(o),e.wrap.off("click"+o),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=_(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=_(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=_(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),p("LazyLoad",n),"image"===n.type&&(n.img=t('').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,p("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});t.magnificPopup.registerModule("retina",{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(d("ImageHasSize.retina",function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),d("ElementParse.retina",function(e,n){n.src=t.replaceSrc(n,i)}))}}}}),f()}),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var r=t("#"===s?[]:s);e&&e.preventDefault(),r.length||(r=o.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t,e,i){"use strict";var n=function(t,e){var n=this;this.el=t,this.options={},Object.keys(o).forEach(function(t){n.options[t]=o[t]}),Object.keys(e).forEach(function(t){n.options[t]=e[t]}),this.isInput="input"===this.el.tagName.toLowerCase(),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.getAttribute(this.attr):this.el.textContent,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,i&&this.options.stringsElement instanceof i?this.stringsElement=this.options.stringsElement[0]: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()};n.prototype={constructor:n,init:function(){var t=this;t.timeout=setTimeout(function(){for(var e=0;e":";";t.substr(i+1).charAt(0)!==c&&(l+=t.substr(i).charAt(0),!(++i+1>t.length)););i++,l+=c}}o.timeout=setTimeout(function(){if(i===t.length){if(o.options.onStringTyped(o.arrayPos),o.arrayPos===o.strings.length-1&&(o.options.callback(),o.curLoop++,!1===o.loop||o.curLoop===o.loopCount))return;o.timeout=setTimeout(function(){o.backspace(t,i)},o.backDelay)}else{0===i&&o.options.preStringTyped(o.arrayPos);var n=t.substr(i,1);if(o.attr)o.el.setAttribute(o.attr,n);else if(o.isInput)o.el.value=n;else if("html"===o.contentType){var s=e.createElement("span");s.innerHTML=" "===n?" ":n,o.el.appendChild(s),setTimeout(function(){s.className="typed-text"},100)}else o.el.textContent=n;i++,o.typewrite(t,i)}},n)},n)}},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(var i="";"<"!==t.substr(e-1).charAt(0)&&(i-=t.substr(e).charAt(0),!(--e<0)););e--,i+="<"}var o=t.substr(0,e);n.attr?n.el.setAttribute(n.attr,o):n.isInput?n.el.value=o:"html"===n.contentType?n.el.innerHTML=o:n.el.textContent=o,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;)i=Math.floor(Math.random()*(n+1)),e=t[i],t[i]=t[n],t[n]=e;return t},reset:function(){var t=this;clearInterval(t.timeout);this.el.getAttribute("id");this.el.textContent="",void 0!==this.cursor&&void 0!==this.cursor.parentNode&&this.cursor.parentNode.removeChild(this.cursor),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},n.new=function(t,i){Array.prototype.slice.apply(e.querySelectorAll(t)).forEach(function(t){var e=t._typed,o="object"==typeof i&&i;e&&e.reset(),t._typed=e=new n(t,o),"string"==typeof i&&e[i]()})},i&&(i.fn.typed=function(t){return this.each(function(){var e=i(this),o=e.data("typed"),s="object"==typeof t&&t;o&&o.reset(),e.data("typed",o=new n(this,s)),"string"==typeof t&&o[t]()})}),t.Typed=n;var o={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,document,window.jQuery);var QRCode;!function(){function t(t){this.mode=l.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,i=this.data.length;e65536?(n[0]=240|(1835008&o)>>>18,n[1]=128|(258048&o)>>>12,n[2]=128|(4032&o)>>>6,n[3]=128|63&o):o>2048?(n[0]=224|(61440&o)>>>12,n[1]=128|(4032&o)>>>6,n[2]=128|63&o):o>128?(n[0]=192|(1984&o)>>>6,n[1]=128|63&o):n[0]=o,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function i(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var i=0;if.length)throw new Error("Too long data");return i}function a(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,i=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,i)},setupPositionProbePattern:function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+i][e+n]=0<=i&&i<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var n=u.getLostPoint(this);(0==i||t>n)&&(t=n,e=i)}return e},createMovieClip:function(t,e,i){var n=t.createEmptyMovieClip(e,i);this.make();for(var o=0;o>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n}for(var i=0;i<18;i++){var n=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},setupTypeInfo:function(t,e){for(var i=this.errorCorrectLevel<<3|e,n=u.getBCHTypeInfo(i),o=0;o<15;o++){var s=!t&&1==(n>>o&1);o<6?this.modules[o][8]=s:o<8?this.modules[o+1][8]=s:this.modules[this.moduleCount-15+o][8]=s}for(var o=0;o<15;o++){var s=!t&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var i=-1,n=this.moduleCount-1,o=7,s=0,r=this.moduleCount-1;r>0;r-=2)for(6==r&&r--;;){for(var a=0;a<2;a++)if(null==this.modules[n][r-a]){var l=!1;s>>o&1));var c=u.getMask(e,n,r-a);c&&(l=!l),this.modules[n][r-a]=l,o--,-1==o&&(s++,o=7)}if((n+=i)<0||this.moduleCount<=n){n-=i,i=-i;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,i,s){for(var r=n.getRSBlocks(t,i),a=new o,l=0;l8*d)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*d+")");for(a.getLengthInBits()+4<=8*d&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;;){if(a.getLengthInBits()>=8*d)break;if(a.put(e.PAD0,8),a.getLengthInBits()>=8*d)break;a.put(e.PAD1,8)}return e.createBytes(a,r)},e.createBytes=function(t,e){for(var n=0,o=0,s=0,r=new Array(e.length),a=new Array(e.length),l=0;l=0?m.get(g):0}}for(var v=0,p=0;p=0;)e^=u.G15<=0;)e^=u.G18<>>=1;return e},getPatternPosition:function(t){return u.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case d.PATTERN000:return(e+i)%2==0;case d.PATTERN001:return e%2==0;case d.PATTERN010:return i%3==0;case d.PATTERN011:return(e+i)%3==0;case d.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case d.PATTERN101:return e*i%2+e*i%3==0;case d.PATTERN110:return(e*i%2+e*i%3)%2==0;case d.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new i([1],0),n=0;n5&&(i+=3+s-5)}for(var n=0;n=256;)t-=255;return p.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},h=0;h<8;h++)p.EXP_TABLE[h]=1<>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var f=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],m=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){function e(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);for(var n in e)e.hasOwnProperty(n)&&i.setAttribute(n,e[n]);return i}var i=this._htOption,n=this._el,o=t.getModuleCount();Math.floor(i.width/o),Math.floor(i.height/o);this.clear();var s=e("svg",{viewBox:"0 0 "+String(o)+" "+String(o),width:"100%",height:"100%",fill:i.colorLight});s.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.appendChild(s),s.appendChild(e("rect",{fill:i.colorLight,width:"100%",height:"100%"})),s.appendChild(e("rect",{fill:i.colorDark,width:"1",height:"1",id:"template"}));for(var r=0;r'],a=0;a");for(var l=0;l');r.push("")}r.push(""),i.innerHTML=r.join("");var c=i.childNodes[0],d=(e.width-c.offsetWidth)/2,u=(e.height-c.offsetHeight)/2;d>0&&u>0&&(c.style.margin=u+"px "+d+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();QRCode=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.H},"string"==typeof e&&(e={text:e}),e)for(var i in e)this._htOption[i]=e[i];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(v=m),this._android=s(),this._el=t,this._oQRCode=null,this._oDrawing=new v(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},QRCode.prototype.makeCode=function(t){this._oQRCode=new e(r(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},QRCode.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},QRCode.prototype.clear=function(){this._oDrawing.clear()},QRCode.CorrectLevel=c}(),function(){"use strict";function t(t){if(void 0===t)throw new Error('Pathformer [constructor]: "element" parameter is required');if(t.constructor===String&&!(t=document.getElementById(t)))throw new Error('Pathformer [constructor]: "element" parameter is not related to an existing ID');if(!(t instanceof window.SVGElement||t instanceof window.SVGGElement||/^svg$/i.test(t.nodeName)))throw new Error('Pathformer [constructor]: "element" parameter must be a string or a SVGelement');this.el=t,this.scan(t)}function e(t,e,n){i(),this.isReady=!1,this.setElement(t,e),this.setOptions(e),this.setCallback(n),this.isReady&&this.init()}t.prototype.TYPES=["line","ellipse","circle","polygon","polyline","rect"],t.prototype.ATTR_WATCH=["cx","cy","points","r","rx","ry","x","x1","x2","y","y1","y2"],t.prototype.scan=function(t){for(var e,i,n,o,s=t.querySelectorAll(this.TYPES.join(",")),r=0;r=this.duration)throw new Error("Vivus [constructor]: delay must be shorter than duration")},e.prototype.setCallback=function(t){if(t&&t.constructor!==Function)throw new Error('Vivus [constructor]: "callback" parameter must be a function');this.callback=t||function(){}},e.prototype.mapping=function(){var t,e,i,n,o,r,a,l;for(l=r=a=0,e=this.el.querySelectorAll("path"),t=0;t1?e.length-1:1),this.reverseStack&&this.map.reverse(),t=0;t=this.frameLength))return this.trace(),void(this.handle=n(function(){t.drawer()}));this.stop(),this.currentFrame=this.frameLength,this.trace(),this.selfDestroy&&this.destroy()}this.callback(this),this.instanceCallback&&(this.instanceCallback(this),this.instanceCallback=null)},e.prototype.trace=function(){var t,e,i,n;for(n=this.animTimingFunction(this.currentFrame/this.frameLength)*this.frameLength,t=0;t=i},e.prototype.getViewportH=function(){var t=this.docElem.clientHeight,e=window.innerHeight;return t=0?i:e},"function"==typeof define&&define.amd?define([],function(){return e}):"object"==typeof exports?module.exports=e:window.Vivus=e}(),function(t){"use strict";function e(){var e=l.clientHeight,i=t.innerHeight;return e=r}function s(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(){var t=this;this.didScroll||(this.didScroll=!0,setTimeout(function(){t._scrollPage()},60))}function a(t,e){this.el=t,this.options=s(this.defaults,e),this._onScrollFn=r.bind(this),this._init()}var l=t.document.documentElement;if(navigator.appVersion.indexOf("MSIE 8")>0){var c=Array.prototype.slice;Array.prototype.slice=function(){if(this instanceof Array)return c.apply(this,arguments);for(var t=[],e=arguments.length>=1?arguments[0]:0,i=arguments.length>=2?arguments[1]:this.length,n=e;n .vckit-grid-item")),this.itemsCount=this.items.length,this.itemsRenderedCount=0,this.didScroll=!1;var e=this,i=new Isotope(e.el,{itemSelector:".vckit-grid-item",layoutMode:"masonry",transitionDuration:0});e.items.forEach(function(t,i){o(t)&&(e._checkTotalRendered(),classie.add(t,"shown"))}),t.addEventListener("scroll",e._onScrollFn,!1),t.addEventListener("resize",function(){e._resizeHandler()},!1),this.items.forEach(function(t,e){imagesLoaded(t,function(){i.layout()})}),jQuery(this.el).on("vckit_lazy_loaded",function(){i.layout()})},_scrollPage:function(){var t=this,n=jQuery(t.el).offset().top;this.items.forEach(function(s,r){classie.has(s,"shown")||classie.has(s,"animate")||!o(s,t.options.viewportFactor)||setTimeout(function(){var o=i()-n+e()/2;if(t.el.style.WebkitPerspectiveOrigin="50% "+o+"px",t.el.style.MozPerspectiveOrigin="50% "+o+"px",t.el.style.perspectiveOrigin="50% "+o+"px",t._checkTotalRendered(),t.options.minDuration&&t.options.maxDuration){var r=Math.random()*(t.options.maxDuration-t.options.minDuration)+t.options.minDuration+"s";s.style.WebkitAnimationDuration=r,s.style.MozAnimationDuration=r,s.style.animationDuration=r}classie.add(s,"animate")},25)}),this.didScroll=!1},_resizeHandler:function(){function t(){e._scrollPage(),e.resizeTimeout=null}var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(t,1e3)},_checkTotalRendered:function(){++this.itemsRenderedCount===this.itemsCount&&t.removeEventListener("scroll",this._onScrollFn)}},t.AnimOnScroll=a}(window),function(t){"use strict";function e(){var e=l.clientHeight,i=t.innerHeight;return e=r}function s(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t){this.el=t,this.anchor=t.querySelector("a"),this.image=t.querySelector("img"),this.desc=t.querySelector("h3")}function a(t,e){this.el=t,this.options=s({},this.options),s(this.options,e),this._init()}var l=t.document.documentElement,c={animations:!0};r.prototype.addCurtain=function(){if(this.image){this.curtain=document.createElement("div"),this.curtain.className="curtain";var t=new ColorFinder(function(t,e,i){return(Math.abs(t-e)*Math.abs(t-e)+Math.abs(t-i)*Math.abs(t-i)+Math.abs(e-i)*Math.abs(e-i))/65535*50+1}).getMostProminentColor(this.image);t.r&&t.g&&t.b&&(this.curtain.style.background="rgb("+t.r+","+t.g+","+t.b+")"),this.anchor.appendChild(this.curtain)}},r.prototype.changeAnimationDelay=function(t){this.curtain&&(this.curtain.style.WebkitAnimationDelay=t+"ms",this.curtain.style.animationDelay=t+"ms"),this.image&&(this.image.style.WebkitAnimationDelay=t+"ms",this.image.style.animationDelay=t+"ms"),this.desc&&(this.desc.style.WebkitAnimationDelay=t+"ms",this.desc.style.animationDelay=t+"ms")},a.prototype.options={minDelay:0,maxDelay:500,viewportFactor:0},a.prototype._init=function(){var e=this,i=[];[].slice.call(this.el.children).forEach(function(t,e){var n=new r(t);i.push(n)}),this.items=i,this.itemsCount=this.items.length,this.itemsRenderedCount=0,this.didScroll=!1,imagesLoaded(this.el,function(){classie.add(e.el,"loaded"),new Isotope(e.el,{itemSelector:".vckit-grid-item",layoutMode:"masonry"}),e.items.forEach(function(t){o(t.el)?(++e.itemsRenderedCount,classie.add(t.el,"shown")):(t.addCurtain(),t.changeAnimationDelay(Math.random()*(e.options.maxDelay-e.options.minDelay)+e.options.minDelay))});var i=function(){e.didScroll||(e.didScroll=!0,setTimeout(function(){e._scrollPage()},200)),e.itemsRenderedCount===e.itemsCount&&t.removeEventListener("scroll",i,!1)};t.addEventListener("scroll",i,!1),t.addEventListener("resize",function(){e._resizeHandler()},!1)})},a.prototype._scrollPage=function(){var t=this;this.items.forEach(function(e){if(!classie.has(e.el,"shown")&&!classie.has(e.el,"animate")&&o(e.el,t.options.viewportFactor)){if(++t.itemsRenderedCount,!e.curtain)return void classie.add(e.el,"shown");classie.add(e.el,"animate");var i=function(t){c.animations&&this.removeEventListener("animationend",i),classie.remove(e.el,"animate"),classie.add(e.el,"shown")};c.animations?e.curtain.addEventListener("animationend",i):i()}}),this.didScroll=!1},a.prototype._resizeHandler=function(){function t(){e._scrollPage(),e.resizeTimeout=null}var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(t,1e3)},t.GridScrollFx=a}(window),function(t){t.fn.twentytwenty=function(e){var e=t.extend({default_offset_pct:.5,orientation:"horizontal"},e);return this.each(function(){var i=e.default_offset_pct,n=t(this),o=e.orientation,s="vertical"===o?"down":"left",r="vertical"===o?"up":"right";n.wrap("
"),n.append("
");var a=n.find("img:first"),l=n.find("img:last");n.append("
");var c=n.find(".twentytwenty-handle");c.append(""),c.append(""),n.addClass("twentytwenty-container"),a.addClass("twentytwenty-before"),l.addClass("twentytwenty-after");var d=n.find(".twentytwenty-overlay");d.append("
"),d.append("
"),n.trigger("twentytwenty.labeled");var u=function(t){var e=a.width(),i=a.height();return{w:e+"px",h:i+"px",cw:t*e+"px",ch:t*i+"px"}},p=function(t){"vertical"===o?a.css("clip","rect(0,"+t.w+","+t.ch+",0)"):a.css("clip","rect(0,"+t.cw+","+t.h+",0)"),n.css("height",t.h)},h=function(t){var e=u(t);c.css("vertical"===o?"top":"left","vertical"===o?e.ch:e.cw),p(e)},f=0,m=0,g=0,v=0;c.on("movestart",function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==o?t.preventDefault():(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===o&&t.preventDefault(),n.addClass("active"),f=n.offset().left,m=n.offset().top,g=a.width(),v=a.height()}),c.on("moveend",function(t){n.removeClass("active")}),c.on("move",function(t){n.hasClass("active")&&(i="vertical"===o?(t.pageY-m)/v:(t.pageX-f)/g,i<0&&(i=0),i>1&&(i=1),h(i))}),n.find("img").on("mousedown",function(t){t.preventDefault()}),t(window).on("resize.twentytwenty",function(t){h(i)}),t(window).on("resize",function(t){setTimeout(function(){h(i)},200)}),n.imagesLoaded(function(e){t(window).trigger("resize.twentytwenty")}),t(window).trigger("resize.twentytwenty")})}}(jQuery),function(t){"use strict";function e(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function i(t){this.options=e({},this.options),e(this.options,t),this._init()}var n=(t.document.documentElement,{animations:!0});i.prototype.options={wrapper:document.body,message:"yo!",layout:"growl",effect:"slide",type:"error",ttl:6e3,onClose:function(){return!1},onOpen:function(){return!1}},i.prototype._init=function(){this.ntf=document.createElement("div"),this.ntf.className="ns-box ns-"+this.options.layout+" ns-effect-"+this.options.effect+" ns-type-"+this.options.type;var t='
';t+=this.options.message,t+="
",t+='
',this.ntf.innerHTML=t,this.options.wrapper.insertBefore(this.ntf,this.options.wrapper.firstChild);var e=this;this.options.ttl&&(this.dismissttl=setTimeout(function(){e.active&&e.dismiss()},this.options.ttl)),this._initEvents()},i.prototype._initEvents=function(){var t=this;this.ntf.querySelector(".ns-close").addEventListener("click",function(){t.dismiss()})},i.prototype.show=function(){this.active=!0,classie.remove(this.ntf,"ns-hide"),classie.add(this.ntf,"ns-show"),"function"==typeof this.options.onOpen&&this.options.onOpen()},i.prototype.dismiss=function(){var t=this;this.active=!1,clearTimeout(this.dismissttl),classie.remove(this.ntf,"ns-show"),setTimeout(function(){classie.add(t.ntf,"ns-hide"),"function"==typeof t.options.onClose&&t.options.onClose()},25);var e=function(i){if(n.animations){if(i.target!==t.ntf)return!1;this.removeEventListener("animationend",e)}t.options.wrapper.removeChild(t.ntf)};n.animations?this.ntf.addEventListener("animationend",e):e()},t.NotificationFx=i}(window),function(t){"use strict";function e(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function i(e){var i=0,n=0;if(!e)var e=t.event;return e.pageX||e.pageY?(i=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(i=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:i,y:n}}function n(t,i){this.DOM={},this.DOM.el=t,this.options=e({},this.options),e(this.options,i),this._init()}n.prototype.options={movement:{imgWrapper:{translation:{x:0,y:0,z:0},rotation:{x:-5,y:5,z:0},reverseAnimation:{duration:1200,easing:"easeOutElastic",elasticity:600}},lines:{translation:{x:10,y:10,z:[0,10]},reverseAnimation:{duration:1e3,easing:"easeOutExpo",elasticity:600}},caption:{translation:{x:20,y:20,z:0},rotation:{x:0,y:0,z:0},reverseAnimation:{duration:1500,easing:"easeOutElastic",elasticity:600}},shine:{translation:{x:50,y:50,z:0},reverseAnimation:{duration:1200,easing:"easeOutElastic",elasticity:600}}}},n.prototype._init=function(){this.DOM.animatable={},this.DOM.animatable.imgWrapper=this.DOM.el.querySelector(".vckit-tilter__figure"),this.DOM.animatable.lines=this.DOM.el.querySelector(".vckit-tilter__deco--lines"),this.DOM.animatable.caption=this.DOM.el.querySelector(".vckit-tilter__caption"),this.DOM.animatable.overlay=this.DOM.el.querySelector(".vckit-tilter__deco--overlay"),this.DOM.animatable.shine=this.DOM.el.querySelector(".vckit-tilter__deco--shine > div"),this._initEvents()},n.prototype._initEvents=function(){var t=this;this.mouseenterFn=function(){for(var e in t.DOM.animatable)anime.remove(t.DOM.animatable[e])},this.mousemoveFn=function(e){requestAnimationFrame(function(){t._layout(e)})},this.mouseleaveFn=function(e){requestAnimationFrame(function(){for(var e in t.DOM.animatable)void 0!=t.options.movement[e]&&anime({targets:t.DOM.animatable[e],duration:void 0!=t.options.movement[e].reverseAnimation?t.options.movement[e].reverseAnimation.duration||0:1,easing:void 0!=t.options.movement[e].reverseAnimation?t.options.movement[e].reverseAnimation.easing||"linear":"linear",elasticity:void 0!=t.options.movement[e].reverseAnimation?t.options.movement[e].reverseAnimation.elasticity||null:null,scaleX:1,scaleY:1,scaleZ:1,translateX:0,translateY:0,translateZ:0,rotateX:0,rotateY:0,rotateZ:0})})},this.DOM.el.addEventListener("mousemove",this.mousemoveFn),this.DOM.el.addEventListener("mouseleave",this.mouseleaveFn),this.DOM.el.addEventListener("mouseenter",this.mouseenterFn)},n.prototype._layout=function(t){var e=i(t),n={left:document.body.scrollLeft+document.documentElement.scrollLeft,top:document.body.scrollTop+document.documentElement.scrollTop},o=this.DOM.el.getBoundingClientRect(),s={x:e.x-o.left-n.left,y:e.y-o.top-n.top};for(var r in this.DOM.animatable)if(void 0!=this.DOM.animatable[r]&&void 0!=this.options.movement[r]){var a=void 0!=this.options.movement[r]?this.options.movement[r].translation||{x:0,y:0,z:0}:{x:0,y:0,z:0},l=void 0!=this.options.movement[r]?this.options.movement[r].rotation||{x:0,y:0,z:0}:{x:0,y:0,z:0},c=function(t){for(var e in t)void 0==t[e]?t[e]=[0,0]:"number"==typeof t[e]&&(t[e]=[-1*t[e],t[e]])};c(a),c(l);var d={translation:{x:(a.x[1]-a.x[0])/o.width*s.x+a.x[0],y:(a.y[1]-a.y[0])/o.height*s.y+a.y[0],z:(a.z[1]-a.z[0])/o.height*s.y+a.z[0]},rotation:{x:(l.x[1]-l.x[0])/o.height*s.y+l.x[0],y:(l.y[1]-l.y[0])/o.width*s.x+l.y[0],z:(l.z[1]-l.z[0])/o.width*s.x+l.z[0]}};this.DOM.animatable[r].style.WebkitTransform=this.DOM.animatable[r].style.transform="translateX("+d.translation.x+"px) translateY("+d.translation.y+"px) translateZ("+d.translation.z+"px) rotateX("+d.rotation.x+"deg) rotateY("+d.rotation.y+"deg) rotateZ("+d.rotation.z+"deg)"}},t.TiltHoverFx=n}(window),function(t){"use strict";function e(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function i(e){var i=0,n=0;if(!e)var e=t.event;return e.pageX||e.pageY?(i=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(i=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:i,y:n}}function n(t,e){var i=!0;return function(n){i&&(i=!1,setTimeout(function(){i=!0},e),t(n))}}function o(t,i){t&&(this.el=t,this.options=e({},this.options),e(this.options,i),this._init(),this._initEvents())}for(var s,r=0,a="webkit moz ms o".split(" "),l=t.requestAnimationFrame,c=t.cancelAnimationFrame,d=0;d64?this.imgCount=64:this.imgCount=this.options.extraImgs,this.options.movement.perspective||(this.options.movement.perspective=0),this.imgElems=[];var t=this.imgCount;this.options.customImgsOpacity;this.options.bgfixed||(this.imgElems.push(this.tiltImgBack),++this.imgCount);for(var e=0;e