jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/global",function(l){var r,e;l.hasClass("premium-wrapper-link-yes")&&(r=l.data("premium-element-link"))&&(e=r.href,/^https?:\/\/[^\s]+$/i.test(e))&&l.on("click.onWrapperLink",function(){var e,n,o=l.data("id"),t=document.createElement("a");t.id="premium-wrapper-link-"+o,t.href=r.href,t.target="url"===r.type?r.link.is_external?"_blank":"_self":"",t.rel="url"===r.type&&r.link.nofollow?"nofollow noreferer":"",t.style.display="none",document.body.appendChild(t),(e=document.getElementById(t.id)).click(),n=setTimeout(function(){e.remove(),console.log(e),clearTimeout(n)})})})});; ((n,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.anime=e()})(this,function(){var u={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},M={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},j=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],l={CSS:{},springs:{}};function C(n,e,t){return Math.min(Math.max(n,e),t)}function c(n,e){return-1{for(var e=0,t=1;10!==t&&x[t]<=n;++t)e+=.1;var r=e+(n-x[--t])/(x[t+1]-x[t])*.1,a=O(r,b,M);if(.001<=a){for(var o=n,i=r,u=b,s=M,c=0;c<4;++c){var f=O(i,u,s);if(0===f)return i;i-=(k(i,u,s)-o)/f}return i}if(0===a)return r;for(var l,d,p=n,h=e,g=e+.1,m=b,v=M,y=0;0<(l=k(d=h+(g-h)/2,m,v)-p)?g=d:h=d,1e-7{for(var n=e.parentNode;w.svg(n)&&w.svg(n.parentNode);)n=n.parentNode;return n})(),r=t.getBoundingClientRect(),a=v(t,"viewBox"),o=r.width,r=r.height,n=n.viewBox||(a?a.split(" "):[0,0,o,r]);return{el:t,viewBox:n,x:+n[0],y:+n[1],w:o,h:r,vW:n[2],vH:n[3]}}function G(n,e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=W(w.pth(n)?n.totalLength:n,e)+"";return{original:r,numbers:r.match(t)?r.match(t).map(Number):[0],strings:w.str(n)||e?r.split(t):[]}}function A(n){return I(n?f(w.arr(n)?n.map(p):p(n)):[],function(n,e,t){return t.indexOf(n)===e})}function Q(n){var t=A(n);return t.map(function(n,e){return{target:n,id:e,total:t.length,transforms:{list:$(n)}}})}function z(n,e){var t,r=[],a=e.keyframes;for(t in e=a?D((e=>{for(var t=I(f(e.map(function(n){return Object.keys(n)})),function(n){return w.key(n)}).reduce(function(n,e){return n.indexOf(e)<0&&n.push(e),n},[]),a={},n=0;n{var r=t[n];a[r]=e.map(function(n){var e,t={};for(e in n)w.key(e)?e==r&&(t.value=n[e]):t[e]=n[e];return t})})(n);return a})(a),e):e)w.key(t)&&r.push({name:t,tweens:((n,t)=>{var e,r=g(t),a=(/^spring/.test(r.easing)&&(r.duration=i(r.easing)),w.arr(n)&&(2!==(e=n.length)||w.obj(n[0])?w.fnc(t.duration)||(r.duration=t.duration/e):n={value:n}),w.arr(n)?n:[n]);return a.map(function(n,e){n=w.obj(n)&&!w.pth(n)?n:{value:n};return w.und(n.delay)&&(n.delay=e?0:t.delay),w.und(n.endDelay)&&(n.endDelay=e===a.length-1?t.endDelay:0),n}).map(function(n){return D(n,r)})})(e[t],n)});return r}function _(u,s){var c;return u.tweens.map(function(n){var n=((n,e)=>{var t,r={};for(t in n){var a=m(n[t],e);w.arr(a)&&1===(a=a.map(function(n){return m(n,e)})).length&&(a=a[0]),r[t]=a}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r})(n,s),e=n.value,t=w.arr(e)?e[1]:e,r=B(t),a=T(s.target,u.name,r,s),o=c?c.to.original:a,i=w.arr(e)?e[0]:o,a=B(i)||B(a),r=r||a;return w.und(t)&&(t=o),n.from=G(i,r),n.to=G(E(t,i),r),n.start=c?c.end:0,n.end=n.start+n.delay+n.duration+n.endDelay,n.easing=P(n.easing,n.duration),n.isPath=w.pth(e),n.isPathTargetInsideSVG=n.isPath&&w.svg(s.target),n.isColor=w.col(n.from.original),n.isColor&&(n.round=1),c=n})}var R={css:function(n,e,t){return n.style[e]=t},attribute:function(n,e,t){return n.setAttribute(e,t)},object:function(n,e,t){return n[e]=t},transform:function(n,e,t,r,a){var o;r.list.set(e,t),e!==r.last&&!a||(o="",r.list.forEach(function(n,e){o+=e+"("+n+") "}),n.style.transform=o)}};function J(n,i){Q(n).forEach(function(n){for(var e in i){var t=m(i[e],n),r=n.target,a=B(t),o=T(r,e,a,n),t=E(W(t,a||B(o)),o),a=b(r,e);R[a](r,e,t,n.transforms,!0)}})}function K(n,e){return I(f(n.map(function(o){return e.map(function(n){var e,t,r=o,a=b(r.target,n.name);if(a)return t=(e=_(n,r))[e.length-1],{type:a,property:n.name,animatable:r,tweens:e,duration:t.end,delay:e[0].delay,endDelay:t.endDelay}})})),function(n){return!w.und(n)})}function U(n,e){function t(n){return n.timelineOffset||0}var r=n.length,a={};return a.duration=r?Math.max.apply(Math,n.map(function(n){return t(n)+n.duration})):e.duration,a.delay=r?Math.min.apply(Math,n.map(function(n){return t(n)+n.delay})):e.delay,a.endDelay=r?a.duration-Math.max.apply(Math,n.map(function(n){return t(n)+n.duration-n.endDelay})):e.endDelay,a}var N,nn=0,S=[],en=("undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){L.suspendWhenDocumentHidden&&(n()?N=cancelAnimationFrame(N):(S.forEach(function(n){return n._onDocumentVisibility()}),en()))}),function(){!(N||n()&&L.suspendWhenDocumentHidden)&&0{function r(n){return e.el.getPointAtLength(1<=t+(n=void 0===n?0:n)?t+n:0)}var a=Z(e.el,e.svg),o=r(),i=r(-1),u=r(1),s=n?1:a.w/a.vW,c=n?1:a.h/a.vH;switch(e.property){case"x":return(o.x-a.x)*s;case"y":return(o.y-a.y)*c;case"angle":return 180*Math.atan2(u.y-i.y,u.x-i.x)/Math.PI}})(s.value,c*v,s.isPathTargetInsideSVG):y+c*(v-y);!l||s.isColor&&2 path",loop:!0,direction:"alternate",easing:"linear",duration:7500,d:[{value:"M0,288L16,261.3C32,235,64,181,96,160C128,139,160,149,192,160C224,171,256,181,288,208C320,235,352,277,384,261.3C416,245,448,171,480,149.3C512,128,544,160,576,170.7C608,181,640,171,672,186.7C704,203,736,245,768,234.7C800,224,832,160,864,128C896,96,928,96,960,96C992,96,1024,96,1056,133.3C1088,171,1120,245,1152,240C1184,235,1216,149,1248,138.7C1280,128,1312,192,1344,218.7C1376,245,1408,235,1424,229.3L1440,224L1440,320L1424,320C1408,320,1376,320,1344,320C1312,320,1280,320,1248,320C1216,320,1184,320,1152,320C1120,320,1088,320,1056,320C1024,320,992,320,960,320C928,320,896,320,864,320C832,320,800,320,768,320C736,320,704,320,672,320C640,320,608,320,576,320C544,320,512,320,480,320C448,320,416,320,384,320C352,320,320,320,288,320C256,320,224,320,192,320C160,320,128,320,96,320C64,320,32,320,16,320L0,320Z"},{value:"M0,224L16,192C32,160,64,96,96,96C128,96,160,160,192,197.3C224,235,256,245,288,224C320,203,352,149,384,149.3C416,149,448,203,480,197.3C512,192,544,128,576,96C608,64,640,64,672,85.3C704,107,736,149,768,144C800,139,832,85,864,101.3C896,117,928,203,960,213.3C992,224,1024,160,1056,154.7C1088,149,1120,203,1152,192C1184,181,1216,107,1248,69.3C1280,32,1312,32,1344,69.3C1376,107,1408,181,1424,218.7L1440,256L1440,320L1424,320C1408,320,1376,320,1344,320C1312,320,1280,320,1248,320C1216,320,1184,320,1152,320C1120,320,1088,320,1056,320C1024,320,992,320,960,320C928,320,896,320,864,320C832,320,800,320,768,320C736,320,704,320,672,320C640,320,608,320,576,320C544,320,512,320,480,320C448,320,416,320,384,320C352,320,320,320,288,320C256,320,224,320,192,320C160,320,128,320,96,320C64,320,32,320,16,320L0,320Z"},{value:e="M0,192L16,202.7C32,213,64,235,96,250.7C128,267,160,277,192,277.3C224,277,256,267,288,229.3C320,192,352,128,384,106.7C416,85,448,107,480,122.7C512,139,544,149,576,144C608,139,640,117,672,101.3C704,85,736,75,768,101.3C800,128,832,192,864,192C896,192,928,128,960,128C992,128,1024,192,1056,208C1088,224,1120,192,1152,154.7C1184,117,1216,75,1248,96C1280,117,1312,203,1344,208C1376,213,1408,139,1424,101.3L1440,64L1440,320L1424,320C1408,320,1376,320,1344,320C1312,320,1280,320,1248,320C1216,320,1184,320,1152,320C1120,320,1088,320,1056,320C1024,320,992,320,960,320C928,320,896,320,864,320C832,320,800,320,768,320C736,320,704,320,672,320C640,320,608,320,576,320C544,320,512,320,480,320C448,320,416,320,384,320C352,320,320,320,288,320C256,320,224,320,192,320C160,320,128,320,96,320C64,320,32,320,16,320L0,320Z"}]},a.find("#premium-shape-divider-"+d+" svg").attr("viewBox","0 0 1440 320"),r("#premium-shape-divider-"+d+" svg > path").attr("d",e),anime(i))}a.hasClass("premium-shape-divider-yes")&&(d=a.data("id"),e=elementorFrontend.isEditMode(),i=a.hasClass("premium-shape-divider__custom"),r("#premium-shape-divider-fill-"+d).length&&(s=r("#premium-shape-divider-"+d+" svg").attr("viewBox"),r("#premium-shape-divider-fill-"+d).attr("viewBox",s),r("#premium-shape-divider-"+d+" svg").attr("fill","url(#pa-shape-divider-fill-"+d+")")),e?(s=a.find("#premium-shape-divider-"+d).data("shape"))&&r.ajax({type:"POST",url:PaShapeDividerSettings.ajaxurl,data:{action:"get_shape_divider_svg",shape:"shape"+s,nonce:PaShapeDividerSettings.nonce}}).success(function(e){e.data.shape&&(a.find("#premium-shape-divider-"+d).html(e.data.shape),p())}):(a.append(r("#premium-shape-divider-fill-"+d)),a.append(r("#premium-shape-divider-"+d))),t(),C(),a.find("#premium-shape-divider-"+d).css({visibility:"inherit",opacity:"inherit"}),p(),i&&a.find("#premium-shape-divider-"+d+" svg").attr("preserveAspectRatio","none"),r(window).off("resize.paUpdateShapePos"),r(window).on("resize.paUpdateShapePos",t),r(window).off("resize.paShapeResize"),r(window).on("resize.paShapeResize",C))}elementorFrontend.hooks.addAction("frontend/element_ready/section",e),elementorFrontend.hooks.addAction("frontend/element_ready/column",e),elementorFrontend.hooks.addAction("frontend/element_ready/container",e)});; !function(u){function t(r,a){var s=r.find(".premium-button-style6-bg"),t=(0!==s.length&&r.hasClass("premium-mouse-detect-yes")&&r.on("mouseenter mouseleave",".premium-button-style6",function(t){var e=a(this).offset(),i=t.pageX-e.left;s.css({top:t.pageY-e.top,left:i})}),r.find(".premium-lottie-animation"));t.length&&t.each(function(t,e){var i,s=a(e);s.data("box-tilt")&&(e=s.data("box-tilt-reverse"),UniversalTilt.init({elements:s.parent(),settings:{reverse:e},callbacks:{onMouseLeave:function(t){t.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(t){t.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})),r.hasClass("instant-lottie")?(instance=new premiumLottieAnimations(s)).init():(i=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&((instance=new premiumLottieAnimations(s)).init(),i.unobserve(t.target))})})).observe(s[0])})}function e(t){if(t.hasClass("premium-lottie-yes")){var c=t,e=c.data("id"),i={},s=c.find("#premium-lottie-"+e),d=elementorFrontend.isEditMode()&&0!!(t=t.data("pa-lottie"))&&(i.lottieLayers=[],u.each(t,function(t,e){i.lottieLayers.push(e)}),0!==Object.keys(i).length?i:void 0))(s)))return!1;var r=new IntersectionObserver(function(t){t.forEach(function(t){var f,m;t.isIntersecting&&(f=elementorFrontend.getCurrentDeviceMode(),d&&c.find(".premium-lottie-layer svg, .premium-lottie-layer canvas").remove(),m="",u.each(i.lottieLayers,function(t,i){var e,a,s,r,n,o,h,l;function p(t){var e,i,s,r=u(window).outerHeight();"function"==typeof a[0].getBoundingClientRect&&(s=0<=(e=a[0].getBoundingClientRect()).top&&e.topr||s)?l.play():l.pause())}i.lottie_url="url"===i.source?i.lottie_url:i.lottie_file.url,""!==i.lottie_url&&i.show_layer_on.includes(f)&&(e=i.lottie_renderer,d||(m+='
',c.prepend(m),m=""),a=jQuery(".elementor-repeater-item-"+i._id),s=i.lottie_loop,r=i.lottie_reverse,o=1e3*i.lottie_delay||0,"play"!==(n=i.hover_action)&&(h=i.start_on_visible),l=lottie.loadAnimation({wrapper:a[0],renderer:e||"svg",loop:!!s,path:i.lottie_url,autoplay:!1}),i.lottie_speed&&1!==i.lottie_speed&&l.setSpeed(i.lottie_speed),r&&l.setDirection(-1),l.addEventListener("DOMLoaded",function(){var t,e;setTimeout(function(){l.play()},o),("play"===n||"play"!==n&&h)&&(l.pause(),"play"!==n)&&(p(),u(window).on("scroll",p)),"none"!==n&&a.hover(function(){"play"===n?l.play():"pause"===n&&l.pause()},function(){"play"===n?l.pause():"pause"===n&&l.play()}),"yes"!==i.premium_lottie_parallax&&!i.animate_on_scroll||(t=[],"yes"===i.premium_lottie_parallax&&t.push("translateY"),i.animate_on_scroll&&(l.pause(),t.push("animate")),e={elType:"SECTION",effects:t},t.includes("animate")&&(e.animate={speed:i.premium_lottie_animate_speed.size,range:{start:i.premium_lottie_animate_view.sizes.start,end:i.premium_lottie_animate_view.sizes.end}}),t.includes("translateY")&&(e.vscroll={speed:i.premium_lottie_parallax_speed.size||4,direction:i.premium_lottie_parallax_direction,range:{start:i.premium_lottie_parallax_view.sizes.start,end:i.premium_lottie_parallax_view.sizes.end}}),new premiumEffects(a[0],e,l).init())}))}),r.unobserve(t.target))})});r.observe(t[0]),d&&new premiumEditorBehavior(c,{repeater:"premium_lottie_repeater",item:".premium-lottie-layer",hor:"premium_lottie_hor",ver:"premium_lottie_ver",width:"premium_lottie_size",tab:"section_premium_lottie",offset:0,widgets:["drag"]}).init()}}var i,s;"undefined"!=typeof navigator&&(i=this,s=function(){function x(){return L}var I="http://www.w3.org/2000/svg",L="",B=!1,R=-999999,V=function(){return B};function g(t){return document.createElement(t)}function y(t,e){for(var i,s=t.length,r=0;r{for(var t,s=[],e=0;e<256;e+=1)t=e.toString(16),s[e]=1===t.length?"0"+t:t;return function(t,e,i){return"#"+s[t=t<0?0:t]+s[e=e<0?0:e]+s[i=i<0?0:i]}})();function P(t){return document.createElementNS(I,t)}function Ct(t){return(Ct="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)}Et=1,St=[],Tt={onmessage:function(){},postMessage:function(t){wt({data:t})}},Mt={postMessage:function(t){Tt.onmessage({data:t})}};var wt,Dt,Et,St,Tt,Mt,Ft={loadAnimation:function(t,e,i){It(),e=Lt(e,i),Dt.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},loadData:function(t,e,i){It(),e=Lt(e,i),Dt.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},completeAnimation:function(t,e,i){It(),e=Lt(e,i),Dt.postMessage({type:"complete",animation:t,id:e})}};function It(){var t,e;Dt||(t=function(e){function t(){function p(t,e){for(var i,s,r,a=t.length,n=0;n{for(var i=0,s=e.length;ie[0]||!(t[0]{for(var e,i=t.split("\r\n"),s={},r=0,a=0;athis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,s=i.length,r=t.layers,a=r.length,n=0;nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},r.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},r.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle)&&(this._idle=!1,this.trigger("_active"))},r.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},r.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},r.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},r.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&0=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e)&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))},r.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},r.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},r.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===Xt(t[0]))for(var i=t.length,s=0;sn?-1:1,l=!0;l;)if(s[a]<=n&&s[a+1]>n?(o=(n-s[a])/(s[a+1]-s[a]),l=!1):a+=h,a<0||r-1<=a){if(a===r-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}De=R,Ee=Math.abs;var De,Ee,C={getProp:function(t,e,i,s,r){var a;if(e.k.length)if("number"==typeof e.k[0])a=new Re(t,e,s,r);else switch(i){case 0:a=new Ve(t,e,s,r);break;case 1:a=new ze(t,e,s,r)}else a=new Be(t,e,s,r);return a.effectsSequence.length&&r.addDynamicProperty(a),a}};function Se(t,e){for(var i,s,r,a,n=this.offsetTime,o=("multidimensional"===this.propType&&(i=J("float32",this.pv.length)),e.lastIndex),h=o,l=this.keyframes.length-1,p=!0;p;){if(s=this.keyframes[h],r=this.keyframes[h+1],h===l-1&&t>=r.t-n){s.h&&(s=r),o=0;break}if(r.t-n>t){o=h;break}h{var s,r,a,n=[],o=t[0],h=t[1],l=t[2],t=t[3],p=e[0],f=e[1],m=e[2];return(a=o*p+h*f+l*m+t*(e=e[3]))<0&&(a=-a,p=-p,f=-f,m=-m,e=-e),a=1e-6<1-a?(a=Math.acos(a),s=Math.sin(a),r=Math.sin((1-i)*a)/s,Math.sin(i*a)/s):(r=1-i,i),n[0]=r*o+a*p,n[1]=r*h+a*f,n[2]=r*l+a*m,n[3]=r*t+a*e,n})(I,L,(t-v)/(y-v)),L=I[0],m=I[1],c=I[2],I=I[3],d=Math.atan2(2*m*I-2*L*c,1-2*m*m-2*c*c),u=Math.asin(2*L*m+2*c*I),I=Math.atan2(2*L*I-2*m*c,1-2*L*L-2*c*c),f[0]=d/U,f[1]=u/U,f[2]=I/U);else for(h=0;h=i&&i<=t||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function Fe(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[s]&&(a[s],r)||(a[s]=Oe.newElement()),a[s][0]=t,a[s][1]=e},Ne.prototype.setTripleAt=function(t,e,i,s,r,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,s,"o",n,o),this.setXYAt(r,a,"i",n,o)},Ne.prototype.reverse=function(){for(var t=new Ne,e=(t.setPathData(this.c,this._length),this.v),i=this.o,s=this.i,r=0,a=(this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),r=1),this._length-1),n=this._length,o=r;o{var r=-999999;function t(t,e,i){var s,r,a,n,o,h,l,p=i.lastIndex,f=this.keyframes;if(t=f[f.length-1].t-this.offsetTime)s=(f[f.length-1].s?f[f.length-1].s:f[f.length-2].e)[0],r=!0;else{for(var m,c,d,u,g,y,v=p,b=f.length-1,_=!0;_&&(m=f[v],!((c=f[v+1]).t-this.offsetTime>t));)v=c.t-this.offsetTime?1:t{if(t._length===e._length&&t.c===e.c){for(var i=t._length,s=0;s{for(var e=Si.split("&"),i=0;is+i||(a=n.s*r<=s?0:(n.s*r-s)/i,n=n.e*r>=s+i?1:(n.e*r-s)/i,h.push([a,n]));return h.length||h.push([0,0]),h},Li.prototype.releasePathsData=function(t){for(var e=t.length,i=0;ie.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(m[s].v[r-1],m[s].o[r-1],m[s].i[r],m[s].v[r],i,n,g),g=!1):(h=xe.getNewSegment(m[s].v[r-1],m[s].v[r],m[s].o[r-1],m[s].i[r],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[r-1]),this.addSegmentFromArray(h,i,n,g),i.c=g=!1),d+=p.addedLength,n+=1}if(m[s].c&&o.length&&(p=o[r-1],d<=e.e?(l=o[r-1].addedLength,e.s<=d&&e.e>=d+l?(this.addSegment(m[s].v[r-1],m[s].o[r-1],m[s].i[0],m[s].v[0],i,n,g),g=!1):(h=xe.getNewSegment(m[s].v[r-1],m[s].v[0],m[s].o[r-1],m[s].i[0],(e.s-d)/l,(e.e-d)/l,o[r-1]),this.addSegmentFromArray(h,i,n,g),i.c=g=!1)):i.c=!1,d+=p.addedLength,n+=1),i._length&&(i.setXYAt(i.v[y][0],i.v[y][1],"i",y),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;s=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],s=this.px,r=this.py,s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(e[0]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),e[1]=r.getValueAtTime((r.keyframes[0].t+.01)/t,0),i[0]=s.getValueAtTime(s.keyframes[0].t/t,0),i[1]=r.getValueAtTime(r.keyframes[0].t/t,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(e[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),e[1]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/t,0),i[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0),i[1]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/t,0)):(e=[s.pv,r.pv],i[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime),i[1]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/t,r.offsetTime))):e=i=Ri,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},y([b],zi),zi.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},zi.prototype._addDynamicProperty=b.prototype.addDynamicProperty;var Ri,Vi={getTransformProperty:function(t,e,i){return new zi(t,e,i)}};function zi(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new p,this.pre=new p,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=C.getProp(t,e.p.x,0,0,this),this.py=C.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=C.getProp(t,e.p.z,0,0,this))):this.p=C.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=C.getProp(t,e.rx,0,U,this),this.ry=C.getProp(t,e.ry,0,U,this),this.rz=C.getProp(t,e.rz,0,U,this),e.or.k[0].ti)for(var s=e.or.k.length,r=0;r{for(var e=t.split(","),i=e.length,s=[],r=0;rt?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e{function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){for(var i=A(e.viewData.length),s=e.viewData.length,r=0;r{function s(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return s.content;default:return s.transform}}return s.propertyGroup=cs(s,i),i=((t,e,i)=>{function s(t){for(var e=0,i=r.length;e{function s(t){return"Color"===t||"color"===t?s.color:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:l(e.c)},opacity:{get:l(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(f("Color",i)),e.o.setGroupProperty(f("Opacity",i)),s})(t[a],e[a],i)):"st"===t[a].ty?s.push(((t,e,i)=>{var s,i=cs(h,i),r=cs(void 0,i),a=t.d?t.d.length:0,n={};for(s=0;s{function s(t){return t===e.e.ix||"End"===t||"end"===t?s.end:t===e.s.ix?s.start:t===e.o.ix?s.offset:null}var r=cs(s,i);return s.propertyIndex=e.ix,t.s.setGroupProperty(f("Start",r)),t.e.setGroupProperty(f("End",r)),t.o.setGroupProperty(f("Offset",r)),s.propertyIndex=e.ix,s.propertyGroup=i,Object.defineProperties(s,{start:{get:l(t.s)},end:{get:l(t.e)},offset:{get:l(t.o)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[a],e[a],i)):"tr"!==t[a].ty&&("el"===t[a].ty?s.push(((e,t,i)=>{function s(t){return e.p.ix===t?s.position:e.s.ix===t?s.size:null}return i=cs(s,i),s.propertyIndex=e.ix,(t="tm"===t.sh.ty?t.sh.prop:t.sh).s.setGroupProperty(f("Size",i)),t.p.setGroupProperty(f("Position",i)),Object.defineProperties(s,{size:{get:l(t.s)},position:{get:l(t.p)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[a],e[a],i)):"sr"===t[a].ty?s.push(((e,t,i)=>{function s(t){return e.p.ix===t?s.position:e.r.ix===t?s.rotation:e.pt.ix===t?s.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?s.outerRadius:e.os.ix===t?s.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?s.innerRoundness:null:s.innerRadius}return i=cs(s,i),t="tm"===t.sh.ty?t.sh.prop:t.sh,s.propertyIndex=e.ix,t.or.setGroupProperty(f("Outer Radius",i)),t.os.setGroupProperty(f("Outer Roundness",i)),t.pt.setGroupProperty(f("Points",i)),t.p.setGroupProperty(f("Position",i)),t.r.setGroupProperty(f("Rotation",i)),e.ir&&(t.ir.setGroupProperty(f("Inner Radius",i)),t.is.setGroupProperty(f("Inner Roundness",i))),Object.defineProperties(s,{position:{get:l(t.p)},rotation:{get:l(t.r)},points:{get:l(t.pt)},outerRadius:{get:l(t.or)},outerRoundness:{get:l(t.os)},innerRadius:{get:l(t.ir)},innerRoundness:{get:l(t.is)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[a],e[a],i)):"sh"===t[a].ty?s.push(ys(t[a],e[a],i)):"rc"===t[a].ty?s.push(((e,t,i)=>{function s(t){return e.p.ix===t?s.position:e.r.ix===t?s.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?s.size:null}return i=cs(s,i),t="tm"===t.sh.ty?t.sh.prop:t.sh,s.propertyIndex=e.ix,t.p.setGroupProperty(f("Position",i)),t.s.setGroupProperty(f("Size",i)),t.r.setGroupProperty(f("Rotation",i)),Object.defineProperties(s,{position:{get:l(t.p)},roundness:{get:l(t.r)},size:{get:l(t.s)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[a],e[a],i)):"rd"===t[a].ty?s.push(((e,t,i)=>{function s(t){return e.r.ix===t||"Round Corners 1"===t?s.radius:null}return i=cs(s,i),s.propertyIndex=e.ix,t.rd.setGroupProperty(f("Radius",i)),Object.defineProperties(s,{radius:{get:l(t.rd)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[a],e[a],i)):"rp"===t[a].ty?s.push(((e,t,i)=>{function s(t){return e.c.ix===t||"Copies"===t?s.copies:e.o.ix===t||"Offset"===t?s.offset:null}return i=cs(s,i),s.propertyIndex=e.ix,t.c.setGroupProperty(f("Copies",i)),t.o.setGroupProperty(f("Offset",i)),Object.defineProperties(s,{copies:{get:l(t.c)},offset:{get:l(t.o)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[a],e[a],i)):"gf"===t[a].ty?s.push(((t,e,i)=>{function s(t){return"Start Point"===t||"start point"===t?s.startPoint:"End Point"===t||"end point"===t?s.endPoint:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:l(e.s)},endPoint:{get:l(e.e)},opacity:{get:l(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(f("Start Point",i)),e.e.setGroupProperty(f("End Point",i)),e.o.setGroupProperty(f("Opacity",i)),s})(t[a],e[a],i)):s.push((t[a],e[a],function(){return null})));return s}function _s(e,t,i){function s(t){return e.a.ix===t||"Anchor Point"===t?s.anchorPoint:e.o.ix===t||"Opacity"===t?s.opacity:e.p.ix===t||"Position"===t?s.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?s.rotation:e.s.ix===t||"Scale"===t?s.scale:e.sk&&e.sk.ix===t||"Skew"===t?s.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?s.skewAxis:null}var r=cs(s,i);return t.transform.mProps.o.setGroupProperty(f("Opacity",r)),t.transform.mProps.p.setGroupProperty(f("Position",r)),t.transform.mProps.a.setGroupProperty(f("Anchor Point",r)),t.transform.mProps.s.setGroupProperty(f("Scale",r)),t.transform.mProps.r.setGroupProperty(f("Rotation",r)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(f("Skew",r)),t.transform.mProps.sa.setGroupProperty(f("Skew Angle",r))),t.transform.op.setGroupProperty(f("Opacity",r)),Object.defineProperties(s,{opacity:{get:l(t.transform.mProps.o)},position:{get:l(t.transform.mProps.p)},anchorPoint:{get:l(t.transform.mProps.a)},scale:{get:l(t.transform.mProps.s)},rotation:{get:l(t.transform.mProps.r)},skew:{get:l(t.transform.mProps.sk)},skewAxis:{get:l(t.transform.mProps.sa)},_name:{value:e.nm}}),s.ty="tr",s.mn=e.mn,s.propertyGroup=i,s}var xs,ks=function(e){var i;function s(t){return"ADBE Text Document"!==t?null:s.sourceText}return Object.defineProperty(s,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return void 0!==t&&(e.textProperty.currentData.t=void 0,(i=new String(t)).value=t||new String(t)),i}}),s},As=(xs={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return xs[t]||""});function Ps(t,e,i){this.p=C.getProp(e,t.v,0,0,i)}function Cs(t,e,i){this.p=C.getProp(e,t.v,0,0,i)}function ws(t,e,i){this.p=C.getProp(e,t.v,1,0,i)}function Ds(t,e,i){this.p=C.getProp(e,t.v,1,0,i)}function Es(t,e,i){this.p=C.getProp(e,t.v,0,0,i)}function Ss(t,e,i){this.p=C.getProp(e,t.v,0,0,i)}function Ts(t,e,i){this.p=C.getProp(e,t.v,0,0,i)}function Ms(){this.p={}}function Fs(t,e){for(var i,s=t.ef||[],r=(this.effectElements=[],s.length),a=0;at-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},h.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},h.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},h.prototype.createAudio=function(t){return new zs(t,this.globalData,this)},h.prototype.createFootage=function(t){return new Vs(t,this.globalData,this)},h.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;ee);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},d.prototype.buildFinalText=function(t){for(var e,i,s=[],r=0,a=t.length,n=!1;rthis.minimumFontSize&&V=wr(r)?Pr(0,Cr(t-r<0?Cr(a,1)-(r-t):a-t,1)):s),100!==this.sm.v&&(s<(i=.5-.5*(e=0===(e=.01*this.sm.v)?1e-8:e))?s=0:1<(s=(s-i)/e)&&(s=1)),s*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t=this.e.v/t+e;t=o.length&&(r=0,o=h[a+=1]?h[a].points:p.v.c?h[a=r=0].points:(s-=i.partialLength,null)),o)&&(n=i,z=(i=o[r]).partialLength);A=u[_].an/2-u[_].add,d.translate(-A,0,0)}else A=u[_].an/2-u[_].add,d.translate(-A,0,0),d.translate(-f[0]*u[_].an*.005,-f[1]*U*.01,0);for(B=0;B=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},T.prototype.renderInnerContent=function(){var t,e;this._renderShapeFrame(),this.hidden||!this._isFirstFrame&&!this._mdf||((e=this.tempBoundingBox).x=t=999999,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},M.prototype.createThreeDContainer=function(t,e){var i,s=g("div"),r=(nt(s),g("div")),a=(nt(r),"3d"===e&&((a=s.style).width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px",a.webkitTransformOrigin=i="50% 50%",a.mozTransformOrigin=i,a.transformOrigin=i,(a=r.style).transform=i="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",a.webkitTransform=i),s.appendChild(r),{container:r,perspectiveElem:s,startPos:t,endPos:t,type:e});return this.threeDElements.push(a),a},M.prototype.build3dContainers=function(){for(var t,e=this.layers.length,i="",s=0;s>>=1;return(t+i)/e}var r=[],t=b(function t(e,i){var s,r=[],a=sa(e);if(i&&"object"==a)for(s in e)try{r.push(t(e[s],i-1))}catch(t){}return r.length?r:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,_(n)]:null===t?(()=>{try{return h?_(h.randomBytes(p)):(e=new Uint8Array(p),(l.crypto||l.msCrypto).getRandomValues(e),_(e))}catch(t){var e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,_(n)]}})():t,3),r),a=new y(r);return s.int32=function(){return 0|a.g(4)},s.quick=function(){return a.g(4)/4294967296},s.double=s,b(_(a.S),n),(e.pass||i||function(t,e,i,s){return s&&(s.S&&v(s,a),t.state=function(){return v(a,{})}),i?(o[m]=t,e):t})(s,t,"global"in e?e.global:this==o,e.state)},b(o.random(),n)}var aa="shape";function na(t){return(na="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)}oa={},ra([],Q=$),ha=pe.getBezierEasing(.333,0,.833,.833,"easeIn").get,la=pe.getBezierEasing(.167,.167,.667,1,"easeOut").get,pa=pe.getBezierEasing(.33,0,.667,1,"easeInOut").get,ma=fa=ba,ca=_a,ua=da=Pa,ga=[0,0,0,0,0,0],oa.initiateExpression=function(n,o,t){var e,i,s,r,a,h,l,p,f,m,c,d,u,g,y,v,b,_,x,k,A,P=o.x,R=/velocity(?![\w\d])/.test(P),V=-1!==P.indexOf("random"),z=n.data.ty,C=t,O=(C.valueAtTime=C.getValueAtTime,Object.defineProperty(C,"value",{get:function(){return C.v}}),n.comp.frameDuration=1/n.comp.globalData.frameRate,n.comp.displayStartTime=0,n.data.ip/n.comp.globalData.frameRate),N=n.data.op/n.comp.globalData.frameRate,G=n.data.sw||0,j=n.data.sh||0,q=n.data.nm,W=new Function("_expression_function",P+"; scoped_bm_rt = $bm_rt;"),P=t.kf?o.k.length:0,t=!this.data||!0!==this.data.hd,Y=function(t,e){for(var i=this.pv.length||1,s=J("float32",i),r=Q.floor(5*w),a=0,n=0;ao.k[e].t&&to.k[e+1].t-t?(i=e+2,o.k[e+1]):(i=e+1,o.k[e])).t;break}}-1===i&&(i=e+1,s=o.k[e].t)}else s=i=0;var a={};return a.index=i,a.time=s/n.comp.globalData.frameRate,a},function(t){if(!o.k.length||"number"==typeof o.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:o.k[--t].t/n.comp.globalData.frameRate,value:[]},i=Object.prototype.hasOwnProperty.call(o.k[t],"s")?o.k[t].s:o.k[t-1].e,s=i.length,r=0;r{if("number"==typeof t||t instanceof Number)return Q.abs(t-(e=e||0));for(var i=Q.min(t.length,(e=e||ga).length),s=0,r=0;rl.length-1)&&(e=l.length-1),s=p-(r=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-r)/s)%2!=0)return this.getValueAtTime((s-(h-r)%s+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(r/this.comp.globalData.frameRate,0),m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0),d=Math.floor((h-r)/s);if(this.pv.length){for(n=(o=new Array(f.length)).length,a=0;al.length-1?l.length-1:e].t)-p,"pingpong"===t){if(Math.floor((p-h)/s)%2==0)return this.getValueAtTime(((p-h)%s+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),m=this.getValueAtTime(r/this.comp.globalData.frameRate,0),c=this.getValueAtTime((s-(p-h)%s+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/s)+1;if(this.pv.length){for(n=(o=new Array(f.length)).length,a=0;ar){var h=a,l=i.c&&a===n-1?0:a+1,p=(r-o)/s[a].addedLength,f=xe.getPointInSegment(i.v[h],i.v[l],i.o[h],i.i[l],p,s[a]);break}o+=s[a].addedLength,a+=1}return f=f||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-s[0],t=t[1]-s[1],s=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===s?[0,0]:"tangent"===i?[e/s,t/s]:[-t/s,e/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:wa.setGroupProperty,getValueAtTime:wa.getStaticValueAtTime},y([i],t),y([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:_.clone(this.pv),lastIndex:0,lastTime:R}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTimet&&(t=e.range.start),e.range.ende&&(e=i.range.start),i.range.end{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})})(this,function(t){function r(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t){return"string"==typeof t}function f(t){return"function"==typeof t}function $(t){return"number"==typeof t}function s(t){return void 0===t}function A(t){return"object"==typeof t}function R(t){return!1!==t}function o(){return"undefined"!=typeof window}function J(t){return f(t)||N(t)}function i(t){return($t=jt(t,a))&&_}function tt(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function et(t,e){return!e&&console.warn(t)}function m(t,e){return t&&(a[t]=e)&&$t&&($t[t]=e)||a}function g(){return 0}function rt(t){var e,r,i=t[0];if(A(i)||f(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=Ue.length;r--&&!Ue[r].targetTest(i););e=Ue[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new ir(t[r],e)))||t.splice(r,1);return t}function it(t){return t._gsap||rt(E(t))[0]._gsap}function v(t,e,r){return(r=t[e])&&f(r)?t[e]():s(r)&&t.getAttribute&&t.getAttribute(e)||r}function c(t,e){return(t=t.split(",")).forEach(e)||t}function F(t){return Math.round(1e5*t)/1e5||0}function C(t){return Math.round(1e7*t)/1e7||0}function nt(t,e){var r=e.charAt(0),e=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+e:"-"===r?t-e:"*"===r?t*e:t/e}function st(){var t,e,r=Be.length,i=Be.slice(0);for(Xe={},t=Be.length=0;ts;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t}function O(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function ut(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function M(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function ht(t,e,r,i){t._startAt&&(L?t._startAt.revert(Fe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function lt(t){return t._repeat?Vt(t._tTime,t=t.duration()+t._rDelay)*t:0}function ft(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function pt(t){t._end=C(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))}function ct(t,e){var r=t._dp;r&&r.smoothChildTiming&&t._ts&&(t._start=C(r._time-(0X)&&e.render(r,!0),M(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur(n=Math.abs(n))&&(s=i,o=n);return s}function Et(t){return ut(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&I(t,"onInterrupt"),t}function St(t){if(t)if(t=!t.name&&t.default||t,o()||t.headless){var e=t.name,r=e&&!f(t)&&t.init?function(){this._props=[]}:t,i={init:g,render:Mr,add:dr,kill:Cr,modifier:Ar,rawVars:0},n={targetTest:0,get:0,getSetter:wr,aliases:{},register:0};if(He(),t!==r){if(j[e])return;z(r,z(at(t,i),n)),jt(r.prototype,jt(i,at(t,n))),j[r.prop=e]=r,t.targetTest&&(Ue.push(r),Ye[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}m(e,r),t.register&&t.register(_,r,K)}else We.push(t)}function Rt(t,e,r){return(6*(t+=t<0?1:1>16,t>>8&p,t&p]:0:Ke.black;if(!l){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ke[t])l=Ke[t];else if("#"===t.charAt(0)){if(9===(t=t.length<6?"#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):""):t).length)return[(l=parseInt(t.substr(1,6),16))>>16,l>>8&p,l&p,parseInt(t.substr(7),16)/255];l=[(t=parseInt(t.substr(1),16))>>16,t>>8&p,t&p]}else if("hsl"===t.substr(0,3))if(l=h=t.match(Ae),e){if(~t.indexOf("="))return l=t.match(Ce),r&&l.length<4&&(l[3]=1),l}else a=+l[0]%360/360,o=l[1]/100,i=2*(u=l[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3{for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o=B?o.endTime(!1):t._dur;return N(e)&&(isNaN(e)||e in a)?(n=e.charAt(0),s="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0)*(s?(i<0?o:r).totalDuration()/100:1)):i<0?(e in a||(a[e]=u),a[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),s&&r&&(n=n/100*(D(r)?r[0]:r).totalDuration()),1{var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ke)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),Ge=/hsl[a]?\(/,d=(ue=Date.now,he=500,le=33,fe=ue(),pe=fe,de=ce=1e3/240,se={time:0,frame:0,tick:function(){er(!0)},deltaRatio:function(t){return ae/(1e3/(t||60))},wake:function(){Jt&&(!Ht&&o()&&(l=Ht=window,Zt=l.document||{},a.gsap=_,(l.gsapVersions||(l.gsapVersions=[])).push(_.version),i($t||l.GreenSockGlobals||!l.gsap&&l||{}),We.forEach(St)),ne="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,re&&se.sleep(),ie=ne||function(t){return setTimeout(t,de-1e3*se.time+1|0)},ee=1,er(2))},sleep:function(){(ne?cancelAnimationFrame:clearTimeout)(re),ee=0,ie=g},lagSmoothing:function(t,e){he=t||1/0,le=Math.min(e||33,he)},fps:function(t){ce=1e3/(t||240),de=1e3*se.time+ce},add:function(n,t,e){var s=t?function(t,e,r,i){n(t,e,r,i),se.remove(s)}:n;return se.remove(n),_e[e?"unshift":"push"](s),He(),s},remove:function(t,e){~(e=_e.indexOf(t))&&_e.splice(e,1)&&e<=oe&&oe--},_listeners:_e=[]}),He=function(){return!ee&&d.wake()},S={},Ze=/^[\d.\-M][\d.\-,\s]/,$e=/["']/g,Je=function(e){return function(t){return 1-e(1-t)}},tr=function(t,e){return t&&(f(t)?t:S[t]||Bt(t))||e};function er(t){var e,r,i,n=ue()-pe,s=!0===t;if((he=e&&t{var i;if(ee)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=y._start)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0=this.totalDuration()||!m&&c)||l!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||(!t&&_||!(m===d&&0=i&&(s instanceof W?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},e.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function(t){return N(t)?this.removeLabel(t):f(t)?this.killTweensOf(t):(t.parent===this&&O(this,t),t===this._recent&&(this._recent=this._last),M(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=C(d.time-(0{for(var r=e.length,i=0;t.indexOf(e[i])<0&&++ie:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},e.tweenTo=function(t,e){e=e||{};var r,i=this,n=h(i,t),s=e.startAt,a=e.onStart,o=e.onStartParams,t=e.immediateRender,u=W.to(i,z({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||X,onStart:function(){var t;i.pause(),r||(t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale()),u._dur!==t&>(u,t,0,1).render(u._time,!0,!0),r=1),a&&a.apply(u,o||[])}},e));return t?u.render(0):u},e.tweenFromTo=function(t,e,r){return this.tweenTo(e,z({startAt:{time:h(this,t)}},r))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),Dt(this,h(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),Dt(this,h(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},e.shiftChildren=function(t,e,r){void 0===r&&(r=0);var i,n=this._first,s=this.labels;for(t=C(t);n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return M(this)},e.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return ar.prototype.invalidate.call(this,t)},e.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),M(this)},e.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=B;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(r=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,P(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=C(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=e;gt(s,s===Y&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},or.updateRoot=function(t){if(Y._ts&&(y(Y,ft(t,Y)),te=d.frame),d.frame>=Ne){Ne+=q.autoSleep||120;var e=Y._first;if((!e||!e._ts)&&q.autoSleep&&d._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||d.sleep()}}};var ar,V=or;function or(t,e){var r;return(r=ar.call(this,t=void 0===t?{}:t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=R(t.sortChildren),Y&&P(t.parent||Y,Z(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&_t(Z(r),t.scrollTrigger),r}function ur(t,e,r,i,n,s){var a,o,u,h;if(j[t]&&!1!==(a=new j[t]).init(n,a.rawVars?e[t]:((t,e,r,i,n)=>{if(!A(t=f(t)?lr(t,n,e,r,i):t)||t.style&&t.nodeType||D(t)||ke(t))return N(t)?lr(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=lr(t[s],n,e,r,i);return a})(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new K(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==jr))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a}z(V.prototype,{_lock:0,_hasPause:0,_forcing:0});function hr(t,e,r){var i,n,s,a,o,u,h,l,f,p,c,d,_,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,x=m.lazy,T=m.onUpdate,w=m.runBackwards,b=m.yoyoEase,k=m.keyframes,O=m.autoRevert,M=t._dur,A=t._startAt,C=t._targets,P=t.parent,D=P&&"nested"===P.data?P.vars.targets:C,E="auto"===t._overwrite&&!Gt,S=t.timeline;if(t._ease=tr(g=!S||k&&g?g:"none",ge.ease),t._yEase=b?Je(tr(!0===b?g:b,ge.ease)):0,b&&t._yoyo&&!t._repeat&&(b=t._yEase,t._yEase=t._ease,t._ease=b),t._from=!S&&!!m.runBackwards,!S||k&&!m.stagger){if(d=(l=C[0]?it(C[0]).harness:0)&&m[l.prop],i=at(m,Ye),A&&(A._zTime<0&&A.progress(1),e<0&&w&&y&&!O?A.render(-1,!0):A.revert(w&&M?Fe:ze),A._lazy=0),v){if(ut(t._startAt=W.set(C,z({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!A&&R(x),startAt:null,delay:0,onUpdate:T&&function(){return I(t,"onUpdate")},stagger:0},v))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L||!y&&!O)&&t._startAt.revert(Fe),y&&M&&e<=0&&r<=0)return void(e&&(t._zTime=e))}else if(w&&M&&!A)if(s=z({overwrite:!1,data:"isFromStart",lazy:(y=e?!1:y)&&!A&&R(x),immediateRender:y,stagger:0,parent:P},i),d&&(s[l.prop]=d),ut(t._startAt=W.set(C,s)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L?t._startAt.revert(Fe):t._startAt.render(-1,!0)),t._zTime=e,y){if(!e)return}else hr(t._startAt,X,X);for(t._pt=t._ptCache=0,x=M&&R(x)||x&&!M,n=0;n{var u,h,l,f,p=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!p)for(p=t._ptCache[e]=[],l=t._ptLookup,f=t._targets.length;f--;){if((u=l[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return pr=1,t.vars[e]="+=0",hr(t,a),pr=0,!o||et(e+" not eligible for reset");p.push(u)}for(f=p.length;f--;)(u=(h=p[f])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+s*u.c:i,u.c=r-u.s,h.e&&(h.e=F(r)+U(h.e)),h.b&&(h.b=u.s+U(h.b))})(this,t,e,r,i,s,a,n)?this.resetTo(t,e,r,i,1):(ct(this,0),this.parent||k(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(t,e){if(void 0===e&&(e="all"),t||e&&"all"!==e)if(this.timeline)p=this.timeline.totalDuration(),this.timeline.killTweensOf(t,e,fr&&!0!==fr.vars.overwrite)._first||Et(this),this.parent&&p!==this.timeline.totalDuration()&>(this,this._dur*this.timeline._tDur/p,0,1);else{var r,i,n,s,a,o,u,h=this._targets,l=t?E(t):h,f=this._ptLookup,p=this._pt;if((!e||"all"===e)&&((t,e)=>{for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0})(h,l))return"all"===e&&(this._pt=0),Et(this);for(r=this._op=this._op||[],"all"!==e&&(N(e)&&(a={},c(e,function(t){return a[t]=1}),e=a),e=((t,e)=>{var r,i,n,s,a=(t=t[0]?it(t[0]).harness:0)&&t.aliases;if(!a)return e;for(i in r=jt({},e),a)if(i in r)for(n=(s=a[i].split(",")).length;n--;)r[s[n]]=r[i];return r})(h,e)),u=h.length;u--;)if(~l.indexOf(h[u]))for(a in i=f[u],"all"===e?(r[u]=e,s=i,n={}):(n=r[u]=r[u]||{},s=e),s)(o=i&&i[a])&&("kill"in o.d&&!0!==o.d.kill(a)||O(this,o,"_pt"),delete i[a]),"all"!==n&&(n[a]=1);this._initted&&!this._pt&&p&&Et(this)}else this._lazy=this._pt=0,this.parent?Et(this):this.scrollTrigger&&this.scrollTrigger.kill(!!L);return this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return yt(1,arguments)},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return yt(2,arguments)},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return Y.killTweensOf(t,e,r)},n);function n(t,e,r,i){var n;"number"==typeof e&&(r.duration=e,e=r,r=null);var s,a,o,u,h,l,f,p,i=(n=cr.call(this,i?e:ot(e))||this).vars,c=i.duration,d=i.delay,_=i.immediateRender,m=i.stagger,g=i.overwrite,v=i.keyframes,y=i.defaults,x=i.scrollTrigger,T=i.yoyoEase,i=e.parent||Y,w=(D(t)||ke(t)?$(t[0]):"length"in e)?[t]:E(t);if(n._targets=w.length?rt(w):et("GSAP target "+t+" not found. https://gsap.com",!q.nullTargetWarn)||[],n._ptLookup=[],n._overwrite=g,v||m||J(c)||J(d)){if(e=n.vars,(s=n.timeline=new V({data:"nested",defaults:y||{},targets:i&&"nested"===i.data?i.vars.targets:w})).kill(),s.parent=s._dp=Z(n),s._start=0,m||J(c)||J(d)){if(u=w.length,f=m&&kt(m),A(m))for(h in m)~_r.indexOf(h)&&((p=p||{})[h]=m[h]);for(a=0;a")}),s.duration();else{for(h in o={},v)"ease"!==h&&"easeEach"!==h&&((t,r,e,i)=>{var n,s,a=r.ease||i||"power1.inOut";if(D(r))s=e[t]||(e[t]=[]),r.forEach(function(t,e){return s.push({t:e/(r.length-1)*100,v:t,e:a})});else for(n in r)s=e[n]||(e[n]=[]),"ease"!==n&&s.push({t:parseFloat(t),v:r[n],e:a})})(h,v[h],o,v.easeEach);for(h in o)for(b=o[h].sort(function(t,e){return t.t-e.t}),a=M=0;as.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},K=(Dr.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=vr,this.m=t,this.mt=r,this.tween=e},Dr);function Dr(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||br,this.d=a||this,this.set=o||yr,this.pr=u||0,(this._next=t)&&(t._prev=this)}function Er(t){(zr[t]||Fr).map(function(t){return t()})}function Sr(){var t=Date.now(),o=[];2{for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r})(s,i)),s)&&s.modifier&&s.modifier(o[i],a,u[n],i)}}}}c("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Ur[t]=W[t]}),d.add(V.updateRoot);var jr=Ur.to({},{duration:0}),_=Ur.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],i,n,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)L?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},qr("roundProps",Ot),qr("modifiers"),qr("snap",Mt))||Ur;function Vr(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Wr(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Kr(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Qr(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Gr(t,e){t=e.s+e.c*t;e.set(e.t,e.p,~~(t+(t<0?-.5:.5))+e.u,e)}function Hr(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Zr(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function $r(t,e,r){return t.style[e]=r}function Jr(t,e,r){return t.style.setProperty(e,r)}function ti(t,e,r){return t._gsap[e]=r}function ei(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function ri(t,e,r,i,n){t=t._gsap;t.scaleX=t.scaleY=r,t.renderTransform(n,t)}function ii(t,e,r,i,n){t=t._gsap;t[e]=r,t.renderTransform(n,t)}function ni(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in Gi&&n){if(this.tfm=this.tfm||{},"transform"===t)return rn.transform.split(",").forEach(function(t){return ni.call(r,t,e)});if(~(t=rn[t]||t).indexOf(",")?t.split(",").forEach(function(t){return r.tfm[t]=un(i,t)}):this.tfm[t]=s.x?s[t]:un(i,t),t===H&&(this.tfm.zOrigin=s.zOrigin),0<=this.props.indexOf(G))return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(H,e,"")),t=G}(n||e)&&this.props.push(t,e,n[t])}function si(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function ai(){for(var t,e=this.props,r=this.target,i=r.style,n=r._gsap,s=0;s{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})})(this,function(t){function e(){return"undefined"!=typeof window}function r(){return i||e()&&(i=window.gsap)&&i.registerPlugin&&i}function a(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t,e){var e="x"===e?"Width":"Height",r="scroll"+e,i="client"+e;return t===c||t===n||t===d?Math.max(n[r],d[r])-(c["inner"+e]||n[i]||d[i]):t[r]-t["offset"+e]}function u(t,e){var r="scroll"+("x"===e?"Left":"Top");return t===c&&(null!=t.pageXOffset?r="page"+e.toUpperCase()+"Offset":t=null!=n[r]?n:d),function(){return t[r]}}function s(t,e){var r,i;return(t=_(t)[0])&&t.getBoundingClientRect?(t=t.getBoundingClientRect(),i=(r=!e||e===c||e===d)?{top:n.clientTop-(c.pageYOffset||n.scrollTop||d.scrollTop||0),left:n.clientLeft-(c.pageXOffset||n.scrollLeft||d.scrollLeft||0)}:e.getBoundingClientRect(),t={x:t.left-i.left,y:t.top-i.top},!r&&e&&(t.x+=u(e,"x")(),t.y+=u(e,"y")()),t):console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0}}function h(t,e,r,i,n){return isNaN(t)||"object"==typeof t?a(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+i-n:"max"===t?p(e,r)-n:Math.min(p(e,r),s(t,e)[r]-n):parseFloat(t)-n}function l(){i=r(),e()&&i&&document.body&&(c=window,d=document.body,n=document.documentElement,_=i.utils.toArray,i.config({autoKillThreshold:7}),m=i.config(),f=1)}var i,f,c,n,d,_,m,g={version:"3.6.1",name:"scrollTo",rawVars:1,register:function(t){i=t,l()},init:function(t,e,r,i,n){f||l();var s=this;s.isWin=t===c,s.target=t,s.tween=r,e=((t,e,r,i)=>{if("object"!=typeof(t=o(t)?t(e,r,i):t))return a(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var n,s={};for(n in t)s[n]="onAutoKill"!==n&&o(t[n])?t[n](e,r,i):t[n];return s})(e,i,t,n),s.vars=e,s.autoKill=!!e.autoKill,s.getX=u(t,"x"),s.getY=u(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,"x",s.x,h(e.x,t,"x",s.x,e.offsetX||0),i,n),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,h(e.y,t,"y",s.y,e.offsetY||0),i,n),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var r,i,n,s=e._pt,a=e.target,o=e.tween,u=e.autoKill,h=e.xPrev,l=e.yPrev,f=e.isWin;s;)s.r(t,s.d),s=s._next;r=f||!e.skipX?e.getX():h,l=(i=f||!e.skipY?e.getY():l)-l,h=r-h,n=m.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),u&&(!e.skipX&&(n{"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)})(function(y){function i(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function n(o,e){var n=!0;return y.each(o,function(t,i){return void 0===e[t]||o[t]!==e[t]?n=!1:void 0}),n}function a(t){var i=t.attr("id"),i=i?b.window.document.getElementById(i):null;return i?i===t[0]:y.contains(b.window.document.body,t[0])}function t(){this.__$emitterPrivate=y({}),this.__$emitterPublic=y({}),this.__instancesLatestArr=[],this.__plugins={},this._env=b}var l={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},s="undefined"!=typeof window?window:null,b={hasTouchCapability:!(!s||!("ontouchstart"in s||s.DocumentTouch&&s.document instanceof s.DocumentTouch||s.navigator.maxTouchPoints)),hasTransitions:(()=>{if(s){var t=(s.document.body||s.document.documentElement).style,i=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[o="transition"])return!0;for(var o=o.charAt(0).toUpperCase()+o.substr(1),e=0;e=e.__options.IEmin?(t=null,void 0===e._$origin.data("tooltipster-initialTitle")&&(void 0===(t=e._$origin.attr("title"))&&(t=null),e._$origin.data("tooltipster-initialTitle",t)),null!==e.__options.content?e.__contentSet(e.__options.content):(o=(i=e._$origin.attr("data-tooltip-content"))?y(i):o)&&o[0]?e.__contentSet(o.first()):e.__contentSet(t),e._$origin.removeAttr("title").addClass("tooltipstered"),e.__prepareOrigin(),e.__prepareGC(),y.each(e.__options.plugins,function(t,i){e._plug(i)}),b.hasTouchCapability&&y(b.window.document.body).on("touchmove."+e.__namespace+"-triggerOpen",function(t){e._touchRecordEvent(t)}),e._on("created",function(){e.__prepareTooltip()})._on("repositioned",function(t){e.__lastPosition=t.position})):e.__options.disabled=!0},__contentInsert:function(){var t=this,i=t._$tooltip.find(".tooltipster-content"),o=t.__Content;return t._trigger({type:"format",content:t.__Content,format:function(t){o=t}}),"string"!=typeof(o=t.__options.functionFormat?t.__options.functionFormat.call(t,t,{origin:t._$origin[0]},t.__Content):o)||t.__options.contentAsHTML?i.empty().append(o):i.text(o),t},__contentSet:function(t){return t instanceof y&&this.__options.contentCloning&&(t=t.clone(!0)),this.__Content=t,this._trigger({type:"updated",content:t}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var t=this,i=t._$origin,o=t._$origin.is("area"),e=(o&&(e=t._$origin.parent().attr("name"),i=y('img[usemap="#'+e+'"]')),i[0].getBoundingClientRect()),n=y(b.window.document),s=y(b.window),r=i,_={available:{document:null,window:null},document:{size:{height:n.height(),width:n.width()}},window:{scroll:{left:b.window.scrollX||b.window.document.documentElement.scrollLeft,top:b.window.scrollY||b.window.document.documentElement.scrollTop},size:{height:s.height(),width:s.width()}},origin:{fixedLineage:!1,offset:{},size:{height:e.bottom-e.top,width:e.right-e.left},usemapImage:o?i[0]:null,windowOffset:{bottom:e.bottom,left:e.left,right:e.right,top:e.top}}};if(o){var n=t._$origin.attr("shape"),a=t._$origin.attr("coords");if(a&&(a=a.split(","),y.map(a,function(t,i){a[i]=parseInt(t)})),"default"!=n)switch(n){case"circle":var l=a[0],p=a[1],c=a[2],p=p-c,l=l-c;_.origin.size.height=2*c,_.origin.size.width=_.origin.size.height,_.origin.windowOffset.left+=l,_.origin.windowOffset.top+=p;break;case"rect":var c=a[0],l=a[1],p=a[2],h=a[3];_.origin.size.height=h-l,_.origin.size.width=p-c,_.origin.windowOffset.left+=c,_.origin.windowOffset.top+=l;break;case"poly":for(var d=0,u=0,g=0,f=0,m="even",w=0;wi.right))return!(r=!0);if("visible"!=n&&(s.origin.windowOffset.topi.bottom))return!(r=!0)}return"fixed"!=o.css("position")&&void 0}),r?e._$tooltip.css("visibility","hidden"):(e._$tooltip.css("visibility","visible"),e.__options.repositionOnScroll?e.reposition(t):(i=s.origin.offset.left-e.__Geometry.origin.offset.left,o=s.origin.offset.top-e.__Geometry.origin.offset.top,e._$tooltip.css({left:e.__lastPosition.coord.left+i,top:e.__lastPosition.coord.top+o})))),e._trigger({type:"scroll",event:t,geo:s})),e},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,y.each(this.__timeouts.close,function(t,i){clearTimeout(i)}),this.__timeouts.close=[],this},__trackerStart:function(){var o=this,e=o._$tooltip.find(".tooltipster-content");return o.__options.trackTooltip&&(o.__contentBcr=e[0].getBoundingClientRect()),o.__tracker=setInterval(function(){var t,i;a(o._$origin)&&a(o._$tooltip)?(o.__options.trackOrigin&&(t=!1,n((i=o.__geometry()).origin.size,o.__Geometry.origin.size)&&(o.__Geometry.origin.fixedLineage?n(i.origin.windowOffset,o.__Geometry.origin.windowOffset)&&(t=!0):n(i.origin.offset,o.__Geometry.origin.offset)&&(t=!0)),t||(o.__options.triggerClose.mouseleave?o._close():o.reposition())),!o.__options.trackTooltip||(i=e[0].getBoundingClientRect()).height===o.__contentBcr.height&&i.width===o.__contentBcr.width||(o.reposition(),o.__contentBcr=i)):o._close()},o.__options.trackerInterval),o},_close:function(o,t,i){var e,n=this,s=!0;return n._trigger({type:"close",event:o,stop:function(){s=!1}}),(s||i)&&(t&&n.__callbacks.close.push(t),n.__callbacks.open=[],n.__timeoutsClear(),e=function(){y.each(n.__callbacks.close,function(t,i){i.call(n,n,{event:o,origin:n._$origin[0]})}),n.__callbacks.close=[]},"closed"!=n.__state?(i=!0,t=(new Date).getTime()+n.__options.animationDuration[1],(i=!("disappearing"==n.__state&&t>n.__closingTime&&0").append(o.__Content).html()),i&&o._$origin.attr("title",i),o._$origin.removeClass("tooltipstered"),o._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")):(t=y.grep(t,function(t,i){return t!==o.__namespace}),o._$origin.data("tooltipster-ns",t))),o._trigger("destroyed"),o._off(),o.off(),o.__Content=null,o.__$emitterPrivate=null,o.__$emitterPublic=null,o.__options.parent=null,o._$origin=null,o._$tooltip=null,y.tooltipster.__instancesLatestArr=y.grep(y.tooltipster.__instancesLatestArr,function(t,i){return o!==t}),clearInterval(o.__garbageCollector)),o},disable:function(){return this.__destroyed?this.__destroyError():(this._close(),this.__enabled=!1),this},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed?this.__destroyError():this._open(null,t),this},option:function(t,i){return void 0===i?this.__options[t]:(this.__destroyed?this.__destroyError():(this.__options[t]=i,this.__optionsFormat(),0<=y.inArray(t,["trigger","triggerClose","triggerOpen"])&&this.__prepareOrigin(),"selfDestruction"===t&&this.__prepareGC()),this)},reposition:function(t,i){var o=this;return o.__destroyed?o.__destroyError():"closed"!=o.__state&&a(o._$origin)&&(i||a(o._$tooltip))&&(i||o._$tooltip.detach(),o.__Geometry=o.__geometry(),o._trigger({type:"reposition",event:t,helper:{geo:o.__Geometry}})),o},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},y.fn.tooltipster=function(){var o,n=Array.prototype.slice.apply(arguments),e="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0!==this.length){if("string"==typeof n[0])return o="#*$~&",this.each(function(){var t=y(this).data("tooltipster-ns"),t=t?y(this).data(t[0]):null;if(!t)throw new Error("You called Tooltipster's \""+n[0]+'" method on an uninitialized element');if("function"!=typeof t[n[0]])throw new Error('Unknown method "'+n[0]+'"');1').append(this.__$tooltip).appendTo(b.window.document.body)},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,i){return this.constraints={width:t,height:i},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t,i,o,e=this.__$tooltip[0].getBoundingClientRect(),n={size:{height:e.height||e.bottom-e.top,width:e.width||e.right-e.left}};return this.constraints&&(t=this.__$tooltip.find(".tooltipster-content"),o=this.__$tooltip.outerHeight(),i=t[0].getBoundingClientRect(),o={height:o<=this.constraints.height,width:e.width<=this.constraints.width&&i.width>=t[0].scrollWidth-1},n.fits=o.height&&o.width),b.IE&&b.IE<=11&&n.size.width!==b.window.document.documentElement.clientWidth&&(n.size.width=Math.ceil(n.size.width)+1),n}},navigator.userAgent.toLowerCase()),e=(-1!=o.indexOf("msie")?b.IE=parseInt(o.split("msie")[1]):-1!==o.toLowerCase().indexOf("trident")&&-1!==o.indexOf(" rv:11")?b.IE=11:-1!=o.toLowerCase().indexOf("edge/")&&(b.IE=parseInt(o.toLowerCase().split("edge/")[1])),"tooltipster.sideTip");return y.tooltipster._plugin({name:e,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var i=this;i.__instance=t,i.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),i.__previousState="closed",i.__options,i.__optionsFormat(),i.__instance._on("state."+i.__namespace,function(t){"closed"==t.state?i.__close():"appearing"==t.state&&"closed"==i.__previousState&&i.__create(),i.__previousState=t.state}),i.__instance._on("options."+i.__namespace,function(){i.__optionsFormat()}),i.__instance._on("reposition."+i.__namespace,function(t){i.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof y&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var t=y('
');this.__options.arrow||t.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&t.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&t.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=t,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var t=this;t.__options=t.__instance._optionsExtract(e,t.__defaults()),t.__options.position&&(t.__options.side=t.__options.position),"object"!=typeof t.__options.distance&&(t.__options.distance=[t.__options.distance]),t.__options.distance.length<4&&(void 0===t.__options.distance[1]&&(t.__options.distance[1]=t.__options.distance[0]),void 0===t.__options.distance[2]&&(t.__options.distance[2]=t.__options.distance[0]),void 0===t.__options.distance[3]&&(t.__options.distance[3]=t.__options.distance[1]),t.__options.distance={top:t.__options.distance[0],right:t.__options.distance[1],bottom:t.__options.distance[2],left:t.__options.distance[3]}),"string"==typeof t.__options.side&&(t.__options.side=[t.__options.side,{top:"bottom",right:"left",bottom:"top",left:"right"}[t.__options.side]],"left"==t.__options.side[0]||"right"==t.__options.side[0]?t.__options.side.push("top","bottom"):t.__options.side.push("right","left")),6===y.tooltipster._env.IE&&!0!==t.__options.arrow&&(t.__options.arrow=!1)},__reposition:function(a,l){var i,p=this,c=p.__targetFind(l),h=[],o=(p.__instance._$tooltip.detach(),p.__instance._$tooltip.clone()),d=y.tooltipster._getRuler(o),u=!1,t=p.__instance.option("animation");switch(t&&o.removeClass("tooltipster-"+t),y.each(["window","document"],function(t,n){var s=null;if(p.__instance._trigger({container:n,helper:l,satisfied:u,takeTest:function(t){s=t},results:h,type:"positionTest"}),1==s||0!=s&&0==u&&("window"!=n||p.__options.viewportAware))for(t=0;t=o.outerSize.width&&l.geo.available[n][_].height>=o.outerSize.height?o.fits=!0:o.fits=!1:o.fits=e.fits,"window"==n&&(o.whole=!!o.fits&&("top"==_||"bottom"==_?l.geo.origin.windowOffset.right>=p.__options.minIntersection&&l.geo.window.size.width-l.geo.origin.windowOffset.left>=p.__options.minIntersection:l.geo.origin.windowOffset.bottom>=p.__options.minIntersection&&l.geo.window.size.height-l.geo.origin.windowOffset.top>=p.__options.minIntersection)),h.push(o),o.whole)u=!0;else if("natural"==o.mode&&(o.fits||o.size.width<=l.geo.available[n][_].width))return!1}})}}),p.__instance._trigger({edit:function(t){h=t},event:a,helper:l,results:h,type:"positionTested"}),h.sort(function(t,i){var o,e;return t.whole&&!i.whole?-1:!t.whole&&i.whole?1:t.whole&&i.whole?(e=p.__options.side.indexOf(t.side),(o=p.__options.side.indexOf(i.side))>e||!(oe||!(ol.geo.window.size.width-i.size.width&&(l.geo.origin.windowOffset.left+this.__options.minIntersection<=l.geo.window.size.width?i.coord.left=l.geo.window.size.width-i.size.width:i.coord.left=l.geo.origin.windowOffset.left+this.__options.minIntersection+1-i.size.width):i.coord.top<0?0<=l.geo.origin.windowOffset.bottom-this.__options.minIntersection?i.coord.top=0:i.coord.top=l.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:i.coord.top>l.geo.window.size.height-i.size.height&&(l.geo.origin.windowOffset.top+this.__options.minIntersection<=l.geo.window.size.height?i.coord.top=l.geo.window.size.height-i.size.height:i.coord.top=l.geo.origin.windowOffset.top+this.__options.minIntersection+1-i.size.height):(i.coord.left>l.geo.window.size.width-i.size.width&&(i.coord.left=l.geo.window.size.width-i.size.width),i.coord.left<0&&(i.coord.left=0)),p.__sideChange(o,i.side),l.tooltipClone=o[0],l.tooltipParent=p.__instance.option("parent").parent[0],l.mode=i.mode,l.whole=i.whole,l.origin=p.__instance._$origin[0],l.tooltip=p.__instance._$tooltip[0],delete i.container,delete i.fits,delete i.mode,delete i.outerSize,delete i.whole,i.distance=i.distance.horizontal||i.distance.vertical;var e,t=y.extend(!0,{},i);p.__instance._trigger({edit:function(t){i=t},event:a,helper:l,position:t,type:"position"}),p.__options.functionPosition&&(t=p.__options.functionPosition.call(p,p.__instance,l,t))&&(i=t),d.destroy(),t="top"==i.side||"bottom"==i.side?(e={prop:"left",val:i.target-i.coord.left},i.size.width-this.__options.minIntersection):(e={prop:"top",val:i.target-i.coord.top},i.size.height-this.__options.minIntersection),e.valt&&(e.val=t),t=l.geo.origin.fixedLineage?l.geo.origin.windowOffset:{left:l.geo.origin.windowOffset.left+l.geo.window.scroll.left,top:l.geo.origin.windowOffset.top+l.geo.window.scroll.top},i.coord={left:t.left+(i.coord.left-l.geo.origin.windowOffset.left),top:t.top+(i.coord.top-l.geo.origin.windowOffset.top)},p.__sideChange(p.__instance._$tooltip,i.side),l.geo.origin.fixedLineage?p.__instance._$tooltip.css("position","fixed"):p.__instance._$tooltip.css("position",""),p.__instance._$tooltip.css({left:i.coord.left,top:i.coord.top,height:i.size.height,width:i.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(e.prop,e.val),p.__instance._$tooltip.appendTo(p.__instance.option("parent")),p.__instance._trigger({type:"repositioned",event:a,position:i})},__sideChange:function(t,i){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+i)},__targetFind:function(t){var i={},o=this.__instance._$origin[0].getClientRects();return 1{var t="viewport"===r.trigger,e=0';(""!==d.target?a.find(d.target):a).tooltipster("content",e)}function f(o){var t=l.tooltipster.instances();l.each(t,function(t,e){o?e._$origin.is(o)&&e.close():e._$origin.hasClass("premium-image-hotspots-main-icons")||e.close()})}function v(){var t=elementorFrontend.getCurrentDeviceMode();return["mobile","mobile_extra"].includes(t)?"mobile":["tablet","tablet_extra"].includes(t)?void 0:"desktop"}function b(t){return t.split(",").map(function(t){return t.trim()}).filter(function(t){return t})}})});; !function(){"use strict";var e,t={noop:function(){},texturize:function(e){return(e=(e=(e=(e+="").replace(/'/g,"’").replace(/'/g,"’")).replace(/"/g,"”").replace(/"/g,"”").replace(/"/g,"”").replace(/[\u201D]/g,"”")).replace(/([\w]+)=&#[\d]+;(.+?)&#[\d]+;/g,'$1="$2"')).trim()},applyReplacements:function(e,t){if(e)return t?e.replace(/{(\d+)}/g,function(e,r){return void 0!==t[r]?t[r]:e}):e},getBackgroundImage:function(e){var t=document.createElement("canvas"),r=t.getContext&&t.getContext("2d");if(e){r.filter="blur(20px) ",r.drawImage(e,0,0);var o=t.toDataURL("image/png");return t=null,o}}},r=function(){function e(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function r(e,t,r,o){if(!e)return o();e.style.removeProperty("display"),e.style.opacity=t,e.style.pointerEvents="none";var a=function(i,n){var l=(performance.now()-i)/n;l<1?(e.style.opacity=t+(r-t)*l,requestAnimationFrame(()=>a(i,n))):(e.style.opacity=r,e.style.removeProperty("pointer-events"),o())};requestAnimationFrame(function(){requestAnimationFrame(function(){a(performance.now(),200)})})}return{closest:function(t,r){if(t.closest)return t.closest(r);var o=t;do{if(e(o,r))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null},matches:e,hide:function(e){e&&(e.style.display="none")},show:function(e){e&&(e.style.display="block")},fadeIn:function(e,o){r(e,0,1,o=o||t.noop)},fadeOut:function(e,o){o=o||t.noop,r(e,1,0,function(){e&&(e.style.display="none"),o()})},scrollToElement:function(e,t,r){if(!e||!t)return r?r():void 0;var o=t.querySelector(".jp-carousel-info-extra");o&&(o.style.minHeight=window.innerHeight-64+"px");var a=!0,i=Date.now(),n=t.scrollTop,l=Math.max(0,e.offsetTop-Math.max(0,window.innerHeight-function(e){var t=e.querySelector(".jp-carousel-info-footer"),r=e.querySelector(".jp-carousel-info-extra"),o=e.querySelector(".jp-carousel-info-content-wrapper");if(t&&r&&o){var a=window.getComputedStyle(r),i=parseInt(a.paddingTop,10)+parseInt(a.paddingBottom,10);return i=isNaN(i)?0:i,o.offsetHeight+t.offsetHeight+i}return 0}(t)))-t.scrollTop;function s(){a=!1}l=Math.min(l,t.scrollHeight-window.innerHeight),t.addEventListener("wheel",s),function e(){var c,u=Date.now(),d=(c=(u-i)/300)<.5?2*c*c:1-Math.pow(-2*c+2,2)/2,p=(d=d>1?1:d)*l;if(t.scrollTop=n+p,u<=i+300&&a)return requestAnimationFrame(e);r&&r(),o&&(o.style.minHeight=""),a=!1,t.removeEventListener("wheel",s)}()},getJSONAttribute:function(e,t){if(e&&e.hasAttribute(t))try{return JSON.parse(e.getAttribute(t))}catch{return}},convertToPlainText:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},stripHTML:function(e){return e.replace(/<[^>]*>?/gm,"")},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch{(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}e.dispatchEvent(o)},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}}();function o(){var o,a,i,n,l="",s=!1,c="div.gallery, div.tiled-gallery, ul.wp-block-gallery, ul.blocks-gallery-grid, figure.wp-block-gallery.has-nested-images, div.wp-block-jetpack-tiled-gallery, a.single-image-gallery",u=".gallery-item, .tiled-gallery-item, .blocks-gallery-item, .tiled-gallery__item",d=u+", .wp-block-image",p={},m="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.stat?wpcom.carousel.stat:t.noop,g="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.pageview?wpcom.carousel.pageview:t.noop;function h(t){if(!s)switch(t.which){case 38:t.preventDefault(),p.overlay.scrollTop-=100;break;case 40:t.preventDefault(),p.overlay.scrollTop+=100;break;case 39:t.preventDefault(),e.slideNext();break;case 37:case 8:t.preventDefault(),e.slidePrev();break;case 27:t.preventDefault(),k()}}function f(){s=!0}function v(){s=!1}function y(e){e.role="button",e.tabIndex=0,e.ariaLabel=jetpackCarouselStrings.image_label}function w(){p.overlay||(p.overlay=document.querySelector(".jp-carousel-overlay"),p.container=p.overlay.querySelector(".jp-carousel-wrap"),p.gallery=p.container.querySelector(".jp-carousel"),p.info=p.overlay.querySelector(".jp-carousel-info"),p.caption=p.info.querySelector(".jp-carousel-caption"),p.commentField=p.overlay.querySelector("#jp-carousel-comment-form-comment-field"),p.emailField=p.overlay.querySelector("#jp-carousel-comment-form-email-field"),p.authorField=p.overlay.querySelector("#jp-carousel-comment-form-author-field"),p.urlField=p.overlay.querySelector("#jp-carousel-comment-form-url-field"),window.innerWidth<=760&&Math.round(window.innerWidth/760*110)<40&&r.isTouch(),[p.commentField,p.emailField,p.authorField,p.urlField].forEach(function(e){e&&(e.addEventListener("focus",f),e.addEventListener("blur",v))}),p.overlay.addEventListener("click",function(e){var t,o,a=e.target,i=!!r.closest(a,".jp-carousel-close-hint"),n=!!window.matchMedia("(max-device-width: 760px)").matches;a===p.overlay?n||k():i?k():a.classList.contains("jp-carousel-image-download")?m("download_original_click"):a.classList.contains("jp-carousel-comment-login")?(t=p.currentSlide,o=t?t.attrs.attachmentId:"0",window.location.href=jetpackCarouselStrings.login_url+"%23jp-carousel-"+o):r.closest(a,"#jp-carousel-comment-form-container")?function(e){var t=e.target,o=r.getJSONAttribute(p.container,"data-carousel-extra")||{},a=p.currentSlide.attrs.attachmentId,i=document.querySelector("#jp-carousel-comment-form-submit-and-info-wrapper"),n=document.querySelector("#jp-carousel-comment-form-spinner"),l=document.querySelector("#jp-carousel-comment-form-button-submit"),s=document.querySelector("#jp-carousel-comment-form");if(p.commentField&&p.commentField.getAttribute("id")===t.getAttribute("id"))f(),r.show(i);else if(r.matches(t,'input[type="submit"]')){e.preventDefault(),e.stopPropagation(),r.show(n),s.classList.add("jp-carousel-is-disabled");var c={action:"post_attachment_comment",nonce:jetpackCarouselStrings.nonce,blog_id:o.blog_id,id:a,comment:p.commentField.value};if(!c.comment.length)return void j(jetpackCarouselStrings.no_comment_text,!1);if(1!==Number(jetpackCarouselStrings.is_logged_in)&&(c.email=p.emailField.value,c.author=p.authorField.value,c.url=p.urlField.value,1===Number(jetpackCarouselStrings.require_name_email))){if(!c.email.length||!c.email.match("@"))return void j(jetpackCarouselStrings.no_comment_email,!1);if(!c.author.length)return void j(jetpackCarouselStrings.no_comment_author,!1)}var u=new XMLHttpRequest;u.open("POST",jetpackCarouselStrings.ajaxurl,!0),u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),u.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE&&this.status>=200&&this.status<300){var e;try{e=JSON.parse(this.response)}catch{return void j(jetpackCarouselStrings.comment_post_error,!1)}"approved"===e.comment_status?j(jetpackCarouselStrings.comment_approved,!0):"unapproved"===e.comment_status?j(jetpackCarouselStrings.comment_unapproved,!0):j(jetpackCarouselStrings.comment_post_error,!1),I(),_(a),l.value=jetpackCarouselStrings.post_comment,r.hide(n),s.classList.remove("jp-carousel-is-disabled")}else j(jetpackCarouselStrings.comment_post_error,!1)};var d=[];for(var m in c)if(m){var g=encodeURIComponent(m)+"="+encodeURIComponent(c[m]);d.push(g.replace(/%20/g,"+"))}var h=d.join("&");u.send(h)}}(e):(r.closest(a,".jp-carousel-photo-icons-container")||a.classList.contains("jp-carousel-photo-title"))&&function(e){e.preventDefault();var t=e.target,o=p.info.querySelector(".jp-carousel-info-extra"),a=p.info.querySelector(".jp-carousel-image-meta"),i=p.info.querySelector(".jp-carousel-comments-wrapper"),n=p.info.querySelector(".jp-carousel-icon-info"),l=p.info.querySelector(".jp-carousel-icon-comments");function s(){l&&l.classList.remove("jp-carousel-selected"),n.classList.toggle("jp-carousel-selected"),i&&i.classList.remove("jp-carousel-show"),a&&(a.classList.toggle("jp-carousel-show"),a.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}function c(){n&&n.classList.remove("jp-carousel-selected"),l.classList.toggle("jp-carousel-selected"),a&&a.classList.remove("jp-carousel-show"),i&&(i.classList.toggle("jp-carousel-show"),i.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}(r.closest(t,".jp-carousel-icon-info")||t.classList.contains("jp-carousel-photo-title"))&&(a&&a.classList.contains("jp-carousel-show")?r.scrollToElement(p.overlay,p.overlay,s):(s(),r.scrollToElement(p.info,p.overlay))),r.closest(t,".jp-carousel-icon-comments")&&(i&&i.classList.contains("jp-carousel-show")?r.scrollToElement(p.overlay,p.overlay,c):(c(),r.scrollToElement(p.info,p.overlay)))}(e)}),window.addEventListener("keydown",h),p.overlay.addEventListener("jp_carousel.afterOpen",function(){v(),p.slides.length<=1||(p.slides.length<=5?r.show(p.info.querySelector(".jp-swiper-pagination")):r.show(p.info.querySelector(".jp-carousel-pagination")))}),p.overlay.addEventListener("jp_carousel.beforeClose",function(){f(),document.documentElement.style.removeProperty("height"),e&&e.enable(),r.hide(p.info.querySelector(".jp-swiper-pagination")),r.hide(p.info.querySelector(".jp-carousel-pagination"))}),p.overlay.addEventListener("jp_carousel.afterClose",function(){window.history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.href="",l="",p.isOpen=!1}),p.overlay.addEventListener("touchstart",function(e){e.touches.length>1&&e.preventDefault()}))}function j(e,t){var o=p.overlay.querySelector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");o.innerHTML=''+e+"",r.hide(p.overlay.querySelector("#jp-carousel-comment-form-spinner")),p.overlay.querySelector("#jp-carousel-comment-form").classList.remove("jp-carousel-is-disabled"),r.show(o)}function b(){var e=document.querySelectorAll("a img[data-attachment-id]");Array.prototype.forEach.call(e,function(e){var t=e.parentElement,o=t.parentElement;if(!o.classList.contains("gallery-icon")&&!r.closest(o,u)&&t.hasAttribute("href")){var a=!1;t.getAttribute("href").split("?")[0]===e.getAttribute("data-orig-file").split("?")[0]&&1===Number(jetpackCarouselStrings.single_image_gallery_media_file)&&(a=!0),t.getAttribute("href")===e.getAttribute("data-permalink")&&(a=!0),a&&(y(e),t.classList.add("single-image-gallery"),t.setAttribute("data-carousel-extra",JSON.stringify({blog_id:Number(jetpackCarouselStrings.blog_id)})))}})}function S(t,r){p.isOpen?(L(r),e.slideTo(r+1)):F(t,{startIndex:r})}function L(e){(!e||e<0||e>p.slides.length)&&(e=0),p.currentSlide=p.slides[e];var o,a,i=p.currentSlide,n=i.attrs.attachmentId;H(p.slides[e]),function(e){var t=[],r=p.slides.length;if(r>1){var o=e>0?e-1:r-1;t.push(o);var a=e
"+jetpackCarouselStrings[o]+"
"+a+""}}t.innerHTML=r,t.style.removeProperty("display")}(p.slides[e].attrs.imageMeta),function(e){if(!e)return!1;var r,o=[e.attrs.origWidth,e.attrs.origHeight],a=document.createElement("a");a.href=e.attrs.src.replace(/\?.+$/,""),r=null!==a.hostname.match(/^i[\d]{1}\.wp\.com$/i)?a.href:e.attrs.origFile.replace(/\?.+$/,"");var i=p.info.querySelector(".jp-carousel-download-text"),n=p.info.querySelector(".jp-carousel-image-download");i.innerHTML=t.applyReplacements(jetpackCarouselStrings.download_original,o),n.setAttribute("href",r),n.style.removeProperty("display")}(i),1===Number(jetpackCarouselStrings.display_comments)&&(o=p.slides[e].attrs.commentsOpened,a=p.info.querySelector("#jp-carousel-comment-form-container"),1===parseInt(o,10)?r.fadeIn(a):r.fadeOut(a),_(n),r.hide(p.info.querySelector("#jp-carousel-comment-post-results")));var s=p.info.querySelector(".jp-carousel-pagination");if(s&&p.slides.length>5){var c=e+1;s.innerHTML=""+c+" / "+p.slides.length+""}jetpackCarouselStrings.stats&&p.isOpen&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?"+jetpackCarouselStrings.stats+"&post="+encodeURIComponent(n)+"&rand="+Math.random()),p.isOpen&&g(n),l="#jp-carousel-"+n,window.location.hash=l}function k(){document.body.style.overflow=a,document.documentElement.style.overflow=i,I(),f(),r.emitEvent(p.overlay,"jp_carousel.beforeClose"),window.scrollTo(window.scrollX||window.pageXOffset||0,n||0),p.isOpen=!1,e.destroy(),p.slides=[],p.currentSlide=void 0,p.gallery.innerHTML="",r.fadeOut(p.overlay,function(){r.emitEvent(p.overlay,"jp_carousel.afterClose")})}function x(e){if("object"!=typeof e&&(e={}),void 0===e.origFile)return"";if(void 0===e.origWidth||void 0===e.maxWidth)return e.origFile;if(void 0===e.mediumFile||void 0===e.largeFile)return e.origFile;var t=document.createElement("a");t.href=e.largeFile;var r=/^i[0-2]\.wp\.com$/i.test(t.hostname),o=q(e.largeFile,e.origWidth,r),a=parseInt(o[0],10),i=parseInt(o[1],10);if(e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,void 0!==window.devicePixelRatio&&window.devicePixelRatio>1&&(e.maxWidth=e.maxWidth*window.devicePixelRatio,e.maxHeight=e.maxHeight*window.devicePixelRatio),a>=e.maxWidth||i>=e.maxHeight)return e.largeFile;var n=q(e.mediumFile,e.origWidth,r),l=parseInt(n[0],10),s=parseInt(n[1],10);if(l>=e.maxWidth||s>=e.maxHeight)return e.mediumFile;if(r){if(-1===e.largeFile.lastIndexOf("?"))return e.largeFile;var c=function(e){var t;try{t=new URL(e)}catch(t){return e}var r=["quality","ssl","filter","brightness","contrast","colorize","smooth"],o=Array.from(t.searchParams.entries());return t.search="",o.forEach(([e,o])=>{r.includes(e)&&t.searchParams.append(e,o)}),t}(e.largeFile);return(e.origWidth>e.maxWidth||e.origHeight>e.maxHeight)&&(e.origMaxWidth=2*e.maxWidth,e.origMaxHeight=2*e.maxHeight,c.searchParams.set("fit",e.origMaxWidth+","+e.origMaxHeight)),c.toString()}return e.origFile}function q(e,t,r){var o,a=r?e.replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):e.replace(/.*-([\d]+x[\d]+)\..+$/,"$1");return"9999"===(o=a!==e?r?a.split("%2C"):a.split("x"):[t,0])[0]&&(o[0]="0"),"9999"===o[1]&&(o[1]="0"),o}function A(e){return e>=1?Math.round(10*e)/10+"s":"1/"+Math.round(1/e)+"s"}function E(e){return!e.match(" ")&&e.match("_")?"":e}function _(e,t){var a=void 0===t,i=p.info.querySelector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");if(i.classList.remove("jp-carousel-show"),clearInterval(o),e){(!t||t<1)&&(t=0);var n=p.info.querySelector(".jp-carousel-comments"),l=p.info.querySelector("#jp-carousel-comments-loading");r.show(l),a&&(r.hide(n),n.innerHTML="");var s=new XMLHttpRequest,c=jetpackCarouselStrings.ajaxurl+"?action=get_attachment_comments&nonce="+jetpackCarouselStrings.nonce+"&id="+e+"&offset="+t;s.open("GET",c),s.setRequestHeader("X-Requested-With","XMLHttpRequest");var u=function(){r.fadeIn(n),r.fadeOut(l)};s.onload=function(){if(p.currentSlide&&p.currentSlide.attrs.attachmentId===e){var c,d=s.status>=200&&s.status<300;try{c=JSON.parse(s.responseText)}catch{}if(!d||!c||!Array.isArray(c))return u();a&&(n.innerHTML="");for(var m=0;m'+g.gravatar_markup+'
'+g.author_markup+'
'+g.date_gmt+"
"+g.content+"
",n.appendChild(h),clearInterval(o),o=setInterval(function(){p.container.scrollTop+150>window.innerHeight&&(_(e,t+10),clearInterval(o))},300)}c.length>0&&(r.show(n),i.innerText=c.length,i.classList.add("jp-carousel-show")),r.hide(l)}},s.onerror=u,s.send()}}function H(e){var t=e.el,r=e.attrs,o=t.querySelector("img");if(!o.hasAttribute("data-loaded")){var a=!!r.previewImage,i=r.thumbSize;!a||i&&t.offsetWidth>i.width?o.src=r.src:o.src=r.previewImage,o.setAttribute("itemprop","image"),o.setAttribute("data-loaded",1)}}function T(t){var r=t.el;e&&e.slides&&(r=e.slides[e.activeIndex]);var o=t.attrs.originalElement;o.complete&&0!==o.naturalHeight?C(t,r,o):o.onload=function(){C(t,r,o)}}function C(e,r,o){var a=t.getBackgroundImage(o);e.backgroundImage=a,r.style.backgroundImage="url("+a+")",r.style.backgroundSize="cover"}function I(){p.commentField&&(p.commentField.value="")}function M(e,o){p.slides=[];var a={width:window.innerWidth,height:window.innerHeight-64};0!==o&&null!==e[o].getAttribute("data-gallery-src")&&((new Image).src=e[o].getAttribute("data-gallery-src"));var i=!!r.closest(e[0],".tiled-gallery.type-rectangular");Array.prototype.forEach.call(e,function(e,o){var n=r.closest(e,"a"),l=e.getAttribute("data-orig-file")||e.getAttribute("src-orig"),s=e.getAttribute("data-attachment-id")||e.getAttribute("data-id")||"0",c=document.querySelector('img[data-attachment-id="'+s+'"] + figcaption');c=c?c.innerHTML:e.getAttribute("data-image-caption");var u={originalElement:e,attachmentId:s,commentsOpened:e.getAttribute("data-comments-opened")||"0",imageMeta:r.getJSONAttribute(e,"data-image-meta")||{},title:e.getAttribute("data-image-title")||"",desc:e.getAttribute("data-image-description")||"",mediumFile:e.getAttribute("data-medium-file")||"",largeFile:e.getAttribute("data-large-file")||"",origFile:l||"",thumbSize:{width:e.naturalWidth,height:e.naturalHeight},caption:c||"",permalink:n&&n.getAttribute("href"),src:l||e.getAttribute("src")||""},d=r.closest(e,".tiled-gallery-item"),m=d&&d.querySelector(".tiled-gallery-caption"),g=m&&m.innerHTML;g&&(u.caption=g);var h=function(e){var t=e.getAttribute("data-orig-size")||"";if(t){var r=t.split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:e.getAttribute("data-original-width")||e.getAttribute("width")||void 0,height:e.getAttribute("data-original-height")||e.getAttribute("height")||void 0}}(e);if(u.origWidth=h.width||u.thumbSize.width,u.origHeight=h.height||u.thumbSize.height,"undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.generateImgSrc?u.src=wpcom.carousel.generateImgSrc(e,a):u.src=x({origFile:u.src,origWidth:u.origWidth,origHeight:u.origHeight,maxWidth:a.width,maxHeight:a.height,mediumFile:u.mediumFile,largeFile:u.largeFile}),e.setAttribute("data-gallery-src",u.src),"0"!==u.attachmentId){u.title=t.texturize(u.title),u.desc=t.texturize(u.desc),u.caption=t.texturize(u.caption);var f=new Image,v=document.createElement("div");v.classList.add("swiper-slide"),v.setAttribute("itemprop","associatedMedia"),v.setAttribute("itemscope",""),v.setAttribute("itemtype","https://schema.org/ImageObject");var y=document.createElement("div");y.classList.add("swiper-zoom-container"),p.gallery.appendChild(v),v.appendChild(y),y.appendChild(f),v.setAttribute("data-attachment-id",u.attachmentId),v.setAttribute("data-permalink",u.permalink),v.setAttribute("data-orig-file",u.origFile),i&&(u.previewImage=u.src);var w={el:v,attrs:u,index:o};p.slides.push(w)}})}function F(e,t){if(!window.JetpackSwiper){var o=document.querySelector("#jp-carousel-loading-overlay");r.show(o);var a=document.createElement("script");return a.id="jetpack-carousel-swiper-js",a.src=window.jetpackSwiperLibraryPath.url,a.async=!0,a.onload=function(){r.hide(o),O(e,t)},a.onerror=function(){r.hide(o)},void document.head.appendChild(a)}O(e,t)}function O(t,o){var l,s={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},c=r.getJSONAttribute(t,"data-carousel-extra");if(!c)return;const u=t.querySelectorAll(s.imgSelector);if(u.length&&(w(),!p.isOpen)){for(var d in p.isOpen=!0,a=getComputedStyle(document.body).overflow,document.body.style.overflow="hidden",i=getComputedStyle(document.documentElement).overflow,document.documentElement.style.overflow="hidden",n=window.scrollY||window.pageYOffset||0,p.container.setAttribute("data-carousel-extra",JSON.stringify(c)),m(["open","view_image"]),o||{})s[d]=o[d];-1===s.startIndex&&(s.startIndex=0),r.emitEvent(p.overlay,"jp_carousel.beforeOpen"),p.gallery.innerHTML="",p.overlay.style.opacity=1,p.overlay.style.display="block",M(u,s.startIndex),(e=new window.JetpackSwiper(".jp-carousel-swiper-container",{centeredSlides:!0,zoom:!0,loop:p.slides.length>1,enabled:p.slides.length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:s.startIndex,on:{init:function(){L(s.startIndex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!r.isTouch(),threshold:5})).on("slideChange",function(e){p.isOpen&&(L(e.realIndex),p.overlay.classList.remove("jp-carousel-hide-controls"))}),e.on("zoomChange",function(e,t){t>1&&p.overlay.classList.add("jp-carousel-hide-controls"),1===t&&p.overlay.classList.remove("jp-carousel-hide-controls")}),e.on("doubleTap",function(e){if(clearTimeout(l),1===e.zoom.scale)var t=setTimeout(function(){p.overlay.classList.remove("jp-carousel-hide-controls"),clearTimeout(t)},150)}),e.on("tap",function(){e.zoom.scale>1&&(l=setTimeout(function(){p.overlay.classList.toggle("jp-carousel-hide-controls")},150))}),r.fadeIn(p.overlay,function(){r.emitEvent(p.overlay,"jp_carousel.afterOpen")})}}function W(e){if("click"!==e.type){if("keydown"===e.type){const t=document.activeElement.parentElement,r=t&&t.classList.contains("tiled-gallery__item");" "!==e.key&&"Enter"!==e.key||!r||R(e)}}else R(e)}function N(e){var t=e.parentElement,o=t.parentElement,a=null;return o&&o.classList.contains("wp-block-image")?a=t.getAttribute("href"):t&&t.classList.contains("wp-block-image")&&t.querySelector(":scope > a")&&(a=t.querySelector(":scope > a").getAttribute("href")),!(a&&a.split("?")[0]!==e.getAttribute("data-orig-file").split("?")[0]&&a!==e.getAttribute("data-permalink")||t.classList.contains("gallery-caption")||r.matches(t,"figcaption"))}function R(e){if(window.CSS&&window.CSS.supports&&window.CSS.supports("display","grid")){var t,o=e.target,a=r.closest(o,c);if(a){if(!(t=a)||!t.getAttribute("data-carousel-extra"))return;if(!N(o))return;document.documentElement.style.height="auto",e.preventDefault(),e.stopPropagation();var i=r.closest(o,d),n=Array.prototype.indexOf.call(a.querySelectorAll(d),i);F(a,{startIndex:n})}}}document.body.addEventListener("click",W),document.body.addEventListener("keydown",W),document.querySelectorAll(u+"img").forEach(function(e){N(e)&&y(e)}),1===Number(jetpackCarouselStrings.single_image_gallery)&&(b(),document.body.addEventListener("is.post-load",function(){b()})),window.addEventListener("hashchange",function(){var e=/jp-carousel-(\d+)/;if(window.location.hash&&e.test(window.location.hash)){if(window.location.hash!==l||!p.isOpen)if(window.location.hash&&p.gallery&&!p.isOpen&&history.back)history.back();else{l=window.location.hash;for(var t=window.location.hash.match(e),r=parseInt(t[1],10),o=document.querySelectorAll(c),a=0;a