(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8],{65130:function(t,e,i){!function(t,e){"use strict";var s,a,r=e&&"object"==typeof e&&"default"in e?e:{default:e},n=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self,{exports:{}});s=n.exports,"undefined"!=typeof navigator&&(a=function(){var t,e,i,a,r,n,o,h,l,p,f="",d=!1,u=function(t){f=t},m=function(){return f};function c(t){return document.createElement(t)}function g(t,e){var i,s,a=t.length;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),z(i[0],i[1],i[2])}function B(t,e){var i=N(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),z(i[0],i[1],i[2])}function q(t,e){var i=N(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),z(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var W=function(t){_=!!t},H=function(t){k=t},X=function(){return k},Y=function(t){C=t},G=function(){return C},J=function(t){A=t};function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Z=function(){var t,e,i=1,s=[],a={onmessage:function(){},postMessage:function(e){t({data:e})}},r={postMessage:function(t){a.onmessage({data:t})}};function n(){e||((e=function(e){if(window.Worker&&window.Blob&&d){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(i))}return t=e,a}(function(t){if(r.dataManager||(r.dataManager=function(){function t(a,r){var n,o,h,l,p,f,d=a.length;for(o=0;o=0;e-=1)if("sh"===t[e].ty){if(t[e].ks.k.i)s(t[e].ks.k);else for(a=0,r=t[e].ks.k.length;ai[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var r,n=function(){var t=[4,4,14];function e(t){var e,i=t.length;for(e=0;e=0;i-=1)if("sh"===e[i].ty){if(e[i].ks.k.i)e[i].ks.k.c=e[i].closed;else for(s=0,a=e[i].ks.k.length;s500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function o(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return Z.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function h(){this._imageLoaded=s.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return h.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;var i,s=t.length;for(i=0;ithis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,a=s.length,r=t.layers,n=r.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ta.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},ta.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")))},ta.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())},ta.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},ta.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ta.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},ta.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):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")},ta.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)},ta.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===ts(t[0])){var i,s=t.length;for(i=0;i=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){n=!0},t.unfreeze=function(){n=!1,m()},t.setVolume=function(t,i){var a;for(a=0;a=.001?function(t,e,i,r){for(var n=0;n<4;++n){var o=a(e,i,r);if(0===o)break;var h=s(e,i,r)-t;e-=h/o}return e}(t,h,e,i):0===l?h:function(t,e,i,a,r){var n,o,h=0;do(n=s(o=e+(i-e)/2,a,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++h<10);return o}(t,n,n+.1,e,i)}},t}(),to={double:function(t){return t.concat(b(t.length))}},th=function(t,e,i){var s=0,a=t,r=b(a);return{newElement:function(){var t;return s?(s-=1,t=r[s]):t=e(),t},release:function(t){s===a&&(r=to.double(r),a*=2),i&&i(t),r[s]=t,s+=1}}},tl=th(8,function(){return{addedLength:0,percents:v("float32",G()),lengths:v("float32",G())}}),tp=th(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e-.001&&n<.001}var s=function(t,e,i,s){var a,r,n,o,h,l,p=G(),f=0,d=[],u=[],m=tl.newElement();for(a=0,n=i.length;an?-1:1,l=!0;l;)if(s[r]<=n&&s[r+1]>n?(o=(n-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=a-1){if(r===a-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var h=v("float32",8);return{getSegmentsLength:function(t){var e,i=tp.newElement(),a=t.c,r=t.v,n=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e1&&(r=1);var p,f=o(r,l),d=o(n=n>1?1:n,l),u=t.length,m=1-f,c=1-d,g=m*m*m,y=f*m*m*3,v=f*f*m*3,b=f*f*f,_=m*m*c,k=f*m*c+m*f*c+m*m*d,A=f*f*c+m*f*d+f*m*d,P=f*f*d,S=m*c*c,w=f*c*c+m*d*c+m*c*d,x=f*d*c+m*d*d+f*c*d,D=f*d*d,C=c*c*c,M=d*c*c+c*d*c+c*c*d,F=d*d*c+c*d*d+d*c*d,T=d*d*d;for(p=0;pu?d>m?d-u-m:m-u-d:m>u?m-u-d:u-d-m)>-1e-4&&f<1e-4}}}(),td=function(){var t=Math.abs;function e(t,e){var s=this.offsetTime;"multidimensional"===this.propType&&(d=v("float32",this.pv.length));for(var a=e.lastIndex,r=a,n=this.keyframes.length-1,o=!0;o;){if(u=this.keyframes[r],m=this.keyframes[r+1],r===n-1&&t>=m.t-s){u.h&&(u=m),a=0;break}if(m.t-s>t){a=r;break}r=h||t=h?p.points.length-1:0;for(g=0,y=p.points[f].point.length;g=x&&w=h)d[0]=P[0],d[1]=P[1],d[2]=P[2];else if(t<=l)d[0]=u.s[0],d[1]=u.s[1],d[2]=u.s[2];else{var D,C,F,T,E,I,L,R,V,O,z,N,j,B,q,W,H,X,Y,G,J,K,U,Z,Q,$,tt,te,ti,ts=i(u.s),ta=i(P);W=d,X=(D=(t-l)/(h-l),L=[],R=ts[0],V=ts[1],O=ts[2],z=ts[3],N=ta[0],j=ta[1],(F=R*N+V*j+O*(B=ta[2])+z*(q=ta[3]))<0&&(F=-F,N=-N,j=-j,B=-B,q=-q),1-F>1e-6?(T=Math.sin(C=Math.acos(F)),E=Math.sin((1-D)*C)/T,I=Math.sin(D*C)/T):(E=1-D,I=D),L[0]=E*R+I*N,L[1]=E*V+I*j,L[2]=E*O+I*B,L[3]=E*z+I*q,H=L)[0],Y=H[1],G=H[2],K=Math.atan2(2*Y*(J=H[3])-2*X*G,1-2*Y*Y-2*G*G),U=Math.asin(2*X*Y+2*G*J),Z=Math.atan2(2*X*J-2*Y*G,1-2*X*X-2*G*G),W[0]=K/M,W[1]=U/M,W[2]=Z/M}}else for(r=0;r=h?b=1:t=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function a(e){var i;if("unidimensional"===this.propType)i=e*this.mult,t(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var s=0,a=this.v.length;s1e-5&&(this.v[s]=i,this._mdf=!0),s+=1}function r(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}r[s]&&(!r[s]||a)||(r[s]=tm.newElement()),r[s][0]=t,r[s][1]=e},tc.prototype.setTripleAt=function(t,e,i,s,a,r,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,s,"o",n,o),this.setXYAt(a,r,"i",n,o)},tc.prototype.reverse=function(){var t,e=new tc;e.setPathData(this.c,this._length);var i=this.v,s=this.o,a=this.i,r=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],a[0][0],a[0][1],s[0][0],s[0][1],0,!1),r=1);var n=this._length-1,o=this._length;for(t=r;t=a[a.length-1].t-this.offsetTime)r=a[a.length-1].s?a[a.length-1].s[0]:a[a.length-2].e[0],o=!0;else{for(var r,n,o,h,l,p,f,d,u,m,c,g,y,v=s,b=a.length-1,_=!0;_&&(m=a[v],!((c=a[v+1]).t-this.offsetTime>t));)v=c.t-this.offsetTime?d=1:ti&&t>i)||(this._caching.lastIndex=s0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+E(t[0])+","+E(t[1])+","+E(t[4])+","+E(t[5])+","+E(t[12])+","+E(t[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=d,this.setTransform=u,this.translate=m,this.transform=c,this.applyToPoint=k,this.applyToX=A,this.applyToY=P,this.applyToZ=S,this.applyToPointArray=M,this.applyToTriplePoints=C,this.applyToPointStringified=F,this.toCSS=T,this.to2dCSS=I,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=D,this.inversePoint=x,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=v("float32",16),this.reset()}}();function tk(t){return(tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var tA={};function tP(){tr.searchAnimations()}tA.play=tr.play,tA.pause=tr.pause,tA.setLocationHref=function(t){u(t)},tA.togglePause=tr.togglePause,tA.setSpeed=tr.setSpeed,tA.setDirection=tr.setDirection,tA.stop=tr.stop,tA.searchAnimations=tP,tA.registerAnimation=tr.registerAnimation,tA.loadAnimation=function(t){return tr.loadAnimation(t)},tA.setSubframeRendering=function(t){W(t)},tA.resize=tr.resize,tA.goToAndStop=tr.goToAndStop,tA.destroy=tr.destroy,tA.setQuality=function(t){if("string"==typeof t)switch(t){case"high":Y(200);break;default:case"medium":Y(50);break;case"low":Y(10)}else!isNaN(t)&&t>1&&Y(t)},tA.inBrowser=function(){return"undefined"!=typeof navigator},tA.installPlugin=function(t,e){"expressions"===t&&H(e)},tA.freeze=tr.freeze,tA.unfreeze=tr.unfreeze,tA.setVolume=tr.setVolume,tA.mute=tr.mute,tA.unmute=tr.unmute,tA.getRegisteredAnimations=tr.getRegisteredAnimations,tA.useWebWorker=function(t){d=!!t},tA.setIDPrefix=function(t){J(t)},tA.__getFactory=function(t){switch(t){case"propertyFactory":return td;case"shapePropertyFactory":return tb;case"matrix":return t_;default:return null}},tA.version="5.10.2";var tS="",tw=document.getElementsByTagName("script"),tx=tw.length-1,tD=tw[tx]||{src:""};tS=tD.src?tD.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=tS.split("&"),i=0;i=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var h=[],l=o.length;for(r=0;rs+i||h.push([n.s*a<=s?0:(n.s*a-s)/i,n.e*a>=s+i?1:(n.e*a-s)/i]);return h.length||h.push([0,0]),h},tT.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1+e:this.s.v<0?0+e:this.s.v+e)>(n=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var i=r;r=n,n=i}r=1e-4*Math.round(1e4*r),n=1e-4*Math.round(1e4*n),this.sValue=r,this.eValue=n}else r=this.sValue,n=this.eValue;var s=this.shapes.length,a=0;if(n===r)for(h=0;h=0;h-=1)if((m=this.shapes[h]).shape._mdf){for((c=m.localShapeCollection).releaseShapes(),2===this.m&&s>1?(g=this.calculateShapeEdges(r,n,m.totalShapeLength,_,a),_+=m.totalShapeLength):g=[[v,b]],p=g.length,l=0;l=1?y.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(y.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(b-1)}));var k=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1){if(m.shape.paths.shapes[m.shape.paths._length-1].c){var A=k.pop();this.addPaths(k,c),k=this.addShapes(m,y[1],A)}else this.addPaths(k,c),k=this.addShapes(m,y[1])}this.addPaths(k,c)}}m.shape.paths=c}}},tT.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=m&&e.e>=m+n.addedLength?(this.addSegment(d[s].v[a-1],d[s].o[a-1],d[s].i[a],d[s].v[a],i,o,g),g=!1):(l=tf.getNewSegment(d[s].v[a-1],d[s].v[a],d[s].o[a-1],d[s].i[a],(e.s-m)/n.addedLength,(e.e-m)/n.addedLength,h[a-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),m+=n.addedLength,o+=1;if(d[s].c&&h.length){if(n=h[a-1],m<=e.e){var y=h[a-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(d[s].v[a-1],d[s].o[a-1],d[s].i[0],d[s].v[0],i,o,g),g=!1):(l=tf.getNewSegment(d[s].v[a-1],d[s].v[0],d[s].o[a-1],d[s].i[0],(e.s-m)/y,(e.e-m)/y,h[a-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;m+=n.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),m>e.e)break;s=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],a=[];var s,a,r=this.px,n=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),a[0]=r.getValueAtTime(r.keyframes[0].t/i,0),a[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),a[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),a[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,n.pv],a[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),a[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else s=a=t;this.v.rotate(-Math.atan2(s[1]-a[1],s[0]-a[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(){}},g([tu],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=tu.prototype.addDynamicProperty,{getTransformProperty:function(t,i,s){return new e(t,i,s)}}}();function tL(){}function tR(){}function tV(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function tO(t){return 1e-5>=Math.abs(t)}function tz(t,e,i){return[t[0]*(1-i)+e[0]*i,t[1]*(1-i)+e[1]*i]}function tN(t,e,i,s){return[-t+3*e-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function tj(t){return new tB(t,t,t,t,!1)}function tB(t,e,i,s,a){a&&tK(t,e)&&(e=tz(t,s,1/3)),a&&tK(i,s)&&(i=tz(t,s,2/3));var r=tN(t[0],e[0],i[0],s[0]),n=tN(t[1],e[1],i[1],s[1]);this.a=[r[0],n[0]],this.b=[r[1],n[1]],this.c=[r[2],n[2]],this.d=[r[3],n[3]],this.points=[t,e,i,s]}function tq(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var a=s;s=i,i=a}for(var r=function(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var a=-e/(2*t);if(0===s)return[a];var r=Math.sqrt(s)/(2*t);return[a-r,a+r]}(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&r[n]<1){var o=t.point(r[n])[e];os&&(s=o)}return{min:i,max:s}}function tW(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function tH(t){var e=t.bez.split(.5);return[tW(e[0],t.t1,t.t),tW(e[1],t.t,t.t2)]}function tX(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function tY(t,e,i,s){var a=[t[0],t[1],1],r=[e[0],e[1],1],n=[i[0],i[1],1],o=[s[0],s[1],1],h=tX(tX(a,r),tX(n,o));return tO(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function tG(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function tJ(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function tK(t,e){return tV(t[0],e[0])&&tV(t[1],e[1])}function tU(){}function tZ(t,e,i,s,a,r,n){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*a,p=e[1]-Math.sin(i)*s*a;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function tQ(t,e,i,s,a,r,n){var o,h,l,p,f,d,u,m=(o=0===i?e.length()-1:i-1,h=(i+1)%e.length(),l=e.v[o],Math.atan2(0,1)-Math.atan2((f=[(p=e.v[h])[0]-l[0],p[1]-l[1]],u=[Math.cos(d=-(.5*Math.PI))*f[0]-Math.sin(d)*f[1],Math.sin(d)*f[0]+Math.cos(d)*f[1]])[1],u[0])),c=e.v[i%e._length],g=e.v[0===i?e._length-1:i-1],y=e.v[(i+1)%e._length],v=2===r?Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)):0,b=2===r?Math.sqrt(Math.pow(c[0]-y[0],2)+Math.pow(c[1]-y[1],2)):0;tZ(t,e.v[i%e._length],m,n,s,b/((a+1)*2),v/((a+1)*2))}function t$(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[tG(t,s,i),tG(e,s,i)]}function t0(t,e){i=(h=t$(t.points[0],t.points[1],e))[0],s=h[1],a=(h=t$(t.points[1],t.points[2],e))[0],r=h[1],n=(h=t$(t.points[2],t.points[3],e))[0],o=h[1];var i,s,a,r,n,o,h,l=tY(i,s,a,r);null===l&&(l=s);var p=tY(n,o,a,r);return null===p&&(p=n),new tB(i,l,p,o)}function t1(t,e,i,s,a){var r=e.points[3],n=i.points[0];if(3===s||tK(r,n))return r;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=tY(r,tG(r,o+Math.PI/2,100),n,tG(n,o+Math.PI/2,100)),p=l?tJ(l,r):tJ(r,n)/2,f=tG(r,o,2*p*.5519);return t.setXYAt(f[0],f[1],"o",t.length()-1),f=tG(n,h,2*p*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],f[0],f[1],t.length()),n}var d=tK(r,e.points[2])?e.points[0]:e.points[2],u=tK(n,i.points[1])?i.points[3]:i.points[1],m=tY(d,r,n,u);return m&&tJ(m,r)1&&e.length>1&&(a=t2(t[0],e[e.length-1])))?[[t[0].split(a[0])[0]],[e[e.length-1].split(a[1])[1]]]:[i,s]}function t5(t,e){var i,s,a,r,n=t.inflectionPoints();if(0===n.length)return[t0(t,e)];if(1===n.length||tV(n[1],1))return i=(a=t.split(n[0]))[0],s=a[1],[t0(i,e),t0(s,e)];i=(a=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return r=(a=a[1].split(o))[0],s=a[1],[t0(i,e),t0(r,e),t0(s,e)]}function t9(){}function t4(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",a=e.length,r=0;r0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},tL.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(m):Math.ceil(m),y=this.pMatrix.props,v=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(m>0){for(;_g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),_-=c)}for(a=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(l=(s=(i=this.elemsData[a].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==_){for((0!==a&&1===r||a!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),h=0;h0&&s<1?[e]:[]:[e-s,e+s].filter(function(t){return t>0&&t<1})},tB.prototype.split=function(t){if(t<=0)return[tj(this.points[0]),this];if(t>=1)return[this,tj(this.points[this.points.length-1])];var e=tz(this.points[0],this.points[1],t),i=tz(this.points[1],this.points[2],t),s=tz(this.points[2],this.points[3],t),a=tz(e,i,t),r=tz(i,s,t),n=tz(a,r,t);return[new tB(this.points[0],e,a,n,!0),new tB(n,r,s,this.points[3],!0)]},tB.prototype.bounds=function(){return{x:tq(this,0),y:tq(this,1)}},tB.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},tB.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return function t(e,i,s,a,r,n){if(2*Math.abs(e.cx-i.cx)=n||e.width<=a&&e.height<=a&&i.width<=a&&i.height<=a){r.push([e.t,i.t]);return}var o=tH(e),h=tH(i);t(o[0],h[0],s+1,a,r,n),t(o[0],h[1],s+1,a,r,n),t(o[1],h[0],s+1,a,r,n),t(o[1],h[1],s+1,a,r,n)}}(tW(this,0,1),tW(t,0,1),0,e,s,i),s},tB.shapeSegment=function(t,e){var i=(e+1)%t.length();return new tB(t.v[e],t.o[e],t.i[i],t.v[i],!0)},tB.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new tB(t.v[i],t.i[i],t.o[e],t.v[e],!0)},g([tF],tU),tU.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=td.getProp(t,e.s,0,null,this),this.frequency=td.getProp(t,e.r,0,null,this),this.pointsType=td.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},tU.prototype.processPath=function(t,e,i,s){var a=t._length,r=tg.newElement();if(r.c=t.c,t.c||(a-=1),0===a)return r;var n=-1,o=tB.shapeSegment(t,0);tQ(r,t,0,e,i,s,n);for(var h=0;h=0;a-=1)n=tB.shapeSegmentInverted(t,a),l.push(t5(n,e));l=function(t){for(var e,i=1;i1&&(e=t3(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,f=null;for(a=0;a0&&(p=!1),p){var f=c("style");f.setAttribute("f-forigin",i[o].fOrigin),f.setAttribute("f-origin",i[o].origin),f.setAttribute("f-family",i[o].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+i[o].fFamily+"; font-style: normal; src: url('"+i[o].fPath+"');}",e.appendChild(f)}}else if("g"===i[o].fOrigin||1===i[o].origin){for(l=0,h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');lt?!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(){var t,e=this.renderableComponents.length;for(t=0;t0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(p,"url("+m()+"#"+h+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}g([tu],el),el.prototype.getValue=el.prototype.iterateDynamicProperties,el.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s,a=this.data.ef.length,r=this.data.ef;for(i=0;i.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},eu.prototype.show=function(){},eu.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},eu.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},eu.prototype.resume=function(){this._canPlay=!0},eu.prototype.setRate=function(t){this.audio.rate(t)},eu.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},eu.prototype.getBaseElement=function(){return null},eu.prototype.destroy=function(){},eu.prototype.sourceRectAtTime=function(){},eu.prototype.initExpressions=function(){},em.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)!this.elements[e]&&(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},em.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:default: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)}},em.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},em.prototype.createAudio=function(t){return new eu(t,this.globalData,this)},em.prototype.createFootage=function(t){return new ed(t,this.globalData,this)},em.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r}},eg.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ey=((l={}).createFilter=function(t,e){var i=K("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},l.createAlphaToLuminanceFilter=function(){var t=K("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},l),ev=(p={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(p.maskType=!1),/firefox/i.test(navigator.userAgent)&&(p.svgLumaHidden=!1),p),eb={},e_="filter_result_";function ek(t){var e,i,s="SourceGraphic",a=t.data.ef?t.data.ef.length:0,r=O(),n=ey.createFilter(r,!0),o=0;for(e=0,this.filters=[];e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i.01)return!1;i+=1}return!0},eV.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)h=s.transformers[c].mProps._mdf||h,m-=1,c-=1;if(h)for(m=y-s.styles[p].lvl,c=s.transformers.length-1;m>0;)u=s.transformers[c].mProps.v.props,d.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),m-=1,c-=1}else d=t;if(n=(f=s.sh.paths)._length,h){for(r=0,o="";r=1?v=.99:v<=-1&&(v=-.99);var b=o*v,_=Math.cos(y+e.a.v)*b+p[0],k=Math.sin(y+e.a.v)*b+p[1];h.setAttribute("fx",_),h.setAttribute("fy",k),l&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",k))}}function h(t,e,i){var s=e.style,a=e.d;a&&(a._mdf||i)&&a.dashStr&&(s.pElem.setAttribute("stroke-dasharray",a.dashStr),s.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+x(e.c.v[0])+","+x(e.c.v[1])+","+x(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return n;case"st":return h;case"sh":case"el":case"rc":case"sr":return a;case"tr":return i;case"no":return s;default:return null}}}}();function eW(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function eH(t,e,i,s,a,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=a,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function eX(t,e){this._frameId=-999999,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}g([ep,ec,eA,eD,eP,ef,eS],eW),eW.prototype.initSecondaryElement=function(){},eW.prototype.identityMatrix=new t_,eW.prototype.buildExpressionInterface=function(){},eW.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},eW.prototype.filterUniqueShapes=function(){var t,e,i,s,a=this.shapes.length,r=this.stylesList.length,n=[],o=!1;for(i=0;i1&&o&&this.setShapesAsAnimated(n)}},eW.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if((d=this.searchProcessedElement(t[o]))?e[o]=i[d-1]:t[o]._render=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],a),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),c.push(e[o].style);else if("gr"===t[o].ty){if(d)for(h=0,l=e[o].it.length;h1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},eX.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},eX.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e,i=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(e=0;ee);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},eX.prototype.buildFinalText=function(t){for(var e,i,s=[],a=0,r=t.length,n=!1;a=55296&&e<=56319?(i=t.charCodeAt(a+1))>=56320&&i<=57343?(n||t6.isModifier(e,i)?(s[s.length-1]+=t.substr(a,2),n=!1):s.push(t.substr(a,2)),a+=1):s.push(t.charAt(a)):e>56319?(i=t.charCodeAt(a+1),t6.isZeroWidthJoiner(e,i)?(n=!0,s[s.length-1]+=t.substr(a,2),a+=1):s.push(t.charAt(a))):t6.isZeroWidthJoiner(e)?(s[s.length-1]+=t.charAt(a),n=!0):s.push(t.charAt(a)),a+=1;return s},eX.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,s=[],a=0,r=i.m.g,n=0,o=0,h=0,l=[],p=0,f=0,d=e.getFontByName(t.f),u=0,m=t4(d);t.fWeight=m.weight,t.fStyle=m.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),y=t.finalText.length,t.finalLineHeight=t.lh;var c=t.tr/1e3*t.finalSize;if(t.sz)for(var g,y,v,b,_,k,A,P,S,w,x=!0,D=t.sz[0],C=t.sz[1];x;){w=this.buildFinalText(t.t),S=0,p=0,y=w.length,c=t.tr/1e3*t.finalSize;var M=-1;for(g=0;gD&&" "!==w[g]?(-1===M?y+=1:g=M,S+=t.finalLineHeight||1.2*t.finalSize,w.splice(g,M===g?1:0,"\r"),M=-1,p=0):(p+=u,p+=c);S+=d.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Cf?p:f,p=-2*c,b="",v=!0,h+=1):b=I,e.chars?(A=e.getCharData(I,d.fStyle,e.getFontByName(t.f).fFamily),u=v?0:A.w*t.finalSize/100):u=e.measureText(b,t.f,t.finalSize)," "===I?F+=u+c:(p+=u+c+F,F=0),s.push({l:u,an:u,add:n,n:v,anIndexes:[],val:b,line:h,animatorJustifyOffset:0}),2==r){if(n+=u,""===b||" "===b||g===y-1){for((""===b||" "===b)&&(n-=u);o<=g;)s[o].an=n,s[o].ind=a,s[o].extra=u,o+=1;a+=1,n=0}}else if(3==r){if(n+=u,""===b||g===y-1){for(""===b&&(n-=u);o<=g;)s[o].an=n,s[o].ind=a,s[o].extra=u,o+=1;n=0,a+=1}}else s[a].ind=a,s[a].extra=0,a+=1;if(t.l=s,f=p>f?p:f,l.push(p),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=f,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=l;var T=i.a;k=T.length;var E=[];for(_=0;_0?a=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=tn.getBezierEasing(a,r,n,o).get,l=0,p=this.finalS,f=this.finalE,d=this.data.sh;if(2===d)l=h(l=f===p?s>=f?1:0:t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(3===d)l=h(l=f===p?s>=f?0:1:1-t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(4===d)f===p?l=0:(l=t(0,e(.5/(f-p)+(s-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===d){if(f===p)l=0;else{var u=f-p,m=-u/2+(s=e(t(0,s+.5-p),f-p)),c=u/2;l=Math.sqrt(1-m*m/(c*c))}l=h(l)}else 6===d?l=h(l=f===p?0:(1+Math.cos(Math.PI+2*Math.PI*(s=e(t(0,s+.5-p),f-p))/(f-p)))/2):(s>=i(p)&&(l=s-p<0?t(0,e(e(f,1)-(p-s),1)):t(0,e(f-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l1&&(l=1)}return l*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 e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,a=this.e.v/e+i;if(s>a){var r=s;s=a,a=r}this.finalS=s,this.finalE=a}},g([tu],s),{getTextSelectorProp:function(t,e,i){return new s(t,e)}}}();function eG(t,e,i){var s={propType:!1},a=td.getProp,r=e.a;this.a={r:r.r?a(t,r.r,0,M,i):s,rx:r.rx?a(t,r.rx,0,M,i):s,ry:r.ry?a(t,r.ry,0,M,i):s,sk:r.sk?a(t,r.sk,0,M,i):s,sa:r.sa?a(t,r.sa,0,M,i):s,s:r.s?a(t,r.s,1,.01,i):s,a:r.a?a(t,r.a,1,0,i):s,o:r.o?a(t,r.o,0,.01,i):s,p:r.p?a(t,r.p,1,0,i):s,sw:r.sw?a(t,r.sw,0,0,i):s,sc:r.sc?a(t,r.sc,1,0,i):s,fc:r.fc?a(t,r.fc,1,0,i):s,fh:r.fh?a(t,r.fh,0,0,i):s,fs:r.fs?a(t,r.fs,0,.01,i):s,fb:r.fb?a(t,r.fb,0,.01,i):s,t:r.t?a(t,r.t,0,0,i):s},this.s=eY.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function eJ(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=b(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function eK(){}eJ.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=td.getProp;for(t=0;t=T+tl||!z?(X=(T+tl-I)/E.partialLength,h=O.point[0]+(E.point[0]-O.point[0])*X,l=O.point[1]+(E.point[1]-O.point[1])*X,A.translate(-b[0]*w[C].an*.005,-(.01*(b[1]*K))),L=!1):z&&(I+=E.partialLength,(R+=1)>=z.length&&(R=0,N[V+=1]?z=N[V].points:Y.v.c?(R=0,z=N[V=0].points):(I-=E.partialLength,z=null)),z&&(O=E,W=(E=z[R]).partialLength));o=w[C].an/2-w[C].add,A.translate(-o,0,0)}else o=w[C].an/2-w[C].add,A.translate(-o,0,0),A.translate(-b[0]*w[C].an*.005,-b[1]*K*.01,0);for(s=0;sm?this.textSpans[m].span:K(r?"g":"text"),d<=m){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[m].span=g,r){var u=K("g");g.appendChild(u),this.textSpans[m].childSpan=u}this.textSpans[m].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(n.reset(),o&&(a[m].n&&(h=-f,l+=t.yOffset,l+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(t,n,a[m].line,h,l),h+=a[m].l||0,h+=f),r){if(1===(y=this.globalData.fontManager.getCharData(t.finalText[m],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)v=new e2(y.data,this.globalData,this);else{var m,c,g,y,v,_=eU;y.data&&y.data.shapes&&(_=this.buildShapeData(y.data,t.finalSize)),v=new eW(_,this.globalData,this)}if(this.textSpans[m].glyph){var k=this.textSpans[m].glyph;this.textSpans[m].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[m].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[m].childSpan.appendChild(v.layerElement),1===y.t&&this.textSpans[m].childSpan.setAttribute("transform","scale("+t.finalSize/100+","+t.finalSize/100+")")}else o&&g.setAttribute("transform","translate("+n.props[12]+","+n.props[13]+")"),g.textContent=a[m].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}o&&g&&g.setAttribute("d","")}else{var A=this.textContainer,P="start";switch(t.j){case 1:P="end";break;case 2:P="middle";break;default:P="start"}A.setAttribute("text-anchor",P),A.setAttribute("letter-spacing",f);var S=this.buildTextContents(t.finalText);for(m=0,c=S.length,l=t.ps?t.ps[1]+t.ascent:0;m=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},e1.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0||(a[i]=t[i]);return a}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i0&&void 0!==arguments[0]?arguments[0]:{};if(M.current){null===(e=C.current)||void 0===e||e.destroy();var s=l(l(l({},t),i),{},{container:M.current});return C.current=o.loadAnimation(s),D(!!C.current),function(){var t;null===(t=C.current)||void 0===t||t.destroy(),C.current=void 0}}};return e.useEffect(function(){var t=F();return function(){return null==t?void 0:t()}},[a,n]),e.useEffect(function(){C.current&&(C.current.autoplay=!!h)},[h]),e.useEffect(function(){if(C.current){if(!u){C.current.resetSegments(!0);return}Array.isArray(u)&&u.length&&((C.current.currentRawFrameu[1])&&(C.current.currentRawFrame=u[0]),C.current.setSegment(u[0],u[1]))}},[u]),e.useEffect(function(){var t=[{name:"complete",handler:m},{name:"loopComplete",handler:c},{name:"enterFrame",handler:g},{name:"segmentStart",handler:y},{name:"config_ready",handler:v},{name:"data_ready",handler:b},{name:"data_failed",handler:_},{name:"loaded_images",handler:k},{name:"DOMLoaded",handler:A},{name:"destroy",handler:P}].filter(function(t){return null!=t.handler});if(t.length){var e=t.map(function(t){var e;return null===(e=C.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=C.current)||void 0===e||e.removeEventListener(t.name,t.handler)}});return function(){e.forEach(function(t){return t()})}}},[m,c,g,y,v,b,_,k,A,P]),{View:r.default.createElement("div",l({style:i,ref:M},S)),play:function(){var t;null===(t=C.current)||void 0===t||t.play()},stop:function(){var t;null===(t=C.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=C.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=C.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var i;null===(i=C.current)||void 0===i||i.goToAndStop(t,e)},goToAndPlay:function(t,e){var i;null===(i=C.current)||void 0===i||i.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=C.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var i;null===(i=C.current)||void 0===i||i.playSegments(t,e)},setSubframe:function(t){var e;null===(e=C.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=C.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=C.current)||void 0===t||t.destroy(),C.current=void 0},animationContainerRef:M,animationLoaded:x,animationItem:C.current}},m=function(t){var i=t.wrapperRef,s=t.animationItem,a=t.mode,r=t.actions;e.useEffect(function(){var t,e,n,o,h,l=i.current;if(l&&s&&r.length)switch(s.stop(),a){case"scroll":return t=null,e=function(){var e,i,a,n=(i=(e=l.getBoundingClientRect()).top,a=e.height,(window.innerHeight-i)/(window.innerHeight+a)),o=r.find(function(t){var e=t.visibility;return e&&n>=e[0]&&n<=e[1]});if(o){if("seek"===o.type&&o.visibility&&2===o.frames.length){var h=o.frames[0]+Math.ceil((n-o.visibility[0])/(o.visibility[1]-o.visibility[0])*o.frames[1]);s.goToAndStop(h-s.firstFrame-1,!0)}"loop"===o.type&&(null===t?(s.playSegments(o.frames,!0),t=o.frames):t!==o.frames?(s.playSegments(o.frames,!0),t=o.frames):s.isPaused&&(s.playSegments(o.frames,!0),t=o.frames)),"play"===o.type&&s.isPaused&&(s.resetSegments(!0),s.play()),"stop"===o.type&&s.goToAndStop(o.frames[0]-s.firstFrame-1,!0)}},document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)};case"cursor":return n=function(t,e){var i=t,a=e;if(-1!==i&&-1!==a){var n,o,h,p,f=(n=i,o=a,p=(h=l.getBoundingClientRect()).top,{x:(n-h.left)/h.width,y:(o-p)/h.height});i=f.x,a=f.y}var d=r.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?i>=e.x[0]&&i<=e.x[1]&&a>=e.y[0]&&a<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&i===e.x&&a===e.y});if(d){if("seek"===d.type&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&2===d.frames.length){var u=(i-d.position.x[0])/(d.position.x[1]-d.position.x[0]),m=(a-d.position.y[0])/(d.position.y[1]-d.position.y[0]);s.playSegments(d.frames,!0),s.goToAndStop(Math.ceil((u+m)/2*(d.frames[1]-d.frames[0])),!0)}"loop"===d.type&&s.playSegments(d.frames,!0),"play"===d.type&&(s.isPaused&&s.resetSegments(!1),s.playSegments(d.frames)),"stop"===d.type&&s.goToAndStop(d.frames[0],!0)}},o=function(t){n(t.clientX,t.clientY)},h=function(){n(-1,-1)},l.addEventListener("mousemove",o),l.addEventListener("mouseout",h),function(){l.removeEventListener("mousemove",o),l.removeEventListener("mouseout",h)}}},[a,s])},c=function(t){var e=t.actions,i=t.mode,s=t.lottieObj,a=s.animationItem,r=s.View;return m({actions:e,animationItem:a,mode:i,wrapperRef:s.animationContainerRef}),r},g=["style","interactivity"];t.LottiePlayer=o,t.default=function(t){var i,s,a,r=t.style,n=t.interactivity,o=u(p(t,g),r),h=o.View,l=o.play,f=o.stop,d=o.pause,m=o.setSpeed,y=o.goToAndStop,v=o.goToAndPlay,b=o.setDirection,_=o.playSegments,k=o.setSubframe,A=o.getDuration,P=o.destroy,S=o.animationContainerRef,w=o.animationLoaded,x=o.animationItem;return e.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:l,stop:f,pause:d,setSpeed:m,goToAndPlay:v,goToAndStop:y,setDirection:b,playSegments:_,setSubframe:k,getDuration:A,destroy:P,animationContainerRef:S,animationLoaded:w,animationItem:x})},[null===(i=t.lottieRef)||void 0===i?void 0:i.current]),c({lottieObj:{View:h,play:l,stop:f,pause:d,setSpeed:m,goToAndStop:y,goToAndPlay:v,setDirection:b,playSegments:_,setSubframe:k,getDuration:A,destroy:P,animationContainerRef:S,animationLoaded:w,animationItem:x},actions:null!==(s=null==n?void 0:n.actions)&&void 0!==s?s:[],mode:null!==(a=null==n?void 0:n.mode)&&void 0!==a?a:"scroll"})},t.useLottie=u,t.useLottieInteractivity=c,Object.defineProperty(t,"__esModule",{value:!0})}(e,i(96540))}}]);