falcon-ui
Version:
ui components for falcon
13 lines • 210 kB
JavaScript
(function(root, factory) {
if (typeof module === "object" && module.exports) {
module.exports = factory(root);
} else {
root.lottie = factory(root);
root.bodymovin = root.lottie;
}
}((typeof window === 'object' ? window : {
'requestAnimationFrame': requestAnimationFrame,
'cancelAnimationFrame': cancelAnimationFrame,
'devicePixelRatio': 1
}), function(window) {
"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=!1,cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}!function(){for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,r=0;r<e;r+=1)BMMath[t[r]]=Math[t[r]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){for(var e=createSizedArray(t.length),r=t.length,i=0;i<r;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e,this.currentTime=currentTime}roundValues(!1);var createElementID=(G=0,function(){return"__lottie_element_"+ ++G}),G;function HSVtoRGB(t,e,r){var i,s,a,n=Math.floor(6*t),t=6*t-n,o=r*(1-e),h=r*(1-t*e),p=r*(1-(1-t)*e);switch(n%6){case 0:i=r,s=p,a=o;break;case 1:i=h,s=r,a=o;break;case 2:i=o,s=r,a=p;break;case 3:i=o,s=h,a=r;break;case 4:i=p,s=o,a=r;break;case 5:i=r,s=o,a=h}return[i,s,a]}function RGBtoHSV(t,e,r){var i,s=Math.max(t,e,r),a=Math.min(t,e,r),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:i=0;break;case t:i=e-r+n*(e<r?6:0),i/=6*n;break;case e:i=r-t+2*n,i/=6*n;break;case r:i=t-e+4*n,i/=6*n}return[i,o,h]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=function(){for(var t,i=[],e=0;e<256;e+=1)t=e.toString(16),i[e]=1==t.length?"0"+t:t;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t].length,i=0;i<r;i++)this._cbs[t][i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),--r,--i),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var r,i=0,s=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)s.push(r);return s};function createSizedArray(t){return Array.apply(null,{length:t})}function createTag(t){return null}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(Oa={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Oa[t]||""}),Oa,Matrix=(Qa=Math.cos,Ra=Math.sin,Sa=Math.tan,Ta=Math.round,function(){this.reset=Ua,this.rotate=Va,this.rotateX=Wa,this.rotateY=Xa,this.rotateZ=Ya,this.skew=$a,this.skewFromAxis=_a,this.shear=Za,this.scale=ab,this.setTransform=bb,this.translate=cb,this.transform=db,this.applyToPoint=ib,this.applyToX=jb,this.applyToY=kb,this.applyToZ=lb,this.applyToPointArray=rb,this.applyToTriplePoints=qb,this.applyToPointStringified=sb,this.toCSS=tb,this.to2dCSS=vb,this.clone=gb,this.cloneFromProps=hb,this.equals=fb,this.inversePoints=pb,this.inversePoint=nb,this.getInverseMatrix=mb,this._t=this.transform,this.isIdentity=eb,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}),Qa,Ra,Sa,Ta;function Ua(){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 Va(t){if(0===t)return this;var e=Qa(t),t=Ra(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function Wa(t){if(0===t)return this;var e=Qa(t),t=Ra(t);return this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1)}function Xa(t){if(0===t)return this;var e=Qa(t),t=Ra(t);return this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1)}function Ya(t){if(0===t)return this;var e=Qa(t),t=Ra(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function Za(t,e){return this._t(1,e,t,1,0,0)}function $a(t,e){return this.shear(Sa(t),Sa(e))}function _a(t,e){var r=Qa(e),e=Ra(e);return this._t(r,e,0,0,-e,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Sa(t),1,0,0,0,0,1,0,0,0,0,1)._t(r,-e,0,0,e,r,0,0,0,0,1,0,0,0,0,1)}function ab(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function bb(t,e,r,i,s,a,n,o,h,p,l,m,f,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=p,this.props[10]=l,this.props[11]=m,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function cb(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function db(t,e,r,i,s,a,n,o,h,p,l,m,f,c,d,u){var y=this.props;if(1===t&&0===e&&0===r&&0===i&&0===s&&1===a&&0===n&&0===o&&0===h&&0===p&&1===l&&0===m)return y[12]=y[12]*t+y[15]*f,y[13]=y[13]*a+y[15]*c,y[14]=y[14]*l+y[15]*d,y[15]=y[15]*u,this._identityCalculated=!1,this;var g=y[0],v=y[1],P=y[2],b=y[3],x=y[4],_=y[5],S=y[6],A=y[7],T=y[8],C=y[9],E=y[10],M=y[11],k=y[12],D=y[13],I=y[14],F=y[15];return y[0]=g*t+v*s+P*h+b*f,y[1]=g*e+v*a+P*p+b*c,y[2]=g*r+v*n+P*l+b*d,y[3]=g*i+v*o+P*m+b*u,y[4]=x*t+_*s+S*h+A*f,y[5]=x*e+_*a+S*p+A*c,y[6]=x*r+_*n+S*l+A*d,y[7]=x*i+_*o+S*m+A*u,y[8]=T*t+C*s+E*h+M*f,y[9]=T*e+C*a+E*p+M*c,y[10]=T*r+C*n+E*l+M*d,y[11]=T*i+C*o+E*m+M*u,y[12]=k*t+D*s+I*h+F*f,y[13]=k*e+D*a+I*p+F*c,y[14]=k*r+D*n+I*l+F*d,y[15]=k*i+D*o+I*m+F*u,this._identityCalculated=!1,this}function eb(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function fb(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function gb(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function hb(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function ib(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function jb(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function kb(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function lb(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function mb(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,i=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,t=new Matrix;return t.props[0]=e,t.props[1]=r,t.props[4]=i,t.props[5]=s,t.props[12]=a,t.props[13]=n,t}function nb(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function pb(t){for(var e=t.length,r=[],i=0;i<e;i+=1)r[i]=nb(t[i]);return r}function qb(t,e,r){var i,s,a,n,o,h,p=createTypedArray("float32",6);return this.isIdentity()?(p[0]=t[0],p[1]=t[1],p[2]=e[0],p[3]=e[1],p[4]=r[0],p[5]=r[1]):(i=this.props[0],s=this.props[1],a=this.props[4],n=this.props[5],o=this.props[12],h=this.props[13],p[0]=t[0]*i+t[1]*a+o,p[1]=t[0]*s+t[1]*n+h,p[2]=e[0]*i+e[1]*a+o,p[3]=e[0]*s+e[1]*n+h,p[4]=r[0]*i+r[1]*a+o,p[5]=r[0]*s+r[1]*n+h),p}function rb(t,e,r){r=this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]];return r}function sb(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function tb(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=Ta(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function ub(t){return t<1e-6&&0<t||-1e-6<t&&t<0?Ta(1e4*t)/1e4:t}function vb(){var t=this.props;return"matrix("+ub(t[0])+","+ub(t[1])+","+ub(t[4])+","+ub(t[5])+","+ub(t[12])+","+ub(t[13])+")"}!function(a,n){var o,h=this,p=256,l=6,m="random",f=n.pow(p,l),c=n.pow(2,52),d=2*c,u=p-1;function y(t){var e,r=t.length,n=this,i=0,s=n.i=n.j=0,a=n.S=[];for(r||(t=[r++]);i<p;)a[i]=i++;for(i=0;i<p;i++)a[i]=a[s=u&s+t[i%r]+(e=a[i])],a[s]=e;n.g=function(t){for(var e,r=0,i=n.i,s=n.j,a=n.S;t--;)e=a[i=u&i+1],r=r*p+a[u&(a[i]=a[s=u&s+e])+(a[s]=e)];return n.i=i,n.j=s,r}}function g(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function v(t,e){for(var r,i=t+"",s=0;s<i.length;)e[u&s]=u&(r^=19*e[u&s])+i.charCodeAt(s++);return P(e)}function P(t){return String.fromCharCode.apply(0,t)}n["seed"+m]=function(t,e,r){var i=[],t=v(function t(e,r){var i,s=[],a=typeof e;if(r&&"object"==a)for(i in e)try{s.push(t(e[i],r-1))}catch(t){}return s.length?s:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,P(a)]:null===t?function(){try{if(o)return P(o.randomBytes(p));var t=new Uint8Array(p);return(h.crypto||h.msCrypto).getRandomValues(t),P(t)}catch(t){var e=h.navigator,e=e&&e.plugins;return[+new Date,h,e,h.screen,P(a)]}}():t,3),i),s=new y(i);return(i=function(){for(var t=s.g(l),e=f,r=0;t<c;)t=(t+r)*p,e*=p,r=s.g(1);for(;d<=t;)t/=2,e/=2,r>>>=1;return(t+r)/e}).int32=function(){return 0|s.g(4)},i.quick=function(){return s.g(4)/4294967296},i.double=i,v(P(s.S),a),(e.pass||r||function(t,e,r,i){return i&&(i.S&&g(i,s),t.state=function(){return g(s,{})}),r?(n[m]=t,e):t})(i,t,"global"in e?e.global:this==n,e.state)},v(n.random(),a)}([],BMMath);var BezierFactory=(hf={getBezierEasing:function(t,e,r,i,s){s=s||("bez_"+t+"_"+e+"_"+r+"_"+i).replace(/\./g,"p");if(jf[s])return jf[s];i=new zf([t,e,r,i]);return jf[s]=i}},jf={},pf=11,qf=1/(pf-1),rf="function"==typeof Float32Array,zf.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===r&&i===s?t:0===t?0:1===t?1:vf(this._getTForX(t),r,s)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<pf;++r)this._mSampleValues[r]=vf(r*qf,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],i=this._mSampleValues,s=0,a=1,n=pf-1;a!==n&&i[a]<=t;++a)s+=qf;var o=s+(t-i[--a])/(i[a+1]-i[a])*qf,h=wf(o,e,r);return.001<=h?function(t,e,r,i){for(var s=0;s<4;++s){var a=wf(e,r,i);if(0===a)return e;e-=(vf(e,r,i)-t)/a}return e}(t,o,e,r):0===h?o:function(t,e,r,i,s){for(var a,n,o=0;0<(a=vf(n=e+(r-e)/2,i,s)-t)?r=n:e=n,1e-7<Math.abs(a)&&++o<10;);return n}(t,s,s+qf,e,r)}},hf),hf,jf,pf,qf,rf;function sf(t,e){return 1-3*e+3*t}function vf(t,e,r){return((sf(e,r)*t+(3*r-6*e))*t+3*e)*t}function wf(t,e,r){return 3*sf(e,r)*t*t+2*(3*r-6*e)*t+3*e}function zf(t){this._p=t,this._mSampleValues=new(rf?Float32Array:Array)(pf),this._precomputed=!1,this.get=this.get.bind(this)}function extendPrototype(t,e){for(var r,i=t.length,s=0;s<i;s+=1)for(var a in r=t[s].prototype)r.hasOwnProperty(a)&&(e.prototype[a]=r[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){Math;function y(t,e,r,i,s,a){e=t*i+e*s+r*a-s*i-a*t-r*e;return-.001<e&&e<.001}var l=function(t,e,r,i){for(var s,a,n,o,h=defaultCurveSegments,p=0,l=[],m=[],f=bezier_length_pool.newElement(),c=r.length,d=0;d<h;d+=1){for(n=d/(h-1),s=o=0;s<c;s+=1)a=bm_pow(1-n,3)*t[s]+3*bm_pow(1-n,2)*n*r[s]+3*(1-n)*bm_pow(n,2)*i[s]+bm_pow(n,3)*e[s],l[s]=a,null!==m[s]&&(o+=bm_pow(l[s]-m[s],2)),m[s]=l[s];o&&(p+=o=bm_sqrt(o)),f.percents[d]=n,f.lengths[d]=p}return f.addedLength=p,f};function g(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}var P,t=(P={},function(t,e,r,i){var s=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!P[s]){var a,n,o,h,p,l=defaultCurveSegments,m=0,f=null;2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&y(t[0],t[1],e[0],e[1],t[0]+r[0],t[1]+r[1])&&y(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(l=2);for(var c=new g(l),d=r.length,u=0;u<l;u+=1){for(p=createSizedArray(d),o=u/(l-1),a=h=0;a<d;a+=1)n=bm_pow(1-o,3)*t[a]+3*bm_pow(1-o,2)*o*(t[a]+r[a])+3*(1-o)*bm_pow(o,2)*(e[a]+i[a])+bm_pow(o,3)*e[a],p[a]=n,null!==f&&(h+=bm_pow(p[a]-f[a],2));m+=h=bm_sqrt(h),c.points[u]=new v(h,p),f=p}c.segmentLength=m,P[s]=c}return P[s]});function C(t,e){var r=e.percents,i=e.lengths,s=r.length,a=bm_floor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===i[a])return r[a];for(var h=i[a]>n?-1:1,p=!0;p;)if(i[a]<=n&&i[a+1]>n?(o=(n-i[a])/(i[a+1]-i[a]),p=!1):a+=h,a<0||s-1<=a){if(a===s-1)return r[a];p=!1}return r[a]+(r[a+1]-r[a])*o}var E=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segments_length_pool.newElement(),r=t.c,i=t.v,s=t.o,a=t.i,n=t._length,o=e.lengths,h=0,p=0;p<n-1;p+=1)o[p]=l(i[p],i[p+1],s[p],a[p+1]),h+=o[p].addedLength;return r&&n&&(o[p]=l(i[p],i[0],s[p],a[0]),h+=o[p].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,r,i,s,a,n){for(var o=C(s=s<0?0:1<s?1:s,n),s=C(a=1<a?1:a,n),h=t.length,p=(a=1-o)*a*a,l=o*a*a*3,m=o*o*a*3,f=o*o*o,c=a*a*(n=1-s),d=o*a*n+a*o*n+a*a*s,u=o*o*n+a*o*s+o*a*s,y=o*o*s,g=a*n*n,v=o*n*n+a*s*n+a*n*s,P=o*s*n+a*s*s+o*n*s,b=o*s*s,x=n*n*n,_=s*n*n+n*s*n+n*n*s,S=s*s*n+n*s*s+s*n*s,A=s*s*s,T=0;T<h;T+=1)E[4*T]=Math.round(1e3*(p*t[T]+l*r[T]+m*i[T]+f*e[T]))/1e3,E[4*T+1]=Math.round(1e3*(c*t[T]+d*r[T]+u*i[T]+y*e[T]))/1e3,E[4*T+2]=Math.round(1e3*(g*t[T]+v*r[T]+P*i[T]+b*e[T]))/1e3,E[4*T+3]=Math.round(1e3*(x*t[T]+_*r[T]+S*i[T]+A*e[T]))/1e3;return E},getPointInSegment:function(t,e,r,i,s,a){return s=C(s,a),a=1-s,[Math.round(1e3*(a*a*a*t[0]+(s*a*a+a*s*a+a*a*s)*r[0]+(s*s*a+a*s*s+s*a*s)*i[0]+s*s*s*e[0]))/1e3,Math.round(1e3*(a*a*a*t[1]+(s*a*a+a*s*a+a*a*s)*r[1]+(s*s*a+a*s*s+s*a*s)*i[1]+s*s*s*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:y,pointOnLine3D:function(t,e,r,i,s,a,n,o,h){if(0===r&&0===a&&0===h)return y(t,e,i,s,n,o);var p=Math.sqrt(Math.pow(i-t,2)+Math.pow(s-e,2)+Math.pow(a-r,2)),r=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)+Math.pow(h-r,2)),a=Math.sqrt(Math.pow(n-i,2)+Math.pow(o-s,2)+Math.pow(h-a,2));return-1e-4<(a=r<p?a<p?p-r-a:a-r-p:r<a?a-r-p:r-p-a)&&a<1e-4}}}!function(){for(var a=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var r=(new Date).getTime(),i=Math.max(0,16-(r-a)),s=setTimeout(function(){t(r+i)},i);return a=r+i,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function m(t,e,r){for(var i,s,a,n=t.length,o=0;o<n;o+=1)if("ks"in(a=t[o])&&!a.completed){if(a.completed=!0,a.tt&&(t[o-1].td=a.tt),a.hasMask)for(var h=a.masksProperties,p=h.length,l=0;l<p;l+=1)if(h[l].pt.k.i)f(h[l].pt.k);else for(s=h[l].pt.k.length,i=0;i<s;i+=1)h[l].pt.k[i].s&&f(h[l].pt.k[i].s[0]),h[l].pt.k[i].e&&f(h[l].pt.k[i].e[0]);0===a.ty?(a.layers=function(t,e){var r=0,i=e.length;for(;r<i;){if(e[r].id===t)return e[r].layers.__used?JSON.parse(JSON.stringify(e[r].layers)):(e[r].layers.__used=!0,e[r].layers);r+=1}}(a.refId,e),m(a.layers,e,r)):4===a.ty?function t(e){var r,i=e.length;var s,a;for(r=i-1;0<=r;--r)if("sh"==e[r].ty){if(e[r].ks.k.i)f(e[r].ks.k);else for(a=e[r].ks.k.length,s=0;s<a;s+=1)e[r].ks.k[s].s&&f(e[r].ks.k[s].s[0]),e[r].ks.k[s].e&&f(e[r].ks.k[s].e[0]);0}else"gr"==e[r].ty&&t(e[r].it)}(a.shapes):5==a.ty&&(0!==(a=a).t.a.length||"m"in a.t.p||(a.singleShape=!0))}}function f(t){for(var e=t.i.length,r=0;r<e;r+=1)t.i[r][0]+=t.v[r][0],t.i[r][1]+=t.v[r][1],t.o[r][0]+=t.v[r][0],t.o[r][1]+=t.v[r][1]}function o(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}var i,r=(i=[4,4,14],function(t){if(o(i,t.v)&&(s(t.layers),t.assets))for(var e=t.assets.length,r=0;r<e;r+=1)t.assets[r].layers&&s(t.assets[r].layers)});function s(t){for(var e,r,i=t.length,s=0;s<i;s+=1)5===t[s].ty&&(e=t[s],r=void 0,r=e.t.d,e.t.d={k:[{s:r,t:0}]})}var h,a,n=(h=[4,7,99],function(t){if(t.chars&&!o(h,t.v))for(var e,r,i,s,a=t.chars.length,n=0;n<a;n+=1)if(t.chars[n].data&&t.chars[n].data.shapes)for(r=(s=t.chars[n].data.shapes[0].it).length,e=0;e<r;e+=1)(i=s[e].ks.k).__converted||(f(s[e].ks.k),i.__converted=!0)}),p=(a=[4,1,9],function(t){if(o(a,t.v)&&(l(t.layers),t.assets))for(var e=t.assets.length,r=0;r<e;r+=1)t.assets[r].layers&&l(t.assets[r].layers)});function l(t){for(var e=t.length,r=0;r<e;r+=1)4===t[r].ty&&!function t(e){for(var r,i,s=e.length,a=0;a<s;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(i=e[a].c.k.length,r=0;r<i;r+=1)e[a].c.k[r].s&&(e[a].c.k[r].s[0]/=255,e[a].c.k[r].s[1]/=255,e[a].c.k[r].s[2]/=255,e[a].c.k[r].s[3]/=255),e[a].c.k[r].e&&(e[a].c.k[r].e[0]/=255,e[a].c.k[r].e[1]/=255,e[a].c.k[r].e[2]/=255,e[a].c.k[r].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}(t[r].shapes)}var c,d=(c=[4,4,18],function(t){if(o(c,t.v)&&(u(t.layers),t.assets))for(var e=t.assets.length,r=0;r<e;r+=1)t.assets[r].layers&&u(t.assets[r].layers)});function u(t){for(var e,r,i,s=t.length,a=0;a<s;a+=1){if((e=t[a]).hasMask)for(var n=e.masksProperties,o=n.length,h=0;h<o;h+=1)if(n[h].pt.k.i)n[h].pt.k.c=n[h].cl;else for(i=n[h].pt.k.length,r=0;r<i;r+=1)n[h].pt.k[r].s&&(n[h].pt.k[r].s[0].c=n[h].cl),n[h].pt.k[r].e&&(n[h].pt.k[r].e[0].c=n[h].cl);4===e.ty&&!function t(e){for(var r,i,s=e.length-1;0<=s;--s)if("sh"==e[s].ty)if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(i=e[s].ks.k.length,r=0;r<i;r+=1)e[s].ks.k[r].s&&(e[s].ks.k[r].s[0].c=e[s].closed),e[s].ks.k[r].e&&(e[s].ks.k[r].e[0].c=e[s].closed);else"gr"==e[s].ty&&t(e[s].it)}(e.shapes)}}var t={completeData:function(t,e){t.__complete||(p(t),r(t),n(t),d(t),m(t.layers,t.assets,e),t.__complete=!0)}};return t.checkColors=p,t.checkChars=n,t.checkShapes=d,t.completeLayers=m,t}var dataManager=dataFunctionManager(),FontManager=function(){var a={w:0,size:0,shapes:[]},t=[];function f(t,e){var r=createTag("span");r.style.fontFamily=e;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var s=i.offsetWidth;return i.style.fontFamily=function(t){for(var e=t.split(","),r=e.length,i=[],s=0;s<r;s+=1)"sans-serif"!==e[s]&&"monospace"!==e[s]&&i.push(e[s]);return i.join(",")}(t)+", "+e,{node:i,w:s,parent:r}}t=t.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]);function e(){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)}return e.getCombinedCharacterCodes=function(){return t},e.prototype={addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,r,i=t.length,s=this.chars.length,a=0;a<i;a+=1){for(e=0,r=!1;e<s;)this.chars[e].style===t[a].style&&this.chars[e].fFamily===t[a].fFamily&&this.chars[e].ch===t[a].ch&&(r=!0),e+=1;r||(this.chars.push(t[a]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);for(var r=t.list,i=r.length,s=i,a=0;a<i;a+=1){var n,o,h,p,l,m=!0;if(r[a].loaded=!1,r[a].monoCase=f(r[a].fFamily,"monospace"),r[a].sansCase=f(r[a].fFamily,"sans-serif"),r[a].fPath){if("p"===r[a].fOrigin||3===r[a].origin)0<(h=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[a].fFamily+'"], style[f-origin="3"][f-family="'+r[a].fFamily+'"]')).length&&(m=!1),m&&((o=createTag("style")).setAttribute("f-forigin",r[a].fOrigin),o.setAttribute("f-origin",r[a].origin),o.setAttribute("f-family",r[a].fFamily),o.type="text/css",o.innerText="@font-face {font-family: "+r[a].fFamily+"; font-style: normal; src: url('"+r[a].fPath+"');}",e.appendChild(o));else if("g"===r[a].fOrigin||1===r[a].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),n=0;n<h.length;n++)-1!==h[n].href.indexOf(r[a].fPath)&&(m=!1);m&&((p=createTag("link")).setAttribute("f-forigin",r[a].fOrigin),p.setAttribute("f-origin",r[a].origin),p.type="text/css",p.rel="stylesheet",p.href=r[a].fPath,document.body.appendChild(p))}else if("t"===r[a].fOrigin||2===r[a].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),n=0;n<h.length;n++)r[a].fPath===h[n].src&&(m=!1);m&&((l=createTag("link")).setAttribute("f-forigin",r[a].fOrigin),l.setAttribute("f-origin",r[a].origin),l.setAttribute("rel","stylesheet"),l.setAttribute("href",r[a].fPath),e.appendChild(l))}}else r[a].loaded=!0,--s;r[a].helper=(o=e,p=r[a],l=void 0,(l=createNS("text")).style.fontSize="100px",l.setAttribute("font-family",p.fFamily),l.setAttribute("font-style",p.fStyle),l.setAttribute("font-weight",p.fWeight),l.textContent="1",p.fClass?(l.style.fontFamily="inherit",l.setAttribute("class",p.fClass)):l.style.fontFamily=p.fFamily,o.appendChild(l),createTag("canvas").getContext("2d").font=p.fWeight+" "+p.fStyle+" 100px "+p.fFamily,l),r[a].cache={},this.fonts.push(r[a])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,e,r){for(var i=0,s=this.chars.length;i<s;){if(this.chars[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,r)),a},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var i,s,a=this.getFontByName(e),n=t.charCodeAt(0);return a.cache[n+1]||(i=a.helper," "===t?(i.textContent="|"+t+"|",s=i.getComputedTextLength(),i.textContent="||",e=i.getComputedTextLength(),a.cache[n+1]=(s-e)/100):(i.textContent=t,a.cache[n+1]=i.getComputedTextLength()/100)),a.cache[n+1]*r},checkLoadedFonts:function(){for(var t,e,r=this.fonts.length,i=r,s=0;s<r;s+=1)this.fonts[s].loaded?--i:"n"===this.fonts[s].fOrigin||0===this.fonts[s].origin?this.fonts[s].loaded=!0:(t=this.fonts[s].monoCase.node,e=this.fonts[s].monoCase.w,t.offsetWidth!==e?(--i,this.fonts[s].loaded=!0):(t=this.fonts[s].sansCase.node,e=this.fonts[s].sansCase.w,t.offsetWidth!==e&&(--i,this.fonts[s].loaded=!0)),this.fonts[s].loaded&&(this.fonts[s].sansCase.parent.parentNode.removeChild(this.fonts[s].sansCase.parent),this.fonts[s].monoCase.parent.parentNode.removeChild(this.fonts[s].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},e}(),PropertyFactory=(wm=initialDefaultFrame,xm=Math.abs,{getProp:function(t,e,r,i,s){var a;if(e.k.length)if("number"==typeof e.k[0])a=new Hm(t,e,i,s);else switch(r){case 0:a=new Im(t,e,i,s);break;case 1:a=new Jm(t,e,i,s)}else a=new Gm(t,e,i,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}),wm,xm;function ym(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var s,a,n,o,h=e.lastIndex,p=h,l=this.keyframes.length-1,m=!0;m;){if(s=this.keyframes[p],a=this.keyframes[p+1],p===l-1&&t>=a.t-i){s.h&&(s=a),h=0;break}if(a.t-i>t){h=p;break}p<l-1?p+=1:(h=0,m=!1)}var f,c,d,u,y,g=a.t-i,v=s.t-i;if(s.to){s.bezierData||(s.bezierData=bez.buildBezierData(s.s,a.s||s.e,s.to,s.ti));var P=s.bezierData;if(g<=t||t<v)for(var b=g<=t?P.points.length-1:0,x=P.points[b].point.length,_=0;_<x;_+=1)r[_]=P.points[b].point[_];else{s.__fnct?o=s.__fnct:(o=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,s.__fnct=o),n=o((t-v)/(g-v));for(var S,A=P.segmentLength*n,T=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastAddedLength:0,C=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastPoint:0,m=!0,E=P.points.length;m;){if(T+=P.points[C].partialLength,0==A||0===n||C===P.points.length-1){for(x=P.points[C].point.length,_=0;_<x;_+=1)r[_]=P.points[C].point[_];break}if(T<=A&&A<T+P.points[C+1].partialLength){for(S=(A-T)/P.points[C+1].partialLength,x=P.points[C].point.length,_=0;_<x;_+=1)r[_]=P.points[C].point[_]+(P.points[C+1].point[_]-P.points[C].point[_])*S;break}C<E-1?C+=1:m=!1}e._lastPoint=C,e._lastAddedLength=T-P.points[C].partialLength,e._lastKeyframeIndex=p}}else{var M,k,D,I,F,w,V,l=s.s.length,R=a.s||s.e;if(this.sh&&1!==s.h)g<=t?(r[0]=R[0],r[1]=R[1],r[2]=R[2]):t<=v?(r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2]):(w=Bm(s.s),V=Bm(R),f=r,c=function(t,e,r){var i,s=[],a=t[0],n=t[1],o=t[2],h=t[3],p=e[0],l=e[1],m=e[2],f=e[3];(t=a*p+n*l+o*m+h*f)<0&&(t=-t,p=-p,l=-l,m=-m,f=-f);r=1e-6<1-t?(e=Math.acos(t),t=Math.sin(e),i=Math.sin((1-r)*e)/t,Math.sin(r*e)/t):(i=1-r,r);return s[0]=i*a+r*p,s[1]=i*n+r*l,s[2]=i*o+r*m,s[3]=i*h+r*f,s}(w,V,(t-v)/(g-v)),d=c[0],u=c[1],y=c[2],w=c[3],V=Math.atan2(2*u*w-2*d*y,1-2*u*u-2*y*y),c=Math.asin(2*d*u+2*y*w),y=Math.atan2(2*d*w-2*u*y,1-2*d*d-2*y*y),f[0]=V/degToRads,f[1]=c/degToRads,f[2]=y/degToRads);else for(p=0;p<l;p+=1)1!==s.h&&(n=g<=t?1:t<v?0:(s.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[p]?o=s.__fnct[p]:(M=void 0===s.o.x[p]?s.o.x[0]:s.o.x[p],k=void 0===s.o.y[p]?s.o.y[0]:s.o.y[p],D=void 0===s.i.x[p]?s.i.x[0]:s.i.x[p],I=void 0===s.i.y[p]?s.i.y[0]:s.i.y[p],o=BezierFactory.getBezierEasing(M,k,D,I).get,s.__fnct[p]=o)):s.__fnct?o=s.__fnct:(M=s.o.x,k=s.o.y,D=s.i.x,I=s.i.y,o=BezierFactory.getBezierEasing(M,k,D,I).get,s.__fnct=o),o((t-v)/(g-v)))),R=a.s||s.e,F=1===s.h?s.s[p]:s.s[p]+(R[p]-s.s[p])*n,"multidimensional"===this.propType?r[p]=F:r=F}return e.lastIndex=h,r}function Bm(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(r/2),t=Math.cos(i/2),e=Math.sin(e/2),r=Math.sin(r/2),i=Math.sin(i/2);return[e*r*t+s*a*i,e*a*t+s*r*i,s*r*t-e*a*i,s*a*t-e*r*i]}function Cm(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==wm&&(this._caching.lastFrame>=r&&r<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),e=this.interpolateValue(t,this._caching),this.pv=e),this._caching.lastFrame=t,this.pv}function Dm(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<xm(this.v-e)&&(this.v=e,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)e=t[r]*this.mult,1e-5<xm(this.v[r]-e)&&(this.v[r]=e,this._mdf=!0),r+=1}function Em(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,r=0;r<t;r+=1)e=this.effectsSequence[r](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Fm(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function Gm(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Em,this.setVValue=Dm,this.addEffect=Fm}function Hm(t,e,r,i){this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=e.k.length;this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a);createTypedArray("float32",a);for(this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Em,this.setVValue=Dm,this.addEffect=Fm}function Im(t,e,r,i){this.propType="unidimensional",this.keyframes=e.k,this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:wm,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=wm,this.pv=wm,this._isFirstFrame=!0,this.getValue=Em,this.setVValue=Dm,this.interpolateValue=ym,this.effectsSequence=[Cm.bind(this)],this.addEffect=Fm}function Jm(t,e,r,i){this.propType="multidimensional";for(var s,a,n,o,h=e.k.length,p=0;p<h-1;p+=1)e.k[p].to&&e.k[p].s&&e.k[p+1]&&e.k[p+1].s&&(s=e.k[p].s,a=e.k[p+1].s,n=e.k[p].to,o=e.k[p].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+n[0],s[1]+n[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+n[0],s[1]+n[1],s[2]+n[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[p].to=null,e.k[p].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===s.length||s[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[p].to=null,e.k[p].ti=null));this.effectsSequence=[Cm.bind(this)],this.data=e,this.keyframes=e.k,this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=Em,this.setVValue=Dm,this.interpolateValue=ym,this.frameId=-1;var l=e.k[0].s.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),p=0;p<l;p+=1)this.v[p]=wm,this.pv[p]=wm;this._caching={lastFrame:wm,lastIndex:0,value:createTypedArray("float32",l)},this.addEffect=Fm}var TransformPropertyFactory=(Xo=[0,0],bp.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.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?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,r,i,s;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(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&&(s=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?r=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),this.p.getValueAtTime(this.p.keyframes[0].t/s,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/s,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],r=[],i=this.px,t=this.py,i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(e[0]=i.getValueAtTime((i.keyframes[0].t+.01)/s,0),e[1]=t.getValueAtTime((t.keyframes[0].t+.01)/s,0),r[0]=i.getValueAtTime(i.keyframes[0].t/s,0),r[1]=t.getValueAtTime(t.keyframes[0].t/s,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(e[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/s,0),e[1]=t.getValueAtTime(t.keyframes[t.keyframes.length-1].t/s,0),r[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/s,0),r[1]=t.getValueAtTime((t.keyframes[t.keyframes.length-1].t-.01)/s,0)):(e=[i.pv,t.pv],r[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/s,i.offsetTime),r[1]=t.getValueAtTime((t._caching.lastFrame+t.offsetTime-.01)/s,t.offsetTime))):e=r=Xo,this.v.rotate(-Math.atan2(e[1]-r[1],e[0]-r[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],bp),bp.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},bp.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,r){return new bp(t,e,r)}}),Xo;function bp(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var i=e.or.k.length,s=0;s<i;s+=1)e.or.k[s].to=e.or.k[s].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=point_pool.newElement(),this.o[r]=point_pool.newElement(),this.i[r]=point_pool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}a[i]&&(!a[i]||s)||(a[i]=point_pool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(r,i,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);for(var a=this._length-1,n=this._length,o=s;o<n;o+=1)t.setTripleAt(e[a][0],e[a][1],i[a][0],i[a][1],r[a][0],r[a][1],o,!1),--a;return t};var ShapePropertyFactory=function(){var s=-999999;function t(t,e,r){var i,s,a,n,o,h,p,l=r.lastIndex,m=this.keyframes;if(t<m[0].t-this.offsetTime)i=m[0].s[0],s=!0,l=0;else if(t>=m[m.length-1].t-this.offsetTime)i=(m[m.length-1].s?m[m.length-1].s:m[m.length-2].e)[0],s=!0;else{for(var f,c,d,u,y,g=l,v=m.length-1,P=!0;P&&(f=m[g],!((c=m[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:P=!1;l=g,(s=1===f.h)||(u=t>=c.t-this.offsetTime?1:t<f.t-this.offsetTime?0:(f.__fnct?d=f.__fnct:(d=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,f.__fnct=d),d((t-(f.t-this.offsetTime))/(c.t-this.offsetTime-(f.t-this.offsetTime)))),y=(c.s||f.e)[0]),i=f.s[0]}for(o=e._length,h=i.i[0].length,r.lastIndex=l,a=0;a<o;a+=1)for(n=0;n<h;n+=1)p=s?i.i[a][n]:i.i[a][n]+(y.i[a][n]-i.i[a][n])*u,e.i[a][n]=p,p=s?i.o[a][n]:i.o[a][n]+(y.o[a][n]-i.o[a][n])*u,e.o[a][n]=p,p=s?i.v[a][n]:i.v[a][n]+(y.v[a][n]-i.v[a][n])*u,e.v[a][n]=p}function i(){this.paths=this.localShapeCollection}function e(t){!function(t,e){if(t._length===e._length&&t.c===e.c){for(var r=t._length,i=0;i<r;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return;return 1}}(this.v,t)&&(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;for(var t=this.kf?this.pv:(this.data.ks||this.data.pt).k,e=this.effectsSequence.length,r=0;r<e;r+=1)t=this.effectsSequence[r](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;e=(3===r?e.pt:e.ks).k;this.v=shape_pool.clone(e),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,r){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===r?e.pt:e.ks).k,this.k=!0,this.kf=!0;e=this.keyframes[0].s[0].i.length,this.keyframes[0].s[0].i[0].length;this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,e),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=s,this.reset=i,this._caching={lastFrame:s,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==s&&(i<e&&t<e||r<i&&r<t)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=r,a.prototype.setVValue=e,a.prototype.addEffect=n,o.prototype.getValue=r,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=n;var h,p=(h=roundCorner,l.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-i,a.v[1][0]=s?t+r:t-r,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+i,a.v[3][0]=s?t-r:t+r,a.v[3][1]=e,a.i[0][0]=s?t-r*h:t+r*h,a.i[0][1]=e-i,a.i[1][0]=s?t+r:t-r,a.i[1][1]=e-i*h,a.i[2][0]=s?t+r*h:t-r*h,a.i[2][1]=e+i,a.i[3][0]=s?t-r:t+r,a.i[3][1]=e+i*h,a.o[0][0]=s?t+r*h:t-r*h,a.o[0][1]=e-i,a.o[1][0]=s?t+r:t-r,a.o[1][1]=e+i*h,a.o[2][0]=s?t-r*h:t+r*h,a.o[2][1]=e+i,a.o[3][0]=s?t-r:t+r,a.o[3][1]=e-i*h}},extendPrototype([DynamicPropertyContainer],l),l);function l(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}var m=(f.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r=2*Math.floor(this.pt.v),i=2*Math.PI/r,s=!0,a=this.or.v,n=this.ir.v,o=this.os.v,h=this.is.v,p=2*Math.PI*a/(2*r),l=2*Math.PI*n/(2*r),m=-Math.PI/2;m+=this.r.v;for(var f=3===this.data.d?-1:1,c=this.v._length=0;c<r;c+=1){t=s?o:h,e=s?p:l;var d=(g=s?a:n)*Math.cos(m),u=g*Math.sin(m),y=0===d&&0===u?0:u/Math.sqrt(d*d+u*u),g=0===d&&0===u?0:-d/Math.sqrt(d*d+u*u);d+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(d,u,d-y*e*t*f,u-g*e*t*f,d+y*e*t*f,u+g*e*t*f,c,!0),s=!s,m+=i*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,s=this.os.v,a=2*Math.PI*i/(4*e),n=-Math.PI/2,o=3===this.data.d?-1:1;for(n+=this.r.v,t=this.v._length=0;t<e;t+=1){var h=i*Math.cos(n),p=i*Math.sin(n),l=0===h&&0===p?0:p/Math.sqrt(h*h+p*p),m=0===h&&0===p?0:-h/Math.sqrt(h*h+p*p);h+=+this.p.v[0],p+=+this.p.v[1],this.v.setTripleAt(h,p,h-l*a*s*o,p-m*a*s*o,h+l*a*s*o,p+m*a*s*o,t,!0),n+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f),f);function f(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}var c=(d.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,s=bm_min(r,i,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+s,t+r,e-i+a,0,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-a,t+r,e+i-s,1,!0),0!==s?(this.v.setTripleAt(t+r-s,e+i,t+r-s,e+i,t+r-a,e+i,2,!0),this.v.setTripleAt(t-r+s,e+i,t-r+a,e+i,t-r+s,e+i,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-s,t-r,e+i-a,4,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+a,t-r,e-i+s,5,!0),this.v.setTripleAt(t-r+s,e-i,t-r+s,e-i,t-r+a,e-i,6,!0),this.v.setTripleAt(t+r-s,e-i,t+r-a,e-i,t+r-s,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+a,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+a,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+a,t+r,e-i+s,0,!0),0!==s?(this.v.setTripleAt(t+r-s,e-i,t+r-s,e-i,t+r-a,e-i,1,!0),this.v.setTripleAt(t-r+s,e-i,t-r+a,e-i,t-r+s,e-i,2,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+s,t-r,e-i+a,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-a,t-r,e+i-s,4,!0),this.v.setTripleAt(t-r+s,e+i,t-r+s,e+i,t-r+a,e+i,5,!0),this.v.setTripleAt(t+r-s,e+i,t+r-a,e+i,t+r-s,e+i,6,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-s,t+r,e+i-a,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+a,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-a,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-a,e+i,t+r,e+i,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],d),d);function d(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}var u={getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=new((3===r?e.pt:e.ks).k.length?o:a)(t,e,r):5===r?i=new c(t,e):6===r?i=new p(t,e):7===r&&(i=new m(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return u}(),ShapeModifiers=(es={},fs={},es.registerModifier=function(t,e){fs[t]||(fs[t]=e)},es.getModifier=function(t,e,r){return new fs[t](e,r)},es),es,fs;function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function PuckerAndBloatModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,r,i){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);for(var s,a=e.length||0,n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.g