(window.webpackJsonp__wix_thunderbolt_app=window.webpackJsonp__wix_thunderbolt_app||[]).push([[53],{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 a(){this.reads=[],this.writes=[],this.raf=o.bind(e),i("initialized",this)}function c(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)&&c(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 d(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}a.prototype={constructor:a,measure:function(t,e){i("measure");var n=e?t.bind(e):t;return this.reads.push(n),c(this),n},mutate:function(t,e){i("mutate");var n=e?t.bind(e):t;return this.writes.push(n),c(this),n},clear:function(t){return i("clear",t),d(this.reads,t)||d(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 f=e.fastdom=e.fastdom||new a;void 0===(r=function(){return f}.call(f,n,f,t))||(t.exports=r)}("undefined"!=typeof window?window:this)},787:function(t,e,n){"use strict";n.r(e),n.d(e,"page",(function(){return g}));var r=n(0),i=n(9),o=n(75),a=n.n(o),c=n(7),u=n(25),s=n(57),d=n(374),f=n(371),h=n(329),l={compId:"PAGE_TOP_ANCHOR",dataId:"SCROLL_TO_TOP"},p=function(t,e,n,r,i,o){var a={},c=r?r.map((function(t){return{compId:t.compId,dataId:t.dataId,name:t.name}})):[];return e.length&&e.forEach((function(t){a[t.id]={activeAnchor:n}})),t.length&&t.forEach((function(t){if(a[t.id]={activeAnchor:n},o&&c.length){var e=t.compData,r=e.pageTopLabel,u=e.hiddenAnchorIds,s=u&&u.hasOwnProperty(i)?u[i]:[],d={compId:"PAGE_TOP_ANCHOR",dataId:"SCROLL_TO_TOP",name:r||""};a[t.id].anchors=[d].concat(c).filter((function(t){return!s.includes(t.compId)}))}})),a},m=function(t){return{compId:t.compId,dataId:t.dataId}},v=Object(c.h)([Object(c.f)(u.e,h.a),Object(c.f)(u.d,h.a),s.b,d.b,f.c],(function(t,e,n,o,c){var u,s=t.pageAnchorsObservers.concat(e.pageAnchorsObservers),d=t.activeAnchorObservers.concat(e.activeAnchorObservers),f=t.anchors,h=e.siteOffset,v=function(t){var e=function(t,e,n){if(n.innerHeight+n.scrollY>=n.document.body.scrollHeight)return t[t.length-1];var r=t.findIndex((function(t){return Math.floor(t.top-e)>0}));return-1===r?m(t[t.length-1]):0===r?l:m(t[r-1])}(u,h,n);o.update(p(s,d,e,u,c,t))},b=function(){return u.sort((function(t,e){return t.top-e.top}))},g=function(t){u=u.map((function(t){return Object(r.a)(Object(r.a)({},t),{top:t.element.getBoundingClientRect().top||0})})),t&&b()},O=function(t){a.a.measure((function(){g(t),v(!1)}))},w=Object(i.debounce)(O.bind(null,!1),100),I=Object(i.debounce)(O.bind(null,!0),100);return{pageDidMount:function(){(s.length||d.length)&&(a.a.measure((function(){var t;(t=n.document.getElementById("WIX_ADS"))&&(h+=t.offsetHeight),u=f.reduce((function(t,e){var i=n.document.getElementById(e.compId);return i&&t.push(Object(r.a)(Object(r.a)({},e),{element:i,top:void 0!==e.top?e.top:i.getBoundingClientRect().top||0})),t}),[]),b(),v(!0)})),n.addEventListener("scroll",w),n.addEventListener("resize",I))},pageWillUnmount:function(){(s.length||d.length)&&(n.removeEventListener("scroll",w),n.removeEventListener("resize",I),a.a.mutate((function(){o.update(p(s,d,l,[],"",!0))})))}}})),b=n(53),g=function(t){t(b.a.PageDidMountHandler,b.a.PageWillUnmountHandler).to(v)}}}]); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/pageAnchors.cdf00eae.chunk.min.js.map