!function(){const o=window.navigator.userAgent;Object.entries({android:/android/i,iphone:/iPhone/i,ipad:/iPad/i}).forEach((([n,i])=>{o.match(i)&&document.body.classList.add(`tec-is-${n}`)}))}(),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.userAgent={};
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).jarallax=e()}(this,function(){"use strict";function t(t){"undefined"!=typeof document&&("complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t,{capture:!0,once:!0,passive:!0}))}let e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var i=e;const n={type:"scroll",speed:.5,containerClass:"jarallax-container",imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null,videoClass:"jarallax-video",videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,disableVideo:!1,onVideoInsert:null,onVideoWorkerInit:null};const o=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i.navigator?.userAgent??"");let s=0,a=0,r=null;function l(){return"undefined"!=typeof document&&void 0!==document.documentElement}function h(){if(!l())return s=i.innerWidth||0,void(a=i.innerHeight||0);s=i.innerWidth||document.documentElement.clientWidth,a=o?l()?(!r&&document.body&&(r=document.createElement("div"),r.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(r)),(r?r.clientHeight:0)||i.innerHeight||document.documentElement.clientHeight):i.innerHeight||0:i.innerHeight||document.documentElement.clientHeight}function c(){return{width:s,height:a}}h(),i.addEventListener?.("resize",h),i.addEventListener?.("orientationchange",h),i.addEventListener?.("load",h),t(()=>{h()});const m=[];function d(){if(!m.length)return;const{width:t,height:e}=c();m.forEach((i,n)=>{const{instance:o,oldData:s}=i;if(!o.isVisible())return;const a=o.$item.getBoundingClientRect(),r={width:a.width,height:a.height,top:a.top,bottom:a.bottom,wndW:t,wndH:e},l=!s||s.wndW!==r.wndW||s.wndH!==r.wndH||s.width!==r.width||s.height!==r.height,h=l||!s||s.top!==r.top||s.bottom!==r.bottom;m[n].oldData=r,l&&o.onResize(),h&&o.onScroll()}),i.requestAnimationFrame(d)}const p=i.IntersectionObserver&&new i.IntersectionObserver(t=>{t.forEach(t=>{const e=t.target;e.jarallax&&(e.jarallax.isElementInViewport=t.isIntersecting)})},{rootMargin:"50px"});const g=i.navigator??{userAgent:""},u="undefined"!=typeof document&&"undefined"!=typeof Element&&"undefined"!=typeof HTMLElement;let f=0;function y(t){if("string"==typeof t){const e=t.match(/^\/(.*)\/([dgimsuvy]*)$/);t=e?new RegExp(e[1],e[2]):new RegExp(t)}if(t instanceof RegExp){const e=t;return()=>e.test(g.userAgent)}return"function"!=typeof t?()=>!0===t:t}class b{constructor(t,e){this.parallaxScrollDistance=0,this.isElementInViewport=!1,this.instanceID=f,f+=1,this.$item=t,this.defaults={...n};const i=this.$item.dataset||{},o={};Object.keys(i).forEach(t=>{const e=t.slice(0,1).toLowerCase()+t.slice(1);e&&void 0!==this.defaults[e]&&(o[e]=i[t])}),this.options=this.extend({},this.defaults,o,e||{}),this.pureOptions=this.extend({},this.options),Object.keys(this.options).forEach(t=>{const e=t,i=this.options[e];"true"===i?this.options[t]=!0:"false"===i&&(this.options[t]=!1)}),this.options.speed=Math.min(2,Math.max(-1,parseFloat(`${this.options.speed}`))),this.options.disableParallax=y(e?.disableParallax??this.options.disableParallax),this.options.disableVideo=y(e?.disableVideo??this.options.disableVideo);let s=this.options.elementInViewport;!s||"object"!=typeof s||!("length"in s)||s instanceof Element||([s]=Array.from(s)),s instanceof Element||(s=null),this.options.elementInViewport=s,this.image={src:this.options.imgSrc||null,$container:null,useImgTag:!1,position:"fixed"},this.initImg()&&this.canInitParallax()&&this.init()}css(t,e){return function(t,e){return"string"==typeof e?i.getComputedStyle(t).getPropertyValue(e):(Object.keys(e).forEach(i=>{t.style[i]=e[i]}),t)}(t,e)}extend(t,...e){return function(t,...e){const i=t||{};return Object.keys(e).forEach(t=>{const n=e[Number(t)];n&&Object.keys(n).forEach(t=>{i[t]=n[t]})}),i}(t,...e)}getWindowData(){const{width:t,height:e}=c();return{width:t,height:e,y:u?document.documentElement.scrollTop:0}}initImg(){let t=this.options.imgElement;if(t&&"string"==typeof t&&(t=this.$item.querySelector(t)),!(t instanceof Element))if(this.options.imgSrc){const e=new Image;e.src=this.options.imgSrc,t=e}else t=null;return 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")),Boolean(this.image.bgImage&&"none"!==this.image.bgImage))}canInitParallax(){return!this.options.disableParallax()}init(){const t={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};let e={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden"};if(!this.options.keepImg){const t=this.$item.getAttribute("style");if(t&&this.$item.setAttribute("data-jarallax-original-styles",t),this.image.useImgTag&&this.image.$item){const t=this.image.$item.getAttribute("style");t&&this.image.$item.setAttribute("data-jarallax-original-styles",t)}}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,{zIndex:this.options.zIndex}),"fixed"===this.image.position&&this.css(this.image.$container,{WebkitClipPath:"polygon(0 0, 100% 0, 100% 100%, 0 100%)",clipPath:"polygon(0 0, 100% 0, 100% 100%, 0 100%)"}),this.image.$container.setAttribute("id",`jarallax-container-${this.instanceID}`),this.options.containerClass&&this.image.$container.setAttribute("class",this.options.containerClass),this.$item.appendChild(this.image.$container),this.image.useImgTag&&this.image.$item?e=this.extend({objectFit:this.options.imgSize,objectPosition:this.options.imgPosition,maxWidth:"none"},t,e):(this.image.$item=document.createElement("div"),this.image.src&&(e=this.extend({backgroundPosition:this.options.imgPosition,backgroundSize:this.options.imgSize,backgroundRepeat:this.options.imgRepeat,backgroundImage:this.image.bgImage||`url("${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){const t=function(t){const e=[];let i=t;for(;null!==i.parentElement;)i=i.parentElement,1===i.nodeType&&e.push(i);return e}(this.$item).filter(t=>{const e=i.getComputedStyle(t),n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.transform;return n&&"none"!==n||/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)});this.image.position=t.length?"absolute":"fixed"}var n;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?.call(this),"none"!==this.css(this.$item,"background-image")&&this.css(this.$item,{backgroundImage:"none"}),n=this,m.push({instance:n}),1===m.length&&i.requestAnimationFrame(d),p?.observe(n.options.elementInViewport||n.$item)}destroy(){var t;t=this,m.forEach((e,i)=>{e.instance.instanceID===t.instanceID&&m.splice(i,1)}),p?.unobserve(t.options.elementInViewport||t.$item);const e=this.$item.getAttribute("data-jarallax-original-styles");if(this.$item.removeAttribute("data-jarallax-original-styles"),e?this.$item.setAttribute("style",e):this.$item.removeAttribute("style"),this.image.useImgTag&&this.image.$item){const t=this.image.$item.getAttribute("data-jarallax-original-styles");this.image.$item.removeAttribute("data-jarallax-original-styles"),t?this.image.$item.setAttribute("style",t):this.image.$item.removeAttribute("style"),this.image.$itemParent?.appendChild(this.image.$item)}this.image.$container?.parentNode&&this.image.$container.parentNode.removeChild(this.image.$container),this.options.onDestroy?.call(this),delete this.$item.jarallax}coverImage(){const{height:t}=c(),e=this.image.$container.getBoundingClientRect(),i=e.height,{speed:n}=this.options,o="scroll"===this.options.type||"scroll-opacity"===this.options.type;let s=0,a=i;o&&(n<0?(s=n*Math.max(i,t),t<i&&(s-=n*(i-t))):s=n*(i+t),n>1?a=Math.abs(s-t):n<0?a=s/n+Math.abs(s):a+=(t-i)*(1-n),s/=2),this.parallaxScrollDistance=s;const r=(o?t-a:i-a)/2;return this.css(this.image.$item,{height:`${a}px`,marginTop:`${r}px`,left:"fixed"===this.image.position?`${e.left}px`:"0",width:`${e.width}px`}),this.options.onCoverImage?.call(this),{image:{height:a,marginTop:r},container:e}}isVisible(){return this.isElementInViewport||!1}onScroll(t){if(!t&&!this.isVisible())return;const{height:e}=c(),i=this.$item.getBoundingClientRect(),n=i.top,o=i.height,s={},a=Math.max(0,n),r=Math.max(0,o+n),l=Math.max(0,-n),h=Math.max(0,n+o-e),m=Math.max(0,o-(n+o-e)),d=Math.max(0,-n+e-o),p=1-(e-n)/(e+o)*2;let g=1;if(o<e?g=1-(l||h)/o:r<=e?g=r/e:m<=e&&(g=m/e),"opacity"!==this.options.type&&"scale-opacity"!==this.options.type&&"scroll-opacity"!==this.options.type||(s.transform="translate3d(0,0,0)",s.opacity=g),"scale"===this.options.type||"scale-opacity"===this.options.type){let t=1;this.options.speed<0?t-=this.options.speed*g:t+=this.options.speed*(1-g),s.transform=`scale(${t}) translate3d(0,0,0)`}if("scroll"===this.options.type||"scroll-opacity"===this.options.type){let t=this.parallaxScrollDistance*p;"absolute"===this.image.position&&(t-=n),s.transform=`translate3d(0,${t}px,0)`}this.css(this.image.$item,s),this.options.onScroll?.call(this,{section:i,beforeTop:a,beforeTopEnd:r,afterTop:l,beforeBottom:h,beforeBottomEnd:m,afterBottom:d,visiblePercent:g,fromViewportCenter:p})}onResize(){this.coverImage()}}const x=function(t,e,...i){let n,o=t;if(!t)return t;if(("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(o=[t]),!o||"object"!=typeof o||"number"!=typeof o.length)return o;if(!u)return"string"==typeof e?void 0:o;for(let t=0;t<o.length;t+=1){const s=o[t];if("object"==typeof e||void 0===e?s.jarallax||(s.jarallax=new b(s,e)):s.jarallax&&(n=s.jarallax[e].apply(s.jarallax,i)),void 0!==n)return n}return o};x.constructor=b;const $=i.jQuery;if(void 0!==$){const t=function(...t){Array.prototype.unshift.call(t,this);const e=x.apply(i,t);return"object"!=typeof e?e:this};t.constructor=x.constructor;const e=$.fn.jarallax;$.fn.jarallax=t,t.noConflict=function(){return $.fn.jarallax=e,this}}return t(()=>{x(document.querySelectorAll("[data-jarallax]"))}),x});//# sourceMappingURL=jarallax.min.js.map;
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).jarallaxVideo=t()}(this,function(){"use strict";
const e={autoplay:!1,loop:!1,mute:!1,volume:100,showControls:!0,accessibilityHidden:!1,startTime:0,endTime:0};let t,i=0;class s{constructor(t,i){this.type="none",this.destroyed=!1,this.url=t,this.options_default={...e},this.options=function(e,...t){const i=e||{};return Object.keys(t).forEach(e=>{const s=t[Number(e)];s&&Object.keys(s).forEach(e=>{const t=e,o=s[t];void 0!==o&&(i[t]=o)})}),i}({...this.options_default},i),this.videoID=this.constructor.parseURL(t),this.videoID&&this.init()}isValid(){return!!this.videoID}init(){this.ID=i,i+=1,this.playerID=`VideoWorker-${this.ID}`}on(e,t){this.userEventsList=this.userEventsList||{},this.userEventsList[e]||(this.userEventsList[e]=[]),this.userEventsList[e].push(t)}off(e,t){this.userEventsList&&this.userEventsList[e]&&(t?this.userEventsList[e].forEach((i,s)=>{var o;if(i===t){const t=null==(o=this.userEventsList)?void 0:o[e];t&&(t[s]=!1)}}):delete this.userEventsList[e])}fire(e,...t){this.userEventsList&&void 0!==this.userEventsList[e]&&this.userEventsList[e].forEach(e=>{e&&e.apply(this,t)})}static parseURL(e){return!1}play(e){}pause(){}mute(){}unmute(){}setVolume(e=!1){}getVolume(e){}getMuted(e){}setCurrentTime(e=!1){}getCurrentTime(e){}getImageURL(e){}getVideo(e){}destroy(){var e,t;this.destroyed=!0,this.userEventsList=void 0,(null==(e=this.$video)?void 0:e.parentNode)&&this.$video.parentNode.removeChild(this.$video),(null==(t=this.hiddenContainer)?void 0:t.parentNode)&&this.hiddenContainer.parentNode.removeChild(this.hiddenContainer),this.player=void 0,this.$video=void 0,this.hiddenContainer=void 0}}class o{constructor(){this.doneCallbacks=[],this.failCallbacks=[]}execute(e,t){let i=e.length;for(;i;)i-=1,e[i](...t)}resolve(...e){this.execute(this.doneCallbacks,e)}reject(...e){this.execute(this.failCallbacks,e)}done(e){this.doneCallbacks.push(e)}fail(e){this.failCallbacks.push(e)}}t="undefined"!=typeof window?window:"undefined"!=typeof self?self:globalThis;var r=t;let a=0,n=0;const h=new o,l=r;let d=0,p=0;const u=new o,m=r;const v=function(e,t){let i=!1;return Object.keys(v.providers).forEach(s=>{!i&&v.providers[s].parseURL(e)&&(i=new v.providers[s](e,t))}),i||new s(e,t)};let y;v.BaseClass=s,v.providers={Youtube:class extends s{constructor(){super(...arguments),this.type="youtube"}static parseURL(e){const t=e.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|shorts\/|watch\?v=)([^#&?]*).*/);return!(!t||11!==t[1].length)&&t[1]}init(){super.init(),function(){if(d)return;d=1;let e=document.createElement("script"),t=document.getElementsByTagName("head")[0]||null;t&&e&&(e.src="https://www.youtube.com/iframe_api",t.appendChild(e),t=null,e=null)}()}play(e){this.player&&this.player.playVideo&&m.YT&&(void 0!==e&&this.player.seekTo(e||0),m.YT.PlayerState.PLAYING!==this.player.getPlayerState()&&(this.options.endTime&&!this.options.loop?this.getCurrentTime(e=>{var t;e<this.options.endTime&&(null==(t=this.player)||t.playVideo())}):this.player.playVideo()))}pause(){this.player&&this.player.pauseVideo&&m.YT&&m.YT.PlayerState.PLAYING===this.player.getPlayerState()&&this.player.pauseVideo()}mute(){this.player&&this.player.mute&&this.player.mute()}unmute(){this.player&&this.player.unMute&&this.player.unMute()}setVolume(e=!1){this.player&&"number"==typeof e&&this.player.setVolume&&this.player.setVolume(e)}getVolume(e){this.player?this.player.getVolume&&e(this.player.getVolume()):e(!1)}getMuted(e){this.player?this.player.isMuted&&e(this.player.isMuted()):e(null)}setCurrentTime(e=!1){this.player&&"number"==typeof e&&this.player.seekTo&&this.player.seekTo(e)}getCurrentTime(e){this.player&&this.player.getCurrentTime&&e(this.player.getCurrentTime())}getImageURL(e){if(this.videoImage)return void e(this.videoImage);const t=["maxresdefault","sddefault","hqdefault","0"];let i=0;const s=new Image;s.onload=()=>{120!==(s.naturalWidth||s.width)||i===t.length-1?(this.videoImage=`https://img.youtube.com/vi/${String(this.videoID)}/${t[i]}.jpg`,e(this.videoImage)):(i+=1,s.src=`https://img.youtube.com/vi/${String(this.videoID)}/${t[i]}.jpg`)},s.src=`https://img.youtube.com/vi/${String(this.videoID)}/${t[i]}.jpg`}getVideo(e){this.destroyed||(this.$video?e(this.$video):function(e){void 0!==m.YT&&0!==m.YT.loaded||p?"object"==typeof m.YT&&1===m.YT.loaded?e():u.done(()=>{e()}):(p=1,m.onYouTubeIframeAPIReady=()=>{m.onYouTubeIframeAPIReady=null,u.resolve("done"),e()})}(()=>{if(this.destroyed)return;let t;this.$video||(t=document.createElement("div"),t.style.display="none"),this.playerOptions={host:"https://www.youtube-nocookie.com",videoId:String(this.videoID),playerVars:{autohide:1,rel:0,autoplay:0,playsinline:1},events:{onReady:e=>{if(this.options.mute?e.target.mute():"number"==typeof this.options.volume&&e.target.setVolume(this.options.volume),this.options.autoplay&&this.play(this.options.startTime),this.fire("ready",e),this.options.loop&&!this.options.endTime&&this.player){const e=.1;this.options.endTime=this.player.getDuration()-e}this.volumeChangeInterval&&clearInterval(this.volumeChangeInterval),this.volumeChangeInterval=setInterval(()=>{this.getVolume(t=>{"number"==typeof t&&this.options.volume!==t&&(this.options.volume=t,this.fire("volumechange",e))})},150)},onStateChange:()=>{},onError:e=>{this.fire("error",e)}}},this.options.showControls||(this.playerOptions.playerVars.iv_load_policy=3,this.playerOptions.playerVars.modestbranding=1,this.playerOptions.playerVars.controls=0,this.playerOptions.playerVars.showinfo=0,this.playerOptions.playerVars.disablekb=1);let i=!1;this.playerOptions.events.onStateChange=e=>{m.YT&&this.player&&(this.options.loop&&e.data===m.YT.PlayerState.ENDED&&this.play(this.options.startTime),i||e.data!==m.YT.PlayerState.PLAYING||(i=!0,this.fire("started",e)),e.data===m.YT.PlayerState.PLAYING&&this.fire("play",e),e.data===m.YT.PlayerState.PAUSED&&this.fire("pause",e),e.data===m.YT.PlayerState.ENDED&&this.fire("ended",e),e.data===m.YT.PlayerState.PLAYING?(this.progressInterval&&clearInterval(this.progressInterval),this.progressInterval=setInterval(()=>{this.player&&(this.fire("timeupdate",e),this.options.endTime&&this.player.getCurrentTime()>=this.options.endTime&&(this.options.loop?this.play(this.options.startTime):this.pause()))},150)):this.progressInterval&&(clearInterval(this.progressInterval),this.progressInterval=void 0))};const s=!this.$video;if(s&&t){this.hiddenContainer=t;const e=document.createElement("div");e.setAttribute("id",this.playerID),t.appendChild(e),document.body.appendChild(t)}this.player=this.player||new m.YT.Player(this.playerID,this.playerOptions),s&&(this.$video=document.getElementById(this.playerID),this.$video&&this.options.accessibilityHidden&&(this.$video.setAttribute("tabindex","-1"),this.$video.setAttribute("aria-hidden","true")),this.$video&&(this.videoWidth=parseInt(this.$video.getAttribute("width")||"1280",10)||1280,this.videoHeight=parseInt(this.$video.getAttribute("height")||"720",10)||720)),e(this.$video)}))}destroy(){var e;this.progressInterval&&(clearInterval(this.progressInterval),this.progressInterval=void 0),this.volumeChangeInterval&&(clearInterval(this.volumeChangeInterval),this.volumeChangeInterval=void 0),(null==(e=this.player)?void 0:e.destroy)&&this.player.destroy(),super.destroy()}},Vimeo:class extends s{constructor(){super(...arguments),this.type="vimeo"}static parseURL(e){const t=e.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!!(null==t?void 0:t[3])&&t[3]}static parseURLHash(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}init(){super.init(),function(){if(a)return;if(a=1,void 0!==l.Vimeo)return;let e=document.createElement("script"),t=document.getElementsByTagName("head")[0]||null;t&&e&&(e.src="https://player.vimeo.com/api/player.js",t.appendChild(e),t=null,e=null)}()}play(e){this.player&&(void 0!==e&&this.player.setCurrentTime(e),this.player.getPaused().then(e=>{var t;e&&(this.options.endTime&&!this.options.loop?this.getCurrentTime(e=>{var t;e<this.options.endTime&&(null==(t=this.player)||t.play())}):null==(t=this.player)||t.play())}))}pause(){this.player&&this.player.getPaused().then(e=>{var t;e||null==(t=this.player)||t.pause()})}mute(){this.player&&this.player.setVolume&&this.setVolume(0)}unmute(){this.player&&this.player.setVolume&&this.setVolume(this.options.volume||100)}setVolume(e=!1){this.player&&"number"==typeof e&&this.player.setVolume&&this.player.setVolume(e/100)}getVolume(e){this.player?this.player.getVolume&&this.player.getVolume().then(t=>{e(100*t)}):e(!1)}getMuted(e){this.player?this.player.getVolume&&this.player.getVolume().then(t=>{e(0===t)}):e(null)}setCurrentTime(e=!1){this.player&&"number"==typeof e&&this.player.setCurrentTime&&this.player.setCurrentTime(e)}getCurrentTime(e){this.player&&this.player.getCurrentTime&&this.player.getCurrentTime().then(t=>{e(t)})}getImageURL(e){if(this.destroyed)return;if(this.videoImage)return void e(this.videoImage);let t=r.innerWidth||1920;r.devicePixelRatio&&(t*=r.devicePixelRatio),t=Math.min(t,1920);const i=new XMLHttpRequest;this.imageRequest=i,i.open("GET",`https://vimeo.com/api/oembed.json?url=${this.url}&width=${t}`,!0),i.onreadystatechange=()=>{if(4===i.readyState){if(i.status>=200&&i.status<400){const t=JSON.parse(i.responseText);t.thumbnail_url&&(this.videoImage=t.thumbnail_url,e(this.videoImage))}this.imageRequest=void 0}},i.send()}getVideo(e){this.destroyed||(this.$video?e(this.$video):function(e){if(void 0!==l.Vimeo||n)void 0!==l.Vimeo?e():h.done(()=>{e()});else{n=1;const t=setInterval(()=>{void 0!==l.Vimeo&&(clearInterval(t),h.resolve("done"),e())},20)}}(()=>{if(this.destroyed)return;let t;this.$video||(t=document.createElement("div"),t.style.display="none"),this.playerOptions={dnt:1,id:String(this.videoID),autopause:0,transparent:0,autoplay:this.options.autoplay?1:0,loop:this.options.loop?1:0,muted:this.options.mute||0===this.options.volume?1:0};const i=this.constructor.parseURLHash(this.url);if(i&&(this.playerOptions.h=i),this.options.showControls||(this.playerOptions.controls=0),!this.options.showControls&&this.options.loop&&this.options.autoplay&&(this.playerOptions.background=1),!this.$video&&t){this.hiddenContainer=t;let e="";Object.keys(this.playerOptions).forEach(t=>{var i;const s=t,o=null==(i=this.playerOptions)?void 0:i[s];void 0!==o&&(""!==e&&(e+="&"),e+=`${t}=${encodeURIComponent(String(o))}`)}),this.$video=document.createElement("iframe"),this.$video.setAttribute("id",this.playerID),this.$video.setAttribute("src",`https://player.vimeo.com/video/${String(this.videoID)}?${e}`),this.$video.setAttribute("frameborder","0"),this.$video.setAttribute("mozallowfullscreen",""),this.$video.setAttribute("allowfullscreen",""),this.$video.setAttribute("title","Vimeo video player"),this.options.accessibilityHidden&&(this.$video.setAttribute("tabindex","-1"),this.$video.setAttribute("aria-hidden","true")),t.appendChild(this.$video),document.body.appendChild(t)}this.player=this.player||new l.Vimeo.Player(this.$video,this.playerOptions),this.options.mute||"number"!=typeof this.options.volume||this.setVolume(this.options.volume),this.options.startTime&&this.options.autoplay&&this.player.setCurrentTime(this.options.startTime),this.player.getVideoWidth().then(e=>{this.videoWidth=e||1280}),this.player.getVideoHeight().then(e=>{this.videoHeight=e||720});let s=!1;this.player.on("timeupdate",e=>{s||(this.fire("started",e),s=!0),this.fire("timeupdate",e),this.options.endTime&&e.seconds>=this.options.endTime&&(this.options.loop?this.play(this.options.startTime):this.pause())}),this.player.on("play",e=>{this.fire("play",e),this.options.startTime&&0===e.seconds&&this.play(this.options.startTime)}),this.player.on("pause",e=>{this.fire("pause",e)}),this.player.on("ended",e=>{this.fire("ended",e)}),this.player.on("loaded",e=>{this.fire("ready",e)}),this.player.on("volumechange",e=>{this.getVolume(e=>{"number"==typeof e&&(this.options.volume=e)}),this.fire("volumechange",e)}),this.player.on("error",e=>{this.fire("error",e)}),e(this.$video)}))}destroy(){var e;this.imageRequest&&(this.imageRequest.abort(),this.imageRequest=void 0),(null==(e=this.player)?void 0:e.destroy)&&this.player.destroy(),super.destroy()}},Local:class extends s{constructor(){super(...arguments),this.type="local"}static parseURL(e){const t=e.split(/,(?=mp4:|webm:|ogv:|ogg:)/),i={};let s=0;return t.forEach(e=>{const t=e.match(/^(mp4|webm|ogv|ogg):(.*)/);if((null==t?void 0:t[1])&&t[2]){const e="ogv"===t[1]?"ogg":t[1];i[e]=t[2],s=1}}),!!s&&i}play(e){this.player&&(void 0!==e&&(this.player.currentTime=e),this.player.paused&&(this.options.endTime&&!this.options.loop?this.getCurrentTime(e=>{var t;e<this.options.endTime&&(null==(t=this.player)||t.play())}):this.player.play()))}pause(){this.player&&!this.player.paused&&this.player.pause()}mute(){this.player&&this.$video&&(this.$video.muted=!0)}unmute(){this.player&&this.$video&&(this.$video.muted=!1)}setVolume(e=!1){this.player&&this.$video&&"number"==typeof e&&(this.$video.volume=e/100)}getVolume(e){this.player&&this.$video?e(100*this.$video.volume):e(!1)}getMuted(e){this.player&&this.$video?e(this.$video.muted):e(null)}setCurrentTime(e=!1){this.player&&this.$video&&"number"==typeof e&&(this.$video.currentTime=e)}getCurrentTime(e){this.player&&e(this.player.currentTime)}getImageURL(e){this.videoImage&&e(this.videoImage)}getVideo(e){if(this.destroyed)return;if(this.$video)return void e(this.$video);let t;if(this.$video||(t=document.createElement("div"),t.style.display="none"),!this.$video&&t){this.$video=document.createElement("video"),this.player=this.$video,this.hiddenContainer=t,this.options.showControls&&(this.$video.controls=!0),"number"==typeof this.options.volume&&this.setVolume(this.options.volume),this.options.mute&&this.mute(),this.options.loop&&(this.$video.loop=!0),this.$video.setAttribute("playsinline",""),this.$video.setAttribute("webkit-playsinline",""),this.options.accessibilityHidden&&(this.$video.setAttribute("tabindex","-1"),this.$video.setAttribute("aria-hidden","true")),this.$video.setAttribute("id",this.playerID),t.appendChild(this.$video),document.body.appendChild(t),Object.keys(this.videoID).forEach(e=>{const t=this.videoID[e];t&&function(e,t,i){const s=document.createElement("source");s.src=t,s.type=i,e.appendChild(s)}(this.$video,t,`video/${e}`)});const e=this.player;let i=!1;this.eventHandlers={playing:e=>{i||this.fire("started",e),i=!0},timeupdate:e=>{this.fire("timeupdate",e),this.options.endTime&&this.player&&this.player.currentTime>=this.options.endTime&&(this.options.loop?this.play(this.options.startTime):this.pause())},play:e=>{this.fire("play",e)},pause:e=>{this.fire("pause",e)},ended:e=>{this.fire("ended",e)},loadedmetadata:e=>{this.player&&(this.videoWidth=this.player.videoWidth||1280,this.videoHeight=this.player.videoHeight||720,this.fire("ready",e),this.options.autoplay&&this.play(this.options.startTime))},volumechange:e=>{this.getVolume(e=>{"number"==typeof e&&(this.options.volume=e)}),this.fire("volumechange",e)},error:e=>{this.fire("error",e)}},e.addEventListener("playing",this.eventHandlers.playing),e.addEventListener("timeupdate",this.eventHandlers.timeupdate),e.addEventListener("play",this.eventHandlers.play),e.addEventListener("pause",this.eventHandlers.pause),e.addEventListener("ended",this.eventHandlers.ended),e.addEventListener("loadedmetadata",this.eventHandlers.loadedmetadata),e.addEventListener("volumechange",this.eventHandlers.volumechange),e.addEventListener("error",this.eventHandlers.error)}e(this.$video)}destroy(){this.player&&this.eventHandlers&&(this.player.removeEventListener("playing",this.eventHandlers.playing),this.player.removeEventListener("timeupdate",this.eventHandlers.timeupdate),this.player.removeEventListener("play",this.eventHandlers.play),this.player.removeEventListener("pause",this.eventHandlers.pause),this.player.removeEventListener("ended",this.eventHandlers.ended),this.player.removeEventListener("loadedmetadata",this.eventHandlers.loadedmetadata),this.player.removeEventListener("volumechange",this.eventHandlers.volumechange),this.player.removeEventListener("error",this.eventHandlers.error)),this.eventHandlers=void 0,super.destroy()}}},y="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var c,g=y;function f(e=g.jarallax){if(void 0===e)return;const t=e.constructor,i=t.prototype.onScroll;t.prototype.onScroll=function(){i.apply(this);!this.isVideoInserted&&this.video&&(!this.options.videoLazyLoading||this.isElementInViewport)&&!this.options.disableVideo()&&(this.isVideoInserted=!0,this.video?.getVideo(e=>{const t=e,i=t.parentNode;this.css(t,{position:this.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",margin:0,zIndex:-1}),this.$video=t,"local"===this.video?.type&&(this.image.src?t.setAttribute("poster",this.image.src):"IMG"===this.image.$item?.tagName&&t.setAttribute("poster",this.image.$item.src)),this.options.videoClass&&t.setAttribute("class",`${this.options.videoClass} ${this.options.videoClass}-${this.video?.type}`),this.image.$container?.appendChild(t),i?.parentNode?.removeChild(i),this.options.onVideoInsert?.call(this)}))};const s=t.prototype.coverImage;t.prototype.coverImage=function(){const e=s.apply(this),t=this.image.$item?.nodeName;if(!e||!0===e||!this.video||!t||"IFRAME"!==t&&"VIDEO"!==t||!this.$video)return e;let i=e.image.height,o=i*(this.image.width||0)/(this.image.height||1),r=(e.container.width-o)/2,a=e.image.marginTop;return e.container.width>o&&(o=e.container.width,i=o*(this.image.height||0)/(this.image.width||1),r=0,a+=(e.image.height-i)/2),"IFRAME"===t&&(i+=400,a-=200),this.css(this.$video,{width:`${o}px`,marginLeft:`${r}px`,height:`${i}px`,marginTop:`${a}px`}),e};const o=t.prototype.initImg;t.prototype.initImg=function(){const e=o.apply(this);return this.options.videoSrc||(this.options.videoSrc=this.$item.getAttribute("data-jarallax-video")||null),this.options.videoSrc?(this.defaultInitImgResult=e,!0):e};const r=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){let e=r.apply(this);if(!this.options.videoSrc)return e;const t=new v(this.options.videoSrc,{autoplay:!0,loop:this.options.videoLoop,showControls:!1,accessibilityHidden:!0,startTime:Number(this.options.videoStartTime||0),endTime:Number(this.options.videoEndTime||0),mute:!this.options.videoVolume,volume:Number(this.options.videoVolume||0)});this.options.onVideoWorkerInit?.call(this,t);const i=()=>{this.image.$default_item&&(this.image.$item=this.image.$default_item,this.image.$item.style.display="block",this.coverImage(),this.onScroll())};return t.isValid()?(this.options.disableParallax()&&(e=!0,this.image.position="absolute",this.options.type="scroll",this.options.speed=1),e?(t.on("ready",()=>{if(this.options.videoPlayOnlyVisible){const e=this.onScroll;this.onScroll=function(){e.apply(this),this.videoError||!this.options.videoLoop&&(this.options.videoLoop||this.videoEnded)||(this.isVisible()?t.play():t.pause())}}else t.play()}),t.on("started",()=>{this.image.$default_item=this.image.$item,this.image.$item=this.$video,this.image.width=this.video?.videoWidth||1280,this.image.height=this.video?.videoHeight||720,this.coverImage(),this.onScroll(),this.image.$default_item&&(this.image.$default_item.style.display="none")}),t.on("ended",()=>{this.videoEnded=!0,this.options.videoLoop||i()}),t.on("error",()=>{this.videoError=!0,i()}),this.video=t,this.defaultInitImgResult||(this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"===t.type)?e:(t.getImageURL(e=>{this.image.bgImage=`url("${e}")`,this.init()}),!1)):(this.defaultInitImgResult||t.getImageURL(e=>{const t=this.$item.getAttribute("style");t&&this.$item.setAttribute("data-jarallax-original-styles",t),this.css(this.$item,{backgroundImage:`url("${e}")`,backgroundPosition:"center",backgroundSize:"cover"})}),e)):e};const a=t.prototype.destroy;t.prototype.destroy=function(){this.image.$default_item&&(this.image.$item=this.image.$default_item,delete this.image.$default_item),a.apply(this)}}return f(),c=()=>{void 0!==g.jarallax&&g.jarallax(document.querySelectorAll("[data-jarallax-video]"))},"undefined"!=typeof document&&("complete"===document.readyState||"interactive"===document.readyState?c():document.addEventListener("DOMContentLoaded",c,{capture:!0,once:!0,passive:!0})),g.VideoWorker||(g.VideoWorker=v),f});//# sourceMappingURL=jarallax-video.min.js.map;
!function(){var t={334:function(){document.addEventListener("jetpack-lazy-loaded-image",t=>{if(t.target.classList.contains("jarallax-img")){const e=t.target.parentNode.parentNode;e&&e.jarallax&&e.jarallax.image&&e.jarallax.image.$item&&(e.jarallax.image.$item=t.target)}},{passive:!0})}},e={};function i(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={exports:{}};return t[a](o,o.exports,i),o.exports}!function(){"use strict";function t(t,e,i){var a,n=i||{},o=n.noTrailing,r=void 0!==o&&o,s=n.noLeading,l=void 0!==s&&s,d=n.debounceMode,c=void 0===d?void 0:d,g=!1,u=0;function b(){a&&clearTimeout(a)}function w(){for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var s=this,d=Date.now()-u;function w(){u=Date.now(),e.apply(s,n)}function p(){a=void 0}g||(l||!c||a||w(),b(),void 0===c&&d>t?l?(u=Date.now(),r||(a=setTimeout(c?p:w,t))):w():!0!==r&&(a=setTimeout(c?p:w,void 0===c?t-d:t)))}return w.cancel=function(t){var e=(t||{}).upcomingOnly,i=void 0!==e&&e;b(),g=!i},w}function e(t,e,i){const a=new CustomEvent(`awb-${e}`,{bubbles:!0,cancelable:!0,detail:i});t.dispatchEvent(a)}function a(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:document).addEventListener(`awb-${t}`,e)}const n=window.AWB,o=void 0===n?{}:n,r=/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/g.test(navigator.userAgent||navigator.vendor||window.opera),s=!!document.documentMode,l=!s&&!!window.StyleMedia,d="undefined"!=typeof InstallTrigger,c=/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString(),g=!!window.chrome&&!!window.chrome.webstore,u=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0;let b=!1,w=!1;function p(){return o}o.settings&&o.settings.disable_parallax&&o.settings.disable_parallax.length&&o.settings.disable_parallax.forEach(t=>{if(!b)switch(t){case"everywhere":b=!0;break;case"mobile":b=r;break;case"ie":b=s;break;case"edge":b=l;break;case"firefox":b=d;break;case"safari":b=c;break;case"chrome":b=g;break;case"opera":b=u}}),o.settings&&o.settings.disable_video&&o.settings.disable_video.length&&o.settings.disable_video.forEach(t=>{if(!w)switch(t){case"everywhere":w=!0;break;case"mobile":w=r;break;case"ie":w=s;break;case"edge":w=l;break;case"firefox":w=d;break;case"safari":w=c;break;case"chrome":w=g;break;case"opera":w=u}}),o.isMobile=r,o.disableParallax=b,o.disableVideo=w,i(334),a("before-init",t=>{!function(t){if(!t||!t.parentNode||!t.parentNode.classList.contains("nk-awb-after-vc_row"))return;const e=t.parentNode;let i=e.previousElementSibling;i=!!i.classList.contains("vc_clearfix")&&i;let a=(i||e).previousElementSibling;a=!(!a||!a.matches(".vc_row:not(.nk-awb)"))&&a,a&&("true"===a.getAttribute("data-vc-full-width")&&t.removeAttribute("data-awb-stretch"),a.classList.add("nk-awb"),a.append(t)),e.remove()}(t.target),function(t){if(!t||!t.parentNode||!t.parentNode.classList.contains("nk-awb-after-vc_column"))return;const e=t.parentNode;let i=e.previousElementSibling;i=!(!i||!i.matches(".wpb_column:not(.nk-awb)"))&&i;const a=i.closest(".vc_row");i&&(a.matches("[data-vc-stretch-content=true]")&&t.removeAttribute("data-awb-stretch"),i.classList.add("nk-awb"),i.append(t)),e.remove()}(t.target)});let f=!1,m="";a("before-init",t=>{window.GHOSTKIT||function(t){const e=t.parentNode&&t.parentNode.getAttribute("data-ghostkit-styles");e&&(f||(f=document.createElement("style"),f.setAttribute("id","ghostkit-awb-custom-css-inline-css"),document.head.appendChild(f)),m+=e,t.parentNode.removeAttribute("data-ghostkit-styles"),f.textContent=m)}(t.target)});const v=p().settings,h=[],y=[],x=[];function k(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;t&&t.length&&t.forEach(t=>{const e=t.getBoundingClientRect(),i=e.left,a=e.right,n=window.innerWidth-a,o=getComputedStyle(t),r=parseFloat(o["margin-left"]||0),s=parseFloat(o["margin-right"]||0);t.style["margin-left"]=r-i+"px",t.style["margin-right"]=s-n+"px"})}function A(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;t&&t.length&&t.forEach(t=>{const e=t.closest(".vc_row"),i=t.closest(".wpb_column"),a=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),r=getComputedStyle(t),s=getComputedStyle(e),l=a.left,d=window.innerWidth-a.right,c=n.left+(parseFloat(s["padding-left"])||0),g=window.innerWidth-n.right+(parseFloat(s["padding-right"])||0),u=o.left,b=window.innerWidth-o.right,w={"margin-left":0,"margin-right":0};if(Math.round(c)===Math.round(u)){const t=parseFloat(r["margin-left"]||0);w["margin-left"]=t-l+"px"}if(Math.round(g)===Math.round(b)){const t=parseFloat(r["margin-right"]||0);w["margin-right"]=t-d+"px"}t.style["margin-left"]=w["margin-left"],t.style["margin-right"]=w["margin-right"]})}function E(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x;t&&t.length&&t.forEach(t=>{const e=t.getBoundingClientRect(),i=e.left,a=e.bottom,n=window.innerWidth-e.right,o=getComputedStyle(t),r=parseFloat(o["margin-left"]||0),s=parseFloat(o["margin-right"]||0),l=parseFloat(o["margin-bottom"]||0);let d=r-i,c=s-n,g="";const u=t.closest(".ghostkit-col");if(u){const e=t.closest(".ghostkit-grid").getBoundingClientRect(),o=u.getBoundingClientRect(),b=e.left,w=window.innerWidth-e.right,p=o.left,f=window.innerWidth-o.right,m=o.bottom;Math.round(b)!==Math.round(p)&&(d=p-i+r),Math.round(w)!==Math.round(f)&&(c=f-n+s),g=l-(m-a)}t.style["margin-left"]=`${d}px`,t.style["margin-right"]=`${c}px`,t.style["margin-bottom"]=`${g}px`})}const L=t(200,function(){k(),A(),E()});a("before-init",t=>{!function(t){const e=t.getAttribute("data-awb-stretch");e&&t.parentNode.classList.contains("wpb_column")?(A([t]),y.push(t)):e?(k([t]),h.push(t)):v.full_width_fallback&&t.parentNode.classList.contains("alignfull")&&(E([t]),x.push(t))}(t.target)}),window.addEventListener("resize",L,{passive:!0}),window.addEventListener("orientationchange",L,{passive:!0}),window.addEventListener("load",L,{passive:!0});const _=window.IntersectionObserver,S=p().isMobile,z=[];let M=1;function j(){z.forEach(t=>{t.awbMouseData.is_in_viewport&&(t.awbMouseData.rect=t.parentNode.getBoundingClientRect())})}const C=t(200,j);setInterval(j,3e3),window.addEventListener("resize",C,{passive:!0}),window.addEventListener("orientationchange",C,{passive:!0}),window.addEventListener("load",C,{passive:!0}),document.addEventListener("scroll",C,{passive:!0});const N=t(200,(t,e,i)=>{!function(t,e,i){let a,n,o;z.forEach(r=>{a=r.awbMouseData,a&&"object"==typeof a&&(a.is_in_viewport||i&&M)&&(i?(n=-a.size*t,o=-a.size*e):(n=(a.rect.width-(t-a.rect.left))/a.rect.width,o=(a.rect.height-(e-a.rect.top))/a.rect.height,(n>1||n<0||o>1||o<0)&&(n=.5,o=.5),n=a.size*(n-.5)*2,o=a.size*(o-.5)*2),r.style.transform=`translateX(${n}px) translateY(${o}px) translateZ(0)`,i&&M||(r.style.transition=`transform ${i?2:a.speed}s  cubic-bezier(.22, .63, .6, .88)`))}),M=0}(t,e,i)}),F=new _(t=>{t.forEach(t=>{t.target.awbMouseData&&(t.target.awbMouseData.is_in_viewport=t.isIntersecting,t.isIntersecting&&C())})},{rootMargin:"50px"});function B(t){t&&t.length||(t=document.querySelectorAll(".nk-awb .nk-awb-inner img")),t&&t.length&&t.forEach(t=>{const e=window.getComputedStyle(t,null);if(e&&e.objectFit&&"cover"===e.objectFit){const e=parseInt(t.getAttribute("height"),10),i=parseInt(t.getAttribute("width"),10);if(e){let a=t.clientWidth;i/e>t.clientWidth/t.clientHeight&&(a=parseInt(t.clientHeight*i/e,10)),t.getAttribute("sizes")!==`${a}px`&&(t.setAttribute("sizes",`${a}px`),t.getAttribute("data-sizes")&&t.setAttribute("data-sizes",`${a}px`),t.getAttribute("data-lazy-sizes")&&t.setAttribute("data-lazy-sizes",`${a}px`))}}})}a("init",t=>{!function(t){if(t.classList.contains("nk-awb-mouse-parallax")||!t.getAttribute("data-awb-mouse-parallax-size"))return;const e=t.querySelector(":scope > .nk-awb-inner"),i=parseFloat(t.getAttribute("data-awb-mouse-parallax-size"))||30,a=parseFloat(t.getAttribute("data-awb-mouse-parallax-speed"))||1e4;t.classList.add("nk-awb-mouse-parallax"),e.awbMouseData={is_in_viewport:0,rect:t.getBoundingClientRect(),size:i,speed:a/1e3},e.style.left=-i+"px",e.style.right=-i+"px",e.style.top=-i+"px",e.style.bottom=-i+"px",F.observe(e),z.push(e),1===z.length&&(S&&window.DeviceOrientationEvent?window.addEventListener("deviceorientation",t=>{N(t.gamma/90,t.beta/180,!0)},{passive:!0}):window.addEventListener("mousemove",t=>{N(t.clientX,t.clientY)},{passive:!0}))}(t.target)});const W=t(500,B,{debounceMode:!1!==(void 0!==($={}.atBegin)&&$)});var $;a("before-init",t=>{B(t.target.querySelectorAll(".nk-awb-inner img"))}),window.addEventListener("resize",W,{passive:!0}),window.addEventListener("orientationchange",W,{passive:!0}),window.addEventListener("load",W,{passive:!0});const I=!!document.querySelector("#twentytwenty-style-css, #twenty-twenty-style-css, #twenty-twenty-one-style-css");a("before-jarallax-init",t=>{I&&function(t,e){const i=t.querySelector(":scope > .nk-awb-inner"),a=e.onInit;e.onInit=function(){Array.from(i.children).forEach(t=>{t.classList.add("intrinsic-ignore")}),a&&a()}}(t.target,t.detail)});const P=window.jarallax,R=p(),T=R.isMobile,q=R.disableParallax,D=R.disableVideo;a("init",t=>{!function(t){if(void 0===P)return;const i=t.getAttribute("data-awb-type");if("color"===i)return;const a=t.querySelector(".jarallax-img"),n=t.getAttribute("data-awb-image-background-size"),o=t.getAttribute("data-awb-image-background-position");let r=!1,s=0,l=0,d=0,c=!0,g=!0,u=!1,b=t.getAttribute("data-awb-parallax"),w=t.getAttribute("data-awb-parallax-speed"),p="true"===t.getAttribute("data-awb-parallax-mobile")||"1"===t.getAttribute("data-awb-parallax-mobile");if("yt_vm_video"!==i&&"video"!==i||(r=t.getAttribute("data-awb-video"),s=parseFloat(t.getAttribute("data-awb-video-start-time"))||0,l=parseFloat(t.getAttribute("data-awb-video-end-time"))||0,d=parseFloat(t.getAttribute("data-awb-video-volume"))||0,c="false"!==t.getAttribute("data-awb-video-loop"),g="true"===t.getAttribute("data-awb-video-always-play"),u="1"===t.getAttribute("data-awb-video-mobile")||"true"===t.getAttribute("data-awb-video-mobile"),!r||b||w||(b="scroll",w=1,p=u)),!b&&!r){const e=t.getAttribute("data-awb-image-background-size")||"cover",i=t.getAttribute("data-awb-image-background-position")||"50% 50%";return void(a&&(a.style.objectFit=e,a.style.objectPosition=i))}const f={type:b,speed:w,disableParallax(){return q||!p&&T},disableVideo(){return D||!u&&T},imgSize:n||"cover",imgPosition:o||"50% 50%"};"pattern"===n&&(f.imgSize="auto",f.imgRepeat="repeat"),r&&(f.speed=b?w:1,f.videoSrc=r,f.videoStartTime=s,f.videoEndTime=l,f.videoVolume=d,f.videoLoop=c,f.videoPlayOnlyVisible=!g);const m=t.querySelector(":scope > .nk-awb-inner"),v=m.querySelector("picture .jarallax-img");v&&(v.classList.remove("jarallax-img"),v.closest("picture").classList.add("jarallax-img")),e(t,"before-jarallax-init",f),P(m,f),e(t,"after-jarallax-init",f)}(t.target)});const O=p();O.selector=".nk-awb .nk-awb-wrap:not(.nk-awb-rendered)",O.events={on:a,trigger:e},O.init=function(t){const i=document.querySelectorAll(t||O.selector);i&&i.length&&i.forEach(function(t){e(t,"before-init"),t.classList.add("nk-awb-rendered"),e(t,"init"),e(t,"after-init")})},O.initThrottled=t(200,()=>{O.init()}),O.init(),new window.MutationObserver(t=>{if(!t||!t.length)return;let e=!1;t.forEach(t=>{let i=t.addedNodes;!e&&i&&i.length&&i.forEach(t=>{!e&&t.tagName&&(t.classList.contains("nk-awb")||t.classList.contains("nk-awb-after-vc_row")||t.classList.contains("nk-awb-after-vc_column")||t.firstElementChild&&t.querySelector(".nk-awb, .nk-awb-after-vc_row, .nk-awb-after-vc_column"))&&(e=!0)})}),e&&O.initThrottled()}).observe(document.documentElement,{childList:!0,subtree:!0}),window.AWB=O,e(document,"ready"),window.nkAwbInit=function(){console.warn('You are using the "nkAwbInit()" function, which is deprecated since v1.11.1. Please, use "AWB.init()" instead.'),window.AWB.init()}}()}();
(function(){
"use strict";var wp;(wp||={}).hooks=(()=>{var v=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(e,n)=>{for(var s in n)v(e,s,{get:n[s],enumerable:!0})},D=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of g(n))!I.call(e,t)&&t!==s&&v(e,t,{get:()=>n[t],enumerable:!(r=S(n,t))||r.enumerable});return e};var T=e=>D(v({},"__esModule",{value:!0}),e);var le={};w(le,{actions:()=>ae,addAction:()=>J,addFilter:()=>K,applyFilters:()=>N,applyFiltersAsync:()=>ee,createHooks:()=>F,currentAction:()=>te,currentFilter:()=>re,defaultHooks:()=>b,didAction:()=>ie,didFilter:()=>se,doAction:()=>X,doActionAsync:()=>Y,doingAction:()=>ne,doingFilter:()=>oe,filters:()=>ce,hasAction:()=>P,hasFilter:()=>Q,removeAction:()=>L,removeAllActions:()=>U,removeAllFilters:()=>W,removeFilter:()=>M});function z(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var m=z;function E(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var f=E;function Z(e,n){return function(r,t,a,i=10){let c=e[n];if(!f(r)||!m(t))return;if(typeof a!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}let l={callback:a,priority:i,namespace:t};if(c[r]){let o=c[r].handlers,d;for(d=o.length;d>0&&!(i>=o[d-1].priority);d--);d===o.length?o[d]=l:o.splice(d,0,l),c.__current.forEach(h=>{h.name===r&&h.currentIndex>=d&&h.currentIndex++})}else c[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,t,a,i)}}var H=Z;function C(e,n,s=!1){return function(t,a){let i=e[n];if(!f(t)||!s&&!m(a))return;if(!i[t])return 0;let c=0;if(s)c=i[t].handlers.length,i[t]={runs:i[t].runs,handlers:[]};else{let l=i[t].handlers;for(let o=l.length-1;o>=0;o--)l[o].namespace===a&&(l.splice(o,1),c++,i.__current.forEach(d=>{d.name===t&&d.currentIndex>=o&&d.currentIndex--}))}return t!=="hookRemoved"&&e.doAction("hookRemoved",t,a),c}}var p=C;function O(e,n){return function(r,t){let a=e[n];return typeof t<"u"?r in a&&a[r].handlers.some(i=>i.namespace===t):r in a}}var _=O;function j(e,n,s,r){return function(a,...i){let c=e[n];c[a]||(c[a]={handlers:[],runs:0}),c[a].runs++;let l=c[a].handlers;if(!l||!l.length)return s?i[0]:void 0;let o={name:a,currentIndex:0};async function d(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=await l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}function h(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}return(r?d:h)()}}var A=j;function $(e,n){return function(){let r=e[n];return Array.from(r.__current).at(-1)?.name??null}}var y=$;function V(e,n){return function(r){let t=e[n];return typeof r>"u"?t.__current.size>0:Array.from(t.__current).some(a=>a.name===r)}}var k=V;function q(e,n){return function(r){let t=e[n];if(f(r))return t[r]&&t[r].runs?t[r].runs:0}}var x=q;var B=class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=H(this,"actions"),this.addFilter=H(this,"filters"),this.removeAction=p(this,"actions"),this.removeFilter=p(this,"filters"),this.hasAction=_(this,"actions"),this.hasFilter=_(this,"filters"),this.removeAllActions=p(this,"actions",!0),this.removeAllFilters=p(this,"filters",!0),this.doAction=A(this,"actions",!1,!1),this.doActionAsync=A(this,"actions",!1,!0),this.applyFilters=A(this,"filters",!0,!1),this.applyFiltersAsync=A(this,"filters",!0,!0),this.currentAction=y(this,"actions"),this.currentFilter=y(this,"filters"),this.doingAction=k(this,"actions"),this.doingFilter=k(this,"filters"),this.didAction=x(this,"actions"),this.didFilter=x(this,"filters")}};function G(){return new B}var F=G;var b=F(),{addAction:J,addFilter:K,removeAction:L,removeFilter:M,hasAction:P,hasFilter:Q,removeAllActions:U,removeAllFilters:W,doAction:X,doActionAsync:Y,applyFilters:N,applyFiltersAsync:ee,currentAction:te,currentFilter:re,doingAction:ne,doingFilter:oe,didAction:ie,didFilter:se,actions:ae,filters:ce}=b;return T(le);})();
(window.wp||={}).hooks=wp.hooks;
})();
(function(){
"use strict";var wp;(wp||={}).i18n=(()=>{var nt=Object.create;var L=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty;var ft=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),ot=(t,r)=>{for(var e in r)L(t,e,{get:r[e],enumerable:!0})},O=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of it(r))!lt.call(t,u)&&u!==e&&L(t,u,{get:()=>r[u],enumerable:!(n=at(r,u))||n.enumerable});return t};var st=(t,r,e)=>(e=t!=null?nt(ut(t)):{},O(r||!t||!t.__esModule?L(e,"default",{value:t,enumerable:!0}):e,t)),pt=t=>O(L({},"__esModule",{value:!0}),t);var $=ft((It,M)=>{M.exports=window.wp.hooks});var yt={};ot(yt,{__:()=>Z,_n:()=>G,_nx:()=>B,_x:()=>q,createI18n:()=>R,defaultI18n:()=>H,getLocaleData:()=>j,hasTranslation:()=>Q,isRTL:()=>J,resetLocaleData:()=>U,setLocaleData:()=>z,sprintf:()=>P,subscribe:()=>X});var ct=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function T(t,...r){var e=0;return Array.isArray(r[0])&&(r=r[0]),t.replace(ct,function(){var n,u,l,o,f;return n=arguments[3],u=arguments[5],l=arguments[7],o=arguments[9],o==="%"?"%":(l==="*"&&(l=r[e],e++),u===void 0?(n===void 0&&(n=e+1),e++,f=r[n-1]):r[0]&&typeof r[0]=="object"&&r[0].hasOwnProperty(u)&&(f=r[0][u]),o==="f"?f=parseFloat(f)||0:o==="d"&&(f=parseInt(f)||0),l!==void 0&&(o==="f"?f=f.toFixed(l):o==="s"&&(f=f.substr(0,l))),f??"")})}function P(t,...r){return T(t,...r)}var D,I,h,N;D={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};I=["(","?"];h={")":["("],":":["?","?:"]};N=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function b(t){for(var r=[],e=[],n,u,l,o;n=t.match(N);){for(u=n[0],l=t.substr(0,n.index).trim(),l&&r.push(l);o=e.pop();){if(h[u]){if(h[u][0]===o){u=h[u][1]||u;break}}else if(I.indexOf(o)>=0||D[o]<D[u]){e.push(o);break}r.push(o)}h[u]||e.push(u),t=t.substr(n.index+u.length)}return t=t.trim(),t&&r.push(t),r.concat(e.reverse())}var dt={"!":function(t){return!t},"*":function(t,r){return t*r},"/":function(t,r){return t/r},"%":function(t,r){return t%r},"+":function(t,r){return t+r},"-":function(t,r){return t-r},"<":function(t,r){return t<r},"<=":function(t,r){return t<=r},">":function(t,r){return t>r},">=":function(t,r){return t>=r},"==":function(t,r){return t===r},"!=":function(t,r){return t!==r},"&&":function(t,r){return t&&r},"||":function(t,r){return t||r},"?:":function(t,r,e){if(t)throw r;return e}};function g(t,r){var e=[],n,u,l,o,f,_;for(n=0;n<t.length;n++){if(f=t[n],o=dt[f],o){for(u=o.length,l=Array(u);u--;)l[u]=e.pop();try{_=o.apply(null,l)}catch(v){return v}}else r.hasOwnProperty(f)?_=r[f]:_=+f;e.push(_)}return e[0]}function A(t){var r=b(t);return function(e){return g(r,e)}}function E(t){var r=A(t);return function(e){return+r({n:e})}}var S={contextDelimiter:"",onMissingKey:null};function _t(t){var r,e,n;for(r=t.split(";"),e=0;e<r.length;e++)if(n=r[e].trim(),n.indexOf("plural=")===0)return n.substr(7)}function x(t,r){var e;this.data=t,this.pluralForms={},this.options={};for(e in S)this.options[e]=r!==void 0&&e in r?r[e]:S[e]}x.prototype.getPluralForm=function(t,r){var e=this.pluralForms[t],n,u,l;return e||(n=this.data[t][""],l=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,typeof l!="function"&&(u=_t(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),l=E(u)),e=this.pluralForms[t]=l),e(r)};x.prototype.dcnpgettext=function(t,r,e,n,u){var l,o,f;return u===void 0?l=0:l=this.getPluralForm(t,u),o=e,r&&(o=r+this.options.contextDelimiter+e),f=this.data[t][o],f&&f[l]?f[l]:(this.options.onMissingKey&&this.options.onMissingKey(e,t),l===0?e:n)};var K={"":{plural_forms(t){return t===1?0:1}}},vt=/^i18n\.(n?gettext|has_translation)(_|$)/,R=(t,r,e)=>{let n=new x({}),u=new Set,l=()=>{u.forEach(a=>a())},o=a=>(u.add(a),()=>u.delete(a)),f=(a="default")=>n.data[a],_=(a,i="default")=>{n.data[i]={...n.data[i],...a},n.data[i][""]={...K[""],...n.data[i]?.[""]},delete n.pluralForms[i]},v=(a,i)=>{_(a,i),l()},V=(a,i="default")=>{n.data[i]={...n.data[i],...a,"":{...K[""],...n.data[i]?.[""],...a?.[""]}},delete n.pluralForms[i],l()},W=(a,i)=>{n.data={},n.pluralForms={},v(a,i)},m=(a="default",i,s,c,d)=>(n.data[a]||_(void 0,a),n.dcnpgettext(a,i,s,c,d)),y=a=>a||"default",Y=(a,i)=>{let s=m(i,void 0,a);return e?(s=e.applyFilters("i18n.gettext",s,a,i),e.applyFilters("i18n.gettext_"+y(i),s,a,i)):s},w=(a,i,s)=>{let c=m(s,i,a);return e?(c=e.applyFilters("i18n.gettext_with_context",c,a,i,s),e.applyFilters("i18n.gettext_with_context_"+y(s),c,a,i,s)):c},k=(a,i,s,c)=>{let d=m(c,void 0,a,i,s);return e?(d=e.applyFilters("i18n.ngettext",d,a,i,s,c),e.applyFilters("i18n.ngettext_"+y(c),d,a,i,s,c)):d},tt=(a,i,s,c,d)=>{let F=m(d,c,a,i,s);return e?(F=e.applyFilters("i18n.ngettext_with_context",F,a,i,s,c,d),e.applyFilters("i18n.ngettext_with_context_"+y(d),F,a,i,s,c,d)):F},rt=()=>w("ltr","text direction")==="rtl",et=(a,i,s)=>{let c=i?i+""+a:a,d=!!n.data?.[s??"default"]?.[c];return e&&(d=e.applyFilters("i18n.has_translation",d,a,i,s),d=e.applyFilters("i18n.has_translation_"+y(s),d,a,i,s)),d};if(t&&v(t,r),e){let a=i=>{vt.test(i)&&l()};e.addAction("hookAdded","core/i18n",a),e.addAction("hookRemoved","core/i18n",a)}return{getLocaleData:f,setLocaleData:v,addLocaleData:V,resetLocaleData:W,subscribe:o,__:Y,_x:w,_n:k,_nx:tt,isRTL:rt,hasTranslation:et}};var C=st($(),1);var p=R(void 0,void 0,C.defaultHooks),H=p,j=p.getLocaleData.bind(p),z=p.setLocaleData.bind(p),U=p.resetLocaleData.bind(p),X=p.subscribe.bind(p),Z=p.__.bind(p),q=p._x.bind(p),G=p._n.bind(p),B=p._nx.bind(p),J=p.isRTL.bind(p),Q=p.hasTranslation.bind(p);return pt(yt);})();
(window.wp||={}).i18n=wp.i18n;
})();