(window.webpackJsonp__wix_thunderbolt_app=window.webpackJsonp__wix_thunderbolt_app||[]).push([[17],{406:function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"g",(function(){return c})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"f",(function(){return f}));var r=function(t){return!!t&&!!t.document&&!!t.document.documentMode},i=function(t){return s(t).indexOf("edg")>-1},o=function(t){return s(t).indexOf("firefox")>-1},c=function(t){var e=s(t);return e.indexOf("safari")>-1&&e.indexOf("version")>-1},a=function(t){if(c(t)){var e=s(t).split(" ");return e=(e=e.find((function(t){return t.startsWith("version/")}))).split("/")[1],parseInt(e,10)}return-1},u=function(t){var e=s(t);return e.indexOf("safari")>-1&&e.indexOf("crios")>-1},s=function(t){return t&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent.toLowerCase():""},f=function(t){var e=s(t);return/ip(hone|od|ad).*os 11/.test(e)}},75:function(t,e,n){var r;!function(e){"use strict";var i=function(){},o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function c(){this.reads=[],this.writes=[],this.raf=o.bind(e),i("initialized",this)}function a(t){t.scheduled||(t.scheduled=!0,t.raf(u.bind(null,t)),i("flush scheduled"))}function u(t){i("flush");var e,n=t.writes,r=t.reads;try{i("flushing reads",r.length),s(r),i("flushing writes",n.length),s(n)}catch(t){e=t}if(t.scheduled=!1,(r.length||n.length)&&a(t),e){if(i("task errored",e.message),!t.catch)throw e;t.catch(e)}}function s(t){var e;for(i("run tasks");e=t.shift();)e()}function f(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}c.prototype={constructor:c,measure:function(t,e){i("measure");var n=e?t.bind(e):t;return this.reads.push(n),a(this),n},mutate:function(t,e){i("mutate");var n=e?t.bind(e):t;return this.writes.push(n),a(this),n},clear:function(t){return i("clear",t),f(this.reads,t)||f(this.writes,t)},extend:function(t){if(i("extend",t),"object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var d=e.fastdom=e.fastdom||new c;void 0===(r=function(){return d}.call(d,n,d,t))||(t.exports=r)}("undefined"!=typeof window?window:this)},786:function(t,e,n){"use strict";n.r(e),n.d(e,"page",(function(){return g}));var r=n(53),i=n(271),o=n(0),c=n(75),a=n.n(c),u=n(7),s=n(406),f=n(25),d=n(57),h=n(18),l=Object(u.h)([Object(u.f)(f.e,i.b),d.b,Object(u.g)(h.a)],(function(t,e,n){var r,i={scrollY:0,viewPortHeight:0,wixAdsHeight:0,siteHeight:0,components:{}},c={},u={},f=Object(s.e)(e)||Object(s.c)(e)||Object(s.d)(e),d=Object(s.c)(e),h=!(Object(s.d)(e)||Object(s.g)(e)&&Object(s.a)(e)>=9),l=function(){var n,r=e.pageYOffset,c=e.document.getElementById("masterPage").offsetHeight,a=(n=e.document.getElementById("WIX_ADS"))?n.offsetHeight:0,u=e.document.documentElement.clientHeight-i.wixAdsHeight;Object.assign(i,{scrollY:r,siteHeight:c,wixAdsHeight:a,viewPortHeight:u}),Object.entries(t.scrubSequencesParams).forEach((function(t){var n=Object(o.e)(t,2),c=(n[0],n[1]),s=c.compId,f=c.animationName,d=e.document.getElementById(s);if(d){var h=d.offsetHeight,l=r+d.getBoundingClientRect().top-a,m="SiteBackgroundParallax"===f?0:u-l;i.components[s]={height:h,top:l,offset:m}}}))},m=function(){var e=i.scrollY,n=i.viewPortHeight,r=i.components;Object.entries(t.scrubSequencesParams).forEach((function(t){var i=Object(o.e)(t,2),a=i[0],s=i[1].compId,f=r[s],d=f.height,h=f.offset;u[a]||(u[a]=c[a]());var l=n+d,m=Math.max(0,e)+h,b=l?m/l:0;u[a].progress(b)}))},b=function(){a.a.measure((function(){i.scrollY=e.pageYOffset,a.a.mutate(m)}))},g=function(e){a.a.measure((function(){l(),a.a.mutate((function(){var n;n=e,Object.entries(t.scrubSequencesParams).forEach((function(t){var e=Object(o.e)(t,2),r=e[0],a=e[1],u=a.animationName,s=a.compId,l=a.targetElementSelector,m=a.extraAnimationSelectors,b=a.duration,g=a.speedFactor,v=a.delay,p=i.viewPortHeight,O=i.components,w=i.siteHeight,j=O[s],x=j.height,H=j.top,A={animateRevealScrubAction:f,animateParallaxScrubAction:d,preserve3DParallaxScrubAction:h};c[r]=function(){return n.runAnimation({name:u,targetId:l,duration:b,delay:v,animationSelectors:m,params:{siteHeight:w,viewPortHeight:p,componentHeight:x,componentTop:H,browserFlags:A,suppressReactRendering:!1,forgetSequenceOnComplete:!1,speedFactor:g,paused:!0}})}}))}))})),b()},v=function(t){Object.keys(u).forEach((function(e){t.kill(u[e]),delete u[e]}))};function p(){return Object(o.b)(this,void 0,void 0,(function(){var t,e;return Object(o.d)(this,(function(r){switch(r.label){case 0:return(e=n)?[4,n.getInstance()]:[3,2];case 1:e=r.sent(),r.label=2;case 2:return(t=e)?(v(t),O(t),[2]):[2]}}))}))}var O=function(t){e.clearTimeout(r),r=e.setTimeout((function(){g(t)}),150)};return{init:function(){return Object(o.b)(this,void 0,void 0,(function(){var t,r;return Object(o.d)(this,(function(i){switch(i.label){case 0:return(r=n)?[4,n.getInstance()]:[3,2];case 1:r=i.sent(),i.label=2;case 2:return(t=r)?(g(t),e.addEventListener("scroll",b),e.addEventListener("resize",p,!1),[2]):[2]}}))}))},destroy:function(){return Object(o.b)(this,void 0,void 0,(function(){var t,r;return Object(o.d)(this,(function(i){switch(i.label){case 0:return(r=n)?[4,n.getInstance()]:[3,2];case 1:r=i.sent(),i.label=2;case 2:return(t=r)?(v(t),e.removeEventListener("scroll",b),e.removeEventListener("resize",p),[2]):[2]}}))}))}}})),m=Object(u.h)([i.a],(function(t){return{pageDidUnmount:function(){return Object(o.b)(this,void 0,void 0,(function(){return Object(o.d)(this,(function(e){switch(e.label){case 0:return[4,t.destroy()];case 1:return e.sent(),[2]}}))}))}}})),b=Object(u.h)([i.a],(function(t){return{pageDidMount:function(){return Object(o.b)(this,void 0,void 0,(function(){return Object(o.d)(this,(function(e){switch(e.label){case 0:return[4,t.init()];case 1:return e.sent(),[2]}}))}))}}})),g=function(t){t(i.a).to(l),t(r.a.PageDidMountHandler).to(b),t(r.a.PageDidUnmountHandler).to(m)}}}]); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/backgroundScrub.81c654db.chunk.min.js.map