@teamhive/lottie-player
Version:
Lottie animation web component.
9 lines • 214 kB
JavaScript
var __awaiter=this&&this.__awaiter||function(t,e,r,i){function s(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function n(t){try{h(i.next(t))}catch(e){a(e)}}function o(t){try{h(i["throw"](t))}catch(e){a(e)}}function h(t){t.done?r(t.value):s(t.value).then(n,o)}h((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return h([t,e])}}function h(n){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,s&&(a=n[0]&2?s["return"]:n[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,n[1])).done)return a;if(s=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:r.label++;return{value:n[1],done:false};case 5:r.label++;s=n[1];n=[0];continue;case 7:n=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){r.label=n[1];break}if(n[0]===6&&r.label<a[1]){r.label=a[1];a=n;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(n);break}if(a[2])r.ops.pop();r.trys.pop();continue}n=e.call(t,r)}catch(o){n=[6,o];s=0}finally{i=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};System.register(["./p-0e4a7530.system.js"],(function(exports){"use strict";var registerInstance,createEvent,h;return{setters:[function(t){registerInstance=t.r;createEvent=t.c;h=t.h}],execute:function(){function createCommonjsModule(t,e){return e={exports:{}},t(e,e.exports),e.exports}var lottie_svg=createCommonjsModule((function(module){typeof navigator!=="undefined"&&function(t,e){if(module.exports){module.exports=e(t)}else{t.lottie=e(t);t.bodymovin=t.lottie}}(window||{},(function(window){var svgNS="http://www.w3.org/2000/svg";var locationHref="";var initialDefaultFrame=-999999;var subframeEnabled=true;var expressionsPlugin;var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var bm_pow=Math.pow;var bm_sqrt=Math.sqrt;var bm_floor=Math.floor;var bm_min=Math.min;var BMMath={};(function(){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"];var e,r=t.length;for(e=0;e<r;e+=1){BMMath[t[e]]=Math[t[e]]}})();function ProjectInterface(){return{}}BMMath.random=Math.random;BMMath.abs=function(t){var e=typeof t;if(e==="object"&&t.length){var r=createSizedArray(t.length);var i,s=t.length;for(i=0;i<s;i+=1){r[i]=Math.abs(t[i])}return r}return Math.abs(t)};var defaultCurveSegments=150;var degToRads=Math.PI/180;var roundCorner=.5519;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}var createElementID=function(){var t=0;return function e(){return"__lottie_element_"+ ++t}}();function HSVtoRGB(t,e,r){var i,s,a,n,o,h,l,f;n=Math.floor(t*6);o=t*6-n;h=r*(1-e);l=r*(1-o*e);f=r*(1-(1-o)*e);switch(n%6){case 0:i=r;s=f;a=h;break;case 1:i=l;s=r;a=h;break;case 2:i=h;s=r;a=f;break;case 3:i=h;s=l;a=r;break;case 4:i=f;s=h;a=r;break;case 5:i=r;s=h;a=l;break}return[i,s,a]}function RGBtoHSV(t,e,r){var i=Math.max(t,e,r),s=Math.min(t,e,r),a=i-s,n,o=i===0?0:a/i,h=i/255;switch(i){case s:n=0;break;case t:n=e-r+a*(e<r?6:0);n/=6*a;break;case e:n=r-t+a*2;n/=6*a;break;case r:n=t-e+a*4;n/=6*a;break}return[n,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);r[1]+=e;if(r[1]>1){r[1]=1}else if(r[1]<=0){r[1]=0}return HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);r[2]+=e;if(r[2]>1){r[2]=1}else if(r[2]<0){r[2]=0}return HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);r[0]+=e/360;if(r[0]>1){r[0]-=1}else if(r[0]<0){r[0]+=1}return HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t=[];var e;var r;for(e=0;e<256;e+=1){r=e.toString(16);t[e]=r.length==1?"0"+r:r}return function(e,r,i){if(e<0){e=0}if(r<0){r=0}if(i<0){i=0}return"#"+t[e]+t[r]+t[i]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t]){var r=this._cbs[t].length;for(var i=0;i<r;i++){this._cbs[t][i](e)}}},addEventListener:function(t,e){if(!this._cbs[t]){this._cbs[t]=[]}this._cbs[t].push(e);return function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(!e){this._cbs[t]=null}else if(this._cbs[t]){var r=0,i=this._cbs[t].length;while(r<i){if(this._cbs[t][r]===e){this._cbs[t].splice(r,1);r-=1;i-=1}r+=1}if(!this._cbs[t].length){this._cbs[t]=null}}}};var createTypedArray=function(){function t(t,e){var r=0,i=[],s;switch(t){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(r=0;r<e;r+=1){i.push(s)}return i}function e(t,e){if(t==="float32"){return new Float32Array(e)}else if(t==="int16"){return new Int16Array(e)}else if(t==="uint8c"){return new Uint8ClampedArray(e)}}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function"){return e}else{return t}}();function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){if(this.dynamicProperties.indexOf(t)===-1){this.dynamicProperties.push(t);this.container.addDynamicProperty(this);this._isAnimated=true}},iterateDynamicProperties:function(){this._mdf=false;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1){this.dynamicProperties[t].getValue();if(this.dynamicProperties[t]._mdf){this._mdf=true}}},initDynamicPropertyContainer:function(t){this.container=t;this.dynamicProperties=[];this._mdf=false;this._isAnimated=false}};var getBlendMode=function(){var t={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(e){return t[e]||""}}();
/*!
Transformation Matrix v2.0
(c) Epistemex 2014-2015
www.epistemex.com
By Ken Fyrstenberg
Contributions by leeoniya.
License: MIT, header required.
*/var Matrix=function(){var t=Math.cos;var e=Math.sin;var r=Math.tan;var i=Math.round;function s(){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;return this}function a(r){if(r===0){return this}var i=t(r);var s=e(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function n(r){if(r===0){return this}var i=t(r);var s=e(r);return this._t(1,0,0,0,0,i,-s,0,0,s,i,0,0,0,0,1)}function o(r){if(r===0){return this}var i=t(r);var s=e(r);return this._t(i,0,s,0,0,1,0,0,-s,0,i,0,0,0,0,1)}function h(r){if(r===0){return this}var i=t(r);var s=e(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function f(t,e){return this.shear(r(t),r(e))}function p(i,s){var a=t(s);var n=e(s);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function c(t,e,r){if(!r&&r!==0){r=1}if(t===1&&e===1&&r===1){return this}return this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function u(t,e,r,i,s,a,n,o,h,l,f,p,c,u,m,d){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]=l;this.props[10]=f;this.props[11]=p;this.props[12]=c;this.props[13]=u;this.props[14]=m;this.props[15]=d;return this}function m(t,e,r){r=r||0;if(t!==0||e!==0||r!==0){return this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1)}return this}function d(t,e,r,i,s,a,n,o,h,l,f,p,c,u,m,d){var v=this.props;if(t===1&&e===0&&r===0&&i===0&&s===0&&a===1&&n===0&&o===0&&h===0&&l===0&&f===1&&p===0){v[12]=v[12]*t+v[15]*c;v[13]=v[13]*a+v[15]*u;v[14]=v[14]*f+v[15]*m;v[15]=v[15]*d;this._identityCalculated=false;return this}var y=v[0];var g=v[1];var b=v[2];var P=v[3];var _=v[4];var S=v[5];var E=v[6];var x=v[7];var A=v[8];var k=v[9];var M=v[10];var T=v[11];var w=v[12];var F=v[13];var D=v[14];var C=v[15];v[0]=y*t+g*s+b*h+P*c;v[1]=y*e+g*a+b*l+P*u;v[2]=y*r+g*n+b*f+P*m;v[3]=y*i+g*o+b*p+P*d;v[4]=_*t+S*s+E*h+x*c;v[5]=_*e+S*a+E*l+x*u;v[6]=_*r+S*n+E*f+x*m;v[7]=_*i+S*o+E*p+x*d;v[8]=A*t+k*s+M*h+T*c;v[9]=A*e+k*a+M*l+T*u;v[10]=A*r+k*n+M*f+T*m;v[11]=A*i+k*o+M*p+T*d;v[12]=w*t+F*s+D*h+C*c;v[13]=w*e+F*a+D*l+C*u;v[14]=w*r+F*n+D*f+C*m;v[15]=w*i+F*o+D*p+C*d;this._identityCalculated=false;return this}function v(){if(!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=true}return this._identity}function y(t){var e=0;while(e<16){if(t.props[e]!==this.props[e]){return false}e+=1}return true}function g(t){var e;for(e=0;e<16;e+=1){t.props[e]=this.props[e]}}function b(t){var e;for(e=0;e<16;e+=1){this.props[e]=t[e]}}function P(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 _(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function S(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function E(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function x(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4];var r=this.props[5]/e;var i=-this.props[1]/e;var s=-this.props[4]/e;var a=this.props[0]/e;var n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e;var o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*r+t[1]*s+n,t[0]*i+t[1]*a+o,0]}function A(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1){i[e]=x(t[e])}return i}function k(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity()){i[0]=t[0];i[1]=t[1];i[2]=e[0];i[3]=e[1];i[4]=r[0];i[5]=r[1]}else{var s=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i[0]=t[0]*s+t[1]*n+h;i[1]=t[0]*a+t[1]*o+l;i[2]=e[0]*s+e[1]*n+h;i[3]=e[0]*a+e[1]*o+l;i[4]=r[0]*s+r[1]*n+h;i[5]=r[0]*a+r[1]*o+l}return i}function M(t,e,r){var i;if(this.isIdentity()){i=[t,e,r]}else{i=[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 i}function T(t,e){if(this.isIdentity()){return t+","+e}var r=this.props;return Math.round((t*r[0]+e*r[4]+r[12])*100)/100+","+Math.round((t*r[1]+e*r[5]+r[13])*100)/100}function w(){var t=0;var e=this.props;var r="matrix3d(";var s=1e4;while(t<16){r+=i(e[t]*s)/s;r+=t===15?")":",";t+=1}return r}function F(t){var e=1e4;if(t<1e-6&&t>0||t>-1e-6&&t<0){return i(t*e)/e}return t}function D(){var t=this.props;var e=F(t[0]);var r=F(t[1]);var i=F(t[4]);var s=F(t[5]);var a=F(t[12]);var n=F(t[13]);return"matrix("+e+","+r+","+i+","+s+","+a+","+n+")"}return function(){this.reset=s;this.rotate=a;this.rotateX=n;this.rotateY=o;this.rotateZ=h;this.skew=f;this.skewFromAxis=p;this.shear=l;this.scale=c;this.setTransform=u;this.translate=m;this.transform=d;this.applyToPoint=P;this.applyToX=_;this.applyToY=S;this.applyToZ=E;this.applyToPointArray=M;this.applyToTriplePoints=k;this.applyToPointStringified=T;this.toCSS=w;this.to2dCSS=D;this.clone=g;this.cloneFromProps=b;this.equals=y;this.inversePoints=A;this.inversePoint=x;this._t=this.transform;this.isIdentity=v;this._identity=true;this._identityCalculated=false;this.props=createTypedArray("float32",16);this.reset()}}();(function(t,e){var r=this,i=256,s=6,a=52,n="random",o=e.pow(i,s),h=e.pow(2,a),l=h*2,f=i-1;function p(r,a,f){var p=[];a=a===true?{entropy:true}:a||{};var g=d(m(a.entropy?[r,y(t)]:r===null?v():r,3),p);var b=new c(p);var P=function(){var t=b.g(s),e=o,r=0;while(t<h){t=(t+r)*i;e*=i;r=b.g(1)}while(t>=l){t/=2;e/=2;r>>>=1}return(t+r)/e};P.int32=function(){return b.g(4)|0};P.quick=function(){return b.g(4)/4294967296};P.double=P;d(y(b.S),t);return(a.pass||f||function(t,r,i,s){if(s){if(s.S){u(s,b)}t.state=function(){return u(b,{})}}if(i){e[n]=t;return r}else return t})(P,g,"global"in a?a.global:this==e,a.state)}e["seed"+n]=p;function c(t){var e,r=t.length,s=this,a=0,n=s.i=s.j=0,o=s.S=[];if(!r){t=[r++]}while(a<i){o[a]=a++}for(a=0;a<i;a++){o[a]=o[n=f&n+t[a%r]+(e=o[a])];o[n]=e}s.g=function(t){var e,r=0,a=s.i,n=s.j,o=s.S;while(t--){e=o[a=f&a+1];r=r*i+o[f&(o[a]=o[n=f&n+e])+(o[n]=e)]}s.i=a;s.j=n;return r}}function u(t,e){e.i=t.i;e.j=t.j;e.S=t.S.slice();return e}function m(t,e){var r=[],i=typeof t,s;if(e&&i=="object"){for(s in t){try{r.push(m(t[s],e-1))}catch(a){}}}return r.length?r:i=="string"?t:t+"\0"}function d(t,e){var r=t+"",i,s=0;while(s<r.length){e[f&s]=f&(i^=e[f&s]*19)+r.charCodeAt(s++)}return y(e)}function v(){try{var e=new Uint8Array(i);(r.crypto||r.msCrypto).getRandomValues(e);return y(e)}catch(n){var s=r.navigator,a=s&&s.plugins;return[+new Date,r,a,r.screen,y(t)]}}function y(t){return String.fromCharCode.apply(0,t)}d(e.random(),t)})([],BMMath);var BezierFactory=function(){var t={};t.getBezierEasing=r;var e={};function r(t,r,i,s,a){var n=a||("bez_"+t+"_"+r+"_"+i+"_"+s).replace(/\./g,"p");if(e[n]){return e[n]}var o=new y([t,r,i,s]);e[n]=o;return o}var i=4;var s=.001;var a=1e-7;var n=10;var o=11;var h=1/(o-1);var l=typeof Float32Array==="function";function f(t,e){return 1-3*e+3*t}function p(t,e){return 3*e-6*t}function c(t){return 3*t}function u(t,e,r){return((f(e,r)*t+p(e,r))*t+c(e))*t}function m(t,e,r){return 3*f(e,r)*t*t+2*p(e,r)*t+c(e)}function d(t,e,r,i,s){var o,h,l=0;do{h=e+(r-e)/2;o=u(h,i,s)-t;if(o>0){r=h}else{e=h}}while(Math.abs(o)>a&&++l<n);return h}function v(t,e,r,s){for(var a=0;a<i;++a){var n=m(e,r,s);if(n===0)return e;var o=u(e,r,s)-t;e-=o/n}return e}function y(t){this._p=t;this._mSampleValues=l?new Float32Array(o):new Array(o);this._precomputed=false;this.get=this.get.bind(this)}y.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],s=this._p[3];if(!this._precomputed)this._precompute();if(e===r&&i===s)return t;if(t===0)return 0;if(t===1)return 1;return u(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=true;if(t!==e||r!==i)this._calcSampleValues()},_calcSampleValues:function(){var t=this._p[0],e=this._p[2];for(var r=0;r<o;++r){this._mSampleValues[r]=u(r*h,t,e)}},_getTForX:function(t){var e=this._p[0],r=this._p[2],i=this._mSampleValues;var a=0;var n=1;var l=o-1;for(;n!==l&&i[n]<=t;++n){a+=h}--n;var f=(t-i[n])/(i[n+1]-i[n]);var p=a+f*h;var c=m(p,e,r);if(c>=s){return v(t,p,e,r)}else if(c===0){return p}else{return d(t,a,a+h,e,r)}}};return t}();(function(){var t=0;var e=["ms","moz","webkit","o"];for(var r=0;r<e.length&&!window.requestAnimationFrame;++r){window.requestAnimationFrame=window[e[r]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[e[r]+"CancelAnimationFrame"]||window[e[r]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(e,r){var i=(new Date).getTime();var s=Math.max(0,16-(i-t));var a=setTimeout((function(){e(i+s)}),s);t=i+s;return a};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(t){clearTimeout(t)}})();function extendPrototype(t,e){var r,i=t.length,s;for(r=0;r<i;r+=1){s=t[r].prototype;for(var a in s){if(s.hasOwnProperty(a))e.prototype[a]=s[a]}}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}e.prototype=t;return e}function bezFunction(){function t(t,e,r,i,s,a){var n=t*i+e*s+r*a-s*i-a*t-r*e;return n>-.001&&n<.001}function e(e,r,i,s,a,n,o,h,l){if(i===0&&n===0&&l===0){return t(e,r,s,a,o,h)}var f=Math.sqrt(Math.pow(s-e,2)+Math.pow(a-r,2)+Math.pow(n-i,2));var p=Math.sqrt(Math.pow(o-e,2)+Math.pow(h-r,2)+Math.pow(l-i,2));var c=Math.sqrt(Math.pow(o-s,2)+Math.pow(h-a,2)+Math.pow(l-n,2));var u;if(f>p){if(f>c){u=f-p-c}else{u=c-p-f}}else if(c>p){u=c-p-f}else{u=p-f-c}return u>-1e-4&&u<1e-4}var r=function(){return function(t,e,r,i){var s=defaultCurveSegments;var a;var n,o;var h,l,f=0;var p;var c=[],u=[];var m=bezier_length_pool.newElement();o=r.length;for(a=0;a<s;a+=1){l=a/(s-1);p=0;for(n=0;n<o;n+=1){h=bm_pow(1-l,3)*t[n]+3*bm_pow(1-l,2)*l*r[n]+3*(1-l)*bm_pow(l,2)*i[n]+bm_pow(l,3)*e[n];c[n]=h;if(u[n]!==null){p+=bm_pow(c[n]-u[n],2)}u[n]=c[n]}if(p){p=bm_sqrt(p);f+=p}m.percents[a]=l;m.lengths[a]=f}m.addedLength=f;return m}}();function i(t){var e=segments_length_pool.newElement();var i=t.c;var s=t.v;var a=t.o;var n=t.i;var o,h=t._length;var l=e.lengths;var f=0;for(o=0;o<h-1;o+=1){l[o]=r(s[o],s[o+1],a[o],n[o+1]);f+=l[o].addedLength}if(i&&h){l[o]=r(s[o],s[0],a[o],n[0]);f+=l[o].addedLength}e.totalLength=f;return e}function s(t){this.segmentLength=0;this.points=new Array(t)}function a(t,e){this.partialLength=t;this.point=e}var n=function(){var e={};return function(r,i,n,o){var h=(r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!e[h]){var l=defaultCurveSegments;var f,p,c;var u,m,d=0;var v;var y,g=null;if(r.length===2&&(r[0]!=i[0]||r[1]!=i[1])&&t(r[0],r[1],i[0],i[1],r[0]+n[0],r[1]+n[1])&&t(r[0],r[1],i[0],i[1],i[0]+o[0],i[1]+o[1])){l=2}var b=new s(l);c=n.length;for(f=0;f<l;f+=1){y=createSizedArray(c);m=f/(l-1);v=0;for(p=0;p<c;p+=1){u=bm_pow(1-m,3)*r[p]+3*bm_pow(1-m,2)*m*(r[p]+n[p])+3*(1-m)*bm_pow(m,2)*(i[p]+o[p])+bm_pow(m,3)*i[p];y[p]=u;if(g!==null){v+=bm_pow(y[p]-g[p],2)}}v=bm_sqrt(v);d+=v;b.points[f]=new a(v,y);g=y}b.segmentLength=d;e[h]=b}return e[h]}}();function o(t,e){var r=e.percents;var i=e.lengths;var s=r.length;var a=bm_floor((s-1)*t);var n=t*e.addedLength;var o=0;if(a===s-1||a===0||n===i[a]){return r[a]}else{var h=i[a]>n?-1:1;var l=true;while(l){if(i[a]<=n&&i[a+1]>n){o=(n-i[a])/(i[a+1]-i[a]);l=false}else{a+=h}if(a<0||a>=s-1){if(a===s-1){return r[a]}l=false}}return r[a]+(r[a+1]-r[a])*o}}function h(t,e,r,i,s,a){var n=o(s,a);var h=1-n;var l=Math.round((h*h*h*t[0]+(n*h*h+h*n*h+h*h*n)*r[0]+(n*n*h+h*n*n+n*h*n)*i[0]+n*n*n*e[0])*1e3)/1e3;var f=Math.round((h*h*h*t[1]+(n*h*h+h*n*h+h*h*n)*r[1]+(n*n*h+h*n*n+n*h*n)*i[1]+n*n*n*e[1])*1e3)/1e3;return[l,f]}var l=createTypedArray("float32",8);function f(t,e,r,i,s,a,n){s=s<0?0:s>1?1:s;var h=o(s,n);a=a>1?1:a;var f=o(a,n);var p,c=t.length;var u=1-h;var m=1-f;var d=u*u*u;var v=h*u*u*3;var y=h*h*u*3;var g=h*h*h;var b=u*u*m;var P=h*u*m+u*h*m+u*u*f;var _=h*h*m+u*h*f+h*u*f;var S=h*h*f;var E=u*m*m;var x=h*m*m+u*f*m+u*m*f;var A=h*f*m+u*f*f+h*m*f;var k=h*f*f;var M=m*m*m;var T=f*m*m+m*f*m+m*m*f;var w=f*f*m+m*f*f+f*m*f;var F=f*f*f;for(p=0;p<c;p+=1){l[p*4]=Math.round((d*t[p]+v*r[p]+y*i[p]+g*e[p])*1e3)/1e3;l[p*4+1]=Math.round((b*t[p]+P*r[p]+_*i[p]+S*e[p])*1e3)/1e3;l[p*4+2]=Math.round((E*t[p]+x*r[p]+A*i[p]+k*e[p])*1e3)/1e3;l[p*4+3]=Math.round((M*t[p]+T*r[p]+w*i[p]+F*e[p])*1e3)/1e3}return l}return{getSegmentsLength:i,getNewSegment:f,getPointInSegment:h,buildBezierData:n,pointOnLine2D:t,pointOnLine3D:e}}var bez=bezFunction();function dataFunctionManager(){function t(s,a,n){var o;var h,l=s.length;var p,c,u,m;for(h=0;h<l;h+=1){o=s[h];if(!("ks"in o)||o.completed){continue}o.completed=true;if(o.tt){s[h-1].td=o.tt}if(o.hasMask){var d=o.masksProperties;c=d.length;for(p=0;p<c;p+=1){if(d[p].pt.k.i){i(d[p].pt.k)}else{m=d[p].pt.k.length;for(u=0;u<m;u+=1){if(d[p].pt.k[u].s){i(d[p].pt.k[u].s[0])}if(d[p].pt.k[u].e){i(d[p].pt.k[u].e[0])}}}}}if(o.ty===0){o.layers=e(o.refId,a);t(o.layers,a)}else if(o.ty===4){r(o.shapes)}else if(o.ty==5){f(o)}}}function e(t,e){var r=0,i=e.length;while(r<i){if(e[r].id===t){if(!e[r].layers.__used){e[r].layers.__used=true;return e[r].layers}return JSON.parse(JSON.stringify(e[r].layers))}r+=1}}function r(t){var e,s=t.length;var a,n;for(e=s-1;e>=0;e-=1){if(t[e].ty=="sh"){if(t[e].ks.k.i){i(t[e].ks.k)}else{n=t[e].ks.k.length;for(a=0;a<n;a+=1){if(t[e].ks.k[a].s){i(t[e].ks.k[a].s[0])}if(t[e].ks.k[a].e){i(t[e].ks.k[a].e[0])}}}}else if(t[e].ty=="gr"){r(t[e].it)}}}function i(t){var e,r=t.i.length;for(e=0;e<r;e+=1){t.i[e][0]+=t.v[e][0];t.i[e][1]+=t.v[e][1];t.o[e][0]+=t.v[e][0];t.o[e][1]+=t.v[e][1]}}function s(t,e){var r=e?e.split("."):[100,100,100];if(t[0]>r[0]){return true}else if(r[0]>t[0]){return false}if(t[1]>r[1]){return true}else if(r[1]>t[1]){return false}if(t[2]>r[2]){return true}else if(r[2]>t[2]){return false}}var a=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function r(t){var r,i=t.length;for(r=0;r<i;r+=1){if(t[r].ty===5){e(t[r])}}}return function(e){if(s(t,e.v)){r(e.layers);if(e.assets){var i,a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();var n=function(){var t=[4,7,99];return function(e){if(e.chars&&!s(t,e.v)){var r,a=e.chars.length,n,o;var h,l;for(r=0;r<a;r+=1){if(e.chars[r].data&&e.chars[r].data.shapes){l=e.chars[r].data.shapes[0].it;o=l.length;for(n=0;n<o;n+=1){h=l[n].ks.k;if(!h.__converted){i(l[n].ks.k);h.__converted=true}}}}}}}();var o=function(){var t=[4,1,9];function e(t){var r,i=t.length;var s,a;for(r=0;r<i;r+=1){if(t[r].ty==="gr"){e(t[r].it)}else if(t[r].ty==="fl"||t[r].ty==="st"){if(t[r].c.k&&t[r].c.k[0].i){a=t[r].c.k.length;for(s=0;s<a;s+=1){if(t[r].c.k[s].s){t[r].c.k[s].s[0]/=255;t[r].c.k[s].s[1]/=255;t[r].c.k[s].s[2]/=255;t[r].c.k[s].s[3]/=255}if(t[r].c.k[s].e){t[r].c.k[s].e[0]/=255;t[r].c.k[s].e[1]/=255;t[r].c.k[s].e[2]/=255;t[r].c.k[s].e[3]/=255}}}else{t[r].c.k[0]/=255;t[r].c.k[1]/=255;t[r].c.k[2]/=255;t[r].c.k[3]/=255}}}}function r(t){var r,i=t.length;for(r=0;r<i;r+=1){if(t[r].ty===4){e(t[r].shapes)}}}return function(e){if(s(t,e.v)){r(e.layers);if(e.assets){var i,a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();var h=function(){var t=[4,4,18];function e(t){var r,i=t.length;var s,a;for(r=i-1;r>=0;r-=1){if(t[r].ty=="sh"){if(t[r].ks.k.i){t[r].ks.k.c=t[r].closed}else{a=t[r].ks.k.length;for(s=0;s<a;s+=1){if(t[r].ks.k[s].s){t[r].ks.k[s].s[0].c=t[r].closed}if(t[r].ks.k[s].e){t[r].ks.k[s].e[0].c=t[r].closed}}}}else if(t[r].ty=="gr"){e(t[r].it)}}}function r(t){var r;var i,s=t.length;var a,n,o,h;for(i=0;i<s;i+=1){r=t[i];if(r.hasMask){var l=r.masksProperties;n=l.length;for(a=0;a<n;a+=1){if(l[a].pt.k.i){l[a].pt.k.c=l[a].cl}else{h=l[a].pt.k.length;for(o=0;o<h;o+=1){if(l[a].pt.k[o].s){l[a].pt.k[o].s[0].c=l[a].cl}if(l[a].pt.k[o].e){l[a].pt.k[o].e[0].c=l[a].cl}}}}}if(r.ty===4){e(r.shapes)}}}return function(e){if(s(t,e.v)){r(e.layers);if(e.assets){var i,a=e.assets.length;for(i=0;i<a;i+=1){if(e.assets[i].layers){r(e.assets[i].layers)}}}}}}();function l(e,r){if(e.__complete){return}o(e);a(e);n(e);h(e);t(e.layers,e.assets);e.__complete=true}function f(t,e){if(t.t.a.length===0&&!("m"in t.t.p)){t.singleShape=true}}var p={};p.completeData=l;return p}var dataManager=dataFunctionManager();var FontManager=function(){var t=5e3;var e={w:0,size:0,shapes:[]};var r=[];r=r.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 i(t,e){var r=createTag("span");r.style.fontFamily=e;var i=createTag("span");i.innerHTML="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;i.style.fontFamily=t+", "+e;return{node:i,w:s,parent:r}}function s(){var e,r=this.fonts.length;var i,s;var a=r;for(e=0;e<r;e+=1){if(this.fonts[e].loaded){a-=1;continue}if(this.fonts[e].fOrigin==="n"||this.fonts[e].origin===0){this.fonts[e].loaded=true}else{i=this.fonts[e].monoCase.node;s=this.fonts[e].monoCase.w;if(i.offsetWidth!==s){a-=1;this.fonts[e].loaded=true}else{i=this.fonts[e].sansCase.node;s=this.fonts[e].sansCase.w;if(i.offsetWidth!==s){a-=1;this.fonts[e].loaded=true}}if(this.fonts[e].loaded){this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent);this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)}}}if(a!==0&&Date.now()-this.initTime<t){setTimeout(this.checkLoadedFonts.bind(this),20)}else{setTimeout(function(){this.isLoaded=true}.bind(this),0)}}function a(t,e){var r=createNS("text");r.style.fontSize="100px";r.setAttribute("font-family",e.fFamily);r.setAttribute("font-style",e.fStyle);r.setAttribute("font-weight",e.fWeight);r.textContent="1";if(e.fClass){r.style.fontFamily="inherit";r.setAttribute("class",e.fClass)}else{r.style.fontFamily=e.fFamily}t.appendChild(r);var i=createTag("canvas").getContext("2d");i.font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily;return r}function n(t,e){if(!t){this.isLoaded=true;return}if(this.chars){this.isLoaded=true;this.fonts=t.list;return}var r=t.list;var s,n=r.length;var o=n;for(s=0;s<n;s+=1){var h=true;var l;var f;r[s].loaded=false;r[s].monoCase=i(r[s].fFamily,"monospace");r[s].sansCase=i(r[s].fFamily,"sans-serif");if(!r[s].fPath){r[s].loaded=true;o-=1}else if(r[s].fOrigin==="p"||r[s].origin===3){l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[s].fFamily+'"], style[f-origin="3"][f-family="'+r[s].fFamily+'"]');if(l.length>0){h=false}if(h){var p=createTag("style");p.setAttribute("f-forigin",r[s].fOrigin);p.setAttribute("f-origin",r[s].origin);p.setAttribute("f-family",r[s].fFamily);p.type="text/css";p.innerHTML="@font-face {"+"font-family: "+r[s].fFamily+"; font-style: normal; src: url('"+r[s].fPath+"');}";e.appendChild(p)}}else if(r[s].fOrigin==="g"||r[s].origin===1){l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(f=0;f<l.length;f++){if(l[f].href.indexOf(r[s].fPath)!==-1){h=false}}if(h){var c=createTag("link");c.setAttribute("f-forigin",r[s].fOrigin);c.setAttribute("f-origin",r[s].origin);c.type="text/css";c.rel="stylesheet";c.href=r[s].fPath;document.body.appendChild(c)}}else if(r[s].fOrigin==="t"||r[s].origin===2){l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(f=0;f<l.length;f++){if(r[s].fPath===l[f].src){h=false}}if(h){var u=createTag("link");u.setAttribute("f-forigin",r[s].fOrigin);u.setAttribute("f-origin",r[s].origin);u.setAttribute("rel","stylesheet");u.setAttribute("href",r[s].fPath);e.appendChild(u)}}r[s].helper=a(e,r[s]);r[s].cache={};this.fonts.push(r[s])}if(o===0){this.isLoaded=true}else{setTimeout(this.checkLoadedFonts.bind(this),100)}}function o(t){if(!t){return}if(!this.chars){this.chars=[]}var e,r=t.length;var i,s=this.chars.length,a;for(e=0;e<r;e+=1){i=0;a=false;while(i<s){if(this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch){a=true}i+=1}if(!a){this.chars.push(t[e]);s+=1}}}function h(t,r,i){var s=0,a=this.chars.length;while(s<a){if(this.chars[s].ch===t&&this.chars[s].style===r&&this.chars[s].fFamily===i){return this.chars[s]}s+=1}if((typeof t==="string"&&t.charCodeAt(0)!==13||!t)&&console&&console.warn){console.warn("Missing character from exported characters list: ",t,r,i)}return e}function l(t,e,r){var i=this.getFontByName(e);var s=t.charCodeAt(0);if(!i.cache[s+1]){var a=i.helper;if(t===" "){a.textContent="|"+t+"|";var n=a.getComputedTextLength();a.textContent="||";var o=a.getComputedTextLength();i.cache[s+1]=(n-o)/100}else{a.textContent=t;i.cache[s+1]=a.getComputedTextLength()/100}}return i.cache[s+1]*r}function f(t){var e=0,r=this.fonts.length;while(e<r){if(this.fonts[e].fName===t){return this.fonts[e]}e+=1}return this.fonts[0]}function p(){return r}function c(){return this.isLoaded}var u=function(){this.fonts=[];this.chars=null;this.typekitLoaded=0;this.isLoaded=false;this.initTime=Date.now()};u.getCombinedCharacterCodes=p;u.prototype.addChars=o;u.prototype.addFonts=n;u.prototype.getCharData=h;u.prototype.getFontByName=f;u.prototype.measureText=l;u.prototype.checkLoadedFonts=s;u.prototype.loaded=c;return u}();var PropertyFactory=function(){var t=initialDefaultFrame;var e=Math.abs;function r(t,e){var r=this.offsetTime;var n;if(this.propType==="multidimensional"){n=createTypedArray("float32",this.pv.length)}var o=e.lastIndex;var h=o;var l=this.keyframes.length-1,f=true;var p,c;while(f){p=this.keyframes[h];c=this.keyframes[h+1];if(h===l-1&&t>=c.t-r){if(p.h){p=c}o=0;break}if(c.t-r>t){o=h;break}if(h<l-1){h+=1}else{o=0;f=false}}var u,m,d,v,y,g;var b=c.t-r;var P=p.t-r;var _;if(p.to){if(!p.bezierData){p.bezierData=bez.buildBezierData(p.s,c.s||p.e,p.to,p.ti)}var S=p.bezierData;if(t>=b||t<P){var E=t>=b?S.points.length-1:0;m=S.points[E].point.length;for(u=0;u<m;u+=1){n[u]=S.points[E].point[u]}}else{if(p.__fnct){g=p.__fnct}else{g=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y,p.n).get;p.__fnct=g}d=g((t-P)/(b-P));var x=S.segmentLength*d;var A;var k=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLength:0;y=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0;f=true;v=S.points.length;while(f){k+=S.points[y].partialLength;if(x===0||d===0||y===S.points.length-1){m=S.points[y].point.length;for(u=0;u<m;u+=1){n[u]=S.points[y].point[u]}break}else if(x>=k&&x<k+S.points[y+1].partialLength){A=(x-k)/S.points[y+1].partialLength;m=S.points[y].point.length;for(u=0;u<m;u+=1){n[u]=S.points[y].point[u]+(S.points[y+1].point[u]-S.points[y].point[u])*A}break}if(y<v-1){y+=1}else{f=false}}e._lastPoint=y;e._lastAddedLength=k-S.points[y].partialLength;e._lastKeyframeIndex=h}}else{var M,T,w,F,D;l=p.s.length;_=c.s||p.e;if(this.sh&&p.h!==1){if(t>=b){n[0]=_[0];n[1]=_[1];n[2]=_[2]}else if(t<=P){n[0]=p.s[0];n[1]=p.s[1];n[2]=p.s[2]}else{var C=a(p.s);var I=a(_);var V=(t-P)/(b-P);s(n,i(C,I,V))}}else{for(h=0;h<l;h+=1){if(p.h!==1){if(t>=b){d=1}else if(t<P){d=0}else{if(p.o.x.constructor===Array){if(!p.__fnct){p.__fnct=[]}if(!p.__fnct[h]){M=typeof p.o.x[h]==="undefined"?p.o.x[0]:p.o.x[h];T=typeof p.o.y[h]==="undefined"?p.o.y[0]:p.o.y[h];w=typeof p.i.x[h]==="undefined"?p.i.x[0]:p.i.x[h];F=typeof p.i.y[h]==="undefined"?p.i.y[0]:p.i.y[h];g=BezierFactory.getBezierEasing(M,T,w,F).get;p.__fnct[h]=g}else{g=p.__fnct[h]}}else{if(!p.__fnct){M=p.o.x;T=p.o.y;w=p.i.x;F=p.i.y;g=BezierFactory.getBezierEasing(M,T,w,F).get;p.__fnct=g}else{g=p.__fnct}}d=g((t-P)/(b-P))}}_=c.s||p.e;D=p.h===1?p.s[h]:p.s[h]+(_[h]-p.s[h])*d;if(this.propType==="multidimensional"){n[h]=D}else{n=D}}}}e.lastIndex=o;return n}function i(t,e,r){var i=[];var s=t[0],a=t[1],n=t[2],o=t[3],h=e[0],l=e[1],f=e[2],p=e[3];var c,u,m,d,v;u=s*h+a*l+n*f+o*p;if(u<0){u=-u;h=-h;l=-l;f=-f;p=-p}if(1-u>1e-6){c=Math.acos(u);m=Math.sin(c);d=Math.sin((1-r)*c)/m;v=Math.sin(r*c)/m}else{d=1-r;v=r}i[0]=d*s+v*h;i[1]=d*a+v*l;i[2]=d*n+v*f;i[3]=d*o+v*p;return i}function s(t,e){var r=e[0];var i=e[1];var s=e[2];var a=e[3];var n=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);var o=Math.asin(2*r*i+2*s*a);var h=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s);t[0]=n/degToRads;t[1]=o/degToRads;t[2]=h/degToRads}function a(t){var e=t[0]*degToRads;var r=t[1]*degToRads;var i=t[2]*degToRads;var s=Math.cos(e/2);var a=Math.cos(r/2);var n=Math.cos(i/2);var o=Math.sin(e/2);var h=Math.sin(r/2);var l=Math.sin(i/2);var f=s*a*n-o*h*l;var p=o*h*n+s*a*l;var c=o*a*n+s*h*l;var u=s*h*n-o*a*l;return[p,c,u,f]}function n(){var e=this.comp.renderedFrame-this.offsetTime;var r=this.keyframes[0].t-this.offsetTime;var i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<r&&e<r))){if(this._caching.lastFrame>=e){this._caching._lastKeyframeIndex=-1;this._caching.lastIndex=0}var s=this.interpolateValue(e,this._caching);this.pv=s}this._caching.lastFrame=e;return this.pv}function o(t){var r;if(this.propType==="unidimensional"){r=t*this.mult;if(e(this.v-r)>1e-5){this.v=r;this._mdf=true}}else{var i=0,s=this.v.length;while(i<s){r=t[i]*this.mult;if(e(this.v[i]-r)>1e-5){this.v[i]=r;this._mdf=true}i+=1}}}function h(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length){return}if(this.lock){this.setVValue(this.pv);return}this.lock=true;this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length;var r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1){r=this.effectsSequence[t](r)}this.setVValue(r);this._isFirstFrame=false;this.lock=false;this.frameId=this.elem.globalData.frameId}function l(t){this.effectsSequence.push(t);this.container.addDynamicProperty(this)}function f(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=false;this.elem=t;this.container=i;this.comp=t.comp;this.k=false;this.kf=false;this.vel=0;this.effectsSequence=[];this._isFirstFrame=true;this.getValue=h;this.setVValue=o;this.addEffect=l}function p(t,e,r,i){this.propType="multidimensional";this.mult=r||1;this.data=e;this._mdf=false;this.elem=t;this.container=i;this.comp=t.comp;this.k=false;this.kf=false;this.frameId=-1;var s,a=e.k.length;this.v=createTypedArray("float32",a);this.pv=createTypedArray("float32",a);var n=createTypedArray("float32",a);this.vel=createTypedArray("float32",a);for(s=0;s<a;s+=1){this.v[s]=e.k[s]*this.mult;this.pv[s]=e.k[s]}this._isFirstFrame=true;this.effectsSequence=[];this.getValue=h;this.setVValue=o;this.addEffect=l}function c(e,i,s,a){this.propType="unidimensional";this.keyframes=i.k;this.offsetTime=e.data.st;this.frameId=-1;this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1};this.k=true;this.kf=true;this.data=i;this.mult=s||1;this.elem=e;this.container=a;this.comp=e.comp;this.v=t;this.pv=t;this._isFirstFrame=true;this.getValue=h;this.setVValue=o;this.interpolateValue=r;this.effectsSequence=[n.bind(this)];this.addEffect=l}function u(e,i,s,a){this.propType="multidimensional";var f,p=i.k.length;var c,u,m,d;for(f=0;f<p-1;f+=1){if(i.k[f].to&&i.k[f].s&&i.k[f].e){c=i.k[f].s;u=i.k[f].e;m=i.k[f].to;d=i.k[f].ti;if(c.length===2&&!(c[0]===u[0]&&c[1]===u[1])&&bez.pointOnLine2D(c[0],c[1],u[0],u[1],c[0]+m[0],c[1]+m[1])&&bez.pointOnLine2D(c[0],c[1],u[0],u[1],u[0]+d[0],u[1]+d[1])||c.length===3&&!(c[0]===u[0]&&c[1]===u[1]&&c[2]===u[2])&&bez.pointOnLine3D(c[0],c[1],c[2],u[0],u[1],u[2],c[0]+m[0],c[1]+m[1],c[2]+m[2])&&bez.pointOnLine3D(c[0],c[1],c[2],u[0],u[1],u[2],u[0]+d[0],u[1]+d[1],u[2]+d[2])){i.k[f].to=null;i.k[f].ti=null}if(c[0]===u[0]&&c[1]===u[1]&&m[0]===0&&m[1]===0&&d[0]===0&&d[1]===0){if(c.length===2||c[2]===u[2]&&m[2]===0&&d[2]===0){i.k[f].to=null;i.k[f].ti=null}}}}this.effectsSequence=[n.bind(this)];this.keyframes=i.k;this.offsetTime=e.data.st;this.k=true;this.kf=true;this._isFirstFrame=true;this.mult=s||1;this.elem=e;this.container=a;this.comp=e.comp;this.getValue=h;this.setVValue=o;this.interpolateValue=r;this.frameId=-1;var v=i.k[0].s.length;this.v=createTypedArray("float32",v);this.pv=createTypedArray("float32",v);for(f=0;f<v;f+=1){this.v[f]=t;this.pv[f]=t}this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",v)};this.addEffect=l}function m(t,e,r,i,s){var a;if(!e.k.length){a=new f(t,e,i,s)}else if(typeof e.k[0]==="number"){a=new p(t,e,i,s)}else{switch(r){case 0:a=new c(t,e,i,s);break;case 1:a=new u(t,e,i,s);break}}if(a.effectsSequence.length){s.addDynamicProperty(a)}return a}var d={getProp:m};return d}();var TransformPropertyFactory=function(){function t(t){var e=this._mdf;this.iterateDynamicProperties();this._mdf=this._mdf||e;if(this.a){t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2])}if(this.s){t.scale(this.s.v[0],this.s.v[1],this.s.v[2])}if(this.sk){t.skewFromAxis(-this.sk.v,this.sa.v)}if(this.r){t.rotate(-this.r.v)}else{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])}if(this.data.p.s){if(this.data.p.z){t.translate(this.px.v,this.py.v,-this.pz.v)}else{t.translate(this.px.v,this.py.v,0)}}else{t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}}function e(t){if(this.elem.globalData.frameId===this.frameId){return}if(this._isDirty){this.precalculateMatrix();this._isDirty=false}this.iterateDynamicProperties();if(this._mdf||t){this.v.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2])}if(this.appliedTransformations<2){this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2])}if(this.sk&&this.appliedTransformations<3){this.v.skewFromAxis(-this.sk.v,this.sa.v)}if(this.r&&this.appliedTransformations<4){this.v.rotate(-this.r.v)}else if(!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])}if(this.autoOriented){var e,r,i=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime){if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t){e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0);r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)}else if(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/i,0);r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)}else{e=this.p.pv;r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime)}}else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){e=[];r=[];var s=this.px,a=this.py,i;if(s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t){e[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0);e[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0);r[0]=s.getValueAtTime(s.keyframes[0].t/i,0);r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)}else if(s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t){e[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0);e[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0);r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0);r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)}else{e=[s.pv,a.pv];r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime);r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime)}}this.v.rotate(-Math.atan2(e[1]-r[1],e[0]-r[0]))}if(this.data.p&&this.data.p.s){if(this.data.p.z){this.v.translate(this.px.v,this.py.v,-this.pz.v)}else{this.v.translate(this.px.v,this.py.v,0)}}else{this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}}this.frameId=this.elem.globalData.frameId}function r(){if(!this.a.k){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}}if(this.r){if(!this.r.effectsSequence.length){this.pre.rotate(-this.r.v);this.appliedTransformations=4}else{return}}else if(!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 i(){}function s(t){this._addDynamicProperty(t);this.elem.addDynamicProperty(t);this._isDirty=true}function a(t,e,r){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);if(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);if(e.p.z){this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this)}}else{this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this)}if(e.rx){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);if(e.or.k[0].ti){var i,s=e.or.k.length;for(i=0;i<s;i+=1){e.or.k[i].to=e.or.k[i].ti=null}}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this);this.or.sh=true}else{this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this)}if(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);if(e.o){this.o=PropertyFactory.getProp(t,e.o,0,.01,t)}else{this.o={_mdf:false,v:1}}this._isDirty=true;if(!this.dynamicProperties.length){this.getValue(true)}}a.prototype={applyToMatrix:t,getValue:e,precalculateMatrix:r,autoOrient:i};extendPrototype([DynamicPropertyContainer],a);a.prototype.addDynamicProperty=s;a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function n(t,e,r){return new a(t,e,r)}return{getTransformProperty:n}}();function ShapePath(){this.c=false;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);var r=0;while(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){while(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;this._length=Math.max(this._length,i+1);if(this._length>=this._maxLength){this.doubleArrayLength()}switch(r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break}if(!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;var s=0;if(this.c){t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,false);s=1}var a=this._length-1;var n=this._length;var o;for(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,false);a-=1}return t};var ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var i=r.lastIndex;var s,a,n,o,h,l,f,p,c;var u=this.keyframes;if(t<u[0].t-this.offsetTime){s=u[0].s[0];n=true;i=0}else if(t>=u[u.length-1].t-this.offsetTime){s=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0];n=true}else{var m=i;var d=u.length-1,v=true,y,g;while(v){y=u[m];g=u[m+1];if(g.t-this.offsetTime>t){break}if(m<d-1){m+=1}else{v=false}}n=y.h===1;i=m;if(!n){if(t>=g.t-this.offsetTime){p=1}else if(t<y.t-this.offsetTime){p=0}else{var b;if(y.__fnct){b=y.__fnct}else{b=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y).get;y.__fnct=b}p=b((t-(y.t-this.offsetTime))/(g.t-this.offsetTime-(y.t-this.offsetTime)))}a=g.s?g.s[0]:y.e[0]}s=y.s[0]}l=e._length;f=s.i[0].length;r.lastIndex=i;for(o=0;o<l;o+=1){for(h=0;h<f;h+=1){c=n?s.i[o][h]:s.i[o][h]+(a.i[o][h]-s.i[o][h])*p;e.i[o][h]=c;c=n?s.o[o][h]:s.o[o][h]+(a.o[o][h]-s.o[o][h])*p;e.o[o][h]=c;c=n?s.v[o][h]:s.v[o][h]+(a.v[o][h]-s.v[o][h])*p;e.v[o][h]=c}}}function r(){var e=this.comp.renderedFrame-this.offsetTime;var r=this.keyframes[0].t-this.offsetTime;var i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;var s=this._caching.lastFrame;if(!(s!==t&&(s<r&&e<r||s>i&&e>i))){this._caching.lastIndex=s<e?this._caching.lastIndex:0;this.interpolateShape(e,this.pv,this._caching)}this._caching.lastFrame=e;return this.pv}function i(){this.paths=this.localShapeCollection}function s(t,e){if(t._length!==e._length||t.c!==e.c){return false}var r,i=t._length;for(r=0;r<i;r+=1){if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1]){return false}}return true}function a(t){if(!s(this.v,t)){this.v=shape_pool.clone(t);this.localShapeCollection.releaseShapes();this.localShapeCollection.addShape(this.v);this._mdf=true;this.paths=this.localShapeCollection}}function n(){if(this.elem.globalData.frameId===this.frameId){return}else if(!this.effectsSequence.length){this._mdf=false;return}if(this.lock){this.setVValue(this.pv);return}this.lock=true;this._mdf=false;var t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e,r=this.effectsSequence.length;for(e=0;e<r;e+=1){t=this.effectsSequence[e](t)}this.setVValue(t);this.lock=false;this.frameId=this.elem.globalData.frameId}function o(t,e,r){this.propType="shape";this.comp=t.comp;this.container=t;this.elem=t;this.data=e;this.k=false;this.kf=false;this._mdf=false;var s=r===3?e.pt.k:e.ks.k;this.v=shape_pool.clone(s);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 h(t){this.effectsSequence.push(t);this.container.addDynamicProperty(this)}o.prototype.interpolateShape=e;o.prototype.getValue=n;o.prototype.setVValue=a;o.prototype.addEffect=h;function l(e,s,a){this.propType="shape";this.comp=e.comp;this.elem=e;this.container=e;this.offsetTime=e.data.st;this.keyframes=a===3?s.pt.k:s.ks.k;this.k=true;this.kf=true;var n=this.keyframes[0].s[0].i.length;this.v=shape_pool.newElement();this.v.setPathData(this.keyframes[0].s[0].c,n);this.pv=shape_pool.clone(this.v);this.localShapeCollection=shapeCollection_pool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.lastFrame=t;this.reset=i;this._caching={lastFrame:t,lastIndex:0};this.effectsSequence=[r.bind(this)]}l.prototype.getValue=n;l.prototype.interpolateShape=e;l.prototype.setVValue=a;l.prototype.addEffect=h;var f=function(){var t=roundCorner;function e(t,e){this.v=shape_pool.newElement();this.v.setPathData(true,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);if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertEllToPath()}}e.prototype={reset:i,getValue:function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertEllToPath()}},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2;var a=this.d!==3;var n=this.v;n.v[0][0]=e;n.v[0][1]=r-s;n.v[1][0]=a?e+i:e-i;n.v[1][1]=r;n.v[2][0]=e;n.v[2][1]=r+s;n.v[3][0]=a?e-i:e+i;n.v[3][1]=r;n.i[0][0]=a?e-i*t:e+i*t;n.i[0][1]=r-s;n.i[1][0]=a?e+i:e-i;n.i[1][1]=r-s*t;n.i[2][0]=a?e+i*t:e-i*t;n.i[2][1]=r+s;n.i[3][0]=a?e-i:e+i;n.i[3][1]=r+s*t;n.o[0][0]=a?e+i*t:e-i*t;n.o[0][1]=r-s;n.o[1][0]=a?e+i:e-i;n.o[1][1]=r+s*t;n.o[2][0]=a?e-i*t:e+i*t;n.o[2][1]=r+s;n.o[3][0]=a?e-i:e+i;n.o[3][1]=r-s*t}};extendPrototype([DynamicPropertyContainer],e);return e}();var p=function(){function t(t,e){this.v=shape_pool.newElement();this.v.setPathData(true,0);this.elem=t;this.comp=t.comp;this.data=e;this.frameId=-1;this.d=e.d;this.initDynamicPropertyContainer(t);if(e.sy===1){this.ir=PropertyFactory.getProp(t,e.ir,0,0,this);this.is=PropertyFactory.getProp(t,e.is,0,.01,this);this.convertToPath=this.convertStarToPath}else{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;if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertToPath()}}t.prototype={reset:i,getValue:function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertToPath()}},convertStarToPath:function(){var t=Math.floor(this.pt.v)*2;var e=Math.PI*2/t;var r=true;var i=this.or.v;var s=this.ir.v;var a=this.os.v;var n=this.is.v;var o=2*Math.PI*i/(t*2);var h=2*Math.PI*s/(t*2);var l,f,p,c,u=-Math.PI/2;u+=this.r.v;var m=this.data.d===3?-1:1;this.v._length=0;for(l=0;l<t;l+=1){f=r?i:s;p=r?a:n;c=r?o:h;var d=f*Math.cos(u);var v=f*Math.sin(u);var y=d===0&&v===0?0:v/Math.sqrt(d*d+v*v);var