@gardenfi/garden-book 0.1.100-beta.1 → 0.1.100-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.cjs.js CHANGED
@@ -8,7 +8,7 @@
8
8
  License: MIT, header required.
9
9
  */var Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,n=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(P){if(P===0)return this;var A=e(P),k=t(P);return this._t(A,-k,0,0,k,A,0,0,0,0,1,0,0,0,0,1)}function o(P){if(P===0)return this;var A=e(P),k=t(P);return this._t(1,0,0,0,0,A,-k,0,0,k,A,0,0,0,0,1)}function l(P){if(P===0)return this;var A=e(P),k=t(P);return this._t(A,0,k,0,0,1,0,0,-k,0,A,0,0,0,0,1)}function c(P){if(P===0)return this;var A=e(P),k=t(P);return this._t(A,-k,0,0,k,A,0,0,0,0,1,0,0,0,0,1)}function u(P,A){return this._t(1,A,P,1,0,0)}function f(P,A){return this.shear(i(P),i(A))}function d(P,A){var k=e(A),j=t(A);return this._t(k,j,0,0,-j,k,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(P),1,0,0,0,0,1,0,0,0,0,1)._t(k,-j,0,0,j,k,0,0,0,0,1,0,0,0,0,1)}function p(P,A,k){return!k&&k!==0&&(k=1),P===1&&A===1&&k===1?this:this._t(P,0,0,0,0,A,0,0,0,0,k,0,0,0,0,1)}function b(P,A,k,j,W,q,X,ee,re,ce,ue,me,pe,se,fe,ie){return this.props[0]=P,this.props[1]=A,this.props[2]=k,this.props[3]=j,this.props[4]=W,this.props[5]=q,this.props[6]=X,this.props[7]=ee,this.props[8]=re,this.props[9]=ce,this.props[10]=ue,this.props[11]=me,this.props[12]=pe,this.props[13]=se,this.props[14]=fe,this.props[15]=ie,this}function C(P,A,k){return k=k||0,P!==0||A!==0||k!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,P,A,k,1):this}function g(P,A,k,j,W,q,X,ee,re,ce,ue,me,pe,se,fe,ie){var Y=this.props;if(P===1&&A===0&&k===0&&j===0&&W===0&&q===1&&X===0&&ee===0&&re===0&&ce===0&&ue===1&&me===0)return Y[12]=Y[12]*P+Y[15]*pe,Y[13]=Y[13]*q+Y[15]*se,Y[14]=Y[14]*ue+Y[15]*fe,Y[15]*=ie,this._identityCalculated=!1,this;var Te=Y[0],Me=Y[1],be=Y[2],Ce=Y[3],Pe=Y[4],ve=Y[5],ye=Y[6],xe=Y[7],we=Y[8],Se=Y[9],Ae=Y[10],Ee=Y[11],Re=Y[12],Le=Y[13],Ve=Y[14],je=Y[15];return Y[0]=Te*P+Me*W+be*re+Ce*pe,Y[1]=Te*A+Me*q+be*ce+Ce*se,Y[2]=Te*k+Me*X+be*ue+Ce*fe,Y[3]=Te*j+Me*ee+be*me+Ce*ie,Y[4]=Pe*P+ve*W+ye*re+xe*pe,Y[5]=Pe*A+ve*q+ye*ce+xe*se,Y[6]=Pe*k+ve*X+ye*ue+xe*fe,Y[7]=Pe*j+ve*ee+ye*me+xe*ie,Y[8]=we*P+Se*W+Ae*re+Ee*pe,Y[9]=we*A+Se*q+Ae*ce+Ee*se,Y[10]=we*k+Se*X+Ae*ue+Ee*fe,Y[11]=we*j+Se*ee+Ae*me+Ee*ie,Y[12]=Re*P+Le*W+Ve*re+je*pe,Y[13]=Re*A+Le*q+Ve*ce+je*se,Y[14]=Re*k+Le*X+Ve*ue+je*fe,Y[15]=Re*j+Le*ee+Ve*me+je*ie,this._identityCalculated=!1,this}function E(P){var A=P.props;return this.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15])}function m(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function x(P){for(var A=0;A<16;){if(P.props[A]!==this.props[A])return!1;A+=1}return!0}function y(P){var A;for(A=0;A<16;A+=1)P.props[A]=this.props[A];return P}function S(P){var A;for(A=0;A<16;A+=1)this.props[A]=P[A]}function T(P,A,k){return{x:P*this.props[0]+A*this.props[4]+k*this.props[8]+this.props[12],y:P*this.props[1]+A*this.props[5]+k*this.props[9]+this.props[13],z:P*this.props[2]+A*this.props[6]+k*this.props[10]+this.props[14]}}function R(P,A,k){return P*this.props[0]+A*this.props[4]+k*this.props[8]+this.props[12]}function M(P,A,k){return P*this.props[1]+A*this.props[5]+k*this.props[9]+this.props[13]}function _(P,A,k){return P*this.props[2]+A*this.props[6]+k*this.props[10]+this.props[14]}function I(){var P=this.props[0]*this.props[5]-this.props[1]*this.props[4],A=this.props[5]/P,k=-this.props[1]/P,j=-this.props[4]/P,W=this.props[0]/P,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/P,X=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/P,ee=new Matrix;return ee.props[0]=A,ee.props[1]=k,ee.props[4]=j,ee.props[5]=W,ee.props[12]=q,ee.props[13]=X,ee}function U(P){var A=this.getInverseMatrix();return A.applyToPointArray(P[0],P[1],P[2]||0)}function z(P){var A,k=P.length,j=[];for(A=0;A<k;A+=1)j[A]=U(P[A]);return j}function O(P,A,k){var j=createTypedArray("float32",6);if(this.isIdentity())j[0]=P[0],j[1]=P[1],j[2]=A[0],j[3]=A[1],j[4]=k[0],j[5]=k[1];else{var W=this.props[0],q=this.props[1],X=this.props[4],ee=this.props[5],re=this.props[12],ce=this.props[13];j[0]=P[0]*W+P[1]*X+re,j[1]=P[0]*q+P[1]*ee+ce,j[2]=A[0]*W+A[1]*X+re,j[3]=A[0]*q+A[1]*ee+ce,j[4]=k[0]*W+k[1]*X+re,j[5]=k[0]*q+k[1]*ee+ce}return j}function G(P,A,k){var j;return this.isIdentity()?j=[P,A,k]:j=[P*this.props[0]+A*this.props[4]+k*this.props[8]+this.props[12],P*this.props[1]+A*this.props[5]+k*this.props[9]+this.props[13],P*this.props[2]+A*this.props[6]+k*this.props[10]+this.props[14]],j}function K(P,A){if(this.isIdentity())return P+","+A;var k=this.props;return Math.round((P*k[0]+A*k[4]+k[12])*100)/100+","+Math.round((P*k[1]+A*k[5]+k[13])*100)/100}function H(){for(var P=0,A=this.props,k="matrix3d(",j=1e4;P<16;)k+=n(A[P]*j)/j,k+=P===15?")":",",P+=1;return k}function L(P){var A=1e4;return P<1e-6&&P>0||P>-1e-6&&P<0?n(P*A)/A:P}function V(){var P=this.props,A=L(P[0]),k=L(P[1]),j=L(P[4]),W=L(P[5]),q=L(P[12]),X=L(P[13]);return"matrix("+A+","+k+","+j+","+W+","+q+","+X+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=l,this.rotateZ=c,this.skew=f,this.skewFromAxis=d,this.shear=u,this.scale=p,this.setTransform=b,this.translate=C,this.transform=g,this.multiply=E,this.applyToPoint=T,this.applyToX=R,this.applyToY=M,this.applyToZ=_,this.applyToPointArray=G,this.applyToTriplePoints=O,this.applyToPointStringified=K,this.toCSS=H,this.to2dCSS=V,this.clone=y,this.cloneFromProps=S,this.equals=x,this.inversePoints=z,this.inversePoint=U,this.getInverseMatrix=I,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(i){return typeof i}:_typeof$3=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var n=t[i].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=i,e.getModifier=n;function i(s,a){t[s]||(t[s]=a)}function n(s,a,o){return new t[s](a,o)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,n,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o=[],l,c=a.length,u;for(l=0;l<c;l+=1)if(u=a[l],!(u.e*s<n||u.s*s>n+i)){var f,d;u.s*s<=n?f=0:f=(u.s*s-n)/i,u.e*s>=n+i?d=1:d=(u.e*s-n)/i,o.push([f,d])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?t=1+n:this.s.v<0?t=0+n:t=this.s.v+n,this.e.v>1?i=1+n:this.e.v<0?i=0+n:i=this.e.v+n,t>i){var s=t;t=i,i=s}t=Math.round(t*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var a,o,l=this.shapes.length,c,u,f,d,p,b=0;if(i===t)for(o=0;o<l;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(i===1&&t===0||i===0&&t===1){if(this._mdf)for(o=0;o<l;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var C=[],g,E;for(o=0;o<l;o+=1)if(g=this.shapes[o],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(a=g.shape.paths,u=a._length,p=0,!g.shape._mdf&&g.pathsData.length)p=g.totalShapeLength;else{for(f=this.releasePathsData(g.pathsData),c=0;c<u;c+=1)d=bez.getSegmentsLength(a.shapes[c]),f.push(d),p+=d.totalLength;g.totalShapeLength=p,g.pathsData=f}b+=p,g.shape._mdf=!0}var m=t,x=i,y=0,S;for(o=l-1;o>=0;o-=1)if(g=this.shapes[o],g.shape._mdf){for(E=g.localShapeCollection,E.releaseShapes(),this.m===2&&l>1?(S=this.calculateShapeEdges(t,i,g.totalShapeLength,y,b),y+=g.totalShapeLength):S=[[m,x]],u=S.length,c=0;c<u;c+=1){m=S[c][0],x=S[c][1],C.length=0,x<=1?C.push({s:g.totalShapeLength*m,e:g.totalShapeLength*x}):m>=1?C.push({s:g.totalShapeLength*(m-1),e:g.totalShapeLength*(x-1)}):(C.push({s:g.totalShapeLength*m,e:g.totalShapeLength}),C.push({s:0,e:g.totalShapeLength*(x-1)}));var T=this.addShapes(g,C[0]);if(C[0].s!==C[0].e){if(C.length>1){var R=g.shape.paths.shapes[g.shape.paths._length-1];if(R.c){var M=T.pop();this.addPaths(T,E),T=this.addShapes(g,C[1],M)}else this.addPaths(T,E),T=this.addShapes(g,C[1])}this.addPaths(T,E)}}g.shape.paths=E}}},TrimModifier.prototype.addPaths=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,n,s,a,o){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),o&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,n){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),n&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var n=e.pathsData,s=e.shape.paths.shapes,a,o=e.shape.paths._length,l,c,u=0,f,d,p,b,C=[],g,E=!0;for(i?(d=i._length,g=i._length):(i=shapePool.newElement(),d=0,g=0),C.push(i),a=0;a<o;a+=1){for(p=n[a].lengths,i.c=s[a].c,c=s[a].c?p.length:p.length+1,l=1;l<c;l+=1)if(f=p[l-1],u+f.addedLength<t.s)u+=f.addedLength,i.c=!1;else if(u>t.e){i.c=!1;break}else t.s<=u&&t.e>=u+f.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,d,E),E=!1):(b=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(t.s-u)/f.addedLength,(t.e-u)/f.addedLength,p[l-1]),this.addSegmentFromArray(b,i,d,E),E=!1,i.c=!1),u+=f.addedLength,d+=1;if(s[a].c&&p.length){if(f=p[l-1],u<=t.e){var m=p[l-1].addedLength;t.s<=u&&t.e>=u+m?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,d,E),E=!1):(b=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(t.s-u)/m,(t.e-u)/m,p[l-1]),this.addSegmentFromArray(b,i,d,E),E=!1,i.c=!1)}else i.c=!1;u+=f.addedLength,d+=1}if(i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),u>t.e)break;a<o-1&&(i=shapePool.newElement(),E=!0,C.push(i),d=0)}return C};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var i=t/100,n=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=s,n[1]/=s;var o=shapePool.newElement();o.c=e.c;var l,c,u,f,d,p;for(a=0;a<s;a+=1)l=e.v[a][0]+(n[0]-e.v[a][0])*i,c=e.v[a][1]+(n[1]-e.v[a][1])*i,u=e.o[a][0]+(n[0]-e.o[a][0])*-i,f=e.o[a][1]+(n[1]-e.o[a][1])*-i,d=e.i[a][0]+(n[0]-e.i[a][0])*-i,p=e.i[a][1]+(n[1]-e.i[a][1])*-i,o.setTripleAt(l,c,u,f,d,p,a);return o},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amount.v;if(o!==0){var l,c;for(i=0;i<n;i+=1){if(l=this.shapes[i],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.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.data.p.s?this.data.p.z?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.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.autoOriented){var f,d;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),d=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),d=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(f=this.p.pv,d=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],d=[];var p=this.px,b=this.py;p._caching.lastFrame+p.offsetTime<=p.keyframes[0].t?(f[0]=p.getValueAtTime((p.keyframes[0].t+.01)/u,0),f[1]=b.getValueAtTime((b.keyframes[0].t+.01)/u,0),d[0]=p.getValueAtTime(p.keyframes[0].t/u,0),d[1]=b.getValueAtTime(b.keyframes[0].t/u,0)):p._caching.lastFrame+p.offsetTime>=p.keyframes[p.keyframes.length-1].t?(f[0]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/u,0),f[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/u,0),d[0]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-.01)/u,0),d[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/u,0)):(f=[p.pv,b.pv],d[0]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-.01)/u,p.offsetTime),d[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/u,b.offsetTime))}else d=e,f=d;this.v.rotate(-Math.atan2(f[1]-d[1],f[0]-d[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}}function n(){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;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function s(){}function a(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function o(c,u,f){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var d,p=u.or.k.length;for(d=0;d<p;d+=1)u.or.k[d].to=null,u.or.k[d].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:t,getValue:i,precalculateMatrix:n,autoOrient:s},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,f){return new o(c,u,f)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,i,n,s,a){var o=a?-1:1,l=n.s.v[0]+(1-n.s.v[0])*(1-s),c=n.s.v[1]+(1-n.s.v[1])*(1-s);e.translate(n.p.v[0]*o*s,n.p.v[1]*o*s,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*o*s),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(a?1/l:l,a?1/c:c),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,n){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._render=t,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,n,s,a,o=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}a=0;var u;for(n=0;n<=this._groups.length-1;n+=1){if(u=a<l,this._groups[n]._render=u,this.changeGroupRender(this._groups[n].it,u),!u){var f=this.elemsData[n].it,d=f[f.length-1];d.transform.op.v!==0?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}a+=1}this._currentCopies=l;var p=this.o.v,b=p%1,C=p>0?Math.floor(p):Math.ceil(p),g=this.pMatrix.props,E=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(p>0){for(;x<C;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,b,!1),x+=b)}else if(p<0){for(;x>C;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),x-=b)}n=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var y,S;a;){if(t=this.elemsData[n].it,i=t[t.length-1].transform.mProps.v.props,S=i.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),x!==0){for((n!==0&&s===1||n!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),y=0;y<S;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<S;y+=1)i[y]=this.matrix.props[y];x+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)t=this.elemsData[n].it,i=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=s;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var i=shapePool.newElement();i.c=e.c;var n,s=e._length,a,o,l,c,u,f,d=0,p,b,C,g,E,m;for(n=0;n<s;n+=1)a=e.v[n],l=e.o[n],o=e.i[n],a[0]===l[0]&&a[1]===l[1]&&a[0]===o[0]&&a[1]===o[1]?(n===0||n===s-1)&&!e.c?(i.setTripleAt(a[0],a[1],l[0],l[1],o[0],o[1],d),d+=1):(n===0?c=e.v[s-1]:c=e.v[n-1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),f=u?Math.min(u/2,t)/u:0,E=a[0]+(c[0]-a[0])*f,p=E,m=a[1]-(a[1]-c[1])*f,b=m,C=p-(p-a[0])*roundCorner,g=b-(b-a[1])*roundCorner,i.setTripleAt(p,b,C,g,E,m,d),d+=1,n===s-1?c=e.v[0]:c=e.v[n+1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),f=u?Math.min(u/2,t)/u:0,C=a[0]+(c[0]-a[0])*f,p=C,g=a[1]+(c[1]-a[1])*f,b=g,E=p-(p-a[0])*roundCorner,m=b-(b-a[1])*roundCorner,i.setTripleAt(p,b,C,g,E,m,d),d+=1):(i.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],d),d+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.rd.v;if(o!==0){var l,c;for(i=0;i<n;i+=1){if(l=this.shapes[i],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(e===0)return[];var n=t*t-4*e*i;if(n<0)return[];var s=-t/(2*e);if(n===0)return[s];var a=Math.sqrt(n)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,i,n){return[-e+3*t-3*i+n,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,n,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),s&&pointEqual(i,n)&&(i=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],i[0],n[0]),o=polynomialCoefficients(e[1],t[1],i[1],n[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,i,n]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var n=Math.sqrt(i);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,i,e),a=lerpPoint(i,n,e),o=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,o,!0),new PolynomialBezier(o,a,n,this.points[3],!0)]};function extrema(e,t){var i=e.points[0][t],n=e.points[e.points.length-1][t];if(i>n){var s=n;n=i,i=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var l=e.point(a[o])[t];l<i?i=l:l>n&&(n=l)}return{min:i,max:n}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,i){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+i)/2,t1:t,t2:i}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,i,n,s,a){if(boxIntersect(e,t)){if(i>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n){s.push([e.t,t.t]);return}var o=splitData(e),l=splitData(t);intersectsImpl(o[0],l[0],i+1,n,s,a),intersectsImpl(o[0],l[1],i+1,n,s,a),intersectsImpl(o[1],l[0],i+1,n,s,a),intersectsImpl(o[1],l[1],i+1,n,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,i){t===void 0&&(t=2),i===void 0&&(i=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,i),n},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,i,n){var s=[e[0],e[1],1],a=[t[0],t[1],1],o=[i[0],i[1],1],l=[n[0],n[1],1],c=crossProduct(crossProduct(s,a),crossProduct(o,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,i,n,s,a,o){var l=i-Math.PI/2,c=i+Math.PI/2,u=t[0]+Math.cos(i)*n*s,f=t[1]-Math.sin(i)*n*s;e.setTripleAt(u,f,u+Math.cos(l)*a,f-Math.sin(l)*a,u+Math.cos(c)*o,f-Math.sin(c)*o,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],n=-Math.PI*.5,s=[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]];return s}function getProjectingAngle(e,t){var i=t===0?e.length()-1:t-1,n=(t+1)%e.length(),s=e.v[i],a=e.v[n],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,i,n,s,a,o){var l=getProjectingAngle(t,i),c=t.v[i%t._length],u=t.v[i===0?t._length-1:i-1],f=t.v[(i+1)%t._length],d=a===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,p=a===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0;setPoint(e,t.v[i%t._length],l,o,n,p/((s+1)*2),d/((s+1)*2))}function zigZagSegment(e,t,i,n,s,a){for(var o=0;o<n;o+=1){var l=(o+1)/(n+1),c=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(l),f=t.point(l);setPoint(e,f,u,a,i,c/((n+1)*2),c/((n+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,i,n){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var o=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,i,n,o);for(var c=0;c<s;c+=1)o=zigZagSegment(a,l,t,i,n,-o),c===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%s),zigZagCorner(a,e,c+1,t,i,n,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(o!==0){var u,f;for(i=0;i<n;i+=1){if(u=this.shapes[i],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],o,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,i){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,i),polarOffset(t,n,i)]}function offsetSegment(e,t){var i,n,s,a,o,l,c;c=linearOffset(e.points[0],e.points[1],t),i=c[0],n=c[1],c=linearOffset(e.points[1],e.points[2],t),s=c[0],a=c[1],c=linearOffset(e.points[2],e.points[3],t),o=c[0],l=c[1];var u=lineIntersection(i,n,s,a);u===null&&(u=n);var f=lineIntersection(o,l,s,a);return f===null&&(f=o),new PolynomialBezier(i,u,f,l)}function joinLines(e,t,i,n,s){var a=t.points[3],o=i.points[0];if(n===3||pointEqual(a,o))return a;if(n===2){var l=-t.tangentAngle(1),c=-i.tangentAngle(0)+Math.PI,u=lineIntersection(a,polarOffset(a,l+Math.PI/2,100),o,polarOffset(o,l+Math.PI/2,100)),f=u?pointDistance(u,a):pointDistance(a,o)/2,d=polarOffset(a,l,2*f*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(o,c,2*f*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var p=pointEqual(a,t.points[2])?t.points[0]:t.points[2],b=pointEqual(o,i.points[1])?i.points[3]:i.points[1],C=lineIntersection(p,a,o,b);return C&&pointDistance(C,a)<s?(e.setTripleAt(C[0],C[1],C[0],C[1],C[0],C[1],e.length()),C):a}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),n=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(i[e.length-1]=e[e.length-1].split(s[0])[0],n[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[i,n]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var i=e.inflectionPoints(),n,s,a,o;if(i.length===0)return[offsetSegment(e,t)];if(i.length===1||floatEqual(i[1],1))return a=e.split(i[0]),n=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(s,t)];a=e.split(i[0]),n=a[0];var l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),o=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(o,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,i,n){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var o,l,c,u=[];for(o=0;o<a;o+=1)c=PolynomialBezier.shapeSegment(e,o),u.push(offsetSegmentSplit(c,t));if(!e.c)for(o=a-1;o>=0;o-=1)c=PolynomialBezier.shapeSegmentInverted(e,o),u.push(offsetSegmentSplit(c,t));u=pruneIntersections(u);var f=null,d=null;for(o=0;o<u.length;o+=1){var p=u[o];for(d&&(f=joinLines(s,d,p[0],i,n)),d=p[p.length-1],l=0;l<p.length;l+=1)c=p[l],f&&pointEqual(c.points[0],f)?s.setXYAt(c.points[1][0],c.points[1][1],"o",s.length()-1):s.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],s.length()),s.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],s.length()),f=c.points[3]}return u.length&&joinLines(s,d,u[0][0],i,n),s},OffsetPathModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(o!==0){var u,f;for(i=0;i<n;i+=1){if(u=this.shapes[i],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],o,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",n="normal",s=t.length,a,o=0;o<s;o+=1)switch(a=t[o].toLowerCase(),a){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:n,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,s=917631,a=917601,o=917626,l=65039,c=8205,u=127462,f=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(L){var V=L.split(","),P,A=V.length,k=[];for(P=0;P<A;P+=1)V[P]!=="sans-serif"&&V[P]!=="monospace"&&k.push(V[P]);return k.join(",")}function b(L,V){var P=createTag("span");P.setAttribute("aria-hidden",!0),P.style.fontFamily=V;var A=createTag("span");A.innerText="giItT1WQy@!-/#",P.style.position="absolute",P.style.left="-10000px",P.style.top="-10000px",P.style.fontSize="300px",P.style.fontVariant="normal",P.style.fontStyle="normal",P.style.fontWeight="normal",P.style.letterSpacing="0",P.appendChild(A),document.body.appendChild(P);var k=A.offsetWidth;return A.style.fontFamily=p(L)+", "+V,{node:A,w:k,parent:P}}function C(){var L,V=this.fonts.length,P,A,k=V;for(L=0;L<V;L+=1)this.fonts[L].loaded?k-=1:this.fonts[L].fOrigin==="n"||this.fonts[L].origin===0?this.fonts[L].loaded=!0:(P=this.fonts[L].monoCase.node,A=this.fonts[L].monoCase.w,P.offsetWidth!==A?(k-=1,this.fonts[L].loaded=!0):(P=this.fonts[L].sansCase.node,A=this.fonts[L].sansCase.w,P.offsetWidth!==A&&(k-=1,this.fonts[L].loaded=!0)),this.fonts[L].loaded&&(this.fonts[L].sansCase.parent.parentNode.removeChild(this.fonts[L].sansCase.parent),this.fonts[L].monoCase.parent.parentNode.removeChild(this.fonts[L].monoCase.parent)));k!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(L,V){var P=document.body&&V?"svg":"canvas",A,k=getFontProperties(L);if(P==="svg"){var j=createNS("text");j.style.fontSize="100px",j.setAttribute("font-family",L.fFamily),j.setAttribute("font-style",k.style),j.setAttribute("font-weight",k.weight),j.textContent="1",L.fClass?(j.style.fontFamily="inherit",j.setAttribute("class",L.fClass)):j.style.fontFamily=L.fFamily,V.appendChild(j),A=j}else{var W=new OffscreenCanvas(500,500).getContext("2d");W.font=k.style+" "+k.weight+" 100px "+L.fFamily,A=W}function q(X){return P==="svg"?(A.textContent=X,A.getComputedTextLength()):A.measureText(X).width}return{measureText:q}}function E(L,V){if(!L){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=L.list;return}if(!document.body){this.isLoaded=!0,L.list.forEach(function(ue){ue.helper=g(ue),ue.cache={}}),this.fonts=L.list;return}var P=L.list,A,k=P.length,j=k;for(A=0;A<k;A+=1){var W=!0,q,X;if(P[A].loaded=!1,P[A].monoCase=b(P[A].fFamily,"monospace"),P[A].sansCase=b(P[A].fFamily,"sans-serif"),!P[A].fPath)P[A].loaded=!0,j-=1;else if(P[A].fOrigin==="p"||P[A].origin===3){if(q=document.querySelectorAll('style[f-forigin="p"][f-family="'+P[A].fFamily+'"], style[f-origin="3"][f-family="'+P[A].fFamily+'"]'),q.length>0&&(W=!1),W){var ee=createTag("style");ee.setAttribute("f-forigin",P[A].fOrigin),ee.setAttribute("f-origin",P[A].origin),ee.setAttribute("f-family",P[A].fFamily),ee.type="text/css",ee.innerText="@font-face {font-family: "+P[A].fFamily+"; font-style: normal; src: url('"+P[A].fPath+"');}",V.appendChild(ee)}}else if(P[A].fOrigin==="g"||P[A].origin===1){for(q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),X=0;X<q.length;X+=1)q[X].href.indexOf(P[A].fPath)!==-1&&(W=!1);if(W){var re=createTag("link");re.setAttribute("f-forigin",P[A].fOrigin),re.setAttribute("f-origin",P[A].origin),re.type="text/css",re.rel="stylesheet",re.href=P[A].fPath,document.body.appendChild(re)}}else if(P[A].fOrigin==="t"||P[A].origin===2){for(q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),X=0;X<q.length;X+=1)P[A].fPath===q[X].src&&(W=!1);if(W){var ce=createTag("link");ce.setAttribute("f-forigin",P[A].fOrigin),ce.setAttribute("f-origin",P[A].origin),ce.setAttribute("rel","stylesheet"),ce.setAttribute("href",P[A].fPath),V.appendChild(ce)}}P[A].helper=g(P[A],V),P[A].cache={},this.fonts.push(P[A])}j===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function m(L){if(L){this.chars||(this.chars=[]);var V,P=L.length,A,k=this.chars.length,j;for(V=0;V<P;V+=1){for(A=0,j=!1;A<k;)this.chars[A].style===L[V].style&&this.chars[A].fFamily===L[V].fFamily&&this.chars[A].ch===L[V].ch&&(j=!0),A+=1;j||(this.chars.push(L[V]),k+=1)}}}function x(L,V,P){for(var A=0,k=this.chars.length;A<k;){if(this.chars[A].ch===L&&this.chars[A].style===V&&this.chars[A].fFamily===P)return this.chars[A];A+=1}return(typeof L=="string"&&L.charCodeAt(0)!==13||!L)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",L,V,P)),t}function y(L,V,P){var A=this.getFontByName(V),k=L;if(!A.cache[k]){var j=A.helper;if(L===" "){var W=j.measureText("|"+L+"|"),q=j.measureText("||");A.cache[k]=(W-q)/100}else A.cache[k]=j.measureText(L)/100}return A.cache[k]*P}function S(L){for(var V=0,P=this.fonts.length;V<P;){if(this.fonts[V].fName===L)return this.fonts[V];V+=1}return this.fonts[0]}function T(L){var V=0,P=L.charCodeAt(0);if(P>=55296&&P<=56319){var A=L.charCodeAt(1);A>=56320&&A<=57343&&(V=(P-55296)*1024+A-56320+65536)}return V}function R(L,V){var P=L.toString(16)+V.toString(16);return d.indexOf(P)!==-1}function M(L){return L===c}function _(L){return L===l}function I(L){var V=T(L);return V>=u&&V<=f}function U(L){return I(L.substr(0,2))&&I(L.substr(2,2))}function z(L){return i.indexOf(L)!==-1}function O(L,V){var P=T(L.substr(V,2));if(P!==n)return!1;var A=0;for(V+=2;A<5;){if(P=T(L.substr(V,2)),P<a||P>o)return!1;A+=1,V+=2}return T(L.substr(V,2))===s}function G(){this.isLoaded=!0}var K=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)};K.isModifier=R,K.isZeroWidthJoiner=M,K.isFlagEmoji=U,K.isRegionalCode=I,K.isCombinedCharacter=z,K.isRegionalFlag=O,K.isVariationSelector=_,K.BLACK_FLAG_CODE_POINT=n;var H={addChars:m,addFonts:E,getCharData:x,getFontByName:S,measureText:y,checkLoadedFonts:C,setIsLoaded:G};return K.prototype=H,K}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?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,i=this.renderableComponents.length;for(t=0;t<i;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={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"};return function(t){return e[t]||""}}();function SliderEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i=e.ef||[];this.effectElements=[];var n,s=i.length,a;for(n=0;n<s;n+=1)a=new GroupEffect(i[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,n=this.data.ef.length,s,a=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,a[i].ty){case 0:s=new SliderEffect(a[i],t,this);break;case 1:s=new AngleEffect(a[i],t,this);break;case 2:s=new ColorEffect(a[i],t,this);break;case 3:s=new PointEffect(a[i],t,this);break;case 4:case 7:s=new CheckboxEffect(a[i],t,this);break;case 10:s=new LayerIndexEffect(a[i],t,this);break;case 11:s=new MaskIndexEffect(a[i],t,this);break;case 5:s=new EffectsManager(a[i],t);break;default:s=new NoValueEffect(a[i]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,i=this.data.masksProperties.length;t<i;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var i=t("layer"),n=t("effects"),s=t("shape"),a=t("text"),o=t("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=t},initBaseData:function(t,i,n){this.globalData=i,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,i){var n,s=this.dynamicProperties.length;for(n=0;n<s;n+=1)(i||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,i=this.layers.length,n;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t],n.ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,i=e.length,n,s=this.layers.length;for(t=0;t<i;t+=1)for(n=0;n<s;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var n=this.elements,s=this.layers,a=0,o=s.length;a<o;)s[a].ind==t&&(!n[a]||n[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(i.push(n[a]),n[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,i):e.setHierarchy(i))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),i;if(typeof t=="number")i=this.elements[t];else{var n,s=this.elements.length;for(n=0;n<s;n+=1)if(this.elements[n].data.nm===t){i=this.elements[n];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.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,i=this.finalTransform.mat,n=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<s;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,i.cloneFromProps(t),n=0;n<s;n+=1)i.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<i;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<i;t+=1){var s=this.localTransforms[t].matrix;n.multiply(s)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<i;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,n=t.length;for(i=0;i<n;i+=1)this.localTransforms.push(t[i])}}},globalToLocal:function(t){var i=[];i.push(this.finalTransform);for(var n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&i.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a,o=i.length,l;for(a=0;a<o;a+=1)l=i[a].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l=this.masksProperties,c=0,u=[],f,d,p=createElementID(),b,C,g,E,m="clipPath",x="clip-path";for(s=0;s<a;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(m="mask",x="mask"),(l[s].mode==="s"||l[s].mode==="i")&&c===0?(b=createNS("rect"),b.setAttribute("fill","#ffffff"),b.setAttribute("width",this.element.comp.data.w||0),b.setAttribute("height",this.element.comp.data.h||0),u.push(b)):b=null,o=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:o,lastPath:""},n.appendChild(o);else{c+=1,o.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var y;if(l[s].x.k!==0?(m="mask",x="mask",E=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),y=createElementID(),C=createNS("filter"),C.setAttribute("id",y),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),C.appendChild(g),n.appendChild(C),o.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(g=null,E=null),this.storedData[s]={elem:o,x:E,expan:g,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},l[s].mode==="i"){d=u.length;var S=createNS("g");for(f=0;f<d;f+=1)S.appendChild(u[f]);var T=createNS("mask");T.setAttribute("mask-type","alpha"),T.setAttribute("id",p+"_"+c),T.appendChild(o),n.appendChild(T),S.setAttribute("mask","url("+getLocationHref()+"#"+p+"_"+c+")"),u.length=0,u.push(S)}else u.push(o);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:b},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(m),a=u.length,s=0;s<a;s+=1)this.maskElement.appendChild(u[s]);c>0&&(this.maskElement.setAttribute("id",p),this.element.maskedElement.setAttribute(x,"url("+getLocationHref()+"#"+p+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,i,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var s=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),s.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,i){var n=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==n){var o="";i.elem&&(t.c&&(o=e.inv?this.solidPath+n:n),i.elem.setAttribute("d",o)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=i;function t(n,s){var a=createNS("filter");return a.setAttribute("id",n),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,i="SourceGraphic",n=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var l;for(t=0;t<n;t+=1){l=null;var c=e.data.ef[t].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(a,e.effectsManager.effectElements[t],e,idPrefix+o,i),i=idPrefix+o,registeredEffects$1[c].countsAsEffect&&(o+=1)}l&&this.filters.push(l)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,n=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),t=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(s),this.globalData.defs.appendChild(n),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var i=this.layerId+"_"+t,n,s,a,o;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",i),l.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),n=createElementID(),s=filtersFactory.createFilter(n),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(a),l.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(t===2){var c=createNS("mask");c.setAttribute("id",i),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),n=createElementID(),s=filtersFactory.createFilter(n);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),s.appendChild(f);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),f.appendChild(d),this.globalData.defs.appendChild(s);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),u.appendChild(p),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(a),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),u.appendChild(p),o.appendChild(this.layerElement),u.appendChild(o)),this.globalData.defs.appendChild(c)}this.matteMasks[t]=i}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,n,s){this.initFrame(),this.initBaseData(i,n,s),this.initTransform(i,n,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var i,n=this.shapeModifiers.length;for(i=0;i<n;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var i=0,n=this.shapeModifiers.length;i<n;)if(this.shapeModifiers[i].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,i=this.shapes.length;for(t=0;t<i;t+=1)this.shapes[t].sh.reset();i=this.shapeModifiers.length;var n;for(t=i-1;t>=0&&(n=this.shapeModifiers[t].processShapes(this._isFirstFrame),!n);t-=1);}},searchProcessedElement:function(t){for(var i=this.processedElements,n=0,s=i.length;n<s;){if(i[n].elem===t)return i[n].pos;n+=1}return 0},addProcessedElement:function(t,i){for(var n=this.processedElements,s=n.length;s;)if(s-=1,n[s].elem===t){n[s].pos=i;return}n.push(new ProcessedElement(t,i))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var n=0,s=e.length;n<s;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,i,n){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,a=t.length||0,o;for(s=0;s<a;s+=1)o=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=o.k||this.k,this.dataProps[s]={n:t[s].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<i;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var n=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var i=0,n=this.o.length/2,s;i<n;){if(s=Math.abs(e[i*4]-e[t*4+i*2]),s>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,i=this.data.p*4,n,s;for(t=0;t<i;t+=1)n=t%4===0?100:255,s=Math.round(this.prop.v[t]*n),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=this.data.p*4;t<i;t+=1)n=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),n=createNS(t.t===1?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,o,l;for(l=t.g.p*4,o=0;o<l;o+=4)a=createNS("stop"),n.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,s,a=createNS("mask"),o=createNS("path");a.appendChild(o);var l=createElementID(),c=createElementID();a.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(n=e.g.p*4;n<s;n+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(i),f.push(i);o.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=f,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,i,n,s){if(i===0)return"";var a=t.o,o=t.i,l=t.v,c,u=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<i;c+=1)u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[c][0],o[c][1])+" "+s.applyToPointStringified(l[c][0],l[c][1]);return n&&i&&(u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,i={createRenderFunction:n};function n(d){switch(d.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return f;case"sh":case"el":case"rc":case"sr":return o;case"tr":return s;case"no":return a;default:return null}}function s(d,p,b){(b||p.transform.op._mdf)&&p.transform.container.setAttribute("opacity",p.transform.op.v),(b||p.transform.mProps._mdf)&&p.transform.container.setAttribute("transform",p.transform.mProps.v.to2dCSS())}function a(){}function o(d,p,b){var C,g,E,m,x,y,S=p.styles.length,T=p.lvl,R,M,_,I;for(y=0;y<S;y+=1){if(m=p.sh._mdf||b,p.styles[y].lvl<T){for(M=t.reset(),_=T-p.styles[y].lvl,I=p.transformers.length-1;!m&&_>0;)m=p.transformers[I].mProps._mdf||m,_-=1,I-=1;if(m)for(_=T-p.styles[y].lvl,I=p.transformers.length-1;_>0;)M.multiply(p.transformers[I].mProps.v),_-=1,I-=1}else M=e;if(R=p.sh.paths,g=R._length,m){for(E="",C=0;C<g;C+=1)x=R.shapes[C],x&&x._length&&(E+=buildShapeString(x,x._length,x.c,M));p.caches[y]=E}else E=p.caches[y];p.styles[y].d+=d.hd===!0?"":E,p.styles[y]._mdf=m||p.styles[y]._mdf}}function l(d,p,b){var C=p.style;(p.c._mdf||b)&&C.pElem.setAttribute("fill","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||b)&&C.pElem.setAttribute("fill-opacity",p.o.v)}function c(d,p,b){u(d,p,b),f(d,p,b)}function u(d,p,b){var C=p.gf,g=p.g._hasOpacity,E=p.s.v,m=p.e.v;if(p.o._mdf||b){var x=d.ty==="gf"?"fill-opacity":"stroke-opacity";p.style.pElem.setAttribute(x,p.o.v)}if(p.s._mdf||b){var y=d.t===1?"x1":"cx",S=y==="x1"?"y1":"cy";C.setAttribute(y,E[0]),C.setAttribute(S,E[1]),g&&!p.g._collapsable&&(p.of.setAttribute(y,E[0]),p.of.setAttribute(S,E[1]))}var T,R,M,_;if(p.g._cmdf||b){T=p.cst;var I=p.g.c;for(M=T.length,R=0;R<M;R+=1)_=T[R],_.setAttribute("offset",I[R*4]+"%"),_.setAttribute("stop-color","rgb("+I[R*4+1]+","+I[R*4+2]+","+I[R*4+3]+")")}if(g&&(p.g._omdf||b)){var U=p.g.o;for(p.g._collapsable?T=p.cst:T=p.ost,M=T.length,R=0;R<M;R+=1)_=T[R],p.g._collapsable||_.setAttribute("offset",U[R*2]+"%"),_.setAttribute("stop-opacity",U[R*2+1])}if(d.t===1)(p.e._mdf||b)&&(C.setAttribute("x2",m[0]),C.setAttribute("y2",m[1]),g&&!p.g._collapsable&&(p.of.setAttribute("x2",m[0]),p.of.setAttribute("y2",m[1])));else{var z;if((p.s._mdf||p.e._mdf||b)&&(z=Math.sqrt(Math.pow(E[0]-m[0],2)+Math.pow(E[1]-m[1],2)),C.setAttribute("r",z),g&&!p.g._collapsable&&p.of.setAttribute("r",z)),p.e._mdf||p.h._mdf||p.a._mdf||b){z||(z=Math.sqrt(Math.pow(E[0]-m[0],2)+Math.pow(E[1]-m[1],2)));var O=Math.atan2(m[1]-E[1],m[0]-E[0]),G=p.h.v;G>=1?G=.99:G<=-1&&(G=-.99);var K=z*G,H=Math.cos(O+p.a.v)*K+E[0],L=Math.sin(O+p.a.v)*K+E[1];C.setAttribute("fx",H),C.setAttribute("fy",L),g&&!p.g._collapsable&&(p.of.setAttribute("fx",H),p.of.setAttribute("fy",L))}}}function f(d,p,b){var C=p.style,g=p.d;g&&(g._mdf||b)&&g.dashStr&&(C.pElem.setAttribute("stroke-dasharray",g.dashStr),C.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),p.c&&(p.c._mdf||b)&&C.pElem.setAttribute("stroke","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||b)&&C.pElem.setAttribute("stroke-opacity",p.o.v),(p.w._mdf||b)&&(C.pElem.setAttribute("stroke-width",p.w.v),C.msElem&&C.msElem.setAttribute("stroke-width",p.w.v))}return i}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,i,n,s=this.stylesList.length,a,o=[],l=!1;for(n=0;n<s;n+=1){for(a=this.stylesList[n],l=!1,o.length=0,e=0;e<t;e+=1)i=this.shapes[e],i.styles.indexOf(a)!==-1&&(o.push(i),l=i._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,n=new SVGStyleData(e,t),s=n.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,n);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new a(this,e,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var i=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var s=ShapePropertyFactory.getShapeProp(this,e,n,this),a=new SVGShapeData(t,i,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,i,n=this.stylesList.length;for(i=0;i<n;i+=1)this.stylesList[i].closed||t.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,i,n,s,a,o){var l=[].concat(a),c,u=e.length-1,f,d,p=[],b=[],C,g,E;for(c=u;c>=0;c-=1){if(E=this.searchProcessedElement(e[c]),E?t[c]=i[E-1]:e[c]._render=o,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")E?t[c].style.closed=!1:t[c]=this.createStyleElement(e[c],s),e[c]._render&&t[c].style.pElem.parentNode!==n&&n.appendChild(t[c].style.pElem),p.push(t[c].style);else if(e[c].ty==="gr"){if(!E)t[c]=this.createGroupElement(e[c]);else for(d=t[c].it.length,f=0;f<d;f+=1)t[c].prevViewData[f]=t[c].it[f];this.searchShapes(e[c].it,t[c].it,t[c].prevViewData,t[c].gr,s+1,l,o),e[c]._render&&t[c].gr.parentNode!==n&&n.appendChild(t[c].gr)}else e[c].ty==="tr"?(E||(t[c]=this.createTransformElement(e[c],n)),C=t[c].transform,l.push(C)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(E||(t[c]=this.createShapeElement(e[c],l,s)),this.setElementStyles(t[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(E?(g=t[c],g.closed=!1):(g=ShapeModifiers.getModifier(e[c].ty),g.init(this,e[c]),t[c]=g,this.shapeModifiers.push(g)),b.push(g)):e[c].ty==="rp"&&(E?(g=t[c],g.closed=!0):(g=ShapeModifiers.getModifier(e[c].ty),t[c]=g,g.init(this,e,c,t),this.shapeModifiers.push(g),o=!1),b.push(g));this.addProcessedElement(e[c],c+1)}for(u=p.length,c=0;c<u;c+=1)p[c].closed=!0;for(u=b.length,c=0;c<u;c+=1)b[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,i;for(e=0;e<t;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,i,n,s,a){this.o=e,this.sw=t,this.sc=i,this.fc=n,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,i,n,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,o=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,o=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,o=!0),o};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<s;n+=1)i!==this.keysIndex?a=this.effectsSequence[n](a,a.t):a=this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,n=e.length;i<=n-1&&!(i===n-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],i=0,n=e.length,s,a,o=!1,l=!1,c="";i<n;)o=l,l=!1,s=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(s)?o=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(a=e.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(c=e.substr(i,2),o=!0):FontManager.isFlagEmoji(e.substr(i,4))?c=e.substr(i,4):c=e.substr(i,2))):s>56319?(a=e.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,l=!0),o?(t[t.length-1]+=c,o=!1):t.push(c),i+=c.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,i=this.data,n=[],s,a,o,l=0,c,u=i.m.g,f=0,d=0,p=0,b=[],C=0,g=0,E,m,x=t.getFontByName(e.f),y,S=0,T=getFontProperties(x);e.fWeight=T.weight,e.fStyle=T.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var R=e.tr/1e3*e.finalSize,M;if(e.sz)for(var _=!0,I=e.sz[0],U=e.sz[1],z,O;_;){O=this.buildFinalText(e.t),z=0,C=0,a=O.length,R=e.tr/1e3*e.finalSize;var G=-1;for(s=0;s<a;s+=1)M=O[s].charCodeAt(0),o=!1,O[s]===" "?G=s:(M===13||M===3)&&(C=0,o=!0,z+=e.finalLineHeight||e.finalSize*1.2),t.chars?(y=t.getCharData(O[s],x.fStyle,x.fFamily),S=o?0:y.w*e.finalSize/100):S=t.measureText(O[s],e.f,e.finalSize),C+S>I&&O[s]!==" "?(G===-1?a+=1:s=G,z+=e.finalLineHeight||e.finalSize*1.2,O.splice(s,G===s?1:0,"\r"),G=-1,C=0):(C+=S,C+=R);z+=x.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&U<z?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,a=e.finalText.length,_=!1)}C=-R,S=0;var K=0,H;for(s=0;s<a;s+=1)if(o=!1,H=e.finalText[s],M=H.charCodeAt(0),M===13||M===3?(K=0,b.push(C),g=C>g?C:g,C=-2*R,c="",o=!0,p+=1):c=H,t.chars?(y=t.getCharData(H,x.fStyle,t.getFontByName(e.f).fFamily),S=o?0:y.w*e.finalSize/100):S=t.measureText(c,e.f,e.finalSize),H===" "?K+=S+R:(C+=S+R+K,K=0),n.push({l:S,an:S,add:f,n:o,anIndexes:[],val:c,line:p,animatorJustifyOffset:0}),u==2){if(f+=S,c===""||c===" "||s===a-1){for((c===""||c===" ")&&(f-=S);d<=s;)n[d].an=f,n[d].ind=l,n[d].extra=S,d+=1;l+=1,f=0}}else if(u==3){if(f+=S,c===""||s===a-1){for(c===""&&(f-=S);d<=s;)n[d].an=f,n[d].ind=l,n[d].extra=S,d+=1;f=0,l+=1}}else n[l].ind=l,n[l].extra=0,l+=1;if(e.l=n,g=C>g?C:g,b.push(C),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=b;var L=i.a,V,P;m=L.length;var A,k,j=[];for(E=0;E<m;E+=1){for(V=L[E],V.a.sc&&(e.strokeColorAnim=!0),V.a.sw&&(e.strokeWidthAnim=!0),(V.a.fc||V.a.fh||V.a.fs||V.a.fb)&&(e.fillColorAnim=!0),k=0,A=V.s.b,s=0;s<a;s+=1)P=n[s],P.anIndexes[E]=k,(A==1&&P.val!==""||A==2&&P.val!==""&&P.val!==" "||A==3&&(P.n||P.val==" "||s==a-1)||A==4&&(P.n||s==a-1))&&(V.s.rn===1&&j.push(k),k+=1);i.a[E].s.totalChars=k;var W=-1,q;if(V.s.rn===1)for(s=0;s<a;s+=1)P=n[s],W!=P.anIndexes[E]&&(W=P.anIndexes[E],q=j.splice(Math.floor(Math.random()*j.length),1)[0]),P.anIndexes[E]=q}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=x.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,i=Math.floor;function n(a,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(a,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,f=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:f=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(l,c,u,f).get,p=0,b=this.finalS,C=this.finalE,g=this.data.sh;if(g===2)C===b?p=o>=C?1:0:p=e(0,t(.5/(C-b)+(o-b)/(C-b),1)),p=d(p);else if(g===3)C===b?p=o>=C?0:1:p=1-e(0,t(.5/(C-b)+(o-b)/(C-b),1)),p=d(p);else if(g===4)C===b?p=0:(p=e(0,t(.5/(C-b)+(o-b)/(C-b),1)),p<.5?p*=2:p=1-2*(p-.5)),p=d(p);else if(g===5){if(C===b)p=0;else{var E=C-b;o=t(e(0,o+.5-b),C-b);var m=-E/2+o,x=E/2;p=Math.sqrt(1-m*m/(x*x))}p=d(p)}else g===6?(C===b?p=0:(o=t(e(0,o+.5-b),C-b),p=(1+Math.cos(Math.PI+Math.PI*2*o/(C-b)))/2),p=d(p)):(o>=i(b)&&(o-b<0?p=e(0,t(t(C,1)-(b-o),1)):p=e(0,t(C-o,1))),p=d(p));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var S=.5-y*.5;p<S?p=0:(p=(p-S)/y,p>1&&(p=1))}return p*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,f=this.e.v/l+c;if(u>f){var d=u;u=f,f=d}this.finalS=u,this.finalE=f}},extendPrototype([DynamicPropertyContainer],n);function s(a,o,l){return new n(a,o)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,i){var n={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,i):n,rx:a.rx?s(e,a.rx,0,degToRads,i):n,ry:a.ry?s(e,a.ry,0,degToRads,i):n,sk:a.sk?s(e,a.sk,0,degToRads,i):n,sa:a.sa?s(e,a.sa,0,degToRads,i):n,s:a.s?s(e,a.s,1,.01,i):n,a:a.a?s(e,a.a,1,0,i):n,o:a.o?s(e,a.o,0,.01,i):n,p:a.p?s(e,a.p,1,0,i):n,sw:a.sw?s(e,a.sw,0,0,i):n,sc:a.sc?s(e,a.sc,1,0,i):n,fc:a.fc?s(e,a.fc,1,0,i):n,fh:a.fh?s(e,a.fh,0,0,i):n,fs:a.fs?s(e,a.fs,0,.01,i):n,fb:a.fb?s(e,a.fb,0,.01,i):n,t:a.t?s(e,a.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,i,n=PropertyFactory.getProp;for(e=0;e<t;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,s=this._textData,a=this.mHelper,o=this._renderType,l=this.renderedLetters.length,c,u,f,d,p=e.l,b,C,g,E,m,x,y,S,T,R,M,_,I,U,z;if(this._hasMaskedPath){if(z=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=z.v;this._pathData.r.v&&(O=O.reverse()),b={tLength:0,segments:[]},d=O._length-1;var G;for(_=0,f=0;f<d;f+=1)G=bez.buildBezierData(O.v[f],O.v[f+1],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[f+1][0]-O.v[f+1][0],O.i[f+1][1]-O.v[f+1][1]]),b.tLength+=G.segmentLength,b.segments.push(G),_+=G.segmentLength;f=d,z.v.c&&(G=bez.buildBezierData(O.v[f],O.v[0],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),b.tLength+=G.segmentLength,b.segments.push(G),_+=G.segmentLength),this._pathData.pi=b}if(b=this._pathData.pi,C=this._pathData.f.v,y=0,x=1,E=0,m=!0,R=b.segments,C<0&&z.v.c)for(b.tLength<Math.abs(C)&&(C=-Math.abs(C)%b.tLength),y=R.length-1,T=R[y].points,x=T.length-1;C<0;)C+=T[x].partialLength,x-=1,x<0&&(y-=1,T=R[y].points,x=T.length-1);T=R[y].points,S=T[x-1],g=T[x],M=g.partialLength}d=p.length,c=0,u=0;var K=e.finalSize*1.2*.714,H=!0,L,V,P,A,k;A=n.length;var j,W=-1,q,X,ee,re=C,ce=y,ue=x,me=-1,pe,se,fe,ie,Y,Te,Me,be,Ce="",Pe=this.defaultPropsArray,ve;if(e.j===2||e.j===1){var ye=0,xe=0,we=e.j===2?-.5:-1,Se=0,Ae=!0;for(f=0;f<d;f+=1)if(p[f].n){for(ye&&(ye+=xe);Se<f;)p[Se].animatorJustifyOffset=ye,Se+=1;ye=0,Ae=!0}else{for(P=0;P<A;P+=1)L=n[P].a,L.t.propType&&(Ae&&e.j===2&&(xe+=L.t.v*we),V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),j.length?ye+=L.t.v*j[0]*we:ye+=L.t.v*j*we);Ae=!1}for(ye&&(ye+=xe);Se<f;)p[Se].animatorJustifyOffset=ye,Se+=1}for(f=0;f<d;f+=1){if(a.reset(),pe=1,p[f].n)c=0,u+=e.yOffset,u+=H?1:0,C=re,H=!1,this._hasMaskedPath&&(y=ce,x=ue,T=R[y].points,S=T[x-1],g=T[x],M=g.partialLength,E=0),Ce="",be="",Te="",ve="",Pe=this.defaultPropsArray;else{if(this._hasMaskedPath){if(me!==p[f].line){switch(e.j){case 1:C+=_-e.lineWidths[p[f].line];break;case 2:C+=(_-e.lineWidths[p[f].line])/2;break}me=p[f].line}W!==p[f].ind&&(p[W]&&(C+=p[W].extra),C+=p[f].an/2,W=p[f].ind),C+=i[0]*p[f].an*.005;var Ee=0;for(P=0;P<A;P+=1)L=n[P].a,L.p.propType&&(V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),j.length?Ee+=L.p.v[0]*j[0]:Ee+=L.p.v[0]*j),L.a.propType&&(V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),j.length?Ee+=L.a.v[0]*j[0]:Ee+=L.a.v[0]*j);for(m=!0,this._pathData.a.v&&(C=p[0].an*.5+(_-this._pathData.f.v-p[0].an*.5-p[p.length-1].an*.5)*W/(d-1),C+=this._pathData.f.v);m;)E+M>=C+Ee||!T?(I=(C+Ee-E)/g.partialLength,X=S.point[0]+(g.point[0]-S.point[0])*I,ee=S.point[1]+(g.point[1]-S.point[1])*I,a.translate(-i[0]*p[f].an*.005,-(i[1]*K)*.01),m=!1):T&&(E+=g.partialLength,x+=1,x>=T.length&&(x=0,y+=1,R[y]?T=R[y].points:z.v.c?(x=0,y=0,T=R[y].points):(E-=g.partialLength,T=null)),T&&(S=g,g=T[x],M=g.partialLength));q=p[f].an/2-p[f].add,a.translate(-q,0,0)}else q=p[f].an/2-p[f].add,a.translate(-q,0,0),a.translate(-i[0]*p[f].an*.005,-i[1]*K*.01,0);for(P=0;P<A;P+=1)L=n[P].a,L.t.propType&&(V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?j.length?C+=L.t.v*j[0]:C+=L.t.v*j:j.length?c+=L.t.v*j[0]:c+=L.t.v*j));for(e.strokeWidthAnim&&(fe=e.sw||0),e.strokeColorAnim&&(e.sc?se=[e.sc[0],e.sc[1],e.sc[2]]:se=[0,0,0]),e.fillColorAnim&&e.fc&&(ie=[e.fc[0],e.fc[1],e.fc[2]]),P=0;P<A;P+=1)L=n[P].a,L.a.propType&&(V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),j.length?a.translate(-L.a.v[0]*j[0],-L.a.v[1]*j[1],L.a.v[2]*j[2]):a.translate(-L.a.v[0]*j,-L.a.v[1]*j,L.a.v[2]*j));for(P=0;P<A;P+=1)L=n[P].a,L.s.propType&&(V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),j.length?a.scale(1+(L.s.v[0]-1)*j[0],1+(L.s.v[1]-1)*j[1],1):a.scale(1+(L.s.v[0]-1)*j,1+(L.s.v[1]-1)*j,1));for(P=0;P<A;P+=1){if(L=n[P].a,V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),L.sk.propType&&(j.length?a.skewFromAxis(-L.sk.v*j[0],L.sa.v*j[1]):a.skewFromAxis(-L.sk.v*j,L.sa.v*j)),L.r.propType&&(j.length?a.rotateZ(-L.r.v*j[2]):a.rotateZ(-L.r.v*j)),L.ry.propType&&(j.length?a.rotateY(L.ry.v*j[1]):a.rotateY(L.ry.v*j)),L.rx.propType&&(j.length?a.rotateX(L.rx.v*j[0]):a.rotateX(L.rx.v*j)),L.o.propType&&(j.length?pe+=(L.o.v*j[0]-pe)*j[0]:pe+=(L.o.v*j-pe)*j),e.strokeWidthAnim&&L.sw.propType&&(j.length?fe+=L.sw.v*j[0]:fe+=L.sw.v*j),e.strokeColorAnim&&L.sc.propType)for(Y=0;Y<3;Y+=1)j.length?se[Y]+=(L.sc.v[Y]-se[Y])*j[0]:se[Y]+=(L.sc.v[Y]-se[Y])*j;if(e.fillColorAnim&&e.fc){if(L.fc.propType)for(Y=0;Y<3;Y+=1)j.length?ie[Y]+=(L.fc.v[Y]-ie[Y])*j[0]:ie[Y]+=(L.fc.v[Y]-ie[Y])*j;L.fh.propType&&(j.length?ie=addHueToRGB(ie,L.fh.v*j[0]):ie=addHueToRGB(ie,L.fh.v*j)),L.fs.propType&&(j.length?ie=addSaturationToRGB(ie,L.fs.v*j[0]):ie=addSaturationToRGB(ie,L.fs.v*j)),L.fb.propType&&(j.length?ie=addBrightnessToRGB(ie,L.fb.v*j[0]):ie=addBrightnessToRGB(ie,L.fb.v*j))}}for(P=0;P<A;P+=1)L=n[P].a,L.p.propType&&(V=n[P].s,j=V.getMult(p[f].anIndexes[P],s.a[P].s.totalChars),this._hasMaskedPath?j.length?a.translate(0,L.p.v[1]*j[0],-L.p.v[2]*j[1]):a.translate(0,L.p.v[1]*j,-L.p.v[2]*j):j.length?a.translate(L.p.v[0]*j[0],L.p.v[1]*j[1],-L.p.v[2]*j[2]):a.translate(L.p.v[0]*j,L.p.v[1]*j,-L.p.v[2]*j));if(e.strokeWidthAnim&&(Te=fe<0?0:fe),e.strokeColorAnim&&(Me="rgb("+Math.round(se[0]*255)+","+Math.round(se[1]*255)+","+Math.round(se[2]*255)+")"),e.fillColorAnim&&e.fc&&(be="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,i[1]*K*.01+u,0),this._pathData.p.v){U=(g.point[1]-S.point[1])/(g.point[0]-S.point[0]);var Re=Math.atan(U)*180/Math.PI;g.point[0]<S.point[0]&&(Re+=180),a.rotate(-Re*Math.PI/180)}a.translate(X,ee,0),C-=i[0]*p[f].an*.005,p[f+1]&&W!==p[f+1].ind&&(C+=p[f].an/2,C+=e.tr*.001*e.finalSize)}else{switch(a.translate(c,u,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(p[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[f].line]),0,0);break;case 2:a.translate(p[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[f].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(q,0,0),a.translate(i[0]*p[f].an*.005,i[1]*K*.01,0),c+=p[f].l+e.tr*.001*e.finalSize}o==="html"?Ce=a.toCSS():o==="svg"?Ce=a.to2dCSS():Pe=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ve=pe}l<=f?(k=new LetterProps(ve,Te,Me,be,Ce,Pe),this.renderedLetters.push(k),l+=1,this.lettersChangedFlag=!0):(k=this.renderedLetters[f],this.lettersChangedFlag=k.update(ve,Te,Me,be,Ce,Pe)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var i,n=t.length,s,a="";for(i=0;i<n;i+=1)t[i].ty==="sh"&&(s=t[i].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,n,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}t.translate(n,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,i=e.length,n=[],s="";t<i;)e[t]==="\r"||e[t]===""?(n.push(s),s=""):s+=e[t],t+=1;return n.push(s),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var s=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",i.t);var o=i.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c,u=this.mHelper,f="",d=this.data.singleShape,p=0,b=0,C=!0,g=i.tr*.001*i.finalSize;if(d&&!l&&!i.sz){var E=this.textContainer,m="start";switch(i.j){case 1:m="end";break;case 2:m="middle";break;default:m="start";break}E.setAttribute("text-anchor",m),E.setAttribute("letter-spacing",g);var x=this.buildTextContents(i.finalText);for(t=x.length,b=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=x[e],c.setAttribute("x",0),c.setAttribute("y",b),c.style.display="inherit",E.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,b+=i.finalLineHeight;this.layerElement.appendChild(E)}else{var y=this.textSpans.length,S;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||e===0){if(c=y>e?this.textSpans[e].span:createNS(l?"g":"text"),y<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var T=createNS("g");c.appendChild(T),this.textSpans[e].childSpan=T}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),d&&(o[e].n&&(p=-g,b+=i.yOffset,b+=C?1:0,C=!1),this.applyTextPropertiesToMatrix(i,u,o[e].line,p,b),p+=o[e].l||0,p+=g),l){S=this.globalData.fontManager.getCharData(i.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var R;if(S.t===1)R=new SVGCompElement(S.data,this.globalData,this);else{var M=emptyShapeData;S.data&&S.data.shapes&&(M=this.buildShapeData(S.data,i.finalSize)),R=new SVGShapeElement(M,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=R,R._debug=!0,R.prepareFrame(0),R.renderFrame(),this.textSpans[e].childSpan.appendChild(R.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=o[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&c&&c.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,a,o;for(e=0;e<t;e+=1)n[e].n||(s=i[e],a=this.textSpans[e].span,o=this.textSpans[e].glyph,o&&o.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var s=createElementID();i.setAttribute("id",s),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,i=this.layers.length;for(t=0;t<i;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(i);else{var s=t[n],a=s.getMatte(this.layers[e].tt);i.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[n],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var n=0,s;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(t&&t.title){var n=createNS("title"),s=createElementID();n.setAttribute("id",s),n.textContent=t.title,this.svgElement.appendChild(n),i+=s}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var i,n=t.length,s="_";for(i=0;i<n;i+=1)s+=t[i].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,i){for(var n=0,s=t.transforms.length,a=i;n<s&&!i;){if(t.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(t.finalTransform.reset(),n=s-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=a},processSequences:function(t){var i,n=this.sequenceList.length;for(i=0;i<n;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",i=null,n=null,s=null;function a(){var c=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix");return u.setAttribute("id",t),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(f),c.appendChild(u),c.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function o(){i||(s=a(),document.body.appendChild(s),i=createTag("canvas"),n=i.getContext("2d"),n.filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function l(c){return i||o(),i.width=c.width,i.height=c.height,n.filter="url(#"+t+")",i}return{load:o,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,i=e.data.ef?e.data.ef.length:0;this.filters=[];var n;for(t=0;t<i;t+=1){n=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;n=new a(e.effectsManager.effectElements[t],e)}n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,n=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,n=this.masksProperties.length,s=!1;for(i=0;i<n;i+=1)this.masksProperties[i].mode!=="n"&&(s=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,i,n=this.masksProperties.length,s,a,o;for(t.beginPath(),i=0;i<n;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),o=this.viewData[i].v,s=e.applyToPointArray(o.v[0][0],o.v[0][1],0),t.moveTo(s[0],s[1]);var l,c=o._length;for(l=1;l<c;l+=1)a=e.applyToTriplePoints(o.o[l-1],o.i[l],o.v[l]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(o.o[l-1],o.i[0],o.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i);var n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=i}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,o=i.length,l;for(a=0;a<o;a+=1)i[a].closed||(l={transforms:n.addTransformSequence(i[a].transforms),trNodes:[]},this.styledShapes.push(l),i[a].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},n={};if(e.ty==="fl"||e.ty==="st"?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(i.wi=n.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);n.d=s,n.d.k||(i.da=n.d.dashArray,i.do=n.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),n.style=i,n},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,n,s){var a,o=e.length-1,l,c,u=[],f=[],d,p,b,C=[].concat(s);for(a=o;a>=0;a-=1){if(d=this.searchProcessedElement(e[a]),d?t[a]=i[d-1]:e[a]._shouldRender=n,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")d?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],C),u.push(t[a].style);else if(e[a].ty==="gr"){if(!d)t[a]=this.createGroupElement(e[a]);else for(c=t[a].it.length,l=0;l<c;l+=1)t[a].prevViewData[l]=t[a].it[l];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,C)}else e[a].ty==="tr"?(d||(b=this.createTransformElement(e[a]),t[a]=b),C.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?d||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(d?(p=t[a],p.closed=!1):(p=ShapeModifiers.getModifier(e[a].ty),p.init(this,e[a]),t[a]=p,this.shapeModifiers.push(p)),f.push(p)):e[a].ty==="rp"&&(d?(p=t[a],p.closed=!0):(p=ShapeModifiers.getModifier(e[a].ty),t[a]=p,p.init(this,e,a,t),this.shapeModifiers.push(p),n=!1),f.push(p));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),o=f.length,a=0;a<o;a+=1)f[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,i,n,s,a,o,l,c=this.globalData.renderer,u=this.globalData.canvasContext,f,d;for(e=0;e<t;e+=1)if(d=this.stylesList[e],f=d.type,!((f==="st"||f==="gs")&&d.wi===0||!d.data._shouldRender||d.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),o=d.elements,f==="st"||f==="gs"?(c.ctxStrokeStyle(f==="st"?d.co:d.grd),c.ctxLineWidth(d.wi),c.ctxLineCap(d.lc),c.ctxLineJoin(d.lj),c.ctxMiterLimit(d.ml||0)):c.ctxFillStyle(f==="fl"?d.co:d.grd),c.ctxOpacity(d.coOp),f!=="st"&&f!=="gs"&&u.beginPath(),c.ctxTransform(d.preTransforms.finalTransform.props),n=o.length,i=0;i<n;i+=1){for((f==="st"||f==="gs")&&(u.beginPath(),d.da&&(u.setLineDash(d.da),u.lineDashOffset=d.do)),l=o[i].trNodes,a=l.length,s=0;s<a;s+=1)l[s].t==="m"?u.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?u.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):u.closePath();(f==="st"||f==="gs")&&(c.ctxStroke(),d.da&&u.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(d.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,n){var s,a=t.length-1,o;for(o=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(o=i[s].transform,this.renderShapeTransform(e,o)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],i[s]):t[s].ty==="fl"?this.renderFill(t[s],i[s],o):t[s].ty==="st"?this.renderStroke(t[s],i[s],o):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],i[s],o):t[s].ty==="gr"?this.renderShape(o,t[s].it,i[s].it):t[s].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i=e.trNodes,n=t.paths,s,a,o,l=n._length;i.length=0;var c=e.transforms.finalTransform;for(o=0;o<l;o+=1){var u=n.shapes[o];if(u&&u.v){for(a=u._length,s=1;s<a;s+=1)s===1&&i.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),i.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[s],u.v[s])});a===1&&i.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&a&&(i.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[0],u.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var i,n=t.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var n=t.style,s;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(e.t===1)s=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),u=Math.atan2(l[1]-o[1],l[0]-o[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var d=c*f,p=Math.cos(u+t.a.v)*d+o[0],b=Math.sin(u+t.a.v)*d+o[1];s=a.createRadialGradient(p,b,0,o[0],o[1],c)}var C,g=e.g.p,E=t.g.c,m=1;for(C=0;C<g;C+=1)t.g._hasOpacity&&t.g._collapsable&&(m=t.g.o[C*2+1]),s.addColorStop(E[C*4]/100,"rgba("+E[C*4+1]+","+E[C*4+2]+","+E[C*4+3]+","+m+")");n.grd=s}n.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var n=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(n.da=s.dashArray,n.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n=this.globalData.fontManager.getFontByName(e.f),s,a,o=e.l,l=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var c,u,f,d,p,b,C,g,E,m,x=this.data.singleShape,y=e.tr*.001*e.finalSize,S=0,T=0,R=!0,M=0;for(s=0;s<a;s+=1){c=this.globalData.fontManager.getCharData(e.finalText[s],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),x&&o[s].n&&(S=-y,T+=e.yOffset,T+=R?1:0,R=!1),p=u.shapes?u.shapes[0].it:[],C=p.length,l.scale(e.finalSize/100,e.finalSize/100),x&&this.applyTextPropertiesToMatrix(e,l,o[s].line,S,T),E=createSizedArray(C-1);var _=0;for(b=0;b<C;b+=1)if(p[b].ty==="sh"){for(d=p[b].ks.k.i.length,g=p[b].ks.k,m=[],f=1;f<d;f+=1)f===1&&m.push(l.applyToX(g.v[0][0],g.v[0][1],0),l.applyToY(g.v[0][0],g.v[0][1],0)),m.push(l.applyToX(g.o[f-1][0],g.o[f-1][1],0),l.applyToY(g.o[f-1][0],g.o[f-1][1],0),l.applyToX(g.i[f][0],g.i[f][1],0),l.applyToY(g.i[f][0],g.i[f][1],0),l.applyToX(g.v[f][0],g.v[f][1],0),l.applyToY(g.v[f][0],g.v[f][1],0));m.push(l.applyToX(g.o[f-1][0],g.o[f-1][1],0),l.applyToY(g.o[f-1][0],g.o[f-1][1],0),l.applyToX(g.i[0][0],g.i[0][1],0),l.applyToY(g.i[0][0],g.i[0][1],0),l.applyToX(g.v[0][0],g.v[0][1],0),l.applyToY(g.v[0][0],g.v[0][1],0)),E[_]=m,_+=1}x&&(S+=o[s].l,S+=y),this.textSpans[M]?this.textSpans[M].elem=E:this.textSpans[M]={elem:E},M+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,i,n,s,a,o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;i=c.length;var u,f=null,d=null,p=null,b,C,g=this.globalData.renderer;for(t=0;t<i;t+=1)if(!c[t].n){if(u=l[t],u&&(g.save(),g.ctxTransform(u.p),g.ctxOpacity(u.o)),this.fill){for(u&&u.fc?f!==u.fc&&(g.ctxFillStyle(u.fc),f=u.fc):f!==this.values.fill&&(f=this.values.fill,g.ctxFillStyle(this.values.fill)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(C=b[n],o=C.length,this.globalData.canvasContext.moveTo(C[0],C[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(C[a],C[a+1],C[a+2],C[a+3],C[a+4],C[a+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(u&&u.sw?p!==u.sw&&(p=u.sw,g.ctxLineWidth(u.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),u&&u.sc?d!==u.sc&&(d=u.sc,g.ctxStrokeStyle(u.sc)):d!==this.values.stroke&&(d=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(C=b[n],o=C.length,this.globalData.canvasContext.moveTo(C[0],C[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(C[a],C[a+1],C[a+2],C[a+3],C[a+4],C[a+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,a=this.assetData.w/this.assetData.h,o,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&c==="xMidYMid slice"||s<a&&c!=="xMidYMid slice"?(l=n,o=l*a):(o=i,l=o/a),t.drawImage(this.img,(i-o)/2,(n-l)/2,o,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,i,n){this.canvasContext.fillRect(e,t,i,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var i,n;e?(i=e,n=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),l=o[1]||"meet",c=o[0]||"xMidYMid",u=c.substr(0,4),f=c.substr(4);s=i/n,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&l==="meet"||a<s&&l==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],i=t.transform,n,s=this.cTr.props;for(n=0;n<16;n+=1)s[n]=i[n];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],n;for(n=0;n<16;n+=1)i.transform[n]=t[n];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=i.opacity,s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,s.lineWidth=i.lineWidth,s.lineCap=i.lineCap,s.lineJoin=i.lineJoin,s.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,i,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,i=this.layers.length;for(t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();t.transform=i,t.webkitTransform=i}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i=e.sh.v,n=e.transformers,s,a=i._length,o,l,c,u;if(!(a<=1)){for(s=0;s<a-1;s+=1)o=this.getTransformedPoint(n,i.v[s]),l=this.getTransformedPoint(n,i.o[s]),c=this.getTransformedPoint(n,i.i[s+1]),u=this.getTransformedPoint(n,i.v[s+1]),this.checkBounds(o,l,c,u,t);i.c&&(o=this.getTransformedPoint(n,i.v[s]),l=this.getTransformedPoint(n,i.o[s]),c=this.getTransformedPoint(n,i.i[0]),u=this.getTransformedPoint(n,i.v[0]),this.checkBounds(o,l,c,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,n,s){this.getBoundsOfCurve(e,t,i,n);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,i,n){for(var s=[[e[0],n[0]],[e[1],n[1]]],a,o,l,c,u,f,d,p=0;p<2;++p)o=6*e[p]-12*t[p]+6*i[p],a=-3*e[p]+9*t[p]-9*i[p]+3*n[p],l=3*t[p]-3*e[p],o|=0,a|=0,l|=0,a===0&&o===0||(a===0?(c=-l/o,c>0&&c<1&&s[p].push(this.calculateF(c,e,t,i,n,p))):(u=o*o-4*l*a,u>=0&&(f=(-o+bmSqrt(u))/(2*a),f>0&&f<1&&s[p].push(this.calculateF(f,e,t,i,n,p)),d=(-o-bmSqrt(u))/(2*a),d>0&&d<1&&s[p].push(this.calculateF(d,e,t,i,n,p)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,i,n,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*i[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var s=e.keyframes[n].s;s>i&&(i=s)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=s,n.webkitTransform=s}}};function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var o,l,c=e.l;l=c.length;var u,f,d,p=this.mHelper,b,C="",g=0;for(o=0;o<l;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?u=this.textPaths[g]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(f=this.textSpans[g],d=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,d=createNS("svg"),d.appendChild(u),styleDiv(f)))):this.isMasked?u=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(f=this.textSpans[g],u=this.textPaths[g]):(f=createTag("span"),styleDiv(f),u=createTag("span"),styleDiv(u),f.appendChild(u)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[o],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),m;if(E?m=E.data:m=null,p.reset(),m&&m.shapes&&m.shapes.length&&(b=m.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),C=this.createPathShape(p,b),u.setAttribute("d",C)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(f),m&&m.shapes){document.body.appendChild(d);var x=d.getBBox();d.setAttribute("width",x.width+2),d.setAttribute("height",x.height+2),d.setAttribute("viewBox",x.x-1+" "+(x.y-1)+" "+(x.width+2)+" "+(x.height+2));var y=d.style,S="translate("+(x.x-1)+"px,"+(x.y-1)+"px)";y.transform=S,y.webkitTransform=S,c[o].yOffset=x.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);f.appendChild(d)}}else if(u.textContent=c[o].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(f);var T=u.style,R="translate3d(0,"+-e.finalSize/1.2+"px,0)";T.transform=R,T.webkitTransform=R}this.isMasked?this.textSpans[g]=u:this.textSpans[g]=f,this.textSpans[g].style.display="block",this.textPaths[g]=u,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,n,s=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;n=o.length;var l,c,u;for(i=0;i<n;i+=1)o[i].n?s+=1:(c=this.textSpans[i],u=this.textPaths[i],l=a[s],s+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var d=1;if(this.currentBBox.w!==f.width+d*2||this.currentBBox.h!==f.height+d*2||this.currentBBox.x!==f.x-d||this.currentBBox.y!==f.y-d){this.currentBBox.w=f.width+d*2,this.currentBBox.h=f.height+d*2,this.currentBBox.x=f.x-d,this.currentBBox.y=f.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}};function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,i,n,s;for(e=0;e<t;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){n=i.perspectiveElem.style,s=i.container.style;var a=this.pe.v+"px",o="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,s.transformOrigin=o,s.mozTransformOrigin=o,s.webkitTransformOrigin=o,n.transform=l,n.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,i;if(this.hierarchy)for(i=this.hierarchy.length,t=0;t<i;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=this.hierarchy.length-1,t=i;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],l=Math.sqrt(o[2]*o[2]+o[0]*o[0]),c=Math.atan2(o[1],l),u=Math.atan2(o[0],-o[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var d,p,b;for(t=0;t<i;t+=1)if(d=this.comp.threeDElements[t],d.type==="3d"){if(f){var C=this.mat.toCSS();b=d.container.style,b.transform=C,b.webkitTransform=C}this.pe._mdf&&(p=d.perspectiveElem.style,p.perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){var n=this.layers[t];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var s=0,a,o,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(o=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement(),a=l||a),s+=1;a?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,a):(!n.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,i=this.threeDElements.length;t<i;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var i=createTag("div"),n,s;styleDiv(i);var a=createTag("div");if(styleDiv(a),t==="3d"){n=i.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o,s=a.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}i.appendChild(a);var c={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,i,n="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(n!=="3d"&&(n="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(n!=="2d"&&(n="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,n=this.threeDElements.length;i<n;){if(t<=this.threeDElements[i].endPos){for(var s=this.threeDElements[i].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[i].container.insertBefore(e,a):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),n.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,i=e/t,n=this.globalData.compSize.w/this.globalData.compSize.h,s,a,o,l;n>i?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,o=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,o=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+l+",0,1)",c.transform=c.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,i,n=this.threeDElements.length;for(i=0;i<n;i+=1){var s=this.threeDElements[i].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,n=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var s=this.createComp(e[t],n,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var i=0,n;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(i){for(var n=0,s=e.layers.length;n<s;){if(e.layers[n].nm===i||e.layers[n].ind===i)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(i){return typeof i}:_typeof$2=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(e)}function seedRandom(e,t){var i=this,n=256,s=6,a=52,o="random",l=t.pow(n,s),c=t.pow(2,a),u=c*2,f=n-1,d;function p(y,S,T){var R=[];S=S===!0?{entropy:!0}:S||{};var M=E(g(S.entropy?[y,x(e)]:y===null?m():y,3),R),_=new b(R),I=function(){for(var z=_.g(s),O=l,G=0;z<c;)z=(z+G)*n,O*=n,G=_.g(1);for(;z>=u;)z/=2,O/=2,G>>>=1;return(z+G)/O};return I.int32=function(){return _.g(4)|0},I.quick=function(){return _.g(4)/4294967296},I.double=I,E(x(_.S),e),(S.pass||T||function(U,z,O,G){return G&&(G.S&&C(G,_),U.state=function(){return C(_,{})}),O?(t[o]=U,z):U})(I,M,"global"in S?S.global:this==t,S.state)}t["seed"+o]=p;function b(y){var S,T=y.length,R=this,M=0,_=R.i=R.j=0,I=R.S=[];for(T||(y=[T++]);M<n;)I[M]=M++;for(M=0;M<n;M++)I[M]=I[_=f&_+y[M%T]+(S=I[M])],I[_]=S;R.g=function(U){for(var z,O=0,G=R.i,K=R.j,H=R.S;U--;)z=H[G=f&G+1],O=O*n+H[f&(H[G]=H[K=f&K+z])+(H[K]=z)];return R.i=G,R.j=K,O}}function C(y,S){return S.i=y.i,S.j=y.j,S.S=y.S.slice(),S}function g(y,S){var T=[],R=_typeof$2(y),M;if(S&&R=="object")for(M in y)try{T.push(g(y[M],S-1))}catch{}return T.length?T:R=="string"?y:y+"\0"}function E(y,S){for(var T=y+"",R,M=0;M<T.length;)S[f&M]=f&(R^=S[f&M]*19)+T.charCodeAt(M++);return x(S)}function m(){try{var y=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(y),x(y)}catch{var S=i.navigator,T=S&&S.plugins;return[+new Date,i,T,i.screen,x(e)]}}function x(y){return String.fromCharCode.apply(0,y)}E(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(i){return typeof i}:_typeof$1=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,n=e.length,s=[];for(i=0;i<n;i+=1)s[i]=-e[i];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var i=_typeof$1(e),n=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(n,t)||i==="string"||n==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),n=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(n,t))return i==="string"&&(e=parseInt(e,10)),n==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var i=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(n,t))return e*t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]*t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var i=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(n,t))return e/t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]/t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,i){if(t>i){var n=i;i=t,t=n}return Math.min(Math.max(e,t),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var i,n=Math.min(e.length,t.length),s=0;for(i=0;i<n;i+=1)s+=Math.pow(t[i]-e[i],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],i=e[1],n=e[2],s=Math.max(t,i,n),a=Math.min(t,i,n),o,l,c=(s+a)/2;if(s===a)o=0,l=0;else{var u=s-a;switch(l=c>.5?u/(2-s-a):u/(s+a),s){case t:o=(i-n)/u+(i<n?6:0);break;case i:o=(n-t)/u+2;break;case n:o=(t-i)/u+4;break}o/=6}return[o,l,c,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t=e[0],i=e[1],n=e[2],s,a,o;if(i===0)s=n,o=n,a=n;else{var l=n<.5?n*(1+i):n+i-n*i,c=2*n-l;s=hue2rgb(c,l,t+1/3),a=hue2rgb(c,l,t),o=hue2rgb(c,l,t-1/3)}return[s,a,o,e[3]]}function linear(e,t,i,n,s){if((n===void 0||s===void 0)&&(n=t,s=i,t=0,i=1),i<t){var a=i;i=t,t=a}if(e<=t)return n;if(e>=i)return s;var o=i===t?0:(e-t)/(i-t);if(!n.length)return n+(s-n)*o;var l,c=n.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=n[l]+(s[l]-n[l])*o;return u}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var i,n=t.length;e||(e=createTypedArray("float32",n));var s=createTypedArray("float32",n),a=BMMath.random();for(i=0;i<n;i+=1)s[i]=e[i]+a*(t[i]-e[i]);return s}e===void 0&&(e=0);var o=BMMath.random();return e+o*(t-e)}function createPath(e,t,i,n){var s,a=e.length,o=shapePool.newElement();o.setPathData(!!n,a);var l=[0,0],c,u;for(s=0;s<a;s+=1)c=t&&t[s]?t[s]:l,u=i&&i[s]?i[s]:l,o.setTripleAt(e[s][0],e[s][1],u[0]+e[s][0],u[1]+e[s][1],c[0]+e[s][0],c[1]+e[s][1],s,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,i){var n,s,a=this.pv.length?this.pv.length:1,o=createTypedArray("float32",a);t=5;var l=Math.floor(time*t);for(n=0,s=0;n<l;){for(s=0;s<a;s+=1)o[s]+=-i+i*2*BMMath.random();n+=1}var c=time*t,u=c-Math.floor(c),f=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)f[s]=this.pv[s]+o[s]+(-i+i*2*BMMath.random())*u;return f}return this.pv+o[0]+(-i+i*2*BMMath.random())*u}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,s=-Math.atan2(i[1],i[2])/degToRads;return[s,n,0]}function easeOut(e,t,i,n,s){return applyEase(easeOutBez,e,t,i,n,s)}function easeIn(e,t,i,n,s){return applyEase(easeInBez,e,t,i,n,s)}function ease(e,t,i,n,s){return applyEase(easeInOutBez,e,t,i,n,s)}function applyEase(e,t,i,n,s,a){s===void 0?(s=i,a=n):t=(t-i)/(n-i),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(s)){var l,c=s.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(a[l]-s[l])*o+s[l];return u}return(a-s)*o+s}function nearestKey(e){var t,i=data.k.length,n,s;if(!data.k.length||typeof data.k[0]=="number")n=0,s=0;else if(n=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)n=1,s=data.k[0].t;else{for(t=0;t<i-1;t+=1)if(e===data.k[t].t){n=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,s=data.k[t+1].t):(n=t+1,s=data.k[t].t);break}n===-1&&(n=t+1,s=data.k[t].t)}var a={};return a.index=n,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,i,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=s.length,i=0;i<n;i+=1)t[i]=s[i],t.value[i]=s[i];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(i){var n=0,s=[];function a(){n+=1}function o(){n-=1,n===0&&c()}function l(u){s.indexOf(u)===-1&&s.push(u)}function c(){var u,f=s.length;for(u=0;u<f;u+=1)s[u].release();s.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=a,i.renderer.globalData.popExpression=o,i.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(i,n){this._mask=i,this._data=n}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(n){var s=createSizedArray(n.viewData.length),a,o=n.viewData.length;for(a=0;a<o;a+=1)s[a]=new e(n.viewData[a],n.masksProperties[a]);var l=function(u){for(a=0;a<o;){if(n.masksProperties[a].nm===u)return s[a];a+=1}return null};return l};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function i(o,l,c){Object.defineProperty(o,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),o.numKeys=l.keyframes?l.keyframes.length:0,o.key=function(u){if(!o.numKeys)return 0;var f="";"s"in l.keyframes[u-1]?f=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?f=l.keyframes[u-2].e:f=l.keyframes[u-2].s;var d=c==="unidimensional"?new Number(f):Object.assign({},f);return d.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,d.value=c==="unidimensional"?f[0]:f,d},o.valueAtTime=l.getValueAtTime,o.speedAtTime=l.getSpeedAtTime,o.velocityAtTime=l.getVelocityAtTime,o.propertyGroup=l.propertyGroup}function n(o){(!o||!("pv"in o))&&(o=e);var l=1/o.mult,c=o.pv*l,u=new Number(c);return u.value=c,i(u,o,"unidimensional"),function(){return o.k&&o.getValue(),c=o.v*l,u.value!==c&&(u=new Number(c),u.value=c,i(u,o,"unidimensional")),u}}function s(o){(!o||!("pv"in o))&&(o=t);var l=1/o.mult,c=o.data&&o.data.l||o.pv.length,u=createTypedArray("float32",c),f=createTypedArray("float32",c);return u.value=f,i(u,o,"multidimensional"),function(){o.k&&o.getValue();for(var d=0;d<c;d+=1)f[d]=o.v[d]*l,u[d]=f[d];return u}}function a(){return e}return function(o){return o?o.propType==="unidimensional"?n(o):s(o):a}}(),TransformExpressionInterface=function(){return function(e){function t(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var i,n,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[i(),n(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(u){var f=new Matrix;if(u!==void 0){var d=this._elem.finalTransform.mProp.getValueAtTime(u);d.clone(f)}else{var p=this._elem.finalTransform.mProp;p.applyToMatrix(f)}return f}function t(u,f){var d=this.getMatrix(f);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.applyPoint(d,u)}function i(u,f){var d=this.getMatrix(f);return this.applyPoint(d,u)}function n(u,f){var d=this.getMatrix(f);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.invertPoint(d,u)}function s(u,f){var d=this.getMatrix(f);return this.invertPoint(d,u)}function a(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(f[0],f[1],f[2]||0)}function o(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(f)}function l(u){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(u)}return f.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var f;function d(g){b.mask=new MaskManagerInterface(g,u)}function p(g){b.effect=g}function b(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return b.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return b.effect;case"ADBE Text Properties":return b.textInterface;default:return null}}b.getMatrix=e,b.invertPoint=o,b.applyPoint=a,b.toWorld=i,b.toWorldVec=t,b.fromWorld=s,b.fromWorldVec=n,b.toComp=i,b.fromComp=l,b.sampleImage=c,b.sourceRectAtTime=u.sourceRectAtTime.bind(u),b._elem=u,f=TransformExpressionInterface(u.finalTransform.mProp);var C=getDescriptor(f,"anchorPoint");return Object.defineProperties(b,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:C,anchor_point:C,transform:{get:function(){return f}},active:{get:function(){return u.isInRange}}}),b.startTime=u.data.st,b.index=u.data.ind,b.source=u.data.refId,b.height=u.data.ty===0?u.data.h:100,b.width=u.data.ty===0?u.data.w:100,b.inPoint=u.data.ip/u.comp.globalData.frameRate,b.outPoint=u.data.op/u.comp.globalData.frameRate,b._name=u.data.nm,b.registerMaskInterface=d,b.registerEffectsInterface=p,b}}(),propertyGroupFactory=function(){return function(e,t){return function(i){return i=i===void 0?1:i,i<=0?e:t(i-1)}}}(),PropertyInterface=function(){return function(e,t){var i={_name:e};function n(s){return s=s===void 0?1:s,s<=0?i:t(s-1)}return n}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var o=[],l=s.data.ef,c,u=s.effectsManager.effectElements.length;for(c=0;c<u;c+=1)o.push(i(l[c],s.effectsManager.effectElements[c],a,s));var f=s.data.ef||[],d=function(b){for(c=0,u=f.length;c<u;){if(b===f[c].nm||b===f[c].mn||b===f[c].ix)return o[c];c+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return f.length}}),d}return null}function i(s,a,o,l){function c(b){for(var C=s.ef,g=0,E=C.length;g<E;){if(b===C[g].nm||b===C[g].mn||b===C[g].ix)return C[g].ty===5?f[g]:f[g]();g+=1}throw new Error}var u=propertyGroupFactory(c,o),f=[],d,p=s.ef.length;for(d=0;d<p;d+=1)s.ef[d].ty===5?f.push(i(s.ef[d],a.effectElements[d],a.effectElements[d].propertyGroup,l)):f.push(n(a.effectElements[d],s.ef[d].ty,l,u));return s.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return f[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:u}}),c.enabled=s.en!==0,c.active=c.enabled,c}function n(s,a,o,l){var c=ExpressionPropertyInterface(s.p);function u(){return a===10?o.comp.compInterface(s.p.v):c()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(t,i,n){var s=i.sh;function a(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?a.path:null}var o=propertyGroupFactory(a,n);return s.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),a}}(),ShapeExpressionInterface=function(){function e(C,g,E){var m=[],x,y=C?C.length:0;for(x=0;x<y;x+=1)C[x].ty==="gr"?m.push(i(C[x],g[x],E)):C[x].ty==="fl"?m.push(n(C[x],g[x],E)):C[x].ty==="st"?m.push(o(C[x],g[x],E)):C[x].ty==="tm"?m.push(l(C[x],g[x],E)):C[x].ty==="tr"||(C[x].ty==="el"?m.push(u(C[x],g[x],E)):C[x].ty==="sr"?m.push(f(C[x],g[x],E)):C[x].ty==="sh"?m.push(ShapePathInterface(C[x],g[x],E)):C[x].ty==="rc"?m.push(d(C[x],g[x],E)):C[x].ty==="rd"?m.push(p(C[x],g[x],E)):C[x].ty==="rp"?m.push(b(C[x],g[x],E)):C[x].ty==="gf"?m.push(s(C[x],g[x],E)):m.push(a(C[x],g[x])));return m}function t(C,g,E){var m,x=function(T){for(var R=0,M=m.length;R<M;){if(m[R]._name===T||m[R].mn===T||m[R].propertyIndex===T||m[R].ix===T||m[R].ind===T)return m[R];R+=1}return typeof T=="number"?m[T-1]:null};x.propertyGroup=propertyGroupFactory(x,E),m=e(C.it,g.it,x.propertyGroup),x.numProperties=m.length;var y=c(C.it[C.it.length-1],g.it[g.it.length-1],x.propertyGroup);return x.transform=y,x.propertyIndex=C.cix,x._name=C.nm,x}function i(C,g,E){var m=function(T){switch(T){case"ADBE Vectors Group":case"Contents":case 2:return m.content;default:return m.transform}};m.propertyGroup=propertyGroupFactory(m,E);var x=t(C,g,m.propertyGroup),y=c(C.it[C.it.length-1],g.it[g.it.length-1],m.propertyGroup);return m.content=x,m.transform=y,Object.defineProperty(m,"_name",{get:function(){return C.nm}}),m.numProperties=C.np,m.propertyIndex=C.ix,m.nm=C.nm,m.mn=C.mn,m}function n(C,g,E){function m(x){return x==="Color"||x==="color"?m.color:x==="Opacity"||x==="opacity"?m.opacity:null}return Object.defineProperties(m,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:C.nm},mn:{value:C.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),m}function s(C,g,E){function m(x){return x==="Start Point"||x==="start point"?m.startPoint:x==="End Point"||x==="end point"?m.endPoint:x==="Opacity"||x==="opacity"?m.opacity:null}return Object.defineProperties(m,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:C.nm},mn:{value:C.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),m}function a(){function C(){return null}return C}function o(C,g,E){var m=propertyGroupFactory(M,E),x=propertyGroupFactory(R,m);function y(_){Object.defineProperty(R,C.d[_].nm,{get:ExpressionPropertyInterface(g.d.dataProps[_].p)})}var S,T=C.d?C.d.length:0,R={};for(S=0;S<T;S+=1)y(S),g.d.dataProps[S].p.setGroupProperty(x);function M(_){return _==="Color"||_==="color"?M.color:_==="Opacity"||_==="opacity"?M.opacity:_==="Stroke Width"||_==="stroke width"?M.strokeWidth:null}return Object.defineProperties(M,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return R}},_name:{value:C.nm},mn:{value:C.mn}}),g.c.setGroupProperty(PropertyInterface("Color",m)),g.o.setGroupProperty(PropertyInterface("Opacity",m)),g.w.setGroupProperty(PropertyInterface("Stroke Width",m)),M}function l(C,g,E){function m(y){return y===C.e.ix||y==="End"||y==="end"?m.end:y===C.s.ix?m.start:y===C.o.ix?m.offset:null}var x=propertyGroupFactory(m,E);return m.propertyIndex=C.ix,g.s.setGroupProperty(PropertyInterface("Start",x)),g.e.setGroupProperty(PropertyInterface("End",x)),g.o.setGroupProperty(PropertyInterface("Offset",x)),m.propertyIndex=C.ix,m.propertyGroup=E,Object.defineProperties(m,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:C.nm}}),m.mn=C.mn,m}function c(C,g,E){function m(y){return C.a.ix===y||y==="Anchor Point"?m.anchorPoint:C.o.ix===y||y==="Opacity"?m.opacity:C.p.ix===y||y==="Position"?m.position:C.r.ix===y||y==="Rotation"||y==="ADBE Vector Rotation"?m.rotation:C.s.ix===y||y==="Scale"?m.scale:C.sk&&C.sk.ix===y||y==="Skew"?m.skew:C.sa&&C.sa.ix===y||y==="Skew Axis"?m.skewAxis:null}var x=propertyGroupFactory(m,E);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",x)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",x)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",x)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",x)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",x)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",x)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",x))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",x)),Object.defineProperties(m,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:C.nm}}),m.ty="tr",m.mn=C.mn,m.propertyGroup=E,m}function u(C,g,E){function m(S){return C.p.ix===S?m.position:C.s.ix===S?m.size:null}var x=propertyGroupFactory(m,E);m.propertyIndex=C.ix;var y=g.sh.ty==="tm"?g.sh.prop:g.sh;return y.s.setGroupProperty(PropertyInterface("Size",x)),y.p.setGroupProperty(PropertyInterface("Position",x)),Object.defineProperties(m,{size:{get:ExpressionPropertyInterface(y.s)},position:{get:ExpressionPropertyInterface(y.p)},_name:{value:C.nm}}),m.mn=C.mn,m}function f(C,g,E){function m(S){return C.p.ix===S?m.position:C.r.ix===S?m.rotation:C.pt.ix===S?m.points:C.or.ix===S||S==="ADBE Vector Star Outer Radius"?m.outerRadius:C.os.ix===S?m.outerRoundness:C.ir&&(C.ir.ix===S||S==="ADBE Vector Star Inner Radius")?m.innerRadius:C.is&&C.is.ix===S?m.innerRoundness:null}var x=propertyGroupFactory(m,E),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.propertyIndex=C.ix,y.or.setGroupProperty(PropertyInterface("Outer Radius",x)),y.os.setGroupProperty(PropertyInterface("Outer Roundness",x)),y.pt.setGroupProperty(PropertyInterface("Points",x)),y.p.setGroupProperty(PropertyInterface("Position",x)),y.r.setGroupProperty(PropertyInterface("Rotation",x)),C.ir&&(y.ir.setGroupProperty(PropertyInterface("Inner Radius",x)),y.is.setGroupProperty(PropertyInterface("Inner Roundness",x))),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(y.p)},rotation:{get:ExpressionPropertyInterface(y.r)},points:{get:ExpressionPropertyInterface(y.pt)},outerRadius:{get:ExpressionPropertyInterface(y.or)},outerRoundness:{get:ExpressionPropertyInterface(y.os)},innerRadius:{get:ExpressionPropertyInterface(y.ir)},innerRoundness:{get:ExpressionPropertyInterface(y.is)},_name:{value:C.nm}}),m.mn=C.mn,m}function d(C,g,E){function m(S){return C.p.ix===S?m.position:C.r.ix===S?m.roundness:C.s.ix===S||S==="Size"||S==="ADBE Vector Rect Size"?m.size:null}var x=propertyGroupFactory(m,E),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.propertyIndex=C.ix,y.p.setGroupProperty(PropertyInterface("Position",x)),y.s.setGroupProperty(PropertyInterface("Size",x)),y.r.setGroupProperty(PropertyInterface("Rotation",x)),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(y.p)},roundness:{get:ExpressionPropertyInterface(y.r)},size:{get:ExpressionPropertyInterface(y.s)},_name:{value:C.nm}}),m.mn=C.mn,m}function p(C,g,E){function m(S){return C.r.ix===S||S==="Round Corners 1"?m.radius:null}var x=propertyGroupFactory(m,E),y=g;return m.propertyIndex=C.ix,y.rd.setGroupProperty(PropertyInterface("Radius",x)),Object.defineProperties(m,{radius:{get:ExpressionPropertyInterface(y.rd)},_name:{value:C.nm}}),m.mn=C.mn,m}function b(C,g,E){function m(S){return C.c.ix===S||S==="Copies"?m.copies:C.o.ix===S||S==="Offset"?m.offset:null}var x=propertyGroupFactory(m,E),y=g;return m.propertyIndex=C.ix,y.c.setGroupProperty(PropertyInterface("Copies",x)),y.o.setGroupProperty(PropertyInterface("Offset",x)),Object.defineProperties(m,{copies:{get:ExpressionPropertyInterface(y.c)},offset:{get:ExpressionPropertyInterface(y.o)},_name:{value:C.nm}}),m.mn=C.mn,m}return function(C,g,E){var m;function x(S){if(typeof S=="number")return S=S===void 0?1:S,S===0?E:m[S-1];for(var T=0,R=m.length;T<R;){if(m[T]._name===S)return m[T];T+=1}return null}function y(){return E}return x.propertyGroup=propertyGroupFactory(x,y),m=e(C,g,x.propertyGroup),x.numProperties=m.length,x._name="Contents",x}}(),TextExpressionInterface=function(){return function(e){var t;function i(n){switch(n){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(i){return typeof i}:_typeof=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(e)}var FootageInterface=function(){var e=function(n){var s="",a=n.getFootageData();function o(){return s="",a=n.getFootageData(),l}function l(c){if(a[c])return s=c,a=a[c],_typeof(a)==="object"?l:a;var u=c.indexOf(s);if(u!==-1){var f=parseInt(c.substr(u+s.length),10);return a=a[f],_typeof(a)==="object"?l:a}return""}return o},t=function(n){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(n),s};return function(i){function n(s){return s==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=t(i),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(o,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(o,l,c).bind(c)))}function t(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function i(o){var l=-.01,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),f=0;if(c.length){var d;for(d=0;d<c.length;d+=1)f+=Math.pow(u[d]-c[d],2);f=Math.sqrt(f)*100}else f=0;return f}function n(o){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),f;if(c.length){f=createTypedArray("float32",c.length);var d;for(d=0;d<c.length;d+=1)f[d]=(u[d]-c[d])/l}else f=(u-c)/l;return f}function s(){return this.pv}function a(o){this.propertyGroup=o}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:n,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}}();function addPropertyDecorator(){function e(p,b,C){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,m=E[E.length-1].t;if(g<=m)return this.pv;var x,y;C?(b?x=Math.abs(m-this.elem.comp.globalData.frameRate*b):x=Math.max(0,m-this.elem.data.ip),y=m-x):((!b||b>E.length-1)&&(b=E.length-1),y=E[E.length-1-b].t,x=m-y);var S,T,R;if(p==="pingpong"){var M=Math.floor((g-y)/x);if(M%2!==0)return this.getValueAtTime((x-(g-y)%x+y)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var _=this.getValueAtTime(y/this.comp.globalData.frameRate,0),I=this.getValueAtTime(m/this.comp.globalData.frameRate,0),U=this.getValueAtTime(((g-y)%x+y)/this.comp.globalData.frameRate,0),z=Math.floor((g-y)/x);if(this.pv.length){for(R=new Array(_.length),T=R.length,S=0;S<T;S+=1)R[S]=(I[S]-_[S])*z+U[S];return R}return(I-_)*z+U}else if(p==="continue"){var O=this.getValueAtTime(m/this.comp.globalData.frameRate,0),G=this.getValueAtTime((m-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(R=new Array(O.length),T=R.length,S=0;S<T;S+=1)R[S]=O[S]+(O[S]-G[S])*((g-m)/this.comp.globalData.frameRate)/5e-4;return R}return O+(O-G)*((g-m)/.001)}return this.getValueAtTime(((g-y)%x+y)/this.comp.globalData.frameRate,0)}function t(p,b,C){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,m=E[0].t;if(g>=m)return this.pv;var x,y;C?(b?x=Math.abs(this.elem.comp.globalData.frameRate*b):x=Math.max(0,this.elem.data.op-m),y=m+x):((!b||b>E.length-1)&&(b=E.length-1),y=E[b].t,x=y-m);var S,T,R;if(p==="pingpong"){var M=Math.floor((m-g)/x);if(M%2===0)return this.getValueAtTime(((m-g)%x+m)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var _=this.getValueAtTime(m/this.comp.globalData.frameRate,0),I=this.getValueAtTime(y/this.comp.globalData.frameRate,0),U=this.getValueAtTime((x-(m-g)%x+m)/this.comp.globalData.frameRate,0),z=Math.floor((m-g)/x)+1;if(this.pv.length){for(R=new Array(_.length),T=R.length,S=0;S<T;S+=1)R[S]=U[S]-(I[S]-_[S])*z;return R}return U-(I-_)*z}else if(p==="continue"){var O=this.getValueAtTime(m/this.comp.globalData.frameRate,0),G=this.getValueAtTime((m+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(R=new Array(O.length),T=R.length,S=0;S<T;S+=1)R[S]=O[S]+(O[S]-G[S])*(m-g)/.001;return R}return O+(O-G)*(m-g)/.001}return this.getValueAtTime((x-((m-g)%x+m))/this.comp.globalData.frameRate,0)}function i(p,b){if(!this.k)return this.pv;if(p=(p||.4)*.5,b=Math.floor(b||5),b<=1)return this.pv;var C=this.comp.renderedFrame/this.comp.globalData.frameRate,g=C-p,E=C+p,m=b>1?(E-g)/(b-1):1,x=0,y=0,S;this.pv.length?S=createTypedArray("float32",this.pv.length):S=0;for(var T;x<b;){if(T=this.getValueAtTime(g+x*m),this.pv.length)for(y=0;y<this.pv.length;y+=1)S[y]+=T[y];else S+=T;x+=1}if(this.pv.length)for(y=0;y<this.pv.length;y+=1)S[y]/=b;else S/=b;return S}function n(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var b=this._transformCachingAtTime.v;if(b.cloneFromProps(this.pre.props),this.appliedTransformations<1){var C=this.a.getValueAtTime(p);b.translate(-C[0]*this.a.mult,-C[1]*this.a.mult,C[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(p);b.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(p),m=this.sa.getValueAtTime(p);b.skewFromAxis(-E*this.sk.mult,m*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var x=this.r.getValueAtTime(p);b.rotate(-x*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var y=this.rz.getValueAtTime(p),S=this.ry.getValueAtTime(p),T=this.rx.getValueAtTime(p),R=this.or.getValueAtTime(p);b.rotateZ(-y*this.rz.mult).rotateY(S*this.ry.mult).rotateX(T*this.rx.mult).rotateZ(-R[2]*this.or.mult).rotateY(R[1]*this.or.mult).rotateX(R[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var M=this.px.getValueAtTime(p),_=this.py.getValueAtTime(p);if(this.data.p.z){var I=this.pz.getValueAtTime(p);b.translate(M*this.px.mult,_*this.py.mult,-I*this.pz.mult)}else b.translate(M*this.px.mult,_*this.py.mult,0)}else{var U=this.p.getValueAtTime(p);b.translate(U[0]*this.p.mult,U[1]*this.p.mult,-U[2]*this.p.mult)}return b}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,b,C){var g=a(p,b,C);return g.dynamicProperties.length?g.getValueAtTime=n.bind(g):g.getValueAtTime=s.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(p,b,C,g,E){var m=o(p,b,C,g,E);m.kf?m.getValueAtTime=expressionHelpers.getValueAtTime.bind(m):m.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m.loopOut=e,m.loopIn=t,m.smooth=i,m.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(m),m.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(m),m.numKeys=b.a===1?b.k.length:0,m.propertyIndex=b.ix;var x=0;return C!==0&&(x=createTypedArray("float32",b.a===1?b.k[0].s.length:b.k.length)),m._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:x},expressionHelpers.searchExpressions(p,b,m),m.k&&E.addDynamicProperty(m),m};function l(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(b,C){this.k&&this.getValue();var g=this.v;C!==void 0&&(g=this.getValueAtTime(C,0));var E,m=g._length,x=g[b],y=g.v,S=createSizedArray(m);for(E=0;E<m;E+=1)b==="i"||b==="o"?S[E]=[x[E][0]-y[E][0],x[E][1]-y[E][1]]:S[E]=[x[E][0],x[E][1]];return S},points:function(b){return this.vertices("v",b)},inTangents:function(b){return this.vertices("i",b)},outTangents:function(b){return this.vertices("o",b)},isClosed:function(){return this.v.c},pointOnPath:function(b,C){var g=this.v;C!==void 0&&(g=this.getValueAtTime(C,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,m=E.lengths,x=E.totalLength*b,y=0,S=m.length,T=0,R;y<S;){if(T+m[y].addedLength>x){var M=y,_=g.c&&y===S-1?0:y+1,I=(x-T)/m[y].addedLength;R=bez.getPointInSegment(g.v[M],g.v[_],g.o[M],g.i[_],I,m[y]);break}else T+=m[y].addedLength;y+=1}return R||(R=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),R},vectorOnPath:function(b,C,g){b==1?b=this.v.c:b==0&&(b=.999);var E=this.pointOnPath(b,C),m=this.pointOnPath(b+.001,C),x=m[0]-E[0],y=m[1]-E[1],S=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));if(S===0)return[0,0];var T=g==="tangent"?[x/S,y/S]:[-y/S,x/S];return T},tangentOnPath:function(b,C){return this.vectorOnPath(b,C,"tangent")},normalOnPath:function(b,C){return this.vectorOnPath(b,C,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],c),extendPrototype([f],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,b,C,g,E){var m=d(p,b,C,g,E);return m.propertyIndex=b.ix,m.lock=!1,C===3?expressionHelpers.searchExpressions(p,b.pt,m):C===4&&expressionHelpers.searchExpressions(p,b.ks,m),m.k&&p.addDynamicProperty(m),m}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,i){var n=this.calculateExpression(i);if(t.t!==n){var s={};return this.copyData(s,t),s.t=n.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),i=this.searchExpressions();return this.kf=t||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,i){var n=createNS("feMerge");n.setAttribute("result",t);var s,a;for(a=0;a<i.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",i[a]),n.appendChild(s),n.appendChild(s);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,i,n,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(n,[s,n+"_tint_1",n+"_tint_2"]);e.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,i,n,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,s=n+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),n;n<s;n+=1)t=createNS("path"),i.appendChild(t),this.paths.push({p:t,m:n});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(i),this.elem.globalData.defs.appendChild(a);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+o+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=a,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,i=this.paths.length,n,s;for(t=0;t<i;t+=1)if(this.paths[t].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&s.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=s.getTotalLength();a="0 0 0 "+c*o+" ";var u=c*(l-o),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/f),p;for(p=0;p<d;p+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+c*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var b=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(b[0]*255)+","+bmFloor(b[1]*255)+","+bmFloor(b[2]*255)+")")}};function SVGTritoneFilter(e,t,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var l=createNS("feFuncG");l.setAttribute("type","table"),a.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),a.appendChild(c),this.feFuncB=c,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,s=n[0]+" "+i[0]+" "+t[0],a=n[1]+" "+i[1]+" "+t[1],o=n[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(e,t,i,n){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,n,s){for(var a=0,o=256,l,c=Math.min(e,t),u=Math.max(e,t),f=Array.call(null,{length:o}),d,p=0,b=s-n,C=t-e;a<=256;)l=a/256,l<=c?d=C<0?s:n:l>=u?d=C<0?n:s:d=n+b*Math.pow((l-e)/C,1/i),f[p]=d,p+=1,a+=256/(o-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,i,n,s){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",n+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var f=createNS("feComposite");f.setAttribute("in",n+"_drop_shadow_3"),f.setAttribute("in2",n+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(f);var d=this.createMergeNode(n,[n+"_drop_shadow_4",s]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(n),a=i*Math.sin(n);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var n=i.children,s=0,a=n.length;s<a&&n[s]!==e.layerElement;)s+=1;var o;s<=a-2&&(o=n[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),o?i.insertBefore(l,o):i.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(n);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(t,i),a.appendChild(t.layerElement),s.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+i),n.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,i=0,n=t.length;i<n;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,i,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",n),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,i=this.filterManager.effectElements[0].p.v*t,n=this.filterManager.effectElements[1].p.v,s=n==3?0:i,a=n==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,i=t[0].p.v,n=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,o=s?a:t[4].p.v,l=t[5].p.v,c=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _iterableToArrayLimit(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n,s,a,o,l=[],c=!0,u=!1;try{if(a=(i=i.call(e)).next,t!==0)for(;!(c=(n=a.call(i)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(f){u=!0,s=f}finally{try{if(!c&&i.return!=null&&(o=i.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,n)}return i}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(n){_defineProperty(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function _defineProperty(e,t,i){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var i={},n=Object.keys(e),s,a;for(a=0;a<n.length;a++)s=n[a],!(t.indexOf(s)>=0)&&(i[s]=e[s]);return i}function _objectWithoutProperties(e,t){if(e==null)return{};var i=_objectWithoutPropertiesLoose(e,t),n,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
10
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toPrimitive(e,t){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:String(t)}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(t,i){var n=t.animationData,s=t.loop,a=t.autoplay,o=t.initialSegment,l=t.onComplete,c=t.onLoopComplete,u=t.onEnterFrame,f=t.onSegmentStart,d=t.onConfigReady,p=t.onDataReady,b=t.onDataFailed,C=t.onLoadedImages,g=t.onDOMLoaded,E=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var m=_objectWithoutProperties(t,_excluded$1),x=React.useState(!1),y=_slicedToArray(x,2),S=y[0],T=y[1],R=React.useRef(),M=React.useRef(null),_=function(){var W;(W=R.current)===null||W===void 0||W.play()},I=function(){var W;(W=R.current)===null||W===void 0||W.stop()},U=function(){var W;(W=R.current)===null||W===void 0||W.pause()},z=function(W){var q;(q=R.current)===null||q===void 0||q.setSpeed(W)},O=function(W,q){var X;(X=R.current)===null||X===void 0||X.goToAndPlay(W,q)},G=function(W,q){var X;(X=R.current)===null||X===void 0||X.goToAndStop(W,q)},K=function(W){var q;(q=R.current)===null||q===void 0||q.setDirection(W)},H=function(W,q){var X;(X=R.current)===null||X===void 0||X.playSegments(W,q)},L=function(W){var q;(q=R.current)===null||q===void 0||q.setSubframe(W)},V=function(W){var q;return(q=R.current)===null||q===void 0?void 0:q.getDuration(W)},P=function(){var W;(W=R.current)===null||W===void 0||W.destroy(),R.current=void 0},A=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q;if(M.current){(q=R.current)===null||q===void 0||q.destroy();var X=_objectSpread2(_objectSpread2(_objectSpread2({},t),W),{},{container:M.current});return R.current=lottie.loadAnimation(X),T(!!R.current),function(){var ee;(ee=R.current)===null||ee===void 0||ee.destroy(),R.current=void 0}}};React.useEffect(function(){var j=A();return function(){return j==null?void 0:j()}},[n,s]),React.useEffect(function(){R.current&&(R.current.autoplay=!!a)},[a]),React.useEffect(function(){if(R.current){if(!o){R.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((R.current.currentRawFrame<o[0]||R.current.currentRawFrame>o[1])&&(R.current.currentRawFrame=o[0]),R.current.setSegment(o[0],o[1]))}},[o]),React.useEffect(function(){var j=[{name:"complete",handler:l},{name:"loopComplete",handler:c},{name:"enterFrame",handler:u},{name:"segmentStart",handler:f},{name:"config_ready",handler:d},{name:"data_ready",handler:p},{name:"data_failed",handler:b},{name:"loaded_images",handler:C},{name:"DOMLoaded",handler:g},{name:"destroy",handler:E}],W=j.filter(function(X){return X.handler!=null});if(W.length){var q=W.map(function(X){var ee;return(ee=R.current)===null||ee===void 0||ee.addEventListener(X.name,X.handler),function(){var re;(re=R.current)===null||re===void 0||re.removeEventListener(X.name,X.handler)}});return function(){q.forEach(function(X){return X()})}}},[l,c,u,f,d,p,b,C,g,E]);var k=React.createElement("div",_objectSpread2({style:i,ref:M},m));return{View:k,play:_,stop:I,pause:U,setSpeed:z,goToAndStop:G,goToAndPlay:O,setDirection:K,playSegments:H,setSubframe:L,getDuration:V,destroy:P,animationContainerRef:M,animationLoaded:S,animationItem:R.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),i=t.top,n=t.height,s=window.innerHeight-i,a=window.innerHeight+n;return s/a}function getContainerCursorPosition(e,t,i){var n=e.getBoundingClientRect(),s=n.top,a=n.left,o=n.width,l=n.height,c=(t-a)/o,u=(i-s)/l;return{x:c,y:u}}var useInitInteractivity=function e(t){var i=t.wrapperRef,n=t.animationItem,s=t.mode,a=t.actions;React.useEffect(function(){var o=i.current;if(!(!o||!n||!a.length)){n.stop();var l=function(){var f=null,d=function(){var b=getContainerVisibility(o),C=a.find(function(E){var m=E.visibility;return m&&b>=m[0]&&b<=m[1]});if(C){if(C.type==="seek"&&C.visibility&&C.frames.length===2){var g=C.frames[0]+Math.ceil((b-C.visibility[0])/(C.visibility[1]-C.visibility[0])*C.frames[1]);//! goToAndStop must be relative to the start of the current segment
11
- n.goToAndStop(g-n.firstFrame-1,!0)}C.type==="loop"&&(f===null||f!==C.frames||n.isPaused)&&(n.playSegments(C.frames,!0),f=C.frames),C.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),C.type==="stop"&&n.goToAndStop(C.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",d),function(){document.removeEventListener("scroll",d)}},c=function(){var f=function(C,g){var E=C,m=g;if(E!==-1&&m!==-1){var x=getContainerCursorPosition(o,E,m);E=x.x,m=x.y}var y=a.find(function(R){var M=R.position;return M&&Array.isArray(M.x)&&Array.isArray(M.y)?E>=M.x[0]&&E<=M.x[1]&&m>=M.y[0]&&m<=M.y[1]:M&&!Number.isNaN(M.x)&&!Number.isNaN(M.y)?E===M.x&&m===M.y:!1});if(y){if(y.type==="seek"&&y.position&&Array.isArray(y.position.x)&&Array.isArray(y.position.y)&&y.frames.length===2){var S=(E-y.position.x[0])/(y.position.x[1]-y.position.x[0]),T=(m-y.position.y[0])/(y.position.y[1]-y.position.y[0]);n.playSegments(y.frames,!0),n.goToAndStop(Math.ceil((S+T)/2*(y.frames[1]-y.frames[0])),!0)}y.type==="loop"&&n.playSegments(y.frames,!0),y.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(y.frames)),y.type==="stop"&&n.goToAndStop(y.frames[0],!0)}},d=function(C){f(C.clientX,C.clientY)},p=function(){f(-1,-1)};return o.addEventListener("mousemove",d),o.addEventListener("mouseout",p),function(){o.removeEventListener("mousemove",d),o.removeEventListener("mouseout",p)}};switch(s){case"scroll":return l();case"cursor":return c()}}},[s,n])},useLottieInteractivity=function e(t){var i=t.actions,n=t.mode,s=t.lottieObj,a=s.animationItem,o=s.View,l=s.animationContainerRef;return useInitInteractivity({actions:i,animationItem:a,mode:n,wrapperRef:l}),o},_excluded=["style","interactivity"],Lottie=function e(t){var i,n,s,a=t.style,o=t.interactivity,l=_objectWithoutProperties(t,_excluded),c=useLottie(l,a),u=c.View,f=c.play,d=c.stop,p=c.pause,b=c.setSpeed,C=c.goToAndStop,g=c.goToAndPlay,E=c.setDirection,m=c.playSegments,x=c.setSubframe,y=c.getDuration,S=c.destroy,T=c.animationContainerRef,R=c.animationLoaded,M=c.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:f,stop:d,pause:p,setSpeed:b,goToAndPlay:g,goToAndStop:C,setDirection:E,playSegments:m,setSubframe:x,getDuration:y,destroy:S,animationContainerRef:T,animationLoaded:R,animationItem:M})},[(i=t.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:u,play:f,stop:d,pause:p,setSpeed:b,goToAndStop:C,goToAndPlay:g,setDirection:E,playSegments:m,setSubframe:x,getDuration:y,destroy:S,animationContainerRef:T,animationLoaded:R,animationItem:M},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(s=o==null?void 0:o.mode)!==null&&s!==void 0?s:"scroll"})};const v="5.7.4",fr=60,ip=0,op=120,w=64,h=64,nm="loading spinner",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.34],y:[1]},o:{x:[.66],y:[0]},t:0,s:[180]},{t:119,s:[540]}],ix:10},p:{a:0,k:[32.135,31.505,0],ix:2,l:2},a:{a:0,k:[-.75,2.75,0],ix:1,l:2},s:{a:0,k:[82,82,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[15.326,0],[0,-15.326],[-15.326,0],[0,15.326]],o:[[-15.326,0],[0,15.326],[15.326,0],[0,-15.326]],v:[[0,-27.75],[-27.75,0],[0,27.75],[27.75,0]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.505882352941,.478431372549,.564705882353,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-.75,2.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[100]},{i:{x:[.351],y:[.985]},o:{x:[.665],y:[0]},t:60,s:[90]},{t:120,s:[0]}],ix:1},e:{a:1,k:[{i:{x:[.34],y:[1]},o:{x:[.66],y:[0]},t:0,s:[100]},{t:60,s:[0]}],ix:2},o:{a:0,k:176,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:600,st:0,bm:0}],markers=[],spinnerAnimation={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},buttonStyles=cva(["gf-font-satoshi","gf-font-bold","gf-min-w-32","gf-px-6","gf-focus:outline-none","gf-border-none","gf-transition-colors","gf-duration-500"],{variants:{variant:{primary:"gf-text-white gf-bg-button-primary",secondary:"gf-text-white gf-bg-button-secondary",ternary:"gf-text-dark-grey gf-bg-button-ternary",disabled:"gf-bg-button-disabled-bg gf-text-button-disabled-text gf-cursor-not-allowed"},size:{sm:"gf-h-9 gf-rounded-xl gf-text-xs",md:"gf-h-10 gf-rounded-xl gf-text-sm",lg:"gf-h-12 gf-rounded-2xl gf-text-base"},breakpointSize:{"xs:sm":"xs:gf-h-9 xs:gf-rounded-xl xs:gf-text-xs","xs:md":"xs:gf-h-10 xs:gf-rounded-xl xs:gf-text-sm","xs:lg":"xs:gf-h-12 xs:gf-rounded-2xl xs:gf-text-base","sm:sm":"sm:gf-h-9 sm:gf-rounded-xl sm:gf-text-xs","sm:md":"sm:gf-h-10 sm:gf-rounded-xl sm:gf-text-sm","sm:lg":"sm:gf-h-12 sm:gf-rounded-2xl sm:gf-text-base","md:sm":"md:gf-h-9 md:gf-rounded-xl md:gf-text-xs","md:md":"md:gf-h-10 md:gf-rounded-xl md:gf-text-sm","md:lg":"md:gf-h-12 md:gf-rounded-2xl md:gf-text-base","lg:sm":"lg:gf-h-9 lg:gf-rounded-xl lg:gf-text-xs","lg:md":"lg:gf-h-10 lg:gf-rounded-xl lg:gf-text-sm","lg:lg":"lg:gf-h-12 lg:gf-rounded-2xl lg:gf-text-base","xl:sm":"xl:gf-h-9 xl:gf-rounded-xl xl:gf-text-xs","xl:md":"xl:gf-h-10 xl:gf-rounded-xl xl:gf-text-sm","xl:lg":"xl:gf-h-12 xl:gf-rounded-2xl xl:gf-text-base"}},defaultVariants:{variant:"primary",size:"md"}}),Button=React.forwardRef(({variant:e,size:t,breakpoints:i,loading:n,className:s,children:a,...o},l)=>{const c=i?Object.entries(i).map(([u,f])=>`${u}:${f}`).map(u=>buttonStyles({breakpointSize:u})).join(" "):"";return jsxRuntime.jsx("button",{ref:l,className:cn("gf-transition-colors gf-duration-300",s,buttonStyles({variant:e,size:t}),c,n),disabled:n||e==="disabled",...o,children:jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-center gf-items-center gf-gap-3",children:[a,n&&jsxRuntime.jsx(Lottie,{animationData:spinnerAnimation,loop:!0,autoplay:!0,style:{width:24,height:24}})]})})}),typographyStyles=cva(["gf-font-haffer gf-text-dark-grey"],{variants:{size:{h1:"gf-text-[32px] gf-leading-10",h2:"gf-text-xl gf-leading-5",h3:"gf-text-base gf-leading-4",h4:"gf-text-sm gf-leading-4",h5:"gf-text-xs gf-leading-4",h6:"gf-text-[10px] gf-leading-3"},weight:{bold:"gf-font-bold",medium:"gf-font-medium"},breakpointSize:{"xs:h1":"xs:gf-text-[32px] xs:gf-leading-[48px]","xs:h2":"xs:gf-text-xl xs:gf-leading-7","xs:h3":"xs:gf-text-base xs:gf-leading-6","xs:h4":"xs:gf-text-sm xs:gf-leading-5","xs:h5":"xs:gf-text-xs xs:gf-leading-4","xs:h6":"xs:gf-text-[10px] xs:gf-leading-3","sm:h1":"sm:gf-text-[32px] sm:gf-leading-[48px]","sm:h2":"sm:gf-text-xl sm:gf-leading-7","sm:h3":"sm:gf-text-base sm:gf-leading-6","sm:h4":"sm:gf-text-sm sm:gf-leading-5","sm:h5":"sm:gf-text-xs sm:gf-leading-4","sm:h6":"sm:gf-text-[10px] sm:gf-leading-3","md:h1":"md:gf-text-[32px] md:gf-leading-[48px]","md:h2":"md:gf-text-xl md:gf-leading-7","md:h3":"md:gf-text-base md:gf-leading-6","md:h4":"md:gf-text-sm md:gf-leading-5","md:h5":"md:gf-text-xs md:gf-leading-4","md:h6":"md:gf-text-[10px] md:gf-leading-3","lg:h1":"lg:gf-text-[32px] lg:gf-leading-[48px]","lg:h2":"lg:gf-text-xl lg:gf-leading-7","lg:h3":"lg:gf-text-base lg:gf-leading-6","lg:h4":"lg:gf-text-sm lg:gf-leading-5","lg:h5":"lg:gf-text-xs lg:gf-leading-4","lg:h6":"lg:gf-text-[10px] lg:gf-leading-3","xl:h1":"xl:gf-text-[32px] xl:gf-leading-[48px]","xl:h2":"xl:gf-text-xl xl:gf-leading-7","xl:h3":"xl:gf-text-base xl:gf-leading-6","xl:h4":"xl:gf-text-sm xl:gf-leading-5","xl:h5":"xl:gf-text-xs xl:gf-leading-4","xl:h6":"xl:gf-text-[10px] xl:gf-leading-3"},defaultVariants:{size:"h3",weight:"medium"}}}),Typography=({as:e="span",size:t,weight:i,breakpoints:n,className:s,...a})=>{const o=n?Object.entries(n).map(([l,c])=>`${l}:${c}`).map(l=>typographyStyles({breakpointSize:l})).join(" "):"";return jsxRuntime.jsx(e,{className:cn(typographyStyles({size:t,weight:i,className:s}),o),...a})},OpacityStyles=cva("gf-bg-white",{variants:{level:{"extra-light":"gf-bg-opacity-10",light:"gf-bg-opacity-25",medium:"gf-bg-opacity-50","semi-dark":"gf-bg-opacity-75",full:"gf-bg-opacity-100"}},defaultVariants:{level:"full"}}),Opacity=({level:e,className:t,children:i,...n})=>jsxRuntime.jsx("div",{...n,className:cn(OpacityStyles({level:e}),t),children:i});var __assign$1=function(){return __assign$1=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},__assign$1.apply(this,arguments)};function __rest$1(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}function __spreadArray(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,a;n<s;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function useCallbackRef$2(e,t){var i=React.useState(function(){return{value:e,callback:t,facade:{get current(){return i.value},set current(n){var s=i.value;s!==n&&(i.value=n,i.callback(n,s))}}}})[0];return i.callback=t,i.facade}var useIsomorphicLayoutEffect$2=typeof window<"u"?React__namespace.useLayoutEffect:React__namespace.useEffect,currentValues=new WeakMap;function useMergeRefs(e,t){var i=useCallbackRef$2(null,function(n){return e.forEach(function(s){return assignRef(s,n)})});return useIsomorphicLayoutEffect$2(function(){var n=currentValues.get(i);if(n){var s=new Set(n),a=new Set(e),o=i.current;s.forEach(function(l){a.has(l)||assignRef(l,null)}),a.forEach(function(l){s.has(l)||assignRef(l,o)})}currentValues.set(i,e)},[e]),i}var __assign=function(){return __assign=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},__assign.apply(this,arguments)};function __rest(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}typeof SuppressedError=="function"&&SuppressedError;function ItoI(e){return e}function innerCreateMedium(e,t){t===void 0&&(t=ItoI);var i=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(a){var o=t(a,n);return i.push(o),function(){i=i.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(n=!0;i.length;){var o=i;i=[],o.forEach(a)}i={push:function(l){return a(l)},filter:function(){return i}}},assignMedium:function(a){n=!0;var o=[];if(i.length){var l=i;i=[],l.forEach(a),o=i}var c=function(){var f=o;o=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),i={push:function(f){o.push(f),u()},filter:function(f){return o=o.filter(f),i}}}};return s}function createSidecarMedium(e){e===void 0&&(e={});var t=innerCreateMedium(null);return t.options=__assign({async:!0,ssr:!1},e),t}var SideCar$1=function(e){var t=e.sideCar,i=__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return React__namespace.createElement(n,__assign({},i))};SideCar$1.isSideCarExport=!0;function exportSidecar(e,t){return e.useMedium(t),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=React__namespace.forwardRef(function(e,t){var i=React__namespace.useRef(null),n=React__namespace.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),s=n[0],a=n[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,b=e.noIsolation,C=e.inert,g=e.allowPinchZoom,E=e.as,m=E===void 0?"div":E,x=e.gapMode,y=__rest$1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,T=useMergeRefs([i,t]),R=__assign$1(__assign$1({},y),s);return React__namespace.createElement(React__namespace.Fragment,null,f&&React__namespace.createElement(S,{sideCar:effectCar,removeScrollBar:u,shards:d,noIsolation:b,inert:C,setCallbacks:a,allowPinchZoom:!!g,lockRef:i,gapMode:x}),o?React__namespace.cloneElement(React__namespace.Children.only(l),__assign$1(__assign$1({},R),{ref:T})):React__namespace.createElement(m,__assign$1({},R,{className:c,ref:T}),l))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=getNonce();return t&&e.setAttribute("nonce",t),e}function injectStyles(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function insertStyleTag(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var stylesheetSingleton=function(){var e=0,t=null;return{add:function(i){e==0&&(t=makeStyleTag())&&(injectStyles(t,i),insertStyleTag(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t,i){React__namespace.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},styleSingleton=function(){var e=styleHookSingleton(),t=function(i){var n=i.styles,s=i.dynamic;return e(n,s),null};return t},zeroGap={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var t=window.getComputedStyle(document.body),i=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[parse(i),parse(n),parse(s)]},getGapWidth=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zeroGap;var t=getOffset(e),i=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-i+t[2]-t[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(e,t,i,n){var s=e.left,a=e.top,o=e.right,l=e.gap;return i===void 0&&(i="margin"),`
11
+ n.goToAndStop(g-n.firstFrame-1,!0)}C.type==="loop"&&(f===null||f!==C.frames||n.isPaused)&&(n.playSegments(C.frames,!0),f=C.frames),C.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),C.type==="stop"&&n.goToAndStop(C.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",d),function(){document.removeEventListener("scroll",d)}},c=function(){var f=function(C,g){var E=C,m=g;if(E!==-1&&m!==-1){var x=getContainerCursorPosition(o,E,m);E=x.x,m=x.y}var y=a.find(function(R){var M=R.position;return M&&Array.isArray(M.x)&&Array.isArray(M.y)?E>=M.x[0]&&E<=M.x[1]&&m>=M.y[0]&&m<=M.y[1]:M&&!Number.isNaN(M.x)&&!Number.isNaN(M.y)?E===M.x&&m===M.y:!1});if(y){if(y.type==="seek"&&y.position&&Array.isArray(y.position.x)&&Array.isArray(y.position.y)&&y.frames.length===2){var S=(E-y.position.x[0])/(y.position.x[1]-y.position.x[0]),T=(m-y.position.y[0])/(y.position.y[1]-y.position.y[0]);n.playSegments(y.frames,!0),n.goToAndStop(Math.ceil((S+T)/2*(y.frames[1]-y.frames[0])),!0)}y.type==="loop"&&n.playSegments(y.frames,!0),y.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(y.frames)),y.type==="stop"&&n.goToAndStop(y.frames[0],!0)}},d=function(C){f(C.clientX,C.clientY)},p=function(){f(-1,-1)};return o.addEventListener("mousemove",d),o.addEventListener("mouseout",p),function(){o.removeEventListener("mousemove",d),o.removeEventListener("mouseout",p)}};switch(s){case"scroll":return l();case"cursor":return c()}}},[s,n])},useLottieInteractivity=function e(t){var i=t.actions,n=t.mode,s=t.lottieObj,a=s.animationItem,o=s.View,l=s.animationContainerRef;return useInitInteractivity({actions:i,animationItem:a,mode:n,wrapperRef:l}),o},_excluded=["style","interactivity"],Lottie=function e(t){var i,n,s,a=t.style,o=t.interactivity,l=_objectWithoutProperties(t,_excluded),c=useLottie(l,a),u=c.View,f=c.play,d=c.stop,p=c.pause,b=c.setSpeed,C=c.goToAndStop,g=c.goToAndPlay,E=c.setDirection,m=c.playSegments,x=c.setSubframe,y=c.getDuration,S=c.destroy,T=c.animationContainerRef,R=c.animationLoaded,M=c.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:f,stop:d,pause:p,setSpeed:b,goToAndPlay:g,goToAndStop:C,setDirection:E,playSegments:m,setSubframe:x,getDuration:y,destroy:S,animationContainerRef:T,animationLoaded:R,animationItem:M})},[(i=t.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:u,play:f,stop:d,pause:p,setSpeed:b,goToAndStop:C,goToAndPlay:g,setDirection:E,playSegments:m,setSubframe:x,getDuration:y,destroy:S,animationContainerRef:T,animationLoaded:R,animationItem:M},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(s=o==null?void 0:o.mode)!==null&&s!==void 0?s:"scroll"})};const v="5.7.4",fr=60,ip=0,op=120,w=64,h=64,nm="loading spinner",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.34],y:[1]},o:{x:[.66],y:[0]},t:0,s:[180]},{t:119,s:[540]}],ix:10},p:{a:0,k:[32.135,31.505,0],ix:2,l:2},a:{a:0,k:[-.75,2.75,0],ix:1,l:2},s:{a:0,k:[82,82,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[15.326,0],[0,-15.326],[-15.326,0],[0,15.326]],o:[[-15.326,0],[0,15.326],[15.326,0],[0,-15.326]],v:[[0,-27.75],[-27.75,0],[0,27.75],[27.75,0]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.505882352941,.478431372549,.564705882353,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-.75,2.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[100]},{i:{x:[.351],y:[.985]},o:{x:[.665],y:[0]},t:60,s:[90]},{t:120,s:[0]}],ix:1},e:{a:1,k:[{i:{x:[.34],y:[1]},o:{x:[.66],y:[0]},t:0,s:[100]},{t:60,s:[0]}],ix:2},o:{a:0,k:176,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:600,st:0,bm:0}],markers=[],spinnerAnimation={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},buttonStyles=cva(["gf-font-satoshi","gf-font-bold","gf-min-w-32","gf-px-6","gf-focus:outline-none","gf-border-none","gf-transition-colors","gf-duration-500"],{variants:{variant:{primary:"gf-text-white gf-bg-button-primary",secondary:"gf-text-white gf-bg-button-secondary",ternary:"gf-text-dark-grey gf-bg-button-ternary",disabled:"gf-bg-button-disabled-bg gf-text-button-disabled-text gf-cursor-not-allowed"},size:{sm:"gf-h-9 gf-rounded-xl gf-text-xs",md:"gf-h-10 gf-rounded-xl gf-text-sm",lg:"gf-h-12 gf-rounded-2xl gf-text-base"},breakpointSize:{"xs:sm":"xs:gf-h-9 xs:gf-rounded-xl xs:gf-text-xs","xs:md":"xs:gf-h-10 xs:gf-rounded-xl xs:gf-text-sm","xs:lg":"xs:gf-h-12 xs:gf-rounded-2xl xs:gf-text-base","sm:sm":"sm:gf-h-9 sm:gf-rounded-xl sm:gf-text-xs","sm:md":"sm:gf-h-10 sm:gf-rounded-xl sm:gf-text-sm","sm:lg":"sm:gf-h-12 sm:gf-rounded-2xl sm:gf-text-base","md:sm":"md:gf-h-9 md:gf-rounded-xl md:gf-text-xs","md:md":"md:gf-h-10 md:gf-rounded-xl md:gf-text-sm","md:lg":"md:gf-h-12 md:gf-rounded-2xl md:gf-text-base","lg:sm":"lg:gf-h-9 lg:gf-rounded-xl lg:gf-text-xs","lg:md":"lg:gf-h-10 lg:gf-rounded-xl lg:gf-text-sm","lg:lg":"lg:gf-h-12 lg:gf-rounded-2xl lg:gf-text-base","xl:sm":"xl:gf-h-9 xl:gf-rounded-xl xl:gf-text-xs","xl:md":"xl:gf-h-10 xl:gf-rounded-xl xl:gf-text-sm","xl:lg":"xl:gf-h-12 xl:gf-rounded-2xl xl:gf-text-base"}},defaultVariants:{variant:"primary",size:"md"}}),Button=React.forwardRef(({variant:e,size:t,breakpoints:i,loading:n,className:s,children:a,...o},l)=>{const c=i?Object.entries(i).map(([u,f])=>`${u}:${f}`).map(u=>buttonStyles({breakpointSize:u})).join(" "):"";return jsxRuntime.jsx("button",{ref:l,className:cn("gf-transition-colors gf-duration-300",s,buttonStyles({variant:e,size:t}),c,n),disabled:n||e==="disabled",...o,children:jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-center gf-items-center gf-gap-3",children:[a,n&&jsxRuntime.jsx(Lottie,{animationData:spinnerAnimation,loop:!0,autoplay:!0,style:{width:24,height:24}})]})})}),typographyStyles=cva(["gf-font-haffer gf-text-dark-grey"],{variants:{size:{h1:"gf-text-[32px] gf-leading-10",h2:"gf-text-xl gf-leading-5",h3:"gf-text-base gf-leading-4",h4:"gf-text-sm gf-leading-4",h5:"gf-text-xs gf-leading-4",h6:"gf-text-[10px] gf-leading-3"},weight:{thin:"gf-font-thin",light:"gf-font-light",regular:"gf-font-regular",medium:"gf-font-medium",semibold:"gf-font-semibold",bold:"gf-font-bold",heavy:"gf-font-heavy",black:"gf-font-black"},breakpointSize:{"xs:h1":"xs:gf-text-[32px] xs:gf-leading-[48px]","xs:h2":"xs:gf-text-xl xs:gf-leading-7","xs:h3":"xs:gf-text-base xs:gf-leading-6","xs:h4":"xs:gf-text-sm xs:gf-leading-5","xs:h5":"xs:gf-text-xs xs:gf-leading-4","xs:h6":"xs:gf-text-[10px] xs:gf-leading-3","sm:h1":"sm:gf-text-[32px] sm:gf-leading-[48px]","sm:h2":"sm:gf-text-xl sm:gf-leading-7","sm:h3":"sm:gf-text-base sm:gf-leading-6","sm:h4":"sm:gf-text-sm sm:gf-leading-5","sm:h5":"sm:gf-text-xs sm:gf-leading-4","sm:h6":"sm:gf-text-[10px] sm:gf-leading-3","md:h1":"md:gf-text-[32px] md:gf-leading-[48px]","md:h2":"md:gf-text-xl md:gf-leading-7","md:h3":"md:gf-text-base md:gf-leading-6","md:h4":"md:gf-text-sm md:gf-leading-5","md:h5":"md:gf-text-xs md:gf-leading-4","md:h6":"md:gf-text-[10px] md:gf-leading-3","lg:h1":"lg:gf-text-[32px] lg:gf-leading-[48px]","lg:h2":"lg:gf-text-xl lg:gf-leading-7","lg:h3":"lg:gf-text-base lg:gf-leading-6","lg:h4":"lg:gf-text-sm lg:gf-leading-5","lg:h5":"lg:gf-text-xs lg:gf-leading-4","lg:h6":"lg:gf-text-[10px] lg:gf-leading-3","xl:h1":"xl:gf-text-[32px] xl:gf-leading-[48px]","xl:h2":"xl:gf-text-xl xl:gf-leading-7","xl:h3":"xl:gf-text-base xl:gf-leading-6","xl:h4":"xl:gf-text-sm xl:gf-leading-5","xl:h5":"xl:gf-text-xs xl:gf-leading-4","xl:h6":"xl:gf-text-[10px] xl:gf-leading-3"},defaultVariants:{size:"h3",weight:"medium"}}}),Typography=({as:e="span",size:t,weight:i="regular",breakpoints:n,className:s,...a})=>{const o=n?Object.entries(n).map(([l,c])=>`${l}:${c}`).map(l=>typographyStyles({breakpointSize:l})).join(" "):"";return jsxRuntime.jsx(e,{className:cn(typographyStyles({size:t,weight:i,className:s}),o),...a})},OpacityStyles=cva("gf-bg-white",{variants:{level:{"extra-light":"gf-bg-opacity-10",light:"gf-bg-opacity-25",medium:"gf-bg-opacity-50","semi-dark":"gf-bg-opacity-75",full:"gf-bg-opacity-100"}},defaultVariants:{level:"full"}}),Opacity=({level:e,className:t,children:i,...n})=>jsxRuntime.jsx("div",{...n,className:cn(OpacityStyles({level:e}),t),children:i});var __assign$1=function(){return __assign$1=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},__assign$1.apply(this,arguments)};function __rest$1(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}function __spreadArray(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,a;n<s;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function useCallbackRef$2(e,t){var i=React.useState(function(){return{value:e,callback:t,facade:{get current(){return i.value},set current(n){var s=i.value;s!==n&&(i.value=n,i.callback(n,s))}}}})[0];return i.callback=t,i.facade}var useIsomorphicLayoutEffect$2=typeof window<"u"?React__namespace.useLayoutEffect:React__namespace.useEffect,currentValues=new WeakMap;function useMergeRefs(e,t){var i=useCallbackRef$2(null,function(n){return e.forEach(function(s){return assignRef(s,n)})});return useIsomorphicLayoutEffect$2(function(){var n=currentValues.get(i);if(n){var s=new Set(n),a=new Set(e),o=i.current;s.forEach(function(l){a.has(l)||assignRef(l,null)}),a.forEach(function(l){s.has(l)||assignRef(l,o)})}currentValues.set(i,e)},[e]),i}var __assign=function(){return __assign=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},__assign.apply(this,arguments)};function __rest(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}typeof SuppressedError=="function"&&SuppressedError;function ItoI(e){return e}function innerCreateMedium(e,t){t===void 0&&(t=ItoI);var i=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(a){var o=t(a,n);return i.push(o),function(){i=i.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(n=!0;i.length;){var o=i;i=[],o.forEach(a)}i={push:function(l){return a(l)},filter:function(){return i}}},assignMedium:function(a){n=!0;var o=[];if(i.length){var l=i;i=[],l.forEach(a),o=i}var c=function(){var f=o;o=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),i={push:function(f){o.push(f),u()},filter:function(f){return o=o.filter(f),i}}}};return s}function createSidecarMedium(e){e===void 0&&(e={});var t=innerCreateMedium(null);return t.options=__assign({async:!0,ssr:!1},e),t}var SideCar$1=function(e){var t=e.sideCar,i=__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return React__namespace.createElement(n,__assign({},i))};SideCar$1.isSideCarExport=!0;function exportSidecar(e,t){return e.useMedium(t),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=React__namespace.forwardRef(function(e,t){var i=React__namespace.useRef(null),n=React__namespace.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),s=n[0],a=n[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,b=e.noIsolation,C=e.inert,g=e.allowPinchZoom,E=e.as,m=E===void 0?"div":E,x=e.gapMode,y=__rest$1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,T=useMergeRefs([i,t]),R=__assign$1(__assign$1({},y),s);return React__namespace.createElement(React__namespace.Fragment,null,f&&React__namespace.createElement(S,{sideCar:effectCar,removeScrollBar:u,shards:d,noIsolation:b,inert:C,setCallbacks:a,allowPinchZoom:!!g,lockRef:i,gapMode:x}),o?React__namespace.cloneElement(React__namespace.Children.only(l),__assign$1(__assign$1({},R),{ref:T})):React__namespace.createElement(m,__assign$1({},R,{className:c,ref:T}),l))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=getNonce();return t&&e.setAttribute("nonce",t),e}function injectStyles(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function insertStyleTag(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var stylesheetSingleton=function(){var e=0,t=null;return{add:function(i){e==0&&(t=makeStyleTag())&&(injectStyles(t,i),insertStyleTag(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t,i){React__namespace.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},styleSingleton=function(){var e=styleHookSingleton(),t=function(i){var n=i.styles,s=i.dynamic;return e(n,s),null};return t},zeroGap={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var t=window.getComputedStyle(document.body),i=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[parse(i),parse(n),parse(s)]},getGapWidth=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zeroGap;var t=getOffset(e),i=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-i+t[2]-t[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(e,t,i,n){var s=e.left,a=e.top,o=e.right,l=e.gap;return i===void 0&&(i="margin"),`
12
12
  .`.concat(noScrollbarsClassName,` {
13
13
  overflow: hidden `).concat(n,`;
14
14
  padding-right: `).concat(l,"px ").concat(n,`;