import{k as Xi}from"./vendor-other.7b559694.js";function Ji(le,Se){for(var Kt=0;KtCt[Tt]})}}}return Object.freeze(Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}))}var Ce={exports:{}},Ki=Ce.exports,fi;function Yi(){return fi||(fi=1,(function(le,Se){typeof document<"u"&&typeof navigator<"u"&&(function(Kt,Ct){le.exports=Ct()})(Ki,(function(){var Kt="",Ct=!1,Tt=-999999,ht=function(){return Kt};function zt(t){return document.createElement(t)}function j(t,e){var s,i,a=t.length;for(s=0;s1?s[1]=1:s[1]<=0&&(s[1]=0),Ke(s[0],s[1],s[2])}function Ps(t,e){var s=Ye(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Ke(s[0],s[1],s[2])}function As(t,e){var s=Ye(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Ke(s[0],s[1],s[2])}(function(){var t,e;for(t=0;t<256;t+=1)e=t.toString(16),e.length===1&&""+e})();var De=function(){return us},Me=function(t){cs=t},Ee=function(){return cs};function z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ue(t){return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}var pe=(function(){var t,e,s=1,i=[],a={onmessage:function(){},postMessage:function(y){t({data:y})}},r={postMessage:function(y){a.onmessage({data:y})}};function f(y){if(window.Worker&&window.Blob&&Ct){var l=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),d=URL.createObjectURL(l);return new Worker(d)}return t=y,a}function h(){e||(e=f((function(y){if(r.dataManager||(r.dataManager=(function(){function d(P,E){var M,_,w,D,x,I,O=P.length;for(_=0;_=0;E-=1)if(P[E].ty==="sh")if(P[E].ks.k.i)p(P[E].ks.k);else for(_=P[E].ks.k.length,M=0;M<_;M+=1)P[E].ks.k[M].s&&p(P[E].ks.k[M].s[0]),P[E].ks.k[M].e&&p(P[E].ks.k[M].e[0]);else P[E].ty==="gr"&&m(P[E].it)}function p(P){var E,M=P.i.length;for(E=0;EM[0]||!(M[0]>P[0])&&(P[1]>M[1]||!(M[1]>P[1])&&(P[2]>M[2]||!(M[2]>P[2])&&null))}var o,c=(function(){var P=[4,4,14];function E(M){var _,w,D,x=M.length;for(_=0;_=0;w-=1)if(_[w].ty==="sh")if(_[w].ks.k.i)_[w].ks.k.c=_[w].closed;else for(x=_[w].ks.k.length,D=0;D500)&&(this._imageLoaded(),clearInterval(y)),g+=1}).bind(this),50)}function r(h){var g={assetData:h},y=i(h,this.assetsPath,this.path);return pe.loadData(y,(function(l){g.img=l,this._footageLoaded()}).bind(this),(function(){g.img={},this._footageLoaded()}).bind(this)),g}function f(){this._imageLoaded=e.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return f.prototype={loadAssets:function(h,g){var y;this.imagesLoadedCb=g;var l=h.length;for(y=0;ythis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,s,i=this.animationData.layers,a=i.length,r=t.layers,f=r.length;for(s=0;sthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},R.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},R.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},R.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},R.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?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,s=0;s=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)||(s=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(s=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),s&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},R.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")},R.prototype.setSegment=function(t,e){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(s=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},R.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),Te(t[0])==="object"){var s,i=t.length;for(s=0;s=0;o-=1)e[o].animation.destroy(n)},t.freeze=function(){f=!0},t.unfreeze=function(){f=!1,p()},t.setVolume=function(n,o){var c;for(c=0;c=.001?(function(k,S,T,V){for(var P=0;P<4;++P){var E=y(S,T,V);if(E===0)return S;S-=(g(S,T,V)-k)/E}return S})(d,v,u,m):A===0?v:(function(k,S,T,V,P){var E,M,_=0;do(E=g(M=S+(T-S)/2,V,P)-k)>0?T=M:S=M;while(Math.abs(E)>1e-7&&++_<10);return M})(d,n,n+i,u,m)}},t})(),ws={double:function(t){return t.concat(at(t.length))}},Fe=function(t,e,s){var i=0,a=t,r=at(a);return{newElement:function(){return i?r[i-=1]:e()},release:function(f){i===a&&(r=ws.double(r),a*=2),s&&s(f),r[i]=f,i+=1}}},Cs=Fe(8,(function(){return{addedLength:0,percents:lt("float32",Ee()),lengths:lt("float32",Ee())}})),Ss=Fe(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,s=t.lengths.length;for(e=0;e-.001&&n<.001}var s=function(y,l,d,u){var m,p,n,o,c,v,A=Ee(),k=0,S=[],T=[],V=Cs.newElement();for(n=d.length,m=0;mn?-1:1,v=!0;v;)if(u[p]<=n&&u[p+1]>n?(o=(n-u[p])/(u[p+1]-u[p]),v=!1):p+=c,p<0||p>=m-1){if(p===m-1)return d[p];v=!1}return d[p]+(d[p+1]-d[p])*o}var g=lt("float32",8);return{getSegmentsLength:function(y){var l,d=Ss.newElement(),u=y.c,m=y.v,p=y.o,n=y.i,o=y._length,c=d.lengths,v=0;for(l=0;l1&&(m=1);var o,c=h(m,n),v=h(p=p>1?1:p,n),A=y.length,k=1-c,S=1-v,T=k*k*k,V=c*k*k*3,P=c*c*k*3,E=c*c*c,M=k*k*S,_=c*k*S+k*c*S+k*k*v,w=c*c*S+k*c*v+c*k*v,D=c*c*v,x=k*S*S,I=c*S*S+k*v*S+k*S*v,O=c*v*S+k*v*v+c*S*v,B=c*v*v,b=S*S*S,C=v*S*S+S*v*S+S*S*v,F=v*v*S+S*v*v+v*S*v,N=v*v*v;for(o=0;ok?A>S?A-k-S:S-k-A:S>k?S-k-A:k-A-S)>-1e-4&&v<1e-4}}})(),Ut=Tt,Ds=Math.abs;function Ms(t,e){var s,i=this.offsetTime;this.propType==="multidimensional"&&(s=lt("float32",this.pv.length));for(var a,r,f,h,g,y,l,d,u,m=e.lastIndex,p=m,n=this.keyframes.length-1,o=!0;o;){if(a=this.keyframes[p],r=this.keyframes[p+1],p===n-1&&t>=r.t-i){a.h&&(a=r),m=0;break}if(r.t-i>t){m=p;break}p=_||t=_?D.points.length-1:0;for(g=D.points[x].point.length,h=0;h=B&&O=_)s[0]=c[0],s[1]=c[1],s[2]=c[2];else if(t<=w)s[0]=a.s[0],s[1]=a.s[1],s[2]=a.s[2];else{var Y=Es(a.s),U=Es(c);v=s,A=(function(H,Z,W){var X,ot,ct,et,st,tt=[],q=H[0],Vt=H[1],Rt=H[2],Et=H[3],gt=Z[0],bt=Z[1],it=Z[2],_t=Z[3];return(ot=q*gt+Vt*bt+Rt*it+Et*_t)<0&&(ot=-ot,gt=-gt,bt=-bt,it=-it,_t=-_t),1-ot>1e-6?(X=Math.acos(ot),ct=Math.sin(X),et=Math.sin((1-W)*X)/ct,st=Math.sin(W*X)/ct):(et=1-W,st=W),tt[0]=et*q+st*gt,tt[1]=et*Vt+st*bt,tt[2]=et*Rt+st*it,tt[3]=et*Et+st*_t,tt})(Y,U,(t-w)/(_-w)),k=A[0],S=A[1],T=A[2],V=A[3],P=Math.atan2(2*S*V-2*k*T,1-2*S*S-2*T*T),E=Math.asin(2*k*S+2*T*V),M=Math.atan2(2*k*V-2*S*T,1-2*k*k-2*T*T),v[0]=P/$,v[1]=E/$,v[2]=M/$}else for(p=0;p=_?y=1:t=s&&t>=s||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function Ie(t){var e;if(this.propType==="unidimensional")e=t*this.mult,Ds(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,i=this.v.length;s1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}function Le(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),s){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[i]||r[i]&&!a)&&(r[i]=Zt.newElement()),r[i][0]=t,r[i][1]=e},Ft.prototype.setTripleAt=function(t,e,s,i,a,r,f,h){this.setXYAt(t,e,"v",f,h),this.setXYAt(s,i,"o",f,h),this.setXYAt(a,r,"i",f,h)},Ft.prototype.reverse=function(){var t=new Ft;t.setPathData(this.c,this._length);var e=this.v,s=this.o,i=this.i,a=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],s[0][0],s[0][1],0,!1),a=1);var r,f=this._length-1,h=this._length;for(r=a;r=M[M.length-1].t-this.offsetTime)o=M[M.length-1].s?M[M.length-1].s[0]:M[M.length-2].e[0],v=!0;else{for(var _,w,D,x=E,I=M.length-1,O=!0;O&&(_=M[x],!((w=M[x+1]).t-this.offsetTime>m));)x=w.t-this.offsetTime)V=1;else if(m<_.t-this.offsetTime)V=0;else{var B;D.__fnct?B=D.__fnct:(B=ue.getBezierEasing(_.o.x,_.o.y,_.i.x,_.i.y).get,D.__fnct=B),V=B((m-(_.t-this.offsetTime))/(w.t-this.offsetTime-(_.t-this.offsetTime)))}c=w.s?w.s[0]:_.e[0]}o=_.s[0]}for(S=p._length,T=o.i[0].length,n.lastIndex=E,A=0;An&&m>n)||(this._caching.lastIndex=o0||b>-1e-6&&b<0?i(1e4*b)/1e4:b}function B(){var b=this.props;return"matrix("+O(b[0])+","+O(b[1])+","+O(b[4])+","+O(b[5])+","+O(b[12])+","+O(b[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=f,this.rotateY=h,this.rotateZ=g,this.skew=l,this.skewFromAxis=d,this.shear=y,this.scale=u,this.setTransform=m,this.translate=p,this.transform=n,this.multiply=o,this.applyToPoint=S,this.applyToX=T,this.applyToY=V,this.applyToZ=P,this.applyToPointArray=D,this.applyToTriplePoints=w,this.applyToPointStringified=x,this.toCSS=I,this.to2dCSS=B,this.clone=A,this.cloneFromProps=k,this.equals=v,this.inversePoints=_,this.inversePoint=M,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=c,this._identity=!0,this._identityCalculated=!1,this.props=lt("float32",16),this.reset()}})();function Qe(t){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(t)}var J={};function Is(){rt.searchAnimations()}J.play=rt.play,J.pause=rt.pause,J.setLocationHref=function(t){Kt=t},J.togglePause=rt.togglePause,J.setSpeed=rt.setSpeed,J.setDirection=rt.setDirection,J.stop=rt.stop,J.searchAnimations=Is,J.registerAnimation=rt.registerAnimation,J.loadAnimation=function(t){return rt.loadAnimation(t)},J.setSubframeRendering=function(t){(function(e){fs=!!e})(t)},J.resize=rt.resize,J.goToAndStop=rt.goToAndStop,J.destroy=rt.destroy,J.setQuality=function(t){if(typeof t=="string")switch(t){case"high":Me(200);break;default:case"medium":Me(50);break;case"low":Me(10)}else!isNaN(t)&&t>1&&Me(t)},J.inBrowser=function(){return typeof navigator<"u"},J.installPlugin=function(t,e){t==="expressions"&&(us=e)},J.freeze=rt.freeze,J.unfreeze=rt.unfreeze,J.setVolume=rt.setVolume,J.mute=rt.mute,J.unmute=rt.unmute,J.getRegisteredAnimations=rt.getRegisteredAnimations,J.useWebWorker=function(t){Ct=!!t},J.setIDPrefix=function(t){ds=t},J.__getFactory=function(t){switch(t){case"propertyFactory":return L;case"shapePropertyFactory":return Re;case"matrix":return ut;default:return null}},J.version="5.13.0";var Ls="";{var Vs=document.getElementsByTagName("script"),Rs=Vs[Vs.length-1]||{src:""};Ls=Rs.src?Rs.src.replace(/^[^\?]+\??/,""):"",(function(t){for(var e=Ls.split("&"),s=0;s=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var f,h,g=[],y=r.length;for(f=0;fi+s||(l=h.s*a<=i?0:(h.s*a-i)/s,d=h.e*a>=i+s?1:(h.e*a-i)/s,g.push([l,d]))}return g.length||g.push([0,0]),g},At.prototype.releasePathsData=function(t){var e,s=t.length;for(e=0;e1?1+r:this.s.v<0?0+r:this.s.v+r)>(s=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var f=e;e=s,s=f}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue,s=this.eValue;var h,g,y,l,d,u=this.shapes.length,m=0;if(s===e)for(a=0;a=0;a-=1)if((p=this.shapes[a]).shape._mdf){for((n=p.localShapeCollection).releaseShapes(),this.m===2&&u>1?(c=this.calculateShapeEdges(e,s,p.totalShapeLength,k,m),k+=p.totalShapeLength):c=[[v,A]],g=c.length,h=0;h=1?o.push({s:p.totalShapeLength*(v-1),e:p.totalShapeLength*(A-1)}):(o.push({s:p.totalShapeLength*v,e:p.totalShapeLength}),o.push({s:0,e:p.totalShapeLength*(A-1)}));var S=this.addShapes(p,o[0]);if(o[0].s!==o[0].e){if(o.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var T=S.pop();this.addPaths(S,n),S=this.addShapes(p,o[1],T)}else this.addPaths(S,n),S=this.addShapes(p,o[1]);this.addPaths(S,n)}}p.shape.paths=n}}},At.prototype.addPaths=function(t,e){var s,i=t.length;for(s=0;se.e){s.c=!1;break}e.s<=p&&e.e>=p+f.addedLength?(this.addSegment(u[i].v[a-1],u[i].o[a-1],u[i].i[a],u[i].v[a],s,h,o),o=!1):(y=Dt.getNewSegment(u[i].v[a-1],u[i].v[a],u[i].o[a-1],u[i].i[a],(e.s-p)/f.addedLength,(e.e-p)/f.addedLength,g[a-1]),this.addSegmentFromArray(y,s,h,o),o=!1,s.c=!1),p+=f.addedLength,h+=1}if(u[i].c&&g.length){if(f=g[a-1],p<=e.e){var c=g[a-1].addedLength;e.s<=p&&e.e>=p+c?(this.addSegment(u[i].v[a-1],u[i].o[a-1],u[i].i[0],u[i].v[0],s,h,o),o=!1):(y=Dt.getNewSegment(u[i].v[a-1],u[i].v[0],u[i].o[a-1],u[i].i[0],(e.s-p)/c,(e.e-p)/c,g[a-1]),this.addSegmentFromArray(y,s,h,o),o=!1,s.c=!1)}else s.c=!1;p+=f.addedLength,h+=1}if(s._length&&(s.setXYAt(s.v[l][0],s.v[l][1],"i",l),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),p>e.e)break;i=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(a=this.p.pv,r=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){a=[],r=[];var f=this.px,h=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(a[0]=f.getValueAtTime((f.keyframes[0].t+.01)/i,0),a[1]=h.getValueAtTime((h.keyframes[0].t+.01)/i,0),r[0]=f.getValueAtTime(f.keyframes[0].t/i,0),r[1]=h.getValueAtTime(h.keyframes[0].t/i,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(a[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/i,0),a[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/i,0),r[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/i,0),r[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/i,0)):(a=[f.pv,h.pv],r[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/i,f.offsetTime),r[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/i,h.offsetTime))}else a=r=t;this.v.rotate(-Math.atan2(a[1]-r[1],a[0]-r[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.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(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(){}},j([pt],e),e.prototype.addDynamicProperty=function(s){this._addDynamicProperty(s),this.elem.addDynamicProperty(s),this._isDirty=!0},e.prototype._addDynamicProperty=pt.prototype.addDynamicProperty,{getTransformProperty:function(s,i,a){return new e(s,i,a)}}})();function Mt(){}function ce(){}function ze(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function es(t){return Math.abs(t)<=1e-5}function zs(t,e,s){return t*(1-s)+e*s}function qt(t,e,s){return[zs(t[0],e[0],s),zs(t[1],e[1],s)]}function Os(t,e,s,i){return[3*e-t-3*s+i,3*t-6*e+3*s,-3*t+3*e,t]}function Ns(t){return new G(t,t,t,t,!1)}function G(t,e,s,i,a){a&&ae(t,e)&&(e=qt(t,i,1/3)),a&&ae(s,i)&&(s=qt(t,i,2/3));var r=Os(t[0],e[0],s[0],i[0]),f=Os(t[1],e[1],s[1],i[1]);this.a=[r[0],f[0]],this.b=[r[1],f[1]],this.c=[r[2],f[2]],this.d=[r[3],f[3]],this.points=[t,e,s,i]}function qs(t,e){var s=t.points[0][e],i=t.points[t.points.length-1][e];if(s>i){var a=i;i=s,s=a}for(var r=(function(g,y,l){if(g===0)return[];var d=y*y-4*g*l;if(d<0)return[];var u=-y/(2*g);if(d===0)return[u];var m=Math.sqrt(d)/(2*g);return[u-m,u+m]})(3*t.a[e],2*t.b[e],t.c[e]),f=0;f0&&r[f]<1){var h=t.point(r[f])[e];hi&&(i=h)}return{min:s,max:i}}function Oe(t,e,s){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+s)/2,t1:e,t2:s}}function Bs(t){var e=t.bez.split(.5);return[Oe(e[0],t.t1,t.t),Oe(e[1],t.t,t.t2)]}function ge(t,e,s,i,a,r){var f,h;if(f=t,h=e,2*Math.abs(f.cx-h.cx)=r||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)a.push([t.t,e.t]);else{var g=Bs(t),y=Bs(e);ge(g[0],y[0],s+1,i,a,r),ge(g[0],y[1],s+1,i,a,r),ge(g[1],y[0],s+1,i,a,r),ge(g[1],y[1],s+1,i,a,r)}}function ss(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 Ne(t,e,s,i){var a=[t[0],t[1],1],r=[e[0],e[1],1],f=[s[0],s[1],1],h=[i[0],i[1],1],g=ss(ss(a,r),ss(f,h));return es(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function ie(t,e,s){return[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s]}function is(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ae(t,e){return ze(t[0],e[0])&&ze(t[1],e[1])}function ye(){}function js(t,e,s,i,a,r,f){var h=s-Math.PI/2,g=s+Math.PI/2,y=e[0]+Math.cos(s)*i*a,l=e[1]-Math.sin(s)*i*a;t.setTripleAt(y,l,y+Math.cos(h)*r,l-Math.sin(h)*r,y+Math.cos(g)*f,l-Math.sin(g)*f,t.length())}function Si(t,e){var s,i,a,r,f=e===0?t.length()-1:e-1,h=(e+1)%t.length(),g=t.v[f],y=t.v[h],l=(s=g,a=[(i=y)[0]-s[0],i[1]-s[1]],r=.5*-Math.PI,[Math.cos(r)*a[0]-Math.sin(r)*a[1],Math.sin(r)*a[0]+Math.cos(r)*a[1]]);return Math.atan2(0,1)-Math.atan2(l[1],l[0])}function Ws(t,e,s,i,a,r,f){var h=Si(e,s),g=e.v[s%e._length],y=e.v[s===0?e._length-1:s-1],l=e.v[(s+1)%e._length],d=r===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,u=r===2?Math.sqrt(Math.pow(g[0]-l[0],2)+Math.pow(g[1]-l[1],2)):0;js(t,e.v[s%e._length],h,f,i,u/(2*(a+1)),d/(2*(a+1)))}function Di(t,e,s,i,a,r){for(var f=0;f1&&e.length>1&&(a=Xs(t[0],e[e.length-1]))?[[t[0].split(a[0])[0]],[e[e.length-1].split(a[1])[1]]]:[s,i]}function Ks(t,e){var s,i,a,r,f=t.inflectionPoints();if(f.length===0)return[re(t,e)];if(f.length===1||ze(f[1],1))return s=(a=t.split(f[0]))[0],i=a[1],[re(s,e),re(i,e)];s=(a=t.split(f[0]))[0];var h=(f[1]-f[0])/(1-f[0]);return r=(a=a[1].split(h))[0],i=a[1],[re(s,e),re(r,e),re(i,e)]}function ve(){}function Ys(t){for(var e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",a=e.length,r=0;r0;)s-=1,this._elements.unshift(e[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Mt.prototype.resetElements=function(t){var e,s=t.length;for(e=0;e0?Math.floor(u):Math.ceil(u),n=this.pMatrix.props,o=this.rMatrix.props,c=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,A,k=0;if(u>0){for(;kp;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),k-=m)}for(i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,r=this._currentCopies;r;){if(A=(s=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),k!==0){for((i!==0&&a===1||i!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),this.matrix.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]),v=0;v0&&i<1?[e]:[]:[e-i,e+i].filter((function(a){return a>0&&a<1}))},G.prototype.split=function(t){if(t<=0)return[Ns(this.points[0]),this];if(t>=1)return[this,Ns(this.points[this.points.length-1])];var e=qt(this.points[0],this.points[1],t),s=qt(this.points[1],this.points[2],t),i=qt(this.points[2],this.points[3],t),a=qt(e,s,t),r=qt(s,i,t),f=qt(a,r,t);return[new G(this.points[0],e,a,f,!0),new G(f,r,i,this.points[3],!0)]},G.prototype.bounds=function(){return{x:qs(this,0),y:qs(this,1)}},G.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}},G.prototype.intersections=function(t,e,s){e===void 0&&(e=2),s===void 0&&(s=7);var i=[];return ge(Oe(this,0,1),Oe(t,0,1),0,e,i,s),i},G.shapeSegment=function(t,e){var s=(e+1)%t.length();return new G(t.v[e],t.o[e],t.i[s],t.v[s],!0)},G.shapeSegmentInverted=function(t,e){var s=(e+1)%t.length();return new G(t.v[s],t.i[s],t.o[e],t.v[e],!0)},j([kt],ye),ye.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=L.getProp(t,e.s,0,null,this),this.frequency=L.getProp(t,e.r,0,null,this),this.pointsType=L.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ye.prototype.processPath=function(t,e,s,i){var a=t._length,r=ft.newElement();if(r.c=t.c,t.c||(a-=1),a===0)return r;var f=-1,h=G.shapeSegment(t,0);Ws(r,t,0,e,s,i,f);for(var g=0;g=0;r-=1)h=G.shapeSegmentInverted(t,r),y.push(Ks(h,e));y=(function(m){for(var p,n=1;n1&&(p=Js(m[m.length-1],m[0]),m[m.length-1]=p[0],m[0]=p[1]),m})(y);var l=null,d=null;for(r=0;r=55296&&u<=56319){var m=l.charCodeAt(1);m>=56320&&m<=57343&&(d=1024*(u-55296)+m-56320+65536)}return d}function h(l){var d=f(l);return d>=127462&&d<=127487}var g=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};g.isModifier=function(l,d){var u=l.toString(16)+d.toString(16);return i.indexOf(u)!==-1},g.isZeroWidthJoiner=function(l){return l===8205},g.isFlagEmoji=function(l){return h(l.substr(0,2))&&h(l.substr(2,2))},g.isRegionalCode=h,g.isCombinedCharacter=function(l){return e.indexOf(l)!==-1},g.isRegionalFlag=function(l,d){var u=f(l.substr(d,2));if(u!==s)return!1;var m=0;for(d+=2;m<5;){if((u=f(l.substr(d,2)))<917601||u>917626)return!1;m+=1,d+=2}return f(l.substr(d,2))===917631},g.isVariationSelector=function(l){return l===65039},g.BLACK_FLAG_CODE_POINT=s;var y={addChars:function(l){if(l){var d;this.chars||(this.chars=[]);var u,m,p=l.length,n=this.chars.length;for(d=0;d0&&(v=!1),v){var A=zt("style");A.setAttribute("f-forigin",m[u].fOrigin),A.setAttribute("f-origin",m[u].origin),A.setAttribute("f-family",m[u].fFamily),A.type="text/css",A.innerText="@font-face {font-family: "+m[u].fFamily+"; font-style: normal; src: url('"+m[u].fPath+"');}",d.appendChild(A)}}else if(m[u].fOrigin==="g"||m[u].origin===1){for(o=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;ct?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},vt.prototype.show=function(){},vt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},vt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},vt.prototype.resume=function(){this._canPlay=!0},vt.prototype.setRate=function(t){this.audio.rate(t)},vt.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},vt.prototype.getBaseElement=function(){return null},vt.prototype.destroy=function(){},vt.prototype.sourceRectAtTime=function(){},vt.prototype.initExpressions=function(){},dt.prototype.checkLayers=function(t){var e,s,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(s=this.layers[e]).ip-s.st<=t-this.layers[e].st&&s.op-s.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},dt.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)}},dt.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},dt.prototype.createAudio=function(t){return new vt(t,this.globalData,this)},dt.prototype.createFootage=function(t){return new Wt(t,this.globalData,this)},dt.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",o),this.element.maskedElement.setAttribute(v,"url("+ht()+"#"+o+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}ne.prototype={initTransform:function(){var t=new ut;this.finalTransform={mProp:this.data.ks?ts.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,s=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;s1&&(r+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),s.lastPath!==r){var f="";s.elem&&(e.c&&(f=t.inv?this.solidPath+r:r),s.elem.setAttribute("d",f)),s.lastPath=r}},$t.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _e=(function(){var t={};return t.createFilter=function(e,s){var i=z("filter");return i.setAttribute("id",e),s!==!0&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var e=z("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e},t})(),$s=(function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t})(),ns={},Qs="filter_result_";function os(t){var e,s,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,r=yt(),f=_e.createFilter(r,!0),h=0;for(this.filters=[],e=0;e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,s=0,i=e.length;s.01)return!1;s+=1}return!0},xe.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;)n=l.transformers[S].mProps._mdf||n,k-=1,S-=1;if(n)for(k=V-l.styles[c].lvl,S=l.transformers.length-1;k>0;)A.multiply(l.transformers[S].mProps.v),k-=1,S-=1}else A=t;if(m=(v=l.sh.paths)._length,n){for(p="",u=0;u=1?_=.99:_<=-1&&(_=-.99);var w=o*_,D=Math.cos(M+l.a.v)*w+A[0],x=Math.sin(M+l.a.v)*w+A[1];c.setAttribute("fx",D),c.setAttribute("fy",x),v&&!l.g._collapsable&&(l.of.setAttribute("fx",D),l.of.setAttribute("fy",x))}}function g(y,l,d){var u=l.style,m=l.d;m&&(m._mdf||d)&&m.dashStr&&(u.pElem.setAttribute("stroke-dasharray",m.dashStr),u.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),l.c&&(l.c._mdf||d)&&u.pElem.setAttribute("stroke","rgb("+Yt(l.c.v[0])+","+Yt(l.c.v[1])+","+Yt(l.c.v[2])+")"),(l.o._mdf||d)&&u.pElem.setAttribute("stroke-opacity",l.o.v),(l.w._mdf||d)&&(u.pElem.setAttribute("stroke-width",l.w.v),u.msElem&&u.msElem.setAttribute("stroke-width",l.w.v))}return{createRenderFunction:function(y){switch(y.ty){case"fl":return r;case"gf":return h;case"gs":return f;case"st":return g;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return i;default:return null}}}})();function Q(t,e,s){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,s),this.prevViewData=[]}function hs(t,e,s,i,a,r){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=a,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!s,fc:!!i,m:!0,p:!0}}function mt(t,e){this._frameId=Tt,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),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)}j([Bt,ne,ke,ti,oe,jt,Pe],Q),Q.prototype.initSecondaryElement=function(){},Q.prototype.identityMatrix=new ut,Q.prototype.buildExpressionInterface=function(){},Q.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Q.prototype.filterUniqueShapes=function(){var t,e,s,i,a=this.shapes.length,r=this.stylesList.length,f=[],h=!1;for(s=0;s1&&h&&this.setShapesAsAnimated(f)}},Q.prototype.setShapesAsAnimated=function(t){var e,s=t.length;for(e=0;e=0;h-=1){if((u=this.searchProcessedElement(t[h]))?e[h]=s[u-1]:t[h]._render=f,t[h].ty==="fl"||t[h].ty==="st"||t[h].ty==="gf"||t[h].ty==="gs"||t[h].ty==="no")u?e[h].style.closed=t[h].hd:e[h]=this.createStyleElement(t[h],a),t[h]._render&&e[h].style.pElem.parentNode!==i&&i.appendChild(e[h].style.pElem),n.push(e[h].style);else if(t[h].ty==="gr"){if(u)for(y=e[h].it.length,g=0;g1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},mt.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},mt.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=this.currentData,s=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(i=0;ie);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},mt.prototype.buildFinalText=function(t){for(var e,s,i=[],a=0,r=t.length,f=!1,h=!1,g="";a=55296&&e<=56319?Gt.isRegionalFlag(t,a)?g=t.substr(a,14):(s=t.charCodeAt(a+1))>=56320&&s<=57343&&(Gt.isModifier(e,s)?(g=t.substr(a,2),f=!0):g=Gt.isFlagEmoji(t.substr(a,4))?t.substr(a,4):t.substr(a,2)):e>56319?(s=t.charCodeAt(a+1),Gt.isVariationSelector(e)&&(f=!0)):Gt.isZeroWidthJoiner(e)&&(f=!0,h=!0),f?(i[i.length-1]+=g,f=!1):i.push(g),a+=g.length;return i},mt.prototype.completeTextData=function(t){t.__complete=!0;var e,s,i,a,r,f,h,g=this.elem.globalData.fontManager,y=this.data,l=[],d=0,u=y.m.g,m=0,p=0,n=0,o=[],c=0,v=0,A=g.getFontByName(t.f),k=0,S=Ys(A);t.fWeight=S.weight,t.fStyle=S.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var T,V=t.tr/1e3*t.finalSize;if(t.sz)for(var P,E,M=!0,_=t.sz[0],w=t.sz[1];M;){P=0,c=0,s=(E=this.buildFinalText(t.t)).length,V=t.tr/1e3*t.finalSize;var D=-1;for(e=0;e_&&E[e]!==" "?(D===-1?s+=1:e=D,P+=t.finalLineHeight||1.2*t.finalSize,E.splice(e,D===e?1:0,"\r"),D=-1,c=0):(c+=k,c+=V);P+=A.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&wv?c:v,c=-2*V,a="",i=!0,n+=1):a=x,g.chars?(h=g.getCharData(x,A.fStyle,g.getFontByName(t.f).fFamily),k=i?0:h.w*t.finalSize/100):k=g.measureText(a,t.f,t.finalSize),x===" "?I+=k+V:(c+=k+V+I,I=0),l.push({l:k,an:k,add:m,n:i,anIndexes:[],val:a,line:n,animatorJustifyOffset:0}),u==2){if(m+=k,a===""||a===" "||e===s-1){for(a!==""&&a!==" "||(m-=k);p<=e;)l[p].an=m,l[p].ind=d,l[p].extra=k,p+=1;d+=1,m=0}}else if(u==3){if(m+=k,a===""||e===s-1){for(a===""&&(m-=k);p<=e;)l[p].an=m,l[p].ind=d,l[p].extra=k,p+=1;m=0,d+=1}}else l[d].ind=d,l[d].extra=0,d+=1;if(t.l=l,v=c>v?c:v,o.push(c),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=o;var O,B,b,C,F=y.a;f=F.length;var N=[];for(r=0;r0?r=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?h=1-this.xe.v/100:g=1+this.xe.v/100;var y=ue.getBezierEasing(r,f,h,g).get,l=0,d=this.finalS,u=this.finalE,m=this.data.sh;if(m===2)l=y(l=u===d?a>=u?1:0:t(0,e(.5/(u-d)+(a-d)/(u-d),1)));else if(m===3)l=y(l=u===d?a>=u?0:1:1-t(0,e(.5/(u-d)+(a-d)/(u-d),1)));else if(m===4)u===d?l=0:(l=t(0,e(.5/(u-d)+(a-d)/(u-d),1)))<.5?l*=2:l=1-2*(l-.5),l=y(l);else if(m===5){if(u===d)l=0;else{var p=u-d,n=-p/2+(a=e(t(0,a+.5-d),u-d)),o=p/2;l=Math.sqrt(1-n*n/(o*o))}l=y(l)}else m===6?(u===d?l=0:(a=e(t(0,a+.5-d),u-d),l=(1+Math.cos(Math.PI+2*Math.PI*a/(u-d)))/2),l=y(l)):(a>=s(d)&&(l=t(0,e(a-d<0?e(u,1)-(d-a):u-a,1))),l=y(l));if(this.sm.v!==100){var c=.01*this.sm.v;c===0&&(c=1e-8);var v=.5-.5*c;l1&&(l=1)}return l*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var r=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/r,h=this.s.v/r+f,g=this.e.v/r+f;if(h>g){var y=h;h=g,g=y}this.finalS=h,this.finalE=g}},j([pt],i),{getTextSelectorProp:function(a,r,f){return new i(a,r)}}})();function Wi(t,e,s){var i={propType:!1},a=L.getProp,r=e.a;this.a={r:r.r?a(t,r.r,0,$,s):i,rx:r.rx?a(t,r.rx,0,$,s):i,ry:r.ry?a(t,r.ry,0,$,s):i,sk:r.sk?a(t,r.sk,0,$,s):i,sa:r.sa?a(t,r.sa,0,$,s):i,s:r.s?a(t,r.s,1,.01,s):i,a:r.a?a(t,r.a,1,0,s):i,o:r.o?a(t,r.o,0,.01,s):i,p:r.p?a(t,r.p,1,0,s):i,sw:r.sw?a(t,r.sw,0,0,s):i,sc:r.sc?a(t,r.sc,1,0,s):i,fc:r.fc?a(t,r.fc,1,0,s):i,fh:r.fh?a(t,r.fh,0,0,s):i,fs:r.fs?a(t,r.fs,0,.01,s):i,fb:r.fb?a(t,r.fb,0,.01,s):i,t:r.t?a(t,r.t,0,0,s):i},this.s=ji.getTextSelectorProp(t,e.s,s),this.s.t=e.s.t}function Qt(t,e,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=s,this._animatorsData=at(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}function Pt(){}Qt.prototype.searchProperties=function(){var t,e,s=this._textData.a.length,i=L.getProp;for(t=0;t=h+wt||!p?(v=(h+wt-y)/g.partialLength,K=m.point[0]+(g.point[0]-m.point[0])*v,Y=m.point[1]+(g.point[1]-m.point[1])*v,P.translate(-S[0]*_[a].an*.005,-S[1]*C*.01),l=!1):p&&(y+=g.partialLength,(d+=1)>=p.length&&(d=0,n[u+=1]?p=n[u].points:k.v.c?(d=0,p=n[u=0].points):(y-=g.partialLength,p=null)),p&&(m=g,o=(g=p[d]).partialLength));N=_[a].an/2-_[a].add,P.translate(-N,0,0)}else N=_[a].an/2-_[a].add,P.translate(-N,0,0),P.translate(-S[0]*_[a].an*.005,-S[1]*C*.01,0);for(I=0;It?this.textSpans[t].span:z(g?"g":"text"),o<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,g){var c=z("g");f.appendChild(c),this.textSpans[t].childSpan=c}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(y.reset(),l&&(h[t].n&&(d=-p,u+=s.yOffset,u+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(s,y,h[t].line,d,u),d+=h[t].l||0,d+=p),g){var v;if((n=this.globalData.fontManager.getCharData(s.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily)).t===1)v=new we(n.data,this.globalData,this);else{var A=Hi;n.data&&n.data.shapes&&(A=this.buildShapeData(n.data,s.finalSize)),v=new Q(A,this.globalData,this)}if(this.textSpans[t].glyph){var k=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),n.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else l&&f.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),f.textContent=h[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&f&&f.setAttribute("d","")}else{var S=this.textContainer,T="start";switch(s.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}S.setAttribute("text-anchor",T),S.setAttribute("letter-spacing",p);var V=this.buildTextContents(s.finalText);for(e=V.length,u=s.ps?s.ps[1]+s.ascent:0,t=0;t=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;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},Lt.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t