!function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=10)}([,,function(t,e){t.exports=function(t){"complete"===document.readyState||"interactive"===document.readyState?t.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&t.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}},function(t,e,i){(function(e){var i;i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(this,i(4))},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},,,,,,function(t,e,i){t.exports=i(11)},function(t,e,i){"use strict";i.r(e);var n=i(2),o=i.n(n),a=i(3),r=i(12);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=a.window.jarallax;if(a.window.jarallax=r.default,a.window.jarallax.noConflict=function(){return a.window.jarallax=l,this},void 0!==a.jQuery){var c=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];Array.prototype.unshift.call(e,this);var n=r.default.apply(a.window,e);return"object"!==s(n)?n:this};c.constructor=r.default.constructor;var u=a.jQuery.fn.jarallax;a.jQuery.fn.jarallax=c,a.jQuery.fn.jarallax.noConflict=function(){return a.jQuery.fn.jarallax=u,this}}o()(function(){Object(r.default)(document.querySelectorAll("[data-jarallax]"))})},function(t,e,i){"use strict";i.r(e);var n=i(2),o=i.n(n),a=i(3);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var u,p,d=a.window.navigator,m=-1<d.userAgent.indexOf("MSIE ")||-1<d.userAgent.indexOf("Trident/")||-1<d.userAgent.indexOf("Edge/"),h=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(d.userAgent),f=function(){for(var t="transform WebkitTransform MozTransform".split(" "),e=document.createElement("div"),i=0;i<t.length;i+=1)if(e&&void 0!==e.style[t[i]])return t[i];return!1}();function g(){h?(!u&&document.body&&((u=document.createElement("div")).style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(u)),p=(u?u.clientHeight:0)||a.window.innerHeight||document.documentElement.clientHeight):p=a.window.innerHeight||document.documentElement.clientHeight}g(),a.window.addEventListener("resize",g),a.window.addEventListener("orientationchange",g),a.window.addEventListener("load",g),o()(function(){g()});var y=[];function b(){y.length&&(y.forEach(function(t,e){var i=t.instance,n=t.oldData,o=i.$item.getBoundingClientRect(),r={width:o.width,height:o.height,top:o.top,bottom:o.bottom,wndW:a.window.innerWidth,wndH:p},s=!n||n.wndW!==r.wndW||n.wndH!==r.wndH||n.width!==r.width||n.height!==r.height,l=s||!n||n.top!==r.top||n.bottom!==r.bottom;y[e].oldData=r,s&&i.onResize(),l&&i.onScroll()}),a.window.requestAnimationFrame(b))}var v=0,x=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this;n.instanceID=v,v+=1,n.$item=e,n.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var o=n.$item.dataset||{},a={};if(Object.keys(o).forEach(function(t){var e=t.substr(0,1).toLowerCase()+t.substr(1);e&&void 0!==n.defaults[e]&&(a[e]=o[t])}),n.options=n.extend({},n.defaults,a,i),n.pureOptions=n.extend({},n.options),Object.keys(n.options).forEach(function(t){"true"===n.options[t]?n.options[t]=!0:"false"===n.options[t]&&(n.options[t]=!1)}),n.options.speed=Math.min(2,Math.max(-1,parseFloat(n.options.speed))),"string"==typeof n.options.disableParallax&&(n.options.disableParallax=new RegExp(n.options.disableParallax)),n.options.disableParallax instanceof RegExp){var s=n.options.disableParallax;n.options.disableParallax=function(){return s.test(d.userAgent)}}if("function"!=typeof n.options.disableParallax&&(n.options.disableParallax=function(){return!1}),"string"==typeof n.options.disableVideo&&(n.options.disableVideo=new RegExp(n.options.disableVideo)),n.options.disableVideo instanceof RegExp){var c=n.options.disableVideo;n.options.disableVideo=function(){return c.test(d.userAgent)}}"function"!=typeof n.options.disableVideo&&(n.options.disableVideo=function(){return!1});var u=n.options.elementInViewport;u&&"object"===l(u)&&void 0!==u.length&&(u=r(u,1)[0]);u instanceof Element||(u=null),n.options.elementInViewport=u,n.image={src:n.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(d.userAgent)?"absolute":"fixed"},n.initImg()&&n.canInitParallax()&&n.init()}var e,i,n;return e=t,(i=[{key:"css",value:function(t,e){return"string"==typeof e?a.window.getComputedStyle(t).getPropertyValue(e):(e.transform&&f&&(e[f]=e.transform),Object.keys(e).forEach(function(i){t.style[i]=e[i]}),t)}},{key:"extend",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t=t||{},Object.keys(i).forEach(function(e){i[e]&&Object.keys(i[e]).forEach(function(n){t[n]=i[e][n]})}),t}},{key:"getWindowData",value:function(){return{width:a.window.innerWidth||document.documentElement.clientWidth,height:p,y:document.documentElement.scrollTop}}},{key:"initImg",value:function(){var t=this.options.imgElement;return t&&"string"==typeof t&&(t=this.$item.querySelector(t)),t instanceof Element||(this.options.imgSrc?(t=new Image).src=this.options.imgSrc:t=null),t&&(this.options.keepImg?this.image.$item=t.cloneNode(!0):(this.image.$item=t,this.image.$itemParent=t.parentNode),this.image.useImgTag=!0),!!this.image.$item||(null===this.image.src&&(this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",this.image.bgImage=this.css(this.$item,"background-image")),!(!this.image.bgImage||"none"===this.image.bgImage))}},{key:"canInitParallax",value:function(){return f&&!this.options.disableParallax()}},{key:"init",value:function(){var t={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"},e={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};if(!this.options.keepImg){var i=this.$item.getAttribute("style");if(i&&this.$item.setAttribute("data-jarallax-original-styles",i),this.image.useImgTag){var n=this.image.$item.getAttribute("style");n&&this.image.$item.setAttribute("data-jarallax-original-styles",n)}}if("static"===this.css(this.$item,"position")&&this.css(this.$item,{position:"relative"}),"auto"===this.css(this.$item,"z-index")&&this.css(this.$item,{zIndex:0}),this.image.$container=document.createElement("div"),this.css(this.image.$container,t),this.css(this.image.$container,{"z-index":this.options.zIndex}),m&&this.css(this.image.$container,{opacity:.9999}),this.image.$container.setAttribute("id","jarallax-container-".concat(this.instanceID)),this.$item.appendChild(this.image.$container),this.image.useImgTag?e=this.extend({"object-fit":this.options.imgSize,"object-position":this.options.imgPosition,"font-family":"object-fit: ".concat(this.options.imgSize,"; object-position: ").concat(this.options.imgPosition,";"),"max-width":"none"},t,e):(this.image.$item=document.createElement("div"),this.image.src&&(e=this.extend({"background-position":this.options.imgPosition,"background-size":this.options.imgSize,"background-repeat":this.options.imgRepeat,"background-image":this.image.bgImage||'url("'.concat(this.image.src,'")')},t,e))),"opacity"!==this.options.type&&"scale"!==this.options.type&&"scale-opacity"!==this.options.type&&1!==this.options.speed||(this.image.position="absolute"),"fixed"===this.image.position){var o=function(t){for(var e=[];null!==t.parentElement;)1===(t=t.parentElement).nodeType&&e.push(t);return e}(this.$item).filter(function(t){var e=a.window.getComputedStyle(t),i=e["-webkit-transform"]||e["-moz-transform"]||e.transform;return i&&"none"!==i||/(auto|scroll)/.test(e.overflow+e["overflow-y"]+e["overflow-x"])});this.image.position=o.length?"absolute":"fixed"}e.position=this.image.position,this.css(this.image.$item,e),this.image.$container.appendChild(this.image.$item),this.onResize(),this.onScroll(!0),this.options.onInit&&this.options.onInit.call(this),"none"!==this.css(this.$item,"background-image")&&this.css(this.$item,{"background-image":"none"}),this.addToParallaxList()}},{key:"addToParallaxList",value:function(){y.push({instance:this}),1===y.length&&a.window.requestAnimationFrame(b)}},{key:"removeFromParallaxList",value:function(){var t=this;y.forEach(function(e,i){e.instance.instanceID===t.instanceID&&y.splice(i,1)})}},{key:"destroy",value:function(){this.removeFromParallaxList();var t=this.$item.getAttribute("data-jarallax-original-styles");if(this.$item.removeAttribute("data-jarallax-original-styles"),t?this.$item.setAttribute("style",t):this.$item.removeAttribute("style"),this.image.useImgTag){var e=this.image.$item.getAttribute("data-jarallax-original-styles");this.image.$item.removeAttribute("data-jarallax-original-styles"),e?this.image.$item.setAttribute("style",t):this.image.$item.removeAttribute("style"),this.image.$itemParent&&this.image.$itemParent.appendChild(this.image.$item)}this.$clipStyles&&this.$clipStyles.parentNode.removeChild(this.$clipStyles),this.image.$container&&this.image.$container.parentNode.removeChild(this.image.$container),this.options.onDestroy&&this.options.onDestroy.call(this),delete this.$item.jarallax}},{key:"clipContainer",value:function(){if("fixed"===this.image.position){var t=this.image.$container.getBoundingClientRect(),e=t.width,i=t.height;if(!this.$clipStyles)this.$clipStyles=document.createElement("style"),this.$clipStyles.setAttribute("type","text/css"),this.$clipStyles.setAttribute("id","jarallax-clip-".concat(this.instanceID)),(document.head||document.getElementsByTagName("head")[0]).appendChild(this.$clipStyles);var n="#jarallax-container-".concat(this.instanceID," {\n            clip: rect(0 ").concat(e,"px ").concat(i,"px 0);\n            clip: rect(0, ").concat(e,"px, ").concat(i,"px, 0);\n            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n        }");this.$clipStyles.styleSheet?this.$clipStyles.styleSheet.cssText=n:this.$clipStyles.innerHTML=n}}},{key:"coverImage",value:function(){var t=this.image.$container.getBoundingClientRect(),e=t.height,i=this.options.speed,n="scroll"===this.options.type||"scroll-opacity"===this.options.type,o=0,a=e,r=0;return n&&(0>i?(o=i*Math.max(e,p),p<e&&(o-=i*(e-p))):o=i*(e+p),1<i?a=Math.abs(o-p):0>i?a=o/i+Math.abs(o):a+=(p-e)*(1-i),o/=2),this.parallaxScrollDistance=o,r=n?(p-a)/2:(e-a)/2,this.css(this.image.$item,{height:"".concat(a,"px"),marginTop:"".concat(r,"px"),left:"fixed"===this.image.position?"".concat(t.left,"px"):"0",width:"".concat(t.width,"px")}),this.options.onCoverImage&&this.options.onCoverImage.call(this),{image:{height:a,marginTop:r},container:t}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(t){var e=this.$item.getBoundingClientRect(),i=e.top,n=e.height,o={},r=e;if(this.options.elementInViewport&&(r=this.options.elementInViewport.getBoundingClientRect()),this.isElementInViewport=0<=r.bottom&&0<=r.right&&r.top<=p&&r.left<=a.window.innerWidth,t||this.isElementInViewport){var s=Math.max(0,i),l=Math.max(0,n+i),c=Math.max(0,-i),u=Math.max(0,i+n-p),d=Math.max(0,n-(i+n-p)),m=Math.max(0,-i+p-n),h=1-(p-i)/(p+n)*2,f=1;if(n<p?f=1-(c||u)/n:l<=p?f=l/p:d<=p&&(f=d/p),"opacity"!==this.options.type&&"scale-opacity"!==this.options.type&&"scroll-opacity"!==this.options.type||(o.transform="translate3d(0,0,0)",o.opacity=f),"scale"===this.options.type||"scale-opacity"===this.options.type){var g=1;0>this.options.speed?g-=this.options.speed*f:g+=this.options.speed*(1-f),o.transform="scale(".concat(g,") translate3d(0,0,0)")}if("scroll"===this.options.type||"scroll-opacity"===this.options.type){var y=this.parallaxScrollDistance*h;"absolute"===this.image.position&&(y-=i),o.transform="translate3d(0,".concat(y,"px,0)")}this.css(this.image.$item,o),this.options.onScroll&&this.options.onScroll.call(this,{section:e,beforeTop:s,beforeTopEnd:l,afterTop:c,beforeBottom:u,beforeBottomEnd:d,afterBottom:m,visiblePercent:f,fromViewportCenter:h})}}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}])&&c(e.prototype,i),n&&c(e,n),t}(),w=function(t,e){("object"===("undefined"==typeof HTMLElement?"undefined":l(HTMLElement))?t instanceof HTMLElement:t&&"object"===l(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);for(var i,n=t.length,o=0,a=arguments.length,r=new Array(a>2?a-2:0),s=2;s<a;s++)r[s-2]=arguments[s];for(;o<n;o+=1)if("object"===l(e)||void 0===e?t[o].jarallax||(t[o].jarallax=new x(t[o],e)):t[o].jarallax&&(i=t[o].jarallax[e].apply(t[o].jarallax,r)),void 0!==i)return i;return t};w.constructor=x,e.default=w}]);