@ptcwebops/ptcw-design 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/icon-asset.cjs.entry.js +64 -0
- package/dist/cjs/{index-ac192914.js → index-0b899fc6.js} +158 -87
- package/dist/cjs/list-item.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lottie-player.cjs.entry.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +3 -3
- package/dist/cjs/ptc-announcement.cjs.entry.js +35 -0
- package/dist/cjs/ptc-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ptc-button_2.cjs.entry.js +97 -0
- package/dist/cjs/ptc-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-countdown.cjs.entry.js +2 -2
- package/dist/cjs/ptc-date.cjs.entry.js +2 -2
- package/dist/cjs/ptc-footer.cjs.entry.js +2 -2
- package/dist/cjs/ptc-form_3.cjs.entry.js +171 -0
- package/dist/cjs/ptc-img.cjs.entry.js +2 -2
- package/dist/cjs/ptc-link.cjs.entry.js +2 -2
- package/dist/cjs/ptc-list.cjs.entry.js +2 -2
- package/dist/cjs/ptc-lottie.cjs.entry.js +2 -2
- package/dist/cjs/ptc-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/ptc-nav.cjs.entry.js +2 -2
- package/dist/cjs/ptc-overlay.cjs.entry.js +2 -2
- package/dist/cjs/ptc-para.cjs.entry.js +40 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +2 -2
- package/dist/cjs/ptc-spacer.cjs.entry.js +2 -2
- package/dist/cjs/ptc-span.cjs.entry.js +2 -2
- package/dist/cjs/ptc-title.cjs.entry.js +3 -3
- package/dist/cjs/ptcw-design.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/my-component/my-component.js +2 -3
- package/dist/collection/components/ptc-button/ptc-button.js +2 -2
- package/dist/collection/components/ptc-form/ptc-form.css +3 -0
- package/dist/collection/components/ptc-form/ptc-form.js +118 -0
- package/dist/collection/components/ptc-form/validation/FormValidation.full.min.js +1 -0
- package/dist/collection/components/ptc-form/validation/FormValidation.js +4234 -0
- package/dist/collection/components/ptc-input/ptc-input.css +47 -0
- package/dist/collection/components/ptc-input/ptc-input.js +133 -80
- package/dist/collection/components/ptc-select/ptc-select.css +22 -0
- package/dist/collection/components/ptc-select/ptc-select.js +105 -0
- package/dist/collection/components/ptc-title/ptc-title.js +1 -1
- package/dist/custom-elements/index.d.ts +19 -1
- package/dist/custom-elements/index.js +219 -49
- package/dist/esm/icon-asset.entry.js +60 -0
- package/dist/esm/{index-7a3883ee.js → index-eb8ce23d.js} +159 -88
- package/dist/esm/list-item.entry.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottie-player.entry.js +2 -2
- package/dist/esm/my-component.entry.js +3 -3
- package/dist/esm/ptc-announcement.entry.js +31 -0
- package/dist/esm/ptc-avatar.entry.js +2 -2
- package/dist/esm/ptc-button_2.entry.js +92 -0
- package/dist/esm/ptc-card.entry.js +2 -2
- package/dist/esm/ptc-countdown.entry.js +2 -2
- package/dist/esm/ptc-date.entry.js +2 -2
- package/dist/esm/ptc-footer.entry.js +2 -2
- package/dist/esm/ptc-form_3.entry.js +165 -0
- package/dist/esm/ptc-img.entry.js +2 -2
- package/dist/esm/ptc-link.entry.js +2 -2
- package/dist/esm/ptc-list.entry.js +2 -2
- package/dist/esm/ptc-lottie.entry.js +2 -2
- package/dist/esm/ptc-nav-item.entry.js +2 -2
- package/dist/esm/ptc-nav.entry.js +2 -2
- package/dist/esm/ptc-overlay.entry.js +2 -2
- package/dist/esm/ptc-para.entry.js +36 -0
- package/dist/esm/ptc-picture.entry.js +2 -2
- package/dist/esm/ptc-spacer.entry.js +2 -2
- package/dist/esm/ptc-span.entry.js +2 -2
- package/dist/esm/ptc-title.entry.js +3 -3
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/ptcw-design/p-01243ce4.entry.js +1 -0
- package/dist/ptcw-design/p-01f4bf71.entry.js +1 -0
- package/dist/ptcw-design/p-1b3b0193.entry.js +1 -0
- package/dist/ptcw-design/p-22fd400f.entry.js +1 -0
- package/dist/ptcw-design/p-23d07898.entry.js +1 -0
- package/dist/ptcw-design/p-2b59ce7a.entry.js +1 -0
- package/dist/ptcw-design/p-2ca3c085.js +1 -0
- package/dist/ptcw-design/p-389a5670.entry.js +1 -0
- package/dist/ptcw-design/p-3f42afb6.entry.js +1 -0
- package/dist/ptcw-design/p-51443fbb.entry.js +1 -0
- package/dist/ptcw-design/p-54794e45.entry.js +1 -0
- package/dist/ptcw-design/p-5ae43421.entry.js +1 -0
- package/dist/ptcw-design/p-63b55aba.entry.js +1 -0
- package/dist/ptcw-design/p-6b5c0d9d.entry.js +1 -0
- package/dist/ptcw-design/p-7076b32f.entry.js +1 -0
- package/dist/ptcw-design/{p-51a3e9e6.entry.js → p-75dc7328.entry.js} +1 -1
- package/dist/ptcw-design/p-945f5a15.entry.js +1 -0
- package/dist/ptcw-design/p-a86452af.entry.js +1 -0
- package/dist/ptcw-design/p-cf3d92e0.entry.js +1 -0
- package/dist/ptcw-design/p-d3f9852f.entry.js +1 -0
- package/dist/ptcw-design/p-d80b24c9.entry.js +1 -0
- package/dist/ptcw-design/p-e4b96b46.entry.js +1 -0
- package/dist/ptcw-design/p-eda0500f.entry.js +1 -0
- package/dist/ptcw-design/p-ef6acb81.entry.js +1 -0
- package/dist/ptcw-design/p-fd29d9dd.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/ptcw-design/validation/FormValidation.full.min.js +1 -0
- package/dist/ptcw-design/validation/FormValidation.js +4234 -0
- package/dist/types/components/ptc-form/ptc-form.d.ts +11 -0
- package/dist/types/components/ptc-input/ptc-input.d.ts +19 -0
- package/dist/types/components/ptc-select/ptc-select.d.ts +9 -0
- package/dist/types/components.d.ts +63 -0
- package/dist/types/global.d.ts +1072 -0
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/loader/index.d.ts +0 -1
- package/package.json +6 -2
- package/readme.md +1 -1
- package/dist/cjs/icon-asset_5.cjs.entry.js +0 -218
- package/dist/esm/icon-asset_5.entry.js +0 -210
- package/dist/ptcw-design/p-0c8df906.entry.js +0 -1
- package/dist/ptcw-design/p-186beb2c.entry.js +0 -1
- package/dist/ptcw-design/p-2d5f8cff.entry.js +0 -1
- package/dist/ptcw-design/p-50923c9a.js +0 -1
- package/dist/ptcw-design/p-62706e4e.entry.js +0 -1
- package/dist/ptcw-design/p-66ffa30c.entry.js +0 -1
- package/dist/ptcw-design/p-6b1a35e1.entry.js +0 -1
- package/dist/ptcw-design/p-73e2418e.entry.js +0 -1
- package/dist/ptcw-design/p-796b8287.entry.js +0 -1
- package/dist/ptcw-design/p-8edac972.entry.js +0 -1
- package/dist/ptcw-design/p-90402319.entry.js +0 -1
- package/dist/ptcw-design/p-919311d2.entry.js +0 -1
- package/dist/ptcw-design/p-ac449734.entry.js +0 -1
- package/dist/ptcw-design/p-c436c879.entry.js +0 -1
- package/dist/ptcw-design/p-d17b386a.entry.js +0 -1
- package/dist/ptcw-design/p-d6553853.entry.js +0 -1
- package/dist/ptcw-design/p-ef250898.entry.js +0 -1
- package/dist/ptcw-design/p-f694e46a.entry.js +0 -1
- package/dist/ptcw-design/p-f80152dc.entry.js +0 -1
- package/dist/ptcw-design/p-ff28ce2d.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h}from"./p-50923c9a.js";function createCommonjsModule(t,i,e){return t(e={path:i,exports:{},require:function(){return commonjsRequire()}},e.exports),e.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie_svg=createCommonjsModule((function(module){var root,factory;"undefined"!=typeof navigator&&(root=window||{},factory=function(window){var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,idPrefix="",expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMin=Math.min,BMMath={};function ProjectInterface(){return{}}!function(){var t,i=["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=i.length;for(t=0;t<e;t+=1)BMMath[i[t]]=Math[i[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){var i,e=createSizedArray(t.length),s=t.length;for(i=0;i<s;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function BMEnterFrameEvent(t,i,e,s){this.type=t,this.currentTime=i,this.totalTime=e,this.direction=s<0?-1:1}function BMCompleteEvent(t,i){this.type=t,this.direction=i<0?-1:1}function BMCompleteLoopEvent(t,i,e,s){this.type=t,this.currentLoop=e,this.totalLoops=i,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,i,e){this.type=t,this.firstFrame=i,this.totalFrames=e}function BMDestroyEvent(t,i){this.type=t,this.target=i}function BMRenderFrameErrorEvent(t,i){this.type="renderFrameError",this.nativeError=t,this.currentTime=i}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,i,e){var s,r,n,h,o,a,f,c;switch(a=e*(1-i),f=e*(1-(o=6*t-(h=Math.floor(6*t)))*i),c=e*(1-(1-o)*i),h%6){case 0:s=e,r=c,n=a;break;case 1:s=f,r=e,n=a;break;case 2:s=a,r=e,n=c;break;case 3:s=a,r=f,n=e;break;case 4:s=c,r=a,n=e;break;case 5:s=e,r=a,n=f}return[s,r,n]}function RGBtoHSV(t,i,e){var s,r=Math.max(t,i,e),n=Math.min(t,i,e),h=r-n,o=0===r?0:h/r,a=r/255;switch(r){case n:s=0;break;case t:s=i-e+h*(i<e?6:0),s/=6*h;break;case i:s=e-t+2*h,s/=6*h;break;case e:s=t-i+4*h,s/=6*h}return[s,o,a]}function addSaturationToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[1]+=i,e[1]>1?e[1]=1:e[1]<=0&&(e[1]=0),HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[2]+=i,e[2]>1?e[2]=1:e[2]<0&&(e[2]=0),HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[0]+=i/360,e[0]>1?e[0]-=1:e[0]<0&&(e[0]+=1),HSVtoRGB(e[0],e[1],e[2])}var rgbToHex=function(){var t,i,e=[];for(t=0;t<256;t+=1)i=t.toString(16),e[t]=1===i.length?"0"+i:i;return function(t,i,s){return t<0&&(t=0),i<0&&(i=0),s<0&&(s=0),"#"+e[t]+e[i]+e[s]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var e=this._cbs[t],s=0;s<e.length;s+=1)e[s](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),function(){this.removeEventListener(t,i)}.bind(this)},removeEventListener:function(t,i){if(i){if(this._cbs[t]){for(var e=0,s=this._cbs[t].length;e<s;)this._cbs[t][e]===i&&(this._cbs[t].splice(e,1),e-=1,s-=1),e+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray=function(){function t(t,i){var e,s=0,r=[];switch(t){case"int16":case"uint8c":e=1;break;default:e=1.1}for(s=0;s<i;s+=1)r.push(e);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(i,e){return"float32"===i?new Float32Array(e):"int16"===i?new Int16Array(e):"uint8c"===i?new Uint8ClampedArray(e):t(i,e)}: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){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(blendModeEnums={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 blendModeEnums[t]||""}),blendModeEnums,lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"},Matrix=function(){var t=Math.cos,i=Math.sin,e=Math.tan,s=Math.round;function r(){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 n(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function h(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function a(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function f(t,i){return this._t(1,i,t,1,0,0)}function c(t,i){return this.shear(e(t),e(i))}function u(s,r){var n=t(r),h=i(r);return this._t(n,h,0,0,-h,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,e(s),1,0,0,0,0,1,0,0,0,0,1)._t(n,-h,0,0,h,n,0,0,0,0,1,0,0,0,0,1)}function l(t,i,e){return e||0===e||(e=1),1===t&&1===i&&1===e?this:this._t(t,0,0,0,0,i,0,0,0,0,e,0,0,0,0,1)}function p(t,i,e,s,r,n,h,o,a,f,c,u,l,p,d,m){return this.props[0]=t,this.props[1]=i,this.props[2]=e,this.props[3]=s,this.props[4]=r,this.props[5]=n,this.props[6]=h,this.props[7]=o,this.props[8]=a,this.props[9]=f,this.props[10]=c,this.props[11]=u,this.props[12]=l,this.props[13]=p,this.props[14]=d,this.props[15]=m,this}function d(t,i,e){return e=e||0,0!==t||0!==i||0!==e?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,i,e,1):this}function m(t,i,e,s,r,n,h,o,a,f,c,u,l,p,d,m){var y=this.props;if(1===t&&0===i&&0===e&&0===s&&0===r&&1===n&&0===h&&0===o&&0===a&&0===f&&1===c&&0===u)return y[12]=y[12]*t+y[15]*l,y[13]=y[13]*n+y[15]*p,y[14]=y[14]*c+y[15]*d,y[15]*=m,this._identityCalculated=!1,this;var v=y[0],g=y[1],P=y[2],S=y[3],E=y[4],M=y[5],b=y[6],x=y[7],w=y[8],I=y[9],k=y[10],F=y[11],T=y[12],A=y[13],G=y[14],R=y[15];return y[0]=v*t+g*r+P*a+S*l,y[1]=v*i+g*n+P*f+S*p,y[2]=v*e+g*h+P*c+S*d,y[3]=v*s+g*o+P*u+S*m,y[4]=E*t+M*r+b*a+x*l,y[5]=E*i+M*n+b*f+x*p,y[6]=E*e+M*h+b*c+x*d,y[7]=E*s+M*o+b*u+x*m,y[8]=w*t+I*r+k*a+F*l,y[9]=w*i+I*n+k*f+F*p,y[10]=w*e+I*h+k*c+F*d,y[11]=w*s+I*o+k*u+F*m,y[12]=T*t+A*r+G*a+R*l,y[13]=T*i+A*n+G*f+R*p,y[14]=T*e+A*h+G*c+R*d,y[15]=T*s+A*o+G*u+R*m,this._identityCalculated=!1,this}function y(){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 v(t){for(var i=0;i<16;){if(t.props[i]!==this.props[i])return!1;i+=1}return!0}function g(t){var i;for(i=0;i<16;i+=1)t.props[i]=this.props[i];return t}function P(t){var i;for(i=0;i<16;i+=1)this.props[i]=t[i]}function S(t,i,e){return{x:t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],y:t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],z:t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}}function E(t,i,e){return t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12]}function M(t,i,e){return t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13]}function b(t,i,e){return t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}function x(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/t,e=-this.props[1]/t,s=-this.props[4]/t,r=this.props[0]/t,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,h=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=i,o.props[1]=e,o.props[4]=s,o.props[5]=r,o.props[12]=n,o.props[13]=h,o}function w(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function I(t){var i,e=t.length,s=[];for(i=0;i<e;i+=1)s[i]=w(t[i]);return s}function k(t,i,e){var s=createTypedArray("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=i[0],s[3]=i[1],s[4]=e[0],s[5]=e[1];else{var r=this.props[0],n=this.props[1],h=this.props[4],o=this.props[5],a=this.props[12],f=this.props[13];s[0]=t[0]*r+t[1]*h+a,s[1]=t[0]*n+t[1]*o+f,s[2]=i[0]*r+i[1]*h+a,s[3]=i[0]*n+i[1]*o+f,s[4]=e[0]*r+e[1]*h+a,s[5]=e[0]*n+e[1]*o+f}return s}function F(t,i,e){return this.isIdentity()?[t,i,e]:[t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]]}function T(t,i){if(this.isIdentity())return t+","+i;var e=this.props;return Math.round(100*(t*e[0]+i*e[4]+e[12]))/100+","+Math.round(100*(t*e[1]+i*e[5]+e[13]))/100}function A(){for(var t=0,i=this.props,e="matrix3d(";t<16;)e+=s(1e4*i[t])/1e4,e+=15===t?")":",",t+=1;return e}function G(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function R(){var t=this.props;return"matrix("+G(t[0])+","+G(t[1])+","+G(t[4])+","+G(t[5])+","+G(t[12])+","+G(t[13])+")"}return function(){this.reset=r,this.rotate=n,this.rotateX=h,this.rotateY=o,this.rotateZ=a,this.skew=c,this.skewFromAxis=u,this.shear=f,this.scale=l,this.setTransform=p,this.translate=d,this.transform=m,this.applyToPoint=S,this.applyToX=E,this.applyToY=M,this.applyToZ=b,this.applyToPointArray=F,this.applyToTriplePoints=k,this.applyToPointStringified=T,this.toCSS=A,this.to2dCSS=R,this.clone=g,this.cloneFromProps=P,this.equals=v,this.inversePoints=I,this.inversePoint=w,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,i){var e=this,s=256,r=i.pow(s,6),n=i.pow(2,52),h=2*n,o=255;function a(t){var i,e=t.length,r=this,n=0,h=r.i=r.j=0,a=r.S=[];for(e||(t=[e++]);n<s;)a[n]=n++;for(n=0;n<s;n++)a[n]=a[h=o&h+t[n%e]+(i=a[n])],a[h]=i;r.g=function(t){for(var i,e=0,n=r.i,h=r.j,a=r.S;t--;)i=a[n=o&n+1],e=e*s+a[o&(a[n]=a[h=o&h+i])+(a[h]=i)];return r.i=n,r.j=h,e}}function f(t,i){return i.i=t.i,i.j=t.j,i.S=t.S.slice(),i}function c(t,i){var e,s=[],r=typeof t;if(i&&"object"==r)for(e in t)try{s.push(c(t[e],i-1))}catch(t){}return s.length?s:"string"==r?t:t+"\0"}function u(t,i){for(var e,s=t+"",r=0;r<s.length;)i[o&r]=o&(e^=19*i[o&r])+s.charCodeAt(r++);return l(i)}function l(t){return String.fromCharCode.apply(0,t)}i.seedrandom=function(o,p,d){var m=[],y=u(c((p=!0===p?{entropy:!0}:p||{}).entropy?[o,l(t)]:null===o?function(){try{var i=new Uint8Array(s);return(e.crypto||e.msCrypto).getRandomValues(i),l(i)}catch(i){var r=e.navigator,n=r&&r.plugins;return[+new Date,e,n,e.screen,l(t)]}}():o,3),m),v=new a(m),g=function(){for(var t=v.g(6),i=r,e=0;t<n;)t=(t+e)*s,i*=s,e=v.g(1);for(;t>=h;)t/=2,i/=2,e>>>=1;return(t+e)/i};return g.int32=function(){return 0|v.g(4)},g.quick=function(){return v.g(4)/4294967296},g.double=g,u(l(v.S),t),(p.pass||d||function(t,e,s,r){return r&&(r.S&&f(r,v),t.state=function(){return f(v,{})}),s?(i.random=t,e):t})(g,y,"global"in p?p.global:this==i,p.state)},u(i.random(),t)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,e,s,r,n){var h=n||("bez_"+t+"_"+e+"_"+s+"_"+r).replace(/\./g,"p");if(i[h])return i[h];var o=new f([t,e,s,r]);return i[h]=o,o}},i={},e=.1,s="function"==typeof Float32Array;function r(t,i){return 1-3*i+3*t}function n(t,i){return 3*i-6*t}function h(t){return 3*t}function o(t,i,e){return((r(i,e)*t+n(i,e))*t+h(i))*t}function a(t,i,e){return 3*r(i,e)*t*t+2*n(i,e)*t+h(i)}function f(t){this._p=t,this._mSampleValues=s?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return f.prototype={get:function(t){var i=this._p[0],e=this._p[1],s=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),i===e&&s===r?t:0===t?0:1===t?1:o(this._getTForX(t),e,r)},_precompute:function(){var t=this._p[0],i=this._p[1],e=this._p[2],s=this._p[3];this._precomputed=!0,t===i&&e===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],i=this._p[2],s=0;s<11;++s)this._mSampleValues[s]=o(s*e,t,i)},_getTForX:function(t){for(var i=this._p[0],s=this._p[2],r=this._mSampleValues,n=0,h=1;10!==h&&r[h]<=t;++h)n+=e;var f=n+(t-r[--h])/(r[h+1]-r[h])*e,c=a(f,i,s);return c>=.001?function(t,i,e,s){for(var r=0;r<4;++r){var n=a(i,e,s);if(0===n)return i;i-=(o(i,e,s)-t)/n}return i}(t,f,i,s):0===c?f:function(t,i,e,s,r){var n,h,a=0;do{(n=o(h=i+(e-i)/2,s,r)-t)>0?e=h:i=h}while(Math.abs(n)>1e-7&&++a<10);return h}(t,n,n+e,i,s)}},t}();function extendPrototype(t,i){var e,s,r=t.length;for(e=0;e<r;e+=1)for(var n in s=t[e].prototype)Object.prototype.hasOwnProperty.call(s,n)&&(i.prototype[n]=s[n])}function getDescriptor(t,i){return Object.getOwnPropertyDescriptor(t,i)}function createProxyFunction(t){function i(){}return i.prototype=t,i}function bezFunction(){var t=Math;function i(t,i,e,s,r,n){var h=t*s+i*r+e*n-r*s-n*t-e*i;return h>-.001&&h<.001}var e=function(t,i,e,s){var r,n,h,o,a,f,c=defaultCurveSegments,u=0,l=[],p=[],d=bezierLengthPool.newElement();for(h=e.length,r=0;r<c;r+=1){for(a=r/(c-1),f=0,n=0;n<h;n+=1)o=bmPow(1-a,3)*t[n]+3*bmPow(1-a,2)*a*e[n]+3*(1-a)*bmPow(a,2)*s[n]+bmPow(a,3)*i[n],l[n]=o,null!==p[n]&&(f+=bmPow(l[n]-p[n],2)),p[n]=l[n];f&&(u+=f=bmSqrt(f)),d.percents[r]=a,d.lengths[r]=u}return d.addedLength=u,d};function s(t){this.segmentLength=0,this.points=new Array(t)}function r(t,i){this.partialLength=t,this.point=i}var n,h=(n={},function(t,e,h,o){var a=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+h[0]+"_"+h[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[a]){var f,c,u,l,p,d,m,y=defaultCurveSegments,v=0,g=null;2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&i(t[0],t[1],e[0],e[1],t[0]+h[0],t[1]+h[1])&&i(t[0],t[1],e[0],e[1],e[0]+o[0],e[1]+o[1])&&(y=2);var P=new s(y);for(u=h.length,f=0;f<y;f+=1){for(m=createSizedArray(u),p=f/(y-1),d=0,c=0;c<u;c+=1)l=bmPow(1-p,3)*t[c]+3*bmPow(1-p,2)*p*(t[c]+h[c])+3*(1-p)*bmPow(p,2)*(e[c]+o[c])+bmPow(p,3)*e[c],m[c]=l,null!==g&&(d+=bmPow(m[c]-g[c],2));v+=d=bmSqrt(d),P.points[f]=new r(d,m),g=m}P.segmentLength=v,n[a]=P}return n[a]});function o(t,i){var e=i.percents,s=i.lengths,r=e.length,n=bmFloor((r-1)*t),h=t*i.addedLength,o=0;if(n===r-1||0===n||h===s[n])return e[n];for(var a=s[n]>h?-1:1,f=!0;f;)if(s[n]<=h&&s[n+1]>h?(o=(h-s[n])/(s[n+1]-s[n]),f=!1):n+=a,n<0||n>=r-1){if(n===r-1)return e[n];f=!1}return e[n]+(e[n+1]-e[n])*o}var a=createTypedArray("float32",8);return{getSegmentsLength:function(t){var i,s=segmentsLengthPool.newElement(),r=t.c,n=t.v,h=t.o,o=t.i,a=t._length,f=s.lengths,c=0;for(i=0;i<a-1;i+=1)f[i]=e(n[i],n[i+1],h[i],o[i+1]),c+=f[i].addedLength;return r&&a&&(f[i]=e(n[i],n[0],h[i],o[0]),c+=f[i].addedLength),s.totalLength=c,s},getNewSegment:function(i,e,s,r,n,h,f){n<0?n=0:n>1&&(n=1);var c,u=o(n,f),l=o(h=h>1?1:h,f),p=i.length,d=1-u,m=1-l,y=d*d*d,v=u*d*d*3,g=u*u*d*3,P=u*u*u,S=d*d*m,E=u*d*m+d*u*m+d*d*l,M=u*u*m+d*u*l+u*d*l,b=u*u*l,x=d*m*m,w=u*m*m+d*l*m+d*m*l,I=u*l*m+d*l*l+u*m*l,k=u*l*l,F=m*m*m,T=l*m*m+m*l*m+m*m*l,A=l*l*m+m*l*l+l*m*l,G=l*l*l;for(c=0;c<p;c+=1)a[4*c]=t.round(1e3*(y*i[c]+v*s[c]+g*r[c]+P*e[c]))/1e3,a[4*c+1]=t.round(1e3*(S*i[c]+E*s[c]+M*r[c]+b*e[c]))/1e3,a[4*c+2]=t.round(1e3*(x*i[c]+w*s[c]+I*r[c]+k*e[c]))/1e3,a[4*c+3]=t.round(1e3*(F*i[c]+T*s[c]+A*r[c]+G*e[c]))/1e3;return a},getPointInSegment:function(i,e,s,r,n,h){var a=o(n,h),f=1-a;return[t.round(1e3*(f*f*f*i[0]+(a*f*f+f*a*f+f*f*a)*s[0]+(a*a*f+f*a*a+a*f*a)*r[0]+a*a*a*e[0]))/1e3,t.round(1e3*(f*f*f*i[1]+(a*f*f+f*a*f+f*f*a)*s[1]+(a*a*f+f*a*a+a*f*a)*r[1]+a*a*a*e[1]))/1e3]},buildBezierData:h,pointOnLine2D:i,pointOnLine3D:function(e,s,r,n,h,o,a,f,c){if(0===r&&0===o&&0===c)return i(e,s,n,h,a,f);var u,l=t.sqrt(t.pow(n-e,2)+t.pow(h-s,2)+t.pow(o-r,2)),p=t.sqrt(t.pow(a-e,2)+t.pow(f-s,2)+t.pow(c-r,2)),d=t.sqrt(t.pow(a-n,2)+t.pow(f-h,2)+t.pow(c-o,2));return(u=l>p?l>d?l-p-d:d-p-l:d>p?d-p-l:p-l-d)>-1e-4&&u<1e-4}}}!function(){for(var t=0,i=["ms","moz","webkit","o"],e=0;e<i.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[i[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i[e]+"CancelAnimationFrame"]||window[i[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(i){var e=(new Date).getTime(),s=Math.max(0,16-(e-t)),r=setTimeout((function(){i(e+s)}),s);return t=e+s,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function t(r,n){var h,o,a,f,c,u,l,p=r.length;for(o=0;o<p;o+=1)if("ks"in(h=r[o])&&!h.completed){if(h.completed=!0,h.tt&&(r[o-1].td=h.tt),h.hasMask){var d=h.masksProperties;for(f=d.length,a=0;a<f;a+=1)if(d[a].pt.k.i)s(d[a].pt.k);else for(u=d[a].pt.k.length,c=0;c<u;c+=1)d[a].pt.k[c].s&&s(d[a].pt.k[c].s[0]),d[a].pt.k[c].e&&s(d[a].pt.k[c].e[0])}0===h.ty?(h.layers=i(h.refId,n),t(h.layers,n)):4===h.ty?e(h.shapes):5===h.ty&&(0!==(l=h).t.a.length||"m"in l.t.p||(l.singleShape=!0))}}function i(t,i){for(var e=0,s=i.length;e<s;){if(i[e].id===t)return i[e].layers.__used?JSON.parse(JSON.stringify(i[e].layers)):(i[e].layers.__used=!0,i[e].layers);e+=1}return null}function e(t){var i,r,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)s(t[i].ks.k);else for(n=t[i].ks.k.length,r=0;r<n;r+=1)t[i].ks.k[r].s&&s(t[i].ks.k[r].s[0]),t[i].ks.k[r].e&&s(t[i].ks.k[r].e[0]);else"gr"===t[i].ty&&e(t[i].it)}function s(t){var i,e=t.i.length;for(i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function r(t,i){var e=i?i.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]>t[2])&&null))}var n,h=function(){var t=[4,4,14];function i(t){var i,e,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&((e=t[i]).t.d={k:[{s:e.t.d,t:0}]})}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var s,n=e.assets.length;for(s=0;s<n;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),o=(n=[4,7,99],function(t){if(t.chars&&!r(n,t.v)){var i,e,h,o,a,f=t.chars.length;for(i=0;i<f;i+=1)if(t.chars[i].data&&t.chars[i].data.shapes)for(h=(a=t.chars[i].data.shapes[0].it).length,e=0;e<h;e+=1)(o=a[e].ks.k).__converted||(s(a[e].ks.k),o.__converted=!0)}}),a=function(){var t=[4,1,9];function i(t){var e,s,r,n=t.length;for(e=0;e<n;e+=1)if("gr"===t[e].ty)i(t[e].it);else if("fl"===t[e].ty||"st"===t[e].ty)if(t[e].c.k&&t[e].c.k[0].i)for(r=t[e].c.k.length,s=0;s<r;s+=1)t[e].c.k[s].s&&(t[e].c.k[s].s[0]/=255,t[e].c.k[s].s[1]/=255,t[e].c.k[s].s[2]/=255,t[e].c.k[s].s[3]/=255),t[e].c.k[s].e&&(t[e].c.k[s].e[0]/=255,t[e].c.k[s].e[1]/=255,t[e].c.k[s].e[2]/=255,t[e].c.k[s].e[3]/=255);else t[e].c.k[0]/=255,t[e].c.k[1]/=255,t[e].c.k[2]/=255,t[e].c.k[3]/=255}function e(t){var e,s=t.length;for(e=0;e<s;e+=1)4===t[e].ty&&i(t[e].shapes)}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var s,n=i.assets.length;for(s=0;s<n;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),f=function(){var t=[4,4,18];function i(t){var e,s,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)t[e].ks.k.c=t[e].closed;else for(r=t[e].ks.k.length,s=0;s<r;s+=1)t[e].ks.k[s].s&&(t[e].ks.k[s].s[0].c=t[e].closed),t[e].ks.k[s].e&&(t[e].ks.k[s].e[0].c=t[e].closed);else"gr"===t[e].ty&&i(t[e].it)}function e(t){var e,s,r,n,h,o,a=t.length;for(s=0;s<a;s+=1){if((e=t[s]).hasMask){var f=e.masksProperties;for(n=f.length,r=0;r<n;r+=1)if(f[r].pt.k.i)f[r].pt.k.c=f[r].cl;else for(o=f[r].pt.k.length,h=0;h<o;h+=1)f[r].pt.k[h].s&&(f[r].pt.k[h].s[0].c=f[r].cl),f[r].pt.k[h].e&&(f[r].pt.k[h].e[0].c=f[r].cl)}4===e.ty&&i(e.shapes)}}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var s,n=i.assets.length;for(s=0;s<n;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),c={completeData:function(i){i.__complete||(a(i),h(i),o(i),f(i),t(i.layers,i.assets),i.__complete=!0)}};return c.checkColors=a,c.checkChars=o,c.checkShapes=f,c.completeLayers=t,c}var dataManager=dataFunctionManager();function getFontProperties(t){for(var i=t.fStyle?t.fStyle.split(" "):[],e="normal",s="normal",r=i.length,n=0;n<r;n+=1)switch(i[n].toLowerCase()){case"italic":s="italic";break;case"bold":e="700";break;case"black":e="900";break;case"medium":e="500";break;case"regular":case"normal":e="400";break;case"light":case"thin":e="200"}return{style:s,weight:t.fWeight||e}}var FontManager=function(){var t={w:0,size:0,shapes:[]},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var e=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],s=[65039,8205];function r(t,i){var e=createTag("span");e.setAttribute("aria-hidden",!0),e.style.fontFamily=i;var s=createTag("span");s.innerText="giItT1WQy@!-/#",e.style.position="absolute",e.style.left="-10000px",e.style.top="-10000px",e.style.fontSize="300px",e.style.fontVariant="normal",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="0",e.appendChild(s),document.body.appendChild(e);var r=s.offsetWidth;return s.style.fontFamily=function(t){var i,e=t.split(","),s=e.length,r=[];for(i=0;i<s;i+=1)"sans-serif"!==e[i]&&"monospace"!==e[i]&&r.push(e[i]);return r.join(",")}(t)+", "+i,{node:s,w:r,parent:e}}function n(t,i){var e=createNS("text");e.style.fontSize="100px";var s=getFontProperties(i);return e.setAttribute("font-family",i.fFamily),e.setAttribute("font-style",s.style),e.setAttribute("font-weight",s.weight),e.textContent="1",i.fClass?(e.style.fontFamily="inherit",e.setAttribute("class",i.fClass)):e.style.fontFamily=i.fFamily,t.appendChild(e),createTag("canvas").getContext("2d").font=i.fWeight+" "+i.fStyle+" 100px "+i.fFamily,e}var h=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return h.isModifier=function(t,i){var s=t.toString(16)+i.toString(16);return-1!==e.indexOf(s)},h.isZeroWidthJoiner=function(t,i){return i?t===s[0]&&i===s[1]:t===s[1]},h.isCombinedCharacter=function(t){return-1!==i.indexOf(t)},h.prototype={addChars:function(t){if(t){var i;this.chars||(this.chars=[]);var e,s,r=t.length,n=this.chars.length;for(i=0;i<r;i+=1){for(e=0,s=!1;e<n;)this.chars[e].style===t[i].style&&this.chars[e].fFamily===t[i].fFamily&&this.chars[e].ch===t[i].ch&&(s=!0),e+=1;s||(this.chars.push(t[i]),n+=1)}}},addFonts:function(t,i){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var e,s=t.list,h=s.length,o=h;for(e=0;e<h;e+=1){var a,f,c=!0;if(s[e].loaded=!1,s[e].monoCase=r(s[e].fFamily,"monospace"),s[e].sansCase=r(s[e].fFamily,"sans-serif"),s[e].fPath){if("p"===s[e].fOrigin||3===s[e].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[e].fFamily+'"], style[f-origin="3"][f-family="'+s[e].fFamily+'"]')).length>0&&(c=!1),c){var u=createTag("style");u.setAttribute("f-forigin",s[e].fOrigin),u.setAttribute("f-origin",s[e].origin),u.setAttribute("f-family",s[e].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+s[e].fFamily+"; font-style: normal; src: url('"+s[e].fPath+"');}",i.appendChild(u)}}else if("g"===s[e].fOrigin||1===s[e].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),f=0;f<a.length;f+=1)-1!==a[f].href.indexOf(s[e].fPath)&&(c=!1);if(c){var l=createTag("link");l.setAttribute("f-forigin",s[e].fOrigin),l.setAttribute("f-origin",s[e].origin),l.type="text/css",l.rel="stylesheet",l.href=s[e].fPath,document.body.appendChild(l)}}else if("t"===s[e].fOrigin||2===s[e].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),f=0;f<a.length;f+=1)s[e].fPath===a[f].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",s[e].fOrigin),p.setAttribute("f-origin",s[e].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",s[e].fPath),i.appendChild(p)}}}else s[e].loaded=!0,o-=1;s[e].helper=n(i,s[e]),s[e].cache={},this.fonts.push(s[e])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(i,e,s){for(var r=0,n=this.chars.length;r<n;){if(this.chars[r].ch===i&&this.chars[r].style===e&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return("string"==typeof i&&13!==i.charCodeAt(0)||!i)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",i,e,s)),t},getFontByName:function(t){for(var i=0,e=this.fonts.length;i<e;){if(this.fonts[i].fName===t)return this.fonts[i];i+=1}return this.fonts[0]},measureText:function(t,i,e){var s=this.getFontByName(i),r=t.charCodeAt(0);if(!s.cache[r+1]){var n=s.helper;if(" "===t){n.textContent="|"+t+"|";var h=n.getComputedTextLength();n.textContent="||";var o=n.getComputedTextLength();s.cache[r+1]=(h-o)/100}else n.textContent=t,s.cache[r+1]=n.getComputedTextLength()/100}return s.cache[r+1]*e},checkLoadedFonts:function(){var t,i=this.fonts.length,e=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?e-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:((this.fonts[t].monoCase.node.offsetWidth!==this.fonts[t].monoCase.w||this.fonts[t].sansCase.node.offsetWidth!==this.fonts[t].sansCase.w)&&(e-=1,this.fonts[t].loaded=!0),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==e&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},h}(),PropertyFactory=function(){var t=initialDefaultFrame,i=Math.abs;function e(t,i){var e,r=this.offsetTime;"multidimensional"===this.propType&&(e=createTypedArray("float32",this.pv.length));for(var n,h,o,a,f,c,u,l,p=i.lastIndex,d=p,m=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[d],h=this.keyframes[d+1],d===m-1&&t>=h.t-r){n.h&&(n=h),p=0;break}if(h.t-r>t){p=d;break}d<m-1?d+=1:(p=0,y=!1)}var v,g,P,S,E,M,b,x,w,I,k=h.t-r,F=n.t-r;if(n.to){n.bezierData||(n.bezierData=bez.buildBezierData(n.s,h.s||n.e,n.to,n.ti));var T=n.bezierData;if(t>=k||t<F){var A=t>=k?T.points.length-1:0;for(a=T.points[A].point.length,o=0;o<a;o+=1)e[o]=T.points[A].point[o]}else{n.__fnct?l=n.__fnct:(l=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,n.__fnct=l),f=l((t-F)/(k-F));var G,R=T.segmentLength*f,V=i.lastFrame<t&&i._lastKeyframeIndex===d?i._lastAddedLength:0;for(u=i.lastFrame<t&&i._lastKeyframeIndex===d?i._lastPoint:0,y=!0,c=T.points.length;y;){if(V+=T.points[u].partialLength,0===R||0===f||u===T.points.length-1){for(a=T.points[u].point.length,o=0;o<a;o+=1)e[o]=T.points[u].point[o];break}if(R>=V&&R<V+T.points[u+1].partialLength){for(G=(R-V)/T.points[u+1].partialLength,a=T.points[u].point.length,o=0;o<a;o+=1)e[o]=T.points[u].point[o]+(T.points[u+1].point[o]-T.points[u].point[o])*G;break}u<c-1?u+=1:y=!1}i._lastPoint=u,i._lastAddedLength=V-T.points[u].partialLength,i._lastKeyframeIndex=d}}else{var B;if(m=n.s.length,v=h.s||n.e,this.sh&&1!==n.h)if(t>=k)e[0]=v[0],e[1]=v[1],e[2]=v[2];else if(t<=F)e[0]=n.s[0],e[1]=n.s[1],e[2]=n.s[2];else{g=e,S=(P=function(t,i,e){var s,r,n,h,o,a=[],f=t[0],c=t[1],u=t[2],l=t[3],p=i[0],d=i[1],m=i[2],y=i[3];return(r=f*p+c*d+u*m+l*y)<0&&(r=-r,p=-p,d=-d,m=-m,y=-y),1-r>1e-6?(s=Math.acos(r),n=Math.sin(s),h=Math.sin((1-e)*s)/n,o=Math.sin(e*s)/n):(h=1-e,o=e),a[0]=h*f+o*p,a[1]=h*c+o*d,a[2]=h*u+o*m,a[3]=h*l+o*y,a}(s(n.s),s(v),(t-F)/(k-F)))[0],E=P[1],M=P[2],b=P[3],x=Math.atan2(2*E*b-2*S*M,1-2*E*E-2*M*M),w=Math.asin(2*S*E+2*M*b),I=Math.atan2(2*S*b-2*E*M,1-2*S*S-2*M*M),g[0]=x/degToRads,g[1]=w/degToRads,g[2]=I/degToRads}else for(d=0;d<m;d+=1)1!==n.h&&(t>=k?f=1:t<F?f=0:(n.o.x.constructor===Array?(n.__fnct||(n.__fnct=[]),n.__fnct[d]?l=n.__fnct[d]:(l=BezierFactory.getBezierEasing(void 0===n.o.x[d]?n.o.x[0]:n.o.x[d],void 0===n.o.y[d]?n.o.y[0]:n.o.y[d],void 0===n.i.x[d]?n.i.x[0]:n.i.x[d],void 0===n.i.y[d]?n.i.y[0]:n.i.y[d]).get,n.__fnct[d]=l)):n.__fnct?l=n.__fnct:(l=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y).get,n.__fnct=l),f=l((t-F)/(k-F)))),v=h.s||n.e,B=1===n.h?n.s[d]:n.s[d]+(v[d]-n.s[d])*f,"multidimensional"===this.propType?e[d]=B:e=B}return i.lastIndex=p,e}function s(t){var i=t[0]*degToRads,e=t[1]*degToRads,s=t[2]*degToRads,r=Math.cos(i/2),n=Math.cos(e/2),h=Math.cos(s/2),o=Math.sin(i/2),a=Math.sin(e/2),f=Math.sin(s/2);return[o*a*h+r*n*f,o*n*h+r*a*f,r*a*h-o*n*f,r*n*h-o*a*f]}function r(){var i=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=s&&i>=s||this._caching.lastFrame<e&&i<e))){this._caching.lastFrame>=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(i,this._caching);this.pv=r}return this._caching.lastFrame=i,this.pv}function n(t){var e;if("unidimensional"===this.propType)i(this.v-(e=t*this.mult))>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,r=this.v.length;s<r;)i(this.v[s]-(e=t[s]*this.mult))>1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}function h(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var i=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function a(t,i,e,s){this.propType="unidimensional",this.mult=e||1,this.data=i,this.v=e?i.k*e:i.k,this.pv=i.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=h,this.setVValue=n,this.addEffect=o}function f(t,i,e,s){var r;this.propType="multidimensional",this.mult=e||1,this.data=i,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=i.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),r=0;r<a;r+=1)this.v[r]=i.k[r]*this.mult,this.pv[r]=i.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=h,this.setVValue=n,this.addEffect=o}function c(i,s,a,f){this.propType="unidimensional",this.keyframes=s.k,this.offsetTime=i.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=a||1,this.elem=i,this.container=f,this.comp=i.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=h,this.setVValue=n,this.interpolateValue=e,this.effectsSequence=[r.bind(this)],this.addEffect=o}function u(i,s,a,f){var c;this.propType="multidimensional";var u,l,p,d,m=s.k.length;for(c=0;c<m-1;c+=1)s.k[c].to&&s.k[c].s&&s.k[c+1]&&s.k[c+1].s&&(l=s.k[c+1].s,p=s.k[c].to,d=s.k[c].ti,(2===(u=s.k[c].s).length&&(u[0]!==l[0]||u[1]!==l[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],u[0]+p[0],u[1]+p[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],l[0]+d[0],l[1]+d[1])||3===u.length&&(u[0]!==l[0]||u[1]!==l[1]||u[2]!==l[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],u[0]+p[0],u[1]+p[1],u[2]+p[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],l[0]+d[0],l[1]+d[1],l[2]+d[2]))&&(s.k[c].to=null,s.k[c].ti=null),u[0]===l[0]&&u[1]===l[1]&&0===p[0]&&0===p[1]&&0===d[0]&&0===d[1]&&(2===u.length||u[2]===l[2]&&0===p[2]&&0===d[2])&&(s.k[c].to=null,s.k[c].ti=null));this.effectsSequence=[r.bind(this)],this.data=s,this.keyframes=s.k,this.offsetTime=i.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=i,this.container=f,this.comp=i.comp,this.getValue=h,this.setVValue=n,this.interpolateValue=e,this.frameId=-1;var y=s.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),c=0;c<y;c+=1)this.v[c]=t,this.pv[c]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(t,i,e,s,r){var n;if(i.k.length)if("number"==typeof i.k[0])n=new f(t,i,s,r);else switch(e){case 0:n=new c(t,i,s,r);break;case 1:n=new u(t,i,s,r)}else n=new a(t,i,s,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n}}}(),TransformPropertyFactory=function(){var t=[0,0];function i(t,i,e){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(e||t),i.p&&i.p.s?(this.px=PropertyFactory.getProp(t,i.p.x,0,0,this),this.py=PropertyFactory.getProp(t,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(t,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(t,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,i.rz,0,degToRads,this),i.or.k[0].ti){var s,r=i.or.k.length;for(s=0;s<r;s+=1)i.or.k[s].to=null,i.or.k[s].ti=null}this.or=PropertyFactory.getProp(t,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(t,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,i.s||{k:[100,100,100]},1,.01,this),this.o=i.o?PropertyFactory.getProp(t,i.o,0,.01,t):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return i.prototype={applyToMatrix:function(t){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,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?t.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(i){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||i){var e;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,r;if(e=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/e,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/e,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/e,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/e,0)):(s=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],r=[];var n=this.px,h=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(s[0]=n.getValueAtTime((n.keyframes[0].t+.01)/e,0),s[1]=h.getValueAtTime((h.keyframes[0].t+.01)/e,0),r[0]=n.getValueAtTime(n.keyframes[0].t/e,0),r[1]=h.getValueAtTime(h.keyframes[0].t/e,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(s[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/e,0),s[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/e,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/e,0),r[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/e,0)):(s=[n.pv,h.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/e,n.offsetTime),r[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/e,h.offsetTime))}else s=r=t;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.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],i),i.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,s){return new i(t,e,s)}}}();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,i){this.c=t,this.setLength(i);for(var e=0;e<i;)this.v[e]=pointPool.newElement(),this.o[e]=pointPool.newElement(),this.i[e]=pointPool.newElement(),e+=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,i,e,s,r){var n;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),e){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[s]||n[s]&&!r)&&(n[s]=pointPool.newElement()),n[s][0]=t,n[s][1]=i},ShapePath.prototype.setTripleAt=function(t,i,e,s,r,n,h,o){this.setXYAt(t,i,"v",h,o),this.setXYAt(e,s,"o",h,o),this.setXYAt(r,n,"i",h,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var i=this.v,e=this.o,s=this.i,r=0;this.c&&(t.setTripleAt(i[0][0],i[0][1],s[0][0],s[0][1],e[0][0],e[0][1],0,!1),r=1);var n,h=this._length-1,o=this._length;for(n=r;n<o;n+=1)t.setTripleAt(i[h][0],i[h][1],s[h][0],s[h][1],e[h][0],e[h][1],n,!1),h-=1;return t};var ShapePropertyFactory=function(){var t=-999999;function i(t,i,e){var s,r,n,h,o,a,f,c,u=e.lastIndex,l=this.keyframes;if(t<l[0].t-this.offsetTime)s=l[0].s[0],n=!0,u=0;else if(t>=l[l.length-1].t-this.offsetTime)s=l[l.length-1].s?l[l.length-1].s[0]:l[l.length-2].e[0],n=!0;else{for(var p,d,m=u,y=l.length-1,v=!0;v&&(p=l[m],!((d=l[m+1]).t-this.offsetTime>t));)m<y-1?m+=1:v=!1;if(u=m,!(n=1===p.h)){if(t>=d.t-this.offsetTime)c=1;else if(t<p.t-this.offsetTime)c=0;else{var g;p.__fnct?g=p.__fnct:(g=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,p.__fnct=g),c=g((t-(p.t-this.offsetTime))/(d.t-this.offsetTime-(p.t-this.offsetTime)))}r=d.s?d.s[0]:p.e[0]}s=p.s[0]}for(a=i._length,f=s.i[0].length,e.lastIndex=u,h=0;h<a;h+=1)for(o=0;o<f;o+=1)i.i[h][o]=n?s.i[h][o]:s.i[h][o]+(r.i[h][o]-s.i[h][o])*c,i.o[h][o]=n?s.o[h][o]:s.o[h][o]+(r.o[h][o]-s.o[h][o])*c,i.v[h][o]=n?s.v[h][o]:s.v[h][o]+(r.v[h][o]-s.v[h][o])*c}function e(){var i=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<e&&i<e||r>s&&i>s)||(this._caching.lastIndex=r<i?this._caching.lastIndex:0,this.interpolateShape(i,this.pv,this._caching)),this._caching.lastFrame=i,this.pv}function s(){this.paths=this.localShapeCollection}function r(t){(function(t,i){if(t._length!==i._length||t.c!==i.c)return!1;var e,s=t._length;for(e=0;e<s;e+=1)if(t.v[e][0]!==i.v[e][0]||t.v[e][1]!==i.v[e][1]||t.o[e][0]!==i.o[e][0]||t.o[e][1]!==i.o[e][1]||t.i[e][0]!==i.i[e][0]||t.i[e][1]!==i.i[e][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,i;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e=this.effectsSequence.length;for(i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function h(t,i,e){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=i,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===e?i.pt.k:i.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function a(i,r,n){this.propType="shape",this.comp=i.comp,this.elem=i,this.container=i,this.offsetTime=i.data.st,this.keyframes=3===n?r.pt.k:r.ks.k,this.k=!0,this.kf=!0;var h=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,h),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[e.bind(this)]}h.prototype.interpolateShape=i,h.prototype.getValue=n,h.prototype.setVValue=r,h.prototype.addEffect=o,a.prototype.getValue=n,a.prototype.interpolateShape=i,a.prototype.setVValue=r,a.prototype.addEffect=o;var f=function(){var t=roundCorner;function i(t,i){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=i.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.s=PropertyFactory.getProp(t,i.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return i.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var i=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,n=3!==this.d,h=this.v;h.v[0][0]=i,h.v[0][1]=e-r,h.v[1][0]=n?i+s:i-s,h.v[1][1]=e,h.v[2][0]=i,h.v[2][1]=e+r,h.v[3][0]=n?i-s:i+s,h.v[3][1]=e,h.i[0][0]=n?i-s*t:i+s*t,h.i[0][1]=e-r,h.i[1][0]=n?i+s:i-s,h.i[1][1]=e-r*t,h.i[2][0]=n?i+s*t:i-s*t,h.i[2][1]=e+r,h.i[3][0]=n?i-s:i+s,h.i[3][1]=e+r*t,h.o[0][0]=n?i+s*t:i-s*t,h.o[0][1]=e-r,h.o[1][0]=n?i+s:i-s,h.o[1][1]=e+r*t,h.o[2][0]=n?i-s*t:i+s*t,h.o[2][1]=e+r,h.o[3][0]=n?i-s:i+s,h.o[3][1]=e-r*t}},extendPrototype([DynamicPropertyContainer],i),i}(),c=function(){function t(t,i){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=i,this.frameId=-1,this.d=i.d,this.initDynamicPropertyContainer(t),1===i.sy?(this.ir=PropertyFactory.getProp(t,i.ir,0,0,this),this.is=PropertyFactory.getProp(t,i.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,i.pt,0,0,this),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.r=PropertyFactory.getProp(t,i.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,i.or,0,0,this),this.os=PropertyFactory.getProp(t,i.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,i,e,s,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,h=!0,o=this.or.v,a=this.ir.v,f=this.os.v,c=this.is.v,u=2*Math.PI*o/(2*r),l=2*Math.PI*a/(2*r),p=-Math.PI/2;p+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){e=h?f:c,s=h?u:l;var m=(i=h?o:a)*Math.cos(p),y=i*Math.sin(p),v=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),g=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);this.v.setTripleAt(m+=+this.p.v[0],y+=+this.p.v[1],m-v*s*e*d,y-g*s*e*d,m+v*s*e*d,y+g*s*e*d,t,!0),h=!h,p+=n*d}},convertPolygonToPath:function(){var t,i=Math.floor(this.pt.v),e=2*Math.PI/i,s=this.or.v,r=this.os.v,n=2*Math.PI*s/(4*i),h=.5*-Math.PI,o=3===this.data.d?-1:1;for(h+=this.r.v,this.v._length=0,t=0;t<i;t+=1){var a=s*Math.cos(h),f=s*Math.sin(h),c=0===a&&0===f?0:f/Math.sqrt(a*a+f*f),u=0===a&&0===f?0:-a/Math.sqrt(a*a+f*f);this.v.setTripleAt(a+=+this.p.v[0],f+=+this.p.v[1],a-c*n*r*o,f-u*n*r*o,a+c*n*r*o,f+u*n*r*o,t,!0),h+=e*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function t(t,i){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=i.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.s=PropertyFactory.getProp(t,i.s,1,0,this),this.r=PropertyFactory.getProp(t,i.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],i=this.p.v[1],e=this.s.v[0]/2,s=this.s.v[1]/2,r=bmMin(e,s,this.r.v),n=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+e,i-s+r,t+e,i-s+r,t+e,i-s+n,0,!0),this.v.setTripleAt(t+e,i+s-r,t+e,i+s-n,t+e,i+s-r,1,!0),0!==r?(this.v.setTripleAt(t+e-r,i+s,t+e-r,i+s,t+e-n,i+s,2,!0),this.v.setTripleAt(t-e+r,i+s,t-e+n,i+s,t-e+r,i+s,3,!0),this.v.setTripleAt(t-e,i+s-r,t-e,i+s-r,t-e,i+s-n,4,!0),this.v.setTripleAt(t-e,i-s+r,t-e,i-s+n,t-e,i-s+r,5,!0),this.v.setTripleAt(t-e+r,i-s,t-e+r,i-s,t-e+n,i-s,6,!0),this.v.setTripleAt(t+e-r,i-s,t+e-n,i-s,t+e-r,i-s,7,!0)):(this.v.setTripleAt(t-e,i+s,t-e+n,i+s,t-e,i+s,2),this.v.setTripleAt(t-e,i-s,t-e,i-s+n,t-e,i-s,3))):(this.v.setTripleAt(t+e,i-s+r,t+e,i-s+n,t+e,i-s+r,0,!0),0!==r?(this.v.setTripleAt(t+e-r,i-s,t+e-r,i-s,t+e-n,i-s,1,!0),this.v.setTripleAt(t-e+r,i-s,t-e+n,i-s,t-e+r,i-s,2,!0),this.v.setTripleAt(t-e,i-s+r,t-e,i-s+r,t-e,i-s+n,3,!0),this.v.setTripleAt(t-e,i+s-r,t-e,i+s-n,t-e,i+s-r,4,!0),this.v.setTripleAt(t-e+r,i+s,t-e+r,i+s,t-e+n,i+s,5,!0),this.v.setTripleAt(t+e-r,i+s,t+e-n,i+s,t+e-r,i+s,6,!0),this.v.setTripleAt(t+e,i+s-r,t+e,i+s-r,t+e,i+s-n,7,!0)):(this.v.setTripleAt(t-e,i-s,t-e+n,i-s,t-e,i-s,1,!0),this.v.setTripleAt(t-e,i+s,t-e,i+s-n,t-e,i+s,2,!0),this.v.setTripleAt(t+e,i+s,t+e-n,i+s,t+e,i+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,i,e){var s;return 3===e||4===e?s=(3===e?i.pt:i.ks).k.length?new a(t,i,e):new h(t,i,e):5===e?s=new u(t,i):6===e?s=new f(t,i):7===e&&(s=new c(t,i)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return h},getKeyframedConstructorFunction:function(){return a}}}(),ShapeModifiers=(ob={},modifiers={},ob.registerModifier=function(t,i){modifiers[t]||(modifiers[t]=i)},ob.getModifier=function(t,i,e){return new modifiers[t](i,e)},ob),ob,modifiers;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,i,e,s){var r;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=e,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);var n,h=i.length||0;for(r=0;r<h;r+=1)n=PropertyFactory.getProp(t,i[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:i[r].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,i,e){this.data=i,this.c=createTypedArray("uint8c",4*i.p);var s=i.k.k[0].s?i.k.k[0].s.length-4*i.p:i.k.k.length-4*i.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(e),this.prop=PropertyFactory.getProp(t,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var i={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,i){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,i){this.s=PropertyFactory.getProp(t,i.s,0,.01,this),this.e=PropertyFactory.getProp(t,i.e,0,.01,this),this.o=PropertyFactory.getProp(t,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,i,e,s,r){var n=[];i<=1?n.push({s:t,e:i}):t>=1?n.push({s:t-1,e:i-1}):(n.push({s:t,e:1}),n.push({s:0,e:i-1}));var h,o,a=[],f=n.length;for(h=0;h<f;h+=1)(o=n[h]).e*r<s||o.s*r>s+e||a.push([o.s*r<=s?0:(o.s*r-s)/e,o.e*r>=s+e?1:(o.e*r-s)/e]);return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(t){var i,e=t.length;for(i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var i,e,s,r;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),(i=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(e=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var h=i;i=e,e=h}i=1e-4*Math.round(1e4*i),e=1e-4*Math.round(1e4*e),this.sValue=i,this.eValue=e}else i=this.sValue,e=this.eValue;var o,a,f,c,u,l=this.shapes.length,p=0;if(e===i)for(r=0;r<l;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===e&&0===i||0===e&&1===i){if(this._mdf)for(r=0;r<l;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var d,m,y=[];for(r=0;r<l;r+=1)if((d=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(a=(s=d.shape.paths)._length,u=0,!d.shape._mdf&&d.pathsData.length)u=d.totalShapeLength;else{for(f=this.releasePathsData(d.pathsData),o=0;o<a;o+=1)c=bez.getSegmentsLength(s.shapes[o]),f.push(c),u+=c.totalLength;d.totalShapeLength=u,d.pathsData=f}p+=u,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var v,g=i,P=e,S=0;for(r=l-1;r>=0;r-=1)if((d=this.shapes[r]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&l>1?(v=this.calculateShapeEdges(i,e,d.totalShapeLength,S,p),S+=d.totalShapeLength):v=[[g,P]],a=v.length,o=0;o<a;o+=1){g=v[o][0],P=v[o][1],y.length=0,P<=1?y.push({s:d.totalShapeLength*g,e:d.totalShapeLength*P}):g>=1?y.push({s:d.totalShapeLength*(g-1),e:d.totalShapeLength*(P-1)}):(y.push({s:d.totalShapeLength*g,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(P-1)}));var E=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var M=E.pop();this.addPaths(E,m),E=this.addShapes(d,y[1],M)}else this.addPaths(E,m),E=this.addShapes(d,y[1]);this.addPaths(E,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,i){var e,s=t.length;for(e=0;e<s;e+=1)i.addShape(t[e])},TrimModifier.prototype.addSegment=function(t,i,e,s,r,n,h){r.setXYAt(i[0],i[1],"o",n),r.setXYAt(e[0],e[1],"i",n+1),h&&r.setXYAt(t[0],t[1],"v",n),r.setXYAt(s[0],s[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(t,i,e,s){i.setXYAt(t[1],t[5],"o",e),i.setXYAt(t[2],t[6],"i",e+1),s&&i.setXYAt(t[0],t[4],"v",e),i.setXYAt(t[3],t[7],"v",e+1)},TrimModifier.prototype.addShapes=function(t,i,e){var s,r,n,h,o,a,f,c,u=t.pathsData,l=t.shape.paths.shapes,p=t.shape.paths._length,d=0,m=[],y=!0;for(e?(o=e._length,c=e._length):(e=shapePool.newElement(),o=0,c=0),m.push(e),s=0;s<p;s+=1){for(a=u[s].lengths,e.c=l[s].c,n=l[s].c?a.length:a.length+1,r=1;r<n;r+=1)if(d+(h=a[r-1]).addedLength<i.s)d+=h.addedLength,e.c=!1;else{if(d>i.e){e.c=!1;break}i.s<=d&&i.e>=d+h.addedLength?(this.addSegment(l[s].v[r-1],l[s].o[r-1],l[s].i[r],l[s].v[r],e,o,y),y=!1):(f=bez.getNewSegment(l[s].v[r-1],l[s].v[r],l[s].o[r-1],l[s].i[r],(i.s-d)/h.addedLength,(i.e-d)/h.addedLength,a[r-1]),this.addSegmentFromArray(f,e,o,y),y=!1,e.c=!1),d+=h.addedLength,o+=1}if(l[s].c&&a.length){if(h=a[r-1],d<=i.e){var v=a[r-1].addedLength;i.s<=d&&i.e>=d+v?(this.addSegment(l[s].v[r-1],l[s].o[r-1],l[s].i[0],l[s].v[0],e,o,y),y=!1):(f=bez.getNewSegment(l[s].v[r-1],l[s].v[0],l[s].o[r-1],l[s].i[0],(i.s-d)/v,(i.e-d)/v,a[r-1]),this.addSegmentFromArray(f,e,o,y),y=!1,e.c=!1)}else e.c=!1;d+=h.addedLength,o+=1}if(e._length&&(e.setXYAt(e.v[c][0],e.v[c][1],"i",c),e.setXYAt(e.v[e._length-1][0],e.v[e._length-1][1],"o",e._length-1)),d>i.e)break;s<p-1&&(e=shapePool.newElement(),y=!0,m.push(e),o=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,i){var e,s=shapePool.newElement();s.c=t.c;var r,n,h,o,a,f,c,u,l,p,d,m,y=t._length,v=0;for(e=0;e<y;e+=1)n=t.i[e],(r=t.v[e])[0]===(h=t.o[e])[0]&&r[1]===h[1]&&r[0]===n[0]&&r[1]===n[1]?0!==e&&e!==y-1||t.c?(o=0===e?t.v[y-1]:t.v[e-1],f=(a=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(a/2,i)/a:0,s.setTripleAt(c=d=r[0]+(o[0]-r[0])*f,u=m=r[1]-(r[1]-o[1])*f,c-(c-r[0])*roundCorner,u-(u-r[1])*roundCorner,d,m,v),v+=1,o=e===y-1?t.v[0]:t.v[e+1],f=(a=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(a/2,i)/a:0,s.setTripleAt(c=l=r[0]+(o[0]-r[0])*f,u=p=r[1]+(o[1]-r[1])*f,l,p,d=c-(c-r[0])*roundCorner,m=u-(u-r[1])*roundCorner,v),v+=1):(s.setTripleAt(r[0],r[1],h[0],h[1],n[0],n[1],v),v+=1):(s.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],v),v+=1);return s},RoundCornersModifier.prototype.processShapes=function(t){var i,e,s,r,n,h,o=this.shapes.length,a=this.rd.v;if(0!==a)for(e=0;e<o;e+=1){if(h=(n=this.shapes[e]).localShapeCollection,n.shape._mdf||this._mdf||t)for(h.releaseShapes(),n.shape._mdf=!0,i=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)h.addShape(this.processPath(i[s],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,i){var e=i/100,s=[0,0],r=t._length,n=0;for(n=0;n<r;n+=1)s[0]+=t.v[n][0],s[1]+=t.v[n][1];s[0]/=r,s[1]/=r;var h=shapePool.newElement();for(h.c=t.c,n=0;n<r;n+=1)h.setTripleAt(t.v[n][0]+(s[0]-t.v[n][0])*e,t.v[n][1]+(s[1]-t.v[n][1])*e,t.o[n][0]+(s[0]-t.o[n][0])*-e,t.o[n][1]+(s[1]-t.o[n][1])*-e,t.i[n][0]+(s[0]-t.i[n][0])*-e,t.i[n][1]+(s[1]-t.i[n][1])*-e,n);return h},PuckerAndBloatModifier.prototype.processShapes=function(t){var i,e,s,r,n,h,o=this.shapes.length,a=this.amount.v;if(0!==a)for(e=0;e<o;e+=1){if(h=(n=this.shapes[e]).localShapeCollection,n.shape._mdf||this._mdf||t)for(h.releaseShapes(),n.shape._mdf=!0,i=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)h.addShape(this.processPath(i[s],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,i.c,0,null,this),this.o=PropertyFactory.getProp(t,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,i.tr,this),this.so=PropertyFactory.getProp(t,i.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,i,e,s,r,n){var h=n?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),a=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*h*r,s.p.v[1]*h*r,s.p.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.rotate(-s.r.v*h*r),i.translate(s.a.v[0],s.a.v[1],s.a.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.scale(n?1/o:o,n?1/a:a),e.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,i,e,s){for(this.elem=t,this.arr=i,this.pos=e,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,i[e]);e>0;)this._elements.unshift(i[e-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){var i=JSON.parse(JSON.stringify(t));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(t,i){var e,s=t.length;for(e=0;e<s;e+=1)t[e]._render=i,"gr"===t[e].ty&&this.changeGroupRender(t[e].it,i)},RepeaterModifier.prototype.processShapes=function(t){var i,e,s,r,n,h=!1;if(this._mdf||t){var o,a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),h=!0}for(n=0,s=0;s<=this._groups.length-1;s+=1){if(this._groups[s]._render=o=n<a,this.changeGroupRender(this._groups[s].it,o),!o){var c=this.elemsData[s].it,u=c[c.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}n+=1}this._currentCopies=a;var l=this.o.v,p=l%1,d=l>0?Math.floor(l):Math.ceil(l),m=this.pMatrix.props,y=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var g,P,S=0;if(l>0){for(;S<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),S+=p)}else if(l<0){for(;S>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),S-=p)}for(s=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(P=(e=(i=this.elemsData[s].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+s/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==S){for((0!==s&&1===r||s!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),g=0;g<P;g+=1)e[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<P;g+=1)e[g]=this.matrix.props[g];S+=1,n-=1,s+=r}}else for(n=this._currentCopies,s=0,r=1;n;)e=(i=this.elemsData[s].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,n-=1,s+=r;return h},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var i=0,e=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),i=0;i<e;i+=1)"o"!==this.dataProps[i].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,i){for(var e=0,s=this.o.length/2;e<s;){if(Math.abs(t[4*e]-t[4*i+2*e])>.01)return!1;e+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,i=this.data.k.k.length;t<i;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var i,e,s,r=4*this.data.p;for(i=0;i<r;i+=1)e=i%4==0?100:255,s=Math.round(this.prop.v[i]*e),this.c[i]!==s&&(this.c[i]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,i=4*this.data.p;i<r;i+=1)e=i%2==0?100:1,s=i%2==0?Math.round(100*this.prop.v[i]):this.prop.v[i],this.o[i-4*this.data.p]!==s&&(this.o[i-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,i,e,s){if(0===i)return"";var r,n=t.o,h=t.i,o=t.v,a=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<i;r+=1)a+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(h[r][0],h[r][1])+" "+s.applyToPointStringified(o[r][0],o[r][1]);return e&&i&&(a+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(h[0][0],h[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),a+="z"),a},audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].pause()},resume:function(){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].resume()},setRate:function(t){var i,e=this.audios.length;for(i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):Howl?new Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var i=t.getContext("2d");return i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1),t}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function e(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,i,e){var s="";if(t.e)s=t.p;else if(i){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),s=i+r}else s=e,s+=t.u?t.u:"",s+=t.p;return s}function r(t){var i=0,e=setInterval(function(){(t.getBBox().width||i>500)&&(this._imageLoaded(),clearInterval(e)),i+=1}.bind(this),50)}function n(t){var i={assetData:t},e=s(t,this.assetsPath,this.path);return assetLoader.load(e,function(t){i.img=t,this._footageLoaded()}.bind(this),function(){i.img={},this._footageLoaded()}.bind(this)),i}function h(){this._imageLoaded=i.bind(this),this._footageLoaded=e.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return h.prototype={loadAssets:function(t,i){var e;this.imagesLoadedCb=i;var s=t.length;for(e=0;e<s;e+=1)t[e].layers||(t[e].t&&"seq"!==t[e].t?3===t[e].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[e]))):(this.totalImages+=1,this.images.push(this._createImageData(t[e]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var i=0,e=this.images.length;i<e;){if(this.images[i].assetData===t)return this.images[i].img;i+=1}return null},createImgData:function(i){var e=s(i,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),r.src=e;var n={img:r,assetData:i};return n},createImageData:function(i){var e=s(i,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var n={img:r,assetData:i};return n},imageLoaded:i,footageLoaded:e,setCacheType:function(t,i){"svg"===t?(this._elementHelper=i,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},h}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory={createFilter:function(t,i){var e=createNS("filter");return e.setAttribute("id",t),!0!==i&&(e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%")),e},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}},assetLoader=function(){function t(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(i,e,s){var r,n=new XMLHttpRequest;try{n.responseType="json"}catch(t){}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)r=t(n),e(r);else try{r=t(n),e(r)}catch(t){s&&s(t)}},n.open("GET",i,!0),n.send()}}}();function TextAnimatorProperty(t,i,e){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=i,this._elem=e,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(e)}function TextAnimatorDataProperty(t,i,e){var s={propType:!1},r=PropertyFactory.getProp,n=i.a;this.a={r:n.r?r(t,n.r,0,degToRads,e):s,rx:n.rx?r(t,n.rx,0,degToRads,e):s,ry:n.ry?r(t,n.ry,0,degToRads,e):s,sk:n.sk?r(t,n.sk,0,degToRads,e):s,sa:n.sa?r(t,n.sa,0,degToRads,e):s,s:n.s?r(t,n.s,1,.01,e):s,a:n.a?r(t,n.a,1,0,e):s,o:n.o?r(t,n.o,0,.01,e):s,p:n.p?r(t,n.p,1,0,e):s,sw:n.sw?r(t,n.sw,0,0,e):s,sc:n.sc?r(t,n.sc,1,0,e):s,fc:n.fc?r(t,n.fc,1,0,e):s,fh:n.fh?r(t,n.fh,0,0,e):s,fs:n.fs?r(t,n.fs,0,.01,e):s,fb:n.fb?r(t,n.fb,0,.01,e):s,t:n.t?r(t,n.t,0,0,e):s},this.s=TextSelectorProp.getTextSelectorProp(t,i.s,e),this.s.t=i.s.t}function LetterProps(t,i,e,s,r,n){this.o=t,this.sw=i,this.sc=e,this.fc=s,this.m=r,this.p=n,this._mdf={o:!0,sw:!!i,sc:!!e,fc:!!s,m:!0,p:!0}}function TextProperty(t,i){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=i,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var t,i=this._textData.a.length,e=PropertyFactory.getProp;for(t=0;t<i;t+=1)this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,this._textData.a[t],this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:e(this._elem,this._textData.p.f,0,0,this),l:e(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=e(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,i){if(this.lettersChangedFlag=i,this._mdf||this._isFirstFrame||i||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,s,r,n,h,o,a,f,c,u,l,p,d,m,y,v,g,P,S=this._moreOptions.alignment.v,E=this._animatorsData,M=this._textData,b=this.mHelper,x=this._renderType,w=this.renderedLetters.length,I=t.l;if(this._hasMaskedPath){if(P=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,F=P.v;for(this._pathData.r&&(F=F.reverse()),h={tLength:0,segments:[]},n=F._length-1,v=0,r=0;r<n;r+=1)k=bez.buildBezierData(F.v[r],F.v[r+1],[F.o[r][0]-F.v[r][0],F.o[r][1]-F.v[r][1]],[F.i[r+1][0]-F.v[r+1][0],F.i[r+1][1]-F.v[r+1][1]]),h.tLength+=k.segmentLength,h.segments.push(k),v+=k.segmentLength;r=n,P.v.c&&(k=bez.buildBezierData(F.v[r],F.v[0],[F.o[r][0]-F.v[r][0],F.o[r][1]-F.v[r][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),h.tLength+=k.segmentLength,h.segments.push(k),v+=k.segmentLength),this._pathData.pi=h}if(l=0,u=1,f=0,c=!0,m=(h=this._pathData.pi).segments,(o=this._pathData.f.v)<0&&P.v.c)for(h.tLength<Math.abs(o)&&(o=-Math.abs(o)%h.tLength),u=(d=m[l=m.length-1].points).length-1;o<0;)o+=d[u].partialLength,(u-=1)<0&&(u=(d=m[l-=1].points).length-1);p=(d=m[l].points)[u-1],y=(a=d[u]).partialLength}n=I.length,e=0,s=0;var T,A,G,R,V,B=1.2*t.finalSize*.714,C=!0;G=E.length;var D,N,O,_,L,z,j,H,q,J,U,W,Q=-1,X=o,Y=l,K=u,$=-1,Z="",tt=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,et=0,st=2===t.j?-.5:-1,rt=0,nt=!0;for(r=0;r<n;r+=1)if(I[r].n){for(it&&(it+=et);rt<r;)I[rt].animatorJustifyOffset=it,rt+=1;it=0,nt=!0}else{for(A=0;A<G;A+=1)(T=E[A].a).t.propType&&(nt&&2===t.j&&(et+=T.t.v*st),it+=(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?T.t.v*V[0]*st:T.t.v*V*st);nt=!1}for(it&&(it+=et);rt<r;)I[rt].animatorJustifyOffset=it,rt+=1}for(r=0;r<n;r+=1){if(b.reset(),_=1,I[r].n)e=0,s+=t.yOffset,s+=C?1:0,o=X,C=!1,this._hasMaskedPath&&(p=(d=m[l=Y].points)[(u=K)-1],y=(a=d[u]).partialLength,f=0),Z="",U="",q="",W="",tt=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==I[r].line){switch(t.j){case 1:o+=v-t.lineWidths[I[r].line];break;case 2:o+=(v-t.lineWidths[I[r].line])/2}$=I[r].line}Q!==I[r].ind&&(I[Q]&&(o+=I[Q].extra),o+=I[r].an/2,Q=I[r].ind),o+=S[0]*I[r].an*.005;var ht=0;for(A=0;A<G;A+=1)(T=E[A].a).p.propType&&(ht+=(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?T.p.v[0]*V[0]:T.p.v[0]*V),T.a.propType&&(ht+=(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?T.a.v[0]*V[0]:T.a.v[0]*V);for(c=!0;c;)f+y>=o+ht||!d?(N=p.point[0]+(a.point[0]-p.point[0])*(g=(o+ht-f)/a.partialLength),O=p.point[1]+(a.point[1]-p.point[1])*g,b.translate(-S[0]*I[r].an*.005,-S[1]*B*.01),c=!1):d&&(f+=a.partialLength,(u+=1)>=d.length&&(u=0,m[l+=1]?d=m[l].points:P.v.c?(u=0,d=m[l=0].points):(f-=a.partialLength,d=null)),d&&(p=a,y=(a=d[u]).partialLength));b.translate(-(D=I[r].an/2-I[r].add),0,0)}else b.translate(-(D=I[r].an/2-I[r].add),0,0),b.translate(-S[0]*I[r].an*.005,-S[1]*B*.01,0);for(A=0;A<G;A+=1)(T=E[A].a).t.propType&&(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars),0===e&&0===t.j||(this._hasMaskedPath?o+=V.length?T.t.v*V[0]:T.t.v*V:e+=V.length?T.t.v*V[0]:T.t.v*V));for(t.strokeWidthAnim&&(z=t.sw||0),t.strokeColorAnim&&(L=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(j=[t.fc[0],t.fc[1],t.fc[2]]),A=0;A<G;A+=1)(T=E[A].a).a.propType&&((V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?b.translate(-T.a.v[0]*V[0],-T.a.v[1]*V[1],T.a.v[2]*V[2]):b.translate(-T.a.v[0]*V,-T.a.v[1]*V,T.a.v[2]*V));for(A=0;A<G;A+=1)(T=E[A].a).s.propType&&((V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?b.scale(1+(T.s.v[0]-1)*V[0],1+(T.s.v[1]-1)*V[1],1):b.scale(1+(T.s.v[0]-1)*V,1+(T.s.v[1]-1)*V,1));for(A=0;A<G;A+=1){if(T=E[A].a,V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars),T.sk.propType&&(V.length?b.skewFromAxis(-T.sk.v*V[0],T.sa.v*V[1]):b.skewFromAxis(-T.sk.v*V,T.sa.v*V)),T.r.propType&&b.rotateZ(V.length?-T.r.v*V[2]:-T.r.v*V),T.ry.propType&&b.rotateY(V.length?T.ry.v*V[1]:T.ry.v*V),T.rx.propType&&b.rotateX(V.length?T.rx.v*V[0]:T.rx.v*V),T.o.propType&&(_+=V.length?(T.o.v*V[0]-_)*V[0]:(T.o.v*V-_)*V),t.strokeWidthAnim&&T.sw.propType&&(z+=V.length?T.sw.v*V[0]:T.sw.v*V),t.strokeColorAnim&&T.sc.propType)for(H=0;H<3;H+=1)L[H]+=V.length?(T.sc.v[H]-L[H])*V[0]:(T.sc.v[H]-L[H])*V;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(H=0;H<3;H+=1)j[H]+=V.length?(T.fc.v[H]-j[H])*V[0]:(T.fc.v[H]-j[H])*V;T.fh.propType&&(j=addHueToRGB(j,V.length?T.fh.v*V[0]:T.fh.v*V)),T.fs.propType&&(j=addSaturationToRGB(j,V.length?T.fs.v*V[0]:T.fs.v*V)),T.fb.propType&&(j=addBrightnessToRGB(j,V.length?T.fb.v*V[0]:T.fb.v*V))}}for(A=0;A<G;A+=1)(T=E[A].a).p.propType&&(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars),this._hasMaskedPath?V.length?b.translate(0,T.p.v[1]*V[0],-T.p.v[2]*V[1]):b.translate(0,T.p.v[1]*V,-T.p.v[2]*V):V.length?b.translate(T.p.v[0]*V[0],T.p.v[1]*V[1],-T.p.v[2]*V[2]):b.translate(T.p.v[0]*V,T.p.v[1]*V,-T.p.v[2]*V));if(t.strokeWidthAnim&&(q=z<0?0:z),t.strokeColorAnim&&(J="rgb("+Math.round(255*L[0])+","+Math.round(255*L[1])+","+Math.round(255*L[2])+")"),t.fillColorAnim&&t.fc&&(U="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),this._hasMaskedPath){if(b.translate(0,-t.ls),b.translate(0,S[1]*B*.01+s,0),M.p.p){var ot=180*Math.atan((a.point[1]-p.point[1])/(a.point[0]-p.point[0]))/Math.PI;a.point[0]<p.point[0]&&(ot+=180),b.rotate(-ot*Math.PI/180)}b.translate(N,O,0),o-=S[0]*I[r].an*.005,I[r+1]&&Q!==I[r+1].ind&&(o+=I[r].an/2,o+=.001*t.tr*t.finalSize)}else{switch(b.translate(e,s,0),t.ps&&b.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:b.translate(I[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[r].line]),0,0);break;case 2:b.translate(I[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[r].line])/2,0,0)}b.translate(0,-t.ls),b.translate(D,0,0),b.translate(S[0]*I[r].an*.005,S[1]*B*.01,0),e+=I[r].l+.001*t.tr*t.finalSize}"html"===x?Z=b.toCSS():"svg"===x?Z=b.to2dCSS():tt=[b.props[0],b.props[1],b.props[2],b.props[3],b.props[4],b.props[5],b.props[6],b.props[7],b.props[8],b.props[9],b.props[10],b.props[11],b.props[12],b.props[13],b.props[14],b.props[15]],W=_}w<=r?(R=new LetterProps(W,q,J,U,Z,tt),this.renderedLetters.push(R),w+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=(R=this.renderedLetters[r]).update(W,q,J,U,Z,tt)||this.lettersChangedFlag}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,i,e,s,r,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var h=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,h=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,h=!0),this.sc!==e&&(this.sc=e,this._mdf.sc=!0,h=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,h=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,h=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,h=!0),h},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,e=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,n=t||this.data.d.k[this.keysIndex].s;for(s=0;s<r;s+=1)n=this.effectsSequence[s](e!==this.keysIndex?n:this.currentData,n.t);i!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,i=this.elem.comp.renderedFrame,e=0,s=t.length;e<=s-1&&!(e===s-1||t[e+1].t>i);)e+=1;return this.keysIndex!==e&&(this.keysIndex=e),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var i,e,s=[],r=0,n=t.length,h=!1;r<n;)i=t.charCodeAt(r),FontManager.isCombinedCharacter(i)?s[s.length-1]+=t.charAt(r):i>=55296&&i<=56319?(e=t.charCodeAt(r+1))>=56320&&e<=57343?(h||FontManager.isModifier(i,e)?(s[s.length-1]+=t.substr(r,2),h=!1):s.push(t.substr(r,2)),r+=1):s.push(t.charAt(r)):i>56319?(e=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(i,e)?(h=!0,s[s.length-1]+=t.substr(r,2),r+=1):s.push(t.charAt(r))):FontManager.isZeroWidthJoiner(i)?(s[s.length-1]+=t.charAt(r),h=!0):s.push(t.charAt(r)),r+=1;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var i,e,s,r,n,h,o,a=this.elem.globalData.fontManager,f=this.data,c=[],u=0,l=f.m.g,p=0,d=0,m=0,y=[],v=0,g=0,P=a.getFontByName(t.f),S=0,E=getFontProperties(P);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),e=t.finalText.length,t.finalLineHeight=t.lh;var M,b=t.tr/1e3*t.finalSize;if(t.sz)for(var x,w,I=!0,k=t.sz[0],F=t.sz[1];I;){x=0,v=0,e=(w=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize;var T=-1;for(i=0;i<e;i+=1)M=w[i].charCodeAt(0),s=!1," "===w[i]?T=i:13!==M&&3!==M||(v=0,s=!0,x+=t.finalLineHeight||1.2*t.finalSize),a.chars?(o=a.getCharData(w[i],P.fStyle,P.fFamily),S=s?0:o.w*t.finalSize/100):S=a.measureText(w[i],t.f,t.finalSize),v+S>k&&" "!==w[i]?(-1===T?e+=1:i=T,x+=t.finalLineHeight||1.2*t.finalSize,w.splice(i,T===i?1:0,"\r"),T=-1,v=0):(v+=S,v+=b);x+=P.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&F<x?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=w,e=t.finalText.length,I=!1)}v=-b,S=0;var A,G=0;for(i=0;i<e;i+=1)if(s=!1,13===(M=(A=t.finalText[i]).charCodeAt(0))||3===M?(G=0,y.push(v),g=v>g?v:g,v=-2*b,r="",s=!0,m+=1):r=A,a.chars?(o=a.getCharData(A,P.fStyle,a.getFontByName(t.f).fFamily),S=s?0:o.w*t.finalSize/100):S=a.measureText(r,t.f,t.finalSize)," "===A?G+=S+b:(v+=S+b+G,G=0),c.push({l:S,an:S,add:p,n:s,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==l){if(p+=S,""===r||" "===r||i===e-1){for(""!==r&&" "!==r||(p-=S);d<=i;)c[d].an=p,c[d].ind=u,c[d].extra=S,d+=1;u+=1,p=0}}else if(3==l){if(p+=S,""===r||i===e-1){for(""===r&&(p-=S);d<=i;)c[d].an=p,c[d].ind=u,c[d].extra=S,d+=1;p=0,u+=1}}else c[u].ind=u,c[u].extra=0,u+=1;if(t.l=c,g=v>g?v:g,y.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var R,V,B,C,D=f.a;h=D.length;var N=[];for(n=0;n<h;n+=1){for((R=D[n]).a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),C=0,B=R.s.b,i=0;i<e;i+=1)(V=c[i]).anIndexes[n]=C,(1==B&&""!==V.val||2==B&&""!==V.val&&" "!==V.val||3==B&&(V.n||" "==V.val||i==e-1)||4==B&&(V.n||i==e-1))&&(1===R.s.rn&&N.push(C),C+=1);f.a[n].s.totalChars=C;var O,_=-1;if(1===R.s.rn)for(i=0;i<e;i+=1)_!=(V=c[i]).anIndexes[n]&&(_=V.anIndexes[n],O=N.splice(Math.floor(Math.random()*N.length),1)[0]),V.anIndexes[n]=O}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=P.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,i){var e=this.copyData({},this.data.d.k[i=void 0===i?this.keysIndex:i].s);e=this.copyData(e,t),this.data.d.k[i].s=e,this.recalculate(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var i=this.data.d.k[t].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,i=Math.min,e=Math.floor;function s(t,i){this._currentTextLength=-1,this.k=!1,this.data=i,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,i.s||{k:0},0,0,this),this.e="e"in i?PropertyFactory.getProp(t,i.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,i.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,i.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,i.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,i.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,n=0,h=1,o=1;this.ne.v>0?r=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?h=1-this.xe.v/100:o=1+this.xe.v/100;var a=BezierFactory.getBezierEasing(r,n,h,o).get,f=0,c=this.finalS,u=this.finalE,l=this.data.sh;if(2===l)f=a(f=u===c?s>=u?1:0:t(0,i(.5/(u-c)+(s-c)/(u-c),1)));else if(3===l)f=a(f=u===c?s>=u?0:1:1-t(0,i(.5/(u-c)+(s-c)/(u-c),1)));else if(4===l)u===c?f=0:(f=t(0,i(.5/(u-c)+(s-c)/(u-c),1)))<.5?f*=2:f=1-2*(f-.5),f=a(f);else if(5===l){if(u===c)f=0;else{var p=u-c,d=-p/2+(s=i(t(0,s+.5-c),u-c)),m=p/2;f=Math.sqrt(1-d*d/(m*m))}f=a(f)}else 6===l?(u===c?f=0:(s=i(t(0,s+.5-c),u-c),f=(1+Math.cos(Math.PI+2*Math.PI*s/(u-c)))/2),f=a(f)):(s>=e(c)&&(f=t(0,i(s-c<0?i(u,1)-(c-s):u-s,1))),f=a(f));return f*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var i=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/i,s=this.s.v/i+e,r=this.e.v/i+e;if(s>r){var n=s;s=r,r=n}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(t,i,e){return new s(t,i,e)}}}(),poolFactory=function(t,i,e){var s=0,r=t,n=createSizedArray(r);return{newElement:function(){return s?n[s-=1]:i()},release:function(t){s===r&&(n=pooling.double(n),r*=2),e&&e(t),n[s]=t,s+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)})),shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var i,e=t._length;for(i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1})),factory.clone=function(t){var i,e=factory.newElement(),s=void 0===t._length?t.v.length:t._length;for(e.setLength(s),e.c=t.c,i=0;i<s;i+=1)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e},factory),factory,shapeCollectionPool=function(){var t={newShapeCollection:function(){return i?s[i-=1]:new ShapeCollection},release:function(t){var r,n=t._length;for(r=0;r<n;r+=1)shapePool.release(t.shapes[r]);t._length=0,i===e&&(s=pooling.double(s),e*=2),s[i]=t,i+=1}},i=0,e=4,s=createSizedArray(e);return t}(),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var i,e=t.lengths.length;for(i=0;i<e;i+=1)bezierLengthPool.release(t.lengths[i]);t.lengths.length=0})),bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}})),markerParser=function(){function t(t){for(var i,e=t.split("\r\n"),s={},r=0,n=0;n<e.length;n+=1)2===(i=e[n].split(":")).length&&(s[i[0]]=i[1].trim(),r+=1);if(0===r)throw new Error;return s}return function(i){for(var e=[],s=0;s<i.length;s+=1){var r=i[s],n={time:r.tm,duration:r.dr};try{n.payload=JSON.parse(i[s].cm)}catch(e){try{n.payload=t(i[s].cm)}catch(t){n.payload={name:i[s]}}}e.push(n)}return e}}();function BaseRenderer(){}function SVGRenderer(t,i){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var e="";if(i&&i.title){var s=createNS("title"),r=createElementID();s.setAttribute("id",r),s.textContent=i.title,this.svgElement.appendChild(s),e+=r}if(i&&i.description){var n=createNS("desc"),h=createElementID();n.setAttribute("id",h),n.textContent=i.description,this.svgElement.appendChild(n),e+=" "+h}e&&this.svgElement.setAttribute("aria-labelledby",e);var o=createNS("defs");this.svgElement.appendChild(o);var a=createNS("g");this.svgElement.appendChild(a),this.layerElement=a,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&!1===i.hideOnTransparent),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function MaskElement(t,i,e){this.data=t,this.element=i,this.globalData=e,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,r,n=this.globalData.defs,h=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(h),this.solidPath="";var o,a,f,c,u,l,p=this.masksProperties,d=0,m=[],y=createElementID(),v="clipPath",g="clip-path";for(s=0;s<h;s+=1)if(("a"!==p[s].mode&&"n"!==p[s].mode||p[s].inv||100!==p[s].o.k||p[s].o.x)&&(v="mask",g="mask"),"s"!==p[s].mode&&"i"!==p[s].mode||0!==d?f=null:((f=createNS("rect")).setAttribute("fill","#ffffff"),f.setAttribute("width",this.element.comp.data.w||0),f.setAttribute("height",this.element.comp.data.h||0),m.push(f)),r=createNS("path"),"n"===p[s].mode)this.viewData[s]={op:PropertyFactory.getProp(this.element,p[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[s],3),elem:r,lastPath:""},n.appendChild(r);else{var P;if(d+=1,r.setAttribute("fill","s"===p[s].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==p[s].x.k?(v="mask",g="mask",l=PropertyFactory.getProp(this.element,p[s].x,0,null,this.element),P=createElementID(),(c=createNS("filter")).setAttribute("id",P),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),n.appendChild(c),r.setAttribute("stroke","s"===p[s].mode?"#000000":"#ffffff")):(u=null,l=null),this.storedData[s]={elem:r,x:l,expan:u,lastPath:"",lastOperator:"",filterId:P,lastRadius:0},"i"===p[s].mode){a=m.length;var S=createNS("g");for(o=0;o<a;o+=1)S.appendChild(m[o]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",y+"_"+d),E.appendChild(r),n.appendChild(E),S.setAttribute("mask","url("+locationHref+"#"+y+"_"+d+")"),m.length=0,m.push(S)}else m.push(r);p[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,p[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[s],3),invRect:f},this.viewData[s].prop.k||this.drawPath(p[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(v),h=m.length,s=0;s<h;s+=1)this.maskElement.appendChild(m[s]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(g,"url("+locationHref+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,i){this.elem=t,this.pos=i}function SVGStyleData(t,i){this.data=t,this.type=t.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,i,e){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=e,this.lvl=i,this._isAnimated=!!e.k;for(var s=0,r=t.length;s<r;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGTransformData(t,i,e){this.transform={mProps:t,op:i,container:e},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,i.o,0,.01,this),this.w=PropertyFactory.getProp(t,i.w,0,null,this),this.d=new DashProperty(t,i.d||{},"svg",this),this.c=PropertyFactory.getProp(t,i.c,1,255,this),this.style=e,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,i.o,0,.01,this),this.c=PropertyFactory.getProp(t,i.c,1,255,this),this.style=e}function SVGGradientFillStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,i,e)}function SVGGradientStrokeStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,i.w,0,null,this),this.d=new DashProperty(t,i.d||{},"svg",this),this.initGradientData(t,i,e),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var i,e,s=this.layers.length;for(this.completeLayers=!0,i=s-1;i>=0;i-=1)this.elements[i]||(e=this.layers[i]).ip-e.st<=t-this.layers[i].st&&e.op-e.st>t-this.layers[i].st&&this.buildItem(i),this.completeLayers=!!this.elements[i]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,i=this.layers.length;for(t=0;t<i;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var i;this.completeLayers=!1;var e,s=t.length,r=this.layers.length;for(i=0;i<s;i+=1)for(e=0;e<r;){if(this.layers[e].id===t[i].id){this.layers[e]=t[i];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,i,e){for(var s=this.elements,r=this.layers,n=0,h=r.length;n<h;)r[n].ind==i&&(s[n]&&!0!==s[n]?(e.push(s[n]),s[n].setAsParent(),void 0!==r[n].parent?this.buildElementParenting(t,r[n].parent,e):t.setHierarchy(e)):(this.buildItem(n),this.addPendingElement(t))),n+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var i,e=t.length;for(i=0;i<e;i+=1)if(t[i].xt){var s=this.createComp(t[i]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.setupGlobalData=function(t,i){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(t,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var e=createNS("clipPath"),s=createNS("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var r=createElementID();e.setAttribute("id",r),e.appendChild(s),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+r+")"),i.appendChild(e),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var i=this.layers?this.layers.length:0;for(t=0;t<i;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var i=this.elements;if(!i[t]&&99!==this.layers[t].ty){i[t]=!0;var e=this.createItem(this.layers[t]);i[t]=e,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var i=0,e=this.elements.length;i<e;){if(this.elements[i]===t){t.setMatte(this.elements[i-1].layerId);break}i+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var i;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=e-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<e;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,i){var e=t.getBaseElement();if(e){for(var s,r=0;r<i;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(s=this.elements[r].getBaseElement()),r+=1;s?this.layerElement.insertBefore(e,s):this.layerElement.appendChild(e)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var i,e=this.element.finalTransform.mat,s=this.masksProperties.length;for(i=0;i<s;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),"n"!==this.masksProperties[i].mode&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var r=this.storedData[i].expan;this.storedData[i].x.v<0?("erode"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[i].filterId+")")),r.setAttribute("radius",-this.storedData[i].x.v)):("dilate"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",2*this.storedData[i].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,i,e){var s,r,n=" M"+i.v[0][0]+","+i.v[0][1];for(r=i._length,s=1;s<r;s+=1)n+=" C"+i.o[s-1][0]+","+i.o[s-1][1]+" "+i.i[s][0]+","+i.i[s][1]+" "+i.v[s][0]+","+i.v[s][1];if(i.c&&r>1&&(n+=" C"+i.o[s-1][0]+","+i.o[s-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),e.lastPath!==n){var h="";e.elem&&(i.c&&(h=t.inv?this.solidPath+n:n),e.elem.setAttribute("d",h)),e.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,i){var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)(i||this._isParent&&"transform"===this.dynamicProperties[e].propType)&&(this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,i=this.finalTransform.mat,e=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;e<s;){if(this.hierarchy[e].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}e+=1}if(this.finalTransform._matMdf)for(i.cloneFromProps(t=this.finalTransform.mProp.v.props),e=0;e<s;e+=1)i.transform((t=this.hierarchy[e].finalTransform.mProp.v.props)[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var i=[];i.push(this.finalTransform);for(var e,s=!0,r=this.comp;s;)r.finalTransform?(r.data.hasMask&&i.splice(0,0,r.finalTransform),r=r.comp):s=!1;var n,h=i.length;for(e=0;e<h;e+=1)n=i[e].mat.applyToPointArray(0,0,0),t=[t[0]-n[0],t[1]-n[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,i=this.renderableComponents.length;for(t=0;t<i;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,i,e){this.initFrame(),this.initBaseData(t,i,e),this.initTransform(t,i,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,i,e){this.o=PropertyFactory.getProp(t,i.o,0,.01,this),this.s=PropertyFactory.getProp(t,i.s,1,null,this),this.e=PropertyFactory.getProp(t,i.e,1,null,this),this.h=PropertyFactory.getProp(t,i.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,i.g,this),this.style=e,this.stops=[],this.setGradientData(e.pElem,i),this.setGradientOpacity(i,e),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,i){var e=createElementID(),s=createNS(1===i.t?"linearGradient":"radialGradient");s.setAttribute("id",e),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var r,n,h,o=[];for(h=4*i.g.p,n=0;n<h;n+=4)r=createNS("stop"),s.appendChild(r),o.push(r);t.setAttribute("gf"===i.ty?"fill":"stroke","url("+locationHref+"#"+e+")"),this.gf=s,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,i){if(this.g._hasOpacity&&!this.g._collapsable){var e,s,r,n=createNS("mask"),h=createNS("path");n.appendChild(h);var o=createElementID(),a=createElementID();n.setAttribute("id",a);var f=createNS(1===t.t?"linearGradient":"radialGradient");f.setAttribute("id",o),f.setAttribute("spreadMethod","pad"),f.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(s=4*t.g.p;s<r;s+=2)(e=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),f.appendChild(e),c.push(e);h.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+o+")"),"gs"===t.ty&&(h.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&h.setAttribute("stroke-miterlimit",t.ml)),this.of=f,this.ms=n,this.ost=c,this.maskId=a,i.msElem=h}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var t=new Matrix,i=new Matrix;function e(t,i,e){(e||i.transform.op._mdf)&&i.transform.container.setAttribute("opacity",i.transform.op.v),(e||i.transform.mProps._mdf)&&i.transform.container.setAttribute("transform",i.transform.mProps.v.to2dCSS())}function s(e,s,r){var n,h,o,a,f,c,u,l,p,d,m,y=s.styles.length,v=s.lvl;for(c=0;c<y;c+=1){if(a=s.sh._mdf||r,s.styles[c].lvl<v){for(l=i.reset(),d=v-s.styles[c].lvl,m=s.transformers.length-1;!a&&d>0;)a=s.transformers[m].mProps._mdf||a,d-=1,m-=1;if(a)for(d=v-s.styles[c].lvl,m=s.transformers.length-1;d>0;)l.transform((p=s.transformers[m].mProps.v.props)[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),d-=1,m-=1}else l=t;if(h=(u=s.sh.paths)._length,a){for(o="",n=0;n<h;n+=1)(f=u.shapes[n])&&f._length&&(o+=buildShapeString(f,f._length,f.c,l));s.caches[c]=o}else o=s.caches[c];s.styles[c].d+=!0===e.hd?"":o,s.styles[c]._mdf=a||s.styles[c]._mdf}}function r(t,i,e){var s=i.style;(i.c._mdf||e)&&s.pElem.setAttribute("fill","rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"),(i.o._mdf||e)&&s.pElem.setAttribute("fill-opacity",i.o.v)}function n(t,i,e){h(t,i,e),o(0,i,e)}function h(t,i,e){var s,r,n,h,o,a=i.gf,f=i.g._hasOpacity,c=i.s.v,u=i.e.v;if((i.o._mdf||e)&&i.style.pElem.setAttribute("gf"===t.ty?"fill-opacity":"stroke-opacity",i.o.v),i.s._mdf||e){var l=1===t.t?"x1":"cx",p="x1"===l?"y1":"cy";a.setAttribute(l,c[0]),a.setAttribute(p,c[1]),f&&!i.g._collapsable&&(i.of.setAttribute(l,c[0]),i.of.setAttribute(p,c[1]))}if(i.g._cmdf||e){var d=i.g.c;for(n=(s=i.cst).length,r=0;r<n;r+=1)(h=s[r]).setAttribute("offset",d[4*r]+"%"),h.setAttribute("stop-color","rgb("+d[4*r+1]+","+d[4*r+2]+","+d[4*r+3]+")")}if(f&&(i.g._omdf||e)){var m=i.g.o;for(n=(s=i.g._collapsable?i.cst:i.ost).length,r=0;r<n;r+=1)h=s[r],i.g._collapsable||h.setAttribute("offset",m[2*r]+"%"),h.setAttribute("stop-opacity",m[2*r+1])}if(1===t.t)(i.e._mdf||e)&&(a.setAttribute("x2",u[0]),a.setAttribute("y2",u[1]),f&&!i.g._collapsable&&(i.of.setAttribute("x2",u[0]),i.of.setAttribute("y2",u[1])));else if((i.s._mdf||i.e._mdf||e)&&(o=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),a.setAttribute("r",o),f&&!i.g._collapsable&&i.of.setAttribute("r",o)),i.e._mdf||i.h._mdf||i.a._mdf||e){o||(o=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)));var y=Math.atan2(u[1]-c[1],u[0]-c[0]),v=i.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var g=o*v,P=Math.cos(y+i.a.v)*g+c[0],S=Math.sin(y+i.a.v)*g+c[1];a.setAttribute("fx",P),a.setAttribute("fy",S),f&&!i.g._collapsable&&(i.of.setAttribute("fx",P),i.of.setAttribute("fy",S))}}function o(t,i,e){var s=i.style,r=i.d;r&&(r._mdf||e)&&r.dashStr&&(s.pElem.setAttribute("stroke-dasharray",r.dashStr),s.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),i.c&&(i.c._mdf||e)&&s.pElem.setAttribute("stroke","rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"),(i.o._mdf||e)&&s.pElem.setAttribute("stroke-opacity",i.o.v),(i.w._mdf||e)&&(s.pElem.setAttribute("stroke-width",i.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",i.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return h;case"gs":return n;case"st":return o;case"sh":case"el":case"rc":case"sr":return s;case"tr":return e;default:return null}}}}();function BaseElement(){}function NullElement(t,i,e){this.initFrame(),this.initBaseData(t,i,e),this.initFrame(),this.initTransform(t,i,e),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,i,e){this.assetData=i.getAssetData(t.refId),this.initElement(t,i,e),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,i,e){this.initElement(t,i,e)}function AudioElement(t,i,e){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(t.refId),this.initBaseData(t,i,e),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:!0}}function FootageElement(t,i,e){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(t.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(t,i,e)}function SVGCompElement(t,i,e){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,i,e),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:!0}}function SVGTextLottieElement(t,i,e){this.textSpans=[],this.renderType="svg",this.initElement(t,i,e)}function SVGShapeElement(t,i,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,i,e),this.prevViewData=[]}function SVGTintFilter(t,i){this.filterManager=i;var e=createNS("feColorMatrix");if(e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result","f2"),t.appendChild(e),this.matrixFilter=e,100!==i.effectElements[2].p.v||i.effectElements[2].p.k){var s,r=createNS("feMerge");t.appendChild(r),(s=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),r.appendChild(s),(s=createNS("feMergeNode")).setAttribute("in","f2"),r.appendChild(s)}}function SVGFillFilter(t,i){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(e),this.matrixFilter=e}function SVGGaussianBlurEffect(t,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=i;var e=createNS("feGaussianBlur");t.appendChild(e),this.feGaussianBlur=e}function SVGStrokeEffect(t,i){this.initialized=!1,this.filterManager=i,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,i){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.matrixFilter=s;var r=createNS("feFuncR");r.setAttribute("type","table"),s.appendChild(r),this.feFuncR=r;var n=createNS("feFuncG");n.setAttribute("type","table"),s.appendChild(n),this.feFuncG=n;var h=createNS("feFuncB");h.setAttribute("type","table"),s.appendChild(h),this.feFuncB=h}function SVGProLevelsFilter(t,i){this.filterManager=i;var e=this.filterManager.effectElements,s=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),s=createNS("feComponentTransfer")),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,i){var e=i.container.globalData.renderConfig.filterSize;t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("width",e.width),t.setAttribute("height",e.height),this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result","drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var r=createNS("feOffset");r.setAttribute("dx","25"),r.setAttribute("dy","0"),r.setAttribute("in","drop_shadow_1"),r.setAttribute("result","drop_shadow_2"),this.feOffset=r,t.appendChild(r);var n=createNS("feFlood");n.setAttribute("flood-color","#00ff00"),n.setAttribute("flood-opacity","1"),n.setAttribute("result","drop_shadow_3"),this.feFlood=n,t.appendChild(n);var h=createNS("feComposite");h.setAttribute("in","drop_shadow_3"),h.setAttribute("in2","drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result","drop_shadow_4"),t.appendChild(h);var o,a=createNS("feMerge");t.appendChild(a),o=createNS("feMergeNode"),a.appendChild(o),(o=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=a,this.originalNodeAdded=!1,a.appendChild(o)}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,i=this.data.masksProperties.length;t<i;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,i,e){this.globalData=i,this.comp=e,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,i,e,s=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var r=createNS("mask");r.setAttribute("id",this.layerId),r.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),r.appendChild(this.layerElement),s=r,this.globalData.defs.appendChild(r),featureSupport.maskType||1!=this.data.td||(r.setAttribute("mask-type","luminance"),t=createElementID(),i=filtersFactory.createFilter(t),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(e=createNS("g")).appendChild(this.layerElement),s=e,r.appendChild(e),e.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var h=createNS("g");n.appendChild(h),t=createElementID(),i=filtersFactory.createFilter(t);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),i.appendChild(o);var a=createNS("feFuncA");a.setAttribute("type","table"),a.setAttribute("tableValues","1.0 0.0"),o.appendChild(a),this.globalData.defs.appendChild(i);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),h.setAttribute("filter","url("+locationHref+"#"+t+")"),h.appendChild(f),h.appendChild(this.layerElement),s=h,featureSupport.maskType||(n.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),e=createNS("g"),h.appendChild(f),e.appendChild(this.layerElement),s=e,h.appendChild(e)),this.globalData.defs.appendChild(n)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),u=createNS("path");u.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var l=createElementID();if(c.setAttribute("id",l),c.appendChild(u),this.globalData.defs.appendChild(c),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+locationHref+"#"+l+")"),p.appendChild(this.layerElement),this.transformedElement=p,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+l+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var i,e=this.shapeModifiers.length;for(i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var i=this.shapeModifiers.length;0<i;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,i=this.shapes.length;for(t=0;t<i;t+=1)this.shapes[t].sh.reset();for(t=(i=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var i=this.processedElements,e=0,s=i.length;e<s;){if(i[e].elem===t)return i[e].pos;e+=1}return 0},addProcessedElement:function(t,i){for(var e=this.processedElements,s=e.length;s;)if(e[s-=1].elem===t)return void(e[s].pos=i);e.push(new ProcessedElement(t,i))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,i,e){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,i,e),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,i,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,i){var e,s,r=i.length,n="";for(e=0;e<r;e+=1)n+=buildShapeString(s=i[e].ks.k,s.i.length,!0,t);return n},ITextElement.prototype.updateDocumentData=function(t,i){this.textProperty.updateDocumentData(t,i)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,i,e,s,r){switch(t.ps&&i.translate(t.ps[0],t.ps[1]+t.ascent,0),i.translate(0,-t.ls,0),t.j){case 1:i.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e]),0,0);break;case 2:i.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e])/2,0,0)}i.translate(s,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,i,e){this.initFrame(),this.initBaseData(t,i,e),this.initTransform(t,i,e),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&i.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var e,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=s-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,i=this.layers.length;for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,i=this.layers.length;for(t=0;t<i;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this._currentTime=this.tm._placeholder?t/this.data.sr:this.tm.v},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var i=0,e=t.length,s=[],r="";i<e;)t[i]===String.fromCharCode(13)||t[i]===String.fromCharCode(3)?(s.push(r),r=""):r+=t[i],i+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildNewText=function(){var t,i,e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),this.layerElement.setAttribute("fill",e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var s=this.globalData.fontManager.getFontByName(e.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var r=e.fWeight;this.layerElement.setAttribute("font-style",e.fStyle),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",e.t);var n,h=e.l||[],o=!!this.globalData.fontManager.chars;i=h.length;var a,f=this.mHelper,c="",u=this.data.singleShape,l=0,p=0,d=!0,m=.001*e.tr*e.finalSize;if(!u||o||e.sz){var y,v,g=this.textSpans.length;for(t=0;t<i;t+=1)o&&u&&0!==t||(n=g>t?this.textSpans[t]:createNS(o?"path":"text"),g<=t&&(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=n,this.layerElement.appendChild(n)),n.style.display="inherit"),f.reset(),f.scale(e.finalSize/100,e.finalSize/100),u&&(h[t].n&&(l=-m,p+=e.yOffset,p+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(e,f,h[t].line,l,p),l+=h[t].l||0,l+=m),o?(a=(y=(v=this.globalData.fontManager.getCharData(e.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&v.data||{}).shapes?y.shapes[0].it:[],u?c+=this.createPathShape(f,a):n.setAttribute("d",this.createPathShape(f,a))):(u&&n.setAttribute("transform","translate("+f.props[12]+","+f.props[13]+")"),n.textContent=h[t].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));u&&n&&n.setAttribute("d",c)}else{var P=this.textContainer,S="start";switch(e.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}P.setAttribute("text-anchor",S),P.setAttribute("letter-spacing",m);var E=this.buildTextContents(e.finalText);for(i=E.length,p=e.ps?e.ps[1]+e.ascent:0,t=0;t<i;t+=1)(n=this.textSpans[t]||createNS("tspan")).textContent=E[t],n.setAttribute("x",0),n.setAttribute("y",p),n.style.display="inherit",P.appendChild(n),this.textSpans[t]=n,p+=e.finalLineHeight;this.layerElement.appendChild(P)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,i;this._sizeChanged=!0;var e,s,r=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(i=n.length,t=0;t<i;t+=1)n[t].n||(s=this.textSpans[t],(e=r[t])._mdf.m&&s.setAttribute("transform",e.m),e._mdf.o&&s.setAttribute("opacity",e.o),e._mdf.sw&&s.setAttribute("stroke-width",e.sw),e._mdf.sc&&s.setAttribute("stroke",e.sc),e._mdf.fc&&s.setAttribute("fill",e.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,i,e,s,r=this.shapes.length,n=this.stylesList.length,h=[],o=!1;for(e=0;e<n;e+=1){for(s=this.stylesList[e],o=!1,h.length=0,t=0;t<r;t+=1)-1!==(i=this.shapes[t]).styles.indexOf(s)&&(h.push(i),o=i._isAnimated||o);h.length>1&&o&&this.setShapesAsAnimated(h)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,i){var e,s=new SVGStyleData(t,i),r=s.pElem;return"st"===t.ty?e=new SVGStrokeStyleData(this,t,s):"fl"===t.ty?e=new SVGFillStyleData(this,t,s):"gf"!==t.ty&&"gs"!==t.ty||(e=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,s),this.globalData.defs.appendChild(e.gf),e.maskId&&(this.globalData.defs.appendChild(e.ms),this.globalData.defs.appendChild(e.of),r.setAttribute("mask","url("+locationHref+"#"+e.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.createGroupElement=function(t){var i=new ShapeGroupData;return t.ln&&i.gr.setAttribute("id",t.ln),t.cl&&i.gr.setAttribute("class",t.cl),t.bm&&(i.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),i},SVGShapeElement.prototype.createTransformElement=function(t,i){var e=TransformPropertyFactory.getTransformProperty(this,t,this),s=new SVGTransformData(e,e.o,i);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,i,e){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var r=new SVGShapeData(i,e,ShapePropertyFactory.getShapeProp(this,t,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,i){for(var e=0,s=this.animatedContents.length;e<s;){if(this.animatedContents[e].element===i)return;e+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:i,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var i,e=t.styles,s=this.stylesList.length;for(i=0;i<s;i+=1)this.stylesList[i].closed||e.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var i=this.itemsData.length;for(t=0;t<i;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,t=0;t<i;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,i,e,s,r,n,h){var o,a,f,c,u,l=[].concat(n),p=t.length-1,d=[],m=[];for(o=p;o>=0;o-=1){if((u=this.searchProcessedElement(t[o]))?i[o]=e[u-1]:t[o]._render=h,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)u?i[o].style.closed=!1:i[o]=this.createStyleElement(t[o],r),t[o]._render&&s.appendChild(i[o].style.pElem),d.push(i[o].style);else if("gr"===t[o].ty){if(u)for(f=i[o].it.length,a=0;a<f;a+=1)i[o].prevViewData[a]=i[o].it[a];else i[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,i[o].it,i[o].prevViewData,i[o].gr,r+1,l,h),t[o]._render&&s.appendChild(i[o].gr)}else"tr"===t[o].ty?(u||(i[o]=this.createTransformElement(t[o],s)),l.push(i[o].transform)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(u||(i[o]=this.createShapeElement(t[o],l,r)),this.setElementStyles(i[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty?(u?(c=i[o]).closed=!1:((c=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),i[o]=c,this.shapeModifiers.push(c)),m.push(c)):"rp"===t[o].ty&&(u?(c=i[o]).closed=!0:(c=ShapeModifiers.getModifier(t[o].ty),i[o]=c,c.init(this,t,o,i),this.shapeModifiers.push(c),h=!1),m.push(c));this.addProcessedElement(t[o],o+1)}for(p=d.length,o=0;o<p;o+=1)d[o].closed=!0;for(p=m.length,o=0;o<p;o+=1)m[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<i;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,i,e=this.animatedContents.length;for(t=0;t<e;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&!0!==i.data&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v;this.matrixFilter.setAttribute("values",e[0]-i[0]+" 0 0 0 "+i[0]+" "+(e[1]-i[1])+" 0 0 0 "+i[1]+" "+(e[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 "+this.filterManager.effectElements[2].p.v/100+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+this.filterManager.effectElements[6].p.v+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:i)+" "+(2==e?0:i)),this.feGaussianBlur.setAttribute("edgeMode",1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate")}},SVGStrokeEffect.prototype.initialize=function(){var t,i,e,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,e=0):s=1+(e=this.filterManager.effectElements[0].p.v-1),(i=createNS("g")).setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1);e<s;e+=1)t=createNS("path"),i.appendChild(t),this.paths.push({p:t,m:e});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),h=createElementID();n.setAttribute("id",h),n.setAttribute("mask-type","alpha"),n.appendChild(i),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+locationHref+"#"+h+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=n,i.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(t){var i;this.initialized||this.initialize();var e,s,r=this.paths.length;for(i=0;i<r;i+=1)if(-1!==this.paths[i].m&&(e=this.elem.maskManager.viewData[this.paths[i].m],s=this.paths[i].p,(t||this.filterManager._mdf||e.prop._mdf)&&s.setAttribute("d",e.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||e.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var h=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=s.getTotalLength();n="0 0 0 "+a*h+" ";var f,c=Math.floor(a*(o-h)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(f=0;f<c;f+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*a+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,r=s[1]+" "+e[1]+" "+i[1],n=s[2]+" "+e[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",s[0]+" "+e[0]+" "+i[0]),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,i){var e=createNS(t);return e.setAttribute("type","table"),i.appendChild(e),e},SVGProLevelsFilter.prototype.getTableValue=function(t,i,e,s,r){for(var n,h,o=0,a=Math.min(t,i),f=Math.max(t,i),c=Array.call(null,{length:256}),u=0,l=r-s,p=i-t;o<=256;)h=(n=o/256)<=a?p<0?r:s:n>=f?p<0?s:r:s+l*Math.pow((n-t)/p,1/e),c[u]=h,u+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i,e=this.filterManager.effectElements;this.feFuncRComposed&&(t||e[3].p._mdf||e[4].p._mdf||e[5].p._mdf||e[6].p._mdf||e[7].p._mdf)&&(i=this.getTableValue(e[3].p.v,e[4].p.v,e[5].p.v,e[6].p.v,e[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i)),this.feFuncR&&(t||e[10].p._mdf||e[11].p._mdf||e[12].p._mdf||e[13].p._mdf||e[14].p._mdf)&&(i=this.getTableValue(e[10].p.v,e[11].p.v,e[12].p.v,e[13].p.v,e[14].p.v),this.feFuncR.setAttribute("tableValues",i)),this.feFuncG&&(t||e[17].p._mdf||e[18].p._mdf||e[19].p._mdf||e[20].p._mdf||e[21].p._mdf)&&(i=this.getTableValue(e[17].p.v,e[18].p.v,e[19].p.v,e[20].p.v,e[21].p.v),this.feFuncG.setAttribute("tableValues",i)),this.feFuncB&&(t||e[24].p._mdf||e[25].p._mdf||e[26].p._mdf||e[27].p._mdf||e[28].p._mdf)&&(i=this.getTableValue(e[24].p.v,e[25].p.v,e[26].p.v,e[27].p.v,e[28].p.v),this.feFuncB.setAttribute("tableValues",i)),this.feFuncA&&(t||e[31].p._mdf||e[32].p._mdf||e[33].p._mdf||e[34].p._mdf||e[35].p._mdf)&&(i=this.getTableValue(e[31].p.v,e[32].p.v,e[33].p.v,e[34].p.v,e[35].p.v),this.feFuncA.setAttribute("tableValues",i))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=e*Math.cos(s),n=e*Math.sin(s);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,i,e){this.initialized=!1,this.filterManager=i,this.filterElem=t,this.elem=e,e.matteElement=createNS("g"),e.matteElement.appendChild(e.layerElement),e.matteElement.appendChild(e.transformedElement),e.baseElement=e.matteElement}function SVGEffects(t){var i,e,s=t.data.ef?t.data.ef.length:0,r=createElementID(),n=filtersFactory.createFilter(r,!0),h=0;for(this.filters=[],i=0;i<s;i+=1)e=null,20===t.data.ef[i].ty?(h+=1,e=new SVGTintFilter(n,t.effectsManager.effectElements[i])):21===t.data.ef[i].ty?(h+=1,e=new SVGFillFilter(n,t.effectsManager.effectElements[i])):22===t.data.ef[i].ty?e=new SVGStrokeEffect(t,t.effectsManager.effectElements[i]):23===t.data.ef[i].ty?(h+=1,e=new SVGTritoneFilter(n,t.effectsManager.effectElements[i])):24===t.data.ef[i].ty?(h+=1,e=new SVGProLevelsFilter(n,t.effectsManager.effectElements[i])):25===t.data.ef[i].ty?(h+=1,e=new SVGDropShadowEffect(n,t.effectsManager.effectElements[i])):28===t.data.ef[i].ty?e=new SVGMatte3Effect(n,t.effectsManager.effectElements[i],t):29===t.data.ef[i].ty&&(h+=1,e=new SVGGaussianBlurEffect(n,t.effectsManager.effectElements[i])),e&&this.filters.push(e);h&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute("filter","url("+locationHref+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}SVGMatte3Effect.prototype.findSymbol=function(t){for(var i=0,e=_svgMatteSymbols.length;i<e;){if(_svgMatteSymbols[i]===t)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,i){var e=t.layerElement.parentNode;if(e){for(var s,r=e.children,n=0,h=r.length;n<h&&r[n]!==t.layerElement;)n+=1;n<=h-2&&(s=r[n+1]);var o=createNS("use");o.setAttribute("href","#"+i),s?e.insertBefore(o,s):e.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,i){if(!this.findSymbol(i)){var e=createElementID(),s=createNS("mask");s.setAttribute("id",i.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var r=t.globalData.defs;r.appendChild(s);var n=createNS("symbol");n.setAttribute("id",e),this.replaceInParent(i,e),n.appendChild(i.layerElement),r.appendChild(n);var h=createNS("use");h.setAttribute("href","#"+e),s.appendChild(h),i.data.hd=!1,i.show()}t.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,e=0,s=i.length;e<s;)i[e]&&i[e].data.ind===t&&this.setElementAsMask(this.elem,i[e]),e+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var i,e=this.filters.length;for(i=0;i<e;i+=1)this.filters[i].renderFrame(t)};var animationManager=function(){var t={},i=[],e=0,s=0,r=0,n=!0,h=!1;function o(t){for(var e=0,r=t.target;e<s;)i[e].animation===r&&(i.splice(e,1),e-=1,s-=1,r.isPaused||c()),e+=1}function a(t,e){if(!t)return null;for(var r=0;r<s;){if(i[r].elem===t&&null!==i[r].elem)return i[r].animation;r+=1}var n=new AnimationItem;return u(n,t),n.setData(t,e),n}function f(){r+=1,d()}function c(){r-=1}function u(t,e){t.addEventListener("destroy",o),t.addEventListener("_active",f),t.addEventListener("_idle",c),i.push({elem:e,animation:t}),s+=1}function l(t){var o,a=t-e;for(o=0;o<s;o+=1)i[o].animation.advanceTime(a);e=t,r&&!h?window.requestAnimationFrame(l):n=!0}function p(t){e=t,window.requestAnimationFrame(l)}function d(){!h&&r&&n&&(window.requestAnimationFrame(p),n=!1)}return t.registerAnimation=a,t.loadAnimation=function(t){var i=new AnimationItem;return u(i,null),i.setParams(t),i},t.setSpeed=function(t,e){var r;for(r=0;r<s;r+=1)i[r].animation.setSpeed(t,e)},t.setDirection=function(t,e){var r;for(r=0;r<s;r+=1)i[r].animation.setDirection(t,e)},t.play=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.play(t)},t.pause=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.pause(t)},t.stop=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.stop(t)},t.togglePause=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.togglePause(t)},t.searchAnimations=function(t,i,e){var s,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=r.length;for(s=0;s<n;s+=1)e&&r[s].setAttribute("data-bm-type",e),a(r[s],t);if(i&&0===n){e||(e="svg");var h=document.getElementsByTagName("body")[0];h.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",e),h.appendChild(o),a(o,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)i[t].animation.resize()},t.goToAndStop=function(t,e,r){var n;for(n=0;n<s;n+=1)i[n].animation.goToAndStop(t,e,r)},t.destroy=function(t){var e;for(e=s-1;e>=0;e-=1)i[e].animation.destroy(t)},t.freeze=function(){h=!0},t.unfreeze=function(){h=!1,d()},t.setVolume=function(t,e){var r;for(r=0;r<s;r+=1)i[r].animation.setVolume(t,e)},t.mute=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.mute(t)},t.unmute=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,e=i.length,s=[];for(t=0;t<e;t+=1)s.push(i[t].animation);return s},t}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[]};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var i="svg";switch(t.animType?i=t.animType:t.renderer&&(i=t.renderer),i){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,this.loop=""===t.loop||null==t.loop||!0===t.loop||!1!==t.loop&&parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.configAnimation(t.animationData):t.path&&(this.path=-1!==t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,i){i&&"object"!=typeof i&&(i=JSON.parse(i));var e={wrapper:t,animationData:i},s=t.attributes;e.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",e.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:"canvas";var r=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===r?e.loop=!1:"true"===r?e.loop=!0:""!==r&&(e.loop=parseInt(r,10));var n=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;e.autoplay="false"!==n,e.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),this.setParams(e)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var i,e,s=this.animationData.layers,r=s.length,n=t.layers,h=n.length;for(e=0;e<h;e+=1)for(i=0;i<r;){if(s[i].id===n[e].id){s[i]=n[e];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,i=0;i<r;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var i=t.shift();this.timeCompleted=i.time*this.frameRate;var e=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,assetLoader.load(e,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var i,e=0;e<this.markers.length;e+=1)if((i=this.markers[e]).payload&&i.payload.name===t)return i;return null},AnimationItem.prototype.goToAndStop=function(t,i,e){if(!e||this.name===e){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else this.setCurrentRawFrameValue(i?t:t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,i,e){if(!e||this.name===e){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,i,e);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var i=this.currentRawFrame+t*this.frameModifier,e=!1;i>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(e=!0,i=this.totalFrames-1):i<0?this.checkSegments(i%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,i=0):(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(i),e&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,i){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,i){var e=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?e=t:this.currentRawFrame+this.firstFrame>i&&(e=i-t)),this.firstFrame=t,this.totalFrames=i-t,this.timeCompleted=this.totalFrames,-1!==e&&this.goToAndStop(e,!0)},AnimationItem.prototype.playSegments=function(t,i){if(i&&(this.segments.length=0),"object"==typeof t[0]){var e,s=t.length;for(e=0;e<s;e+=1)this.segments.push(t[e])}else this.segments.push(t);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,i){i&&this.name!==i||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var i="";if(t.e)i=t.p;else if(this.assetsPath){var e=t.p;-1!==e.indexOf("images/")&&(e=e.split("/")[1]),i=this.assetsPath+e}else i=this.path,i+=t.u?t.u:"",i+=t.p;return i},AnimationItem.prototype.getAssetData=function(t){for(var i=0,e=this.assets.length;i<e;){if(t===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var i=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},AnimationItem.prototype.triggerConfigError=function(t){var i=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var Expressions={initExpressions:function(t){var i=0,e=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){0==(i-=1)&&function(){var t,i=e.length;for(t=0;t<i;t+=1)e[t].release();e.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===e.indexOf(t)&&e.push(t)}}};expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath;function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,content,effect,thisProperty=property,thisLayer,velocityAtTime,scoped_bm_rt;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],time,value;function seedRandom(t){BMMath.seedrandom(randSeed+t)}(function(t,i){var e,s,r=this.pv.length?this.pv.length:1,n=createTypedArray("float32",r),h=Math.floor(5*time);for(e=0,s=0;e<h;){for(s=0;s<r;s+=1)n[s]+=-i+2*i*BMMath.random();e+=1}var o=5*time,a=o-Math.floor(o),f=createTypedArray("float32",r);if(r>1){for(s=0;s<r;s+=1)f[s]=this.pv[s]+n[s]+(-i+2*i*BMMath.random())*a;return f}return this.pv+n[0]+(-i+2*i*BMMath.random())*a}).bind(this),thisProperty.loopIn&&thisProperty.loopIn.bind(thisProperty),thisProperty.loopOut&&thisProperty.loopOut.bind(thisProperty),thisProperty.smooth&&thisProperty.smooth.bind(thisProperty),this.getValueAtTime&&this.getValueAtTime.bind(this),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this)),elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);var randSeed=Math.floor(1e6*Math.random());function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:(thisLayer||((thisLayer=elem.layerInterface).toWorld.bind(thisLayer),thisLayer.fromWorld.bind(thisLayer),thisLayer.fromComp.bind(thisLayer),thisLayer.toComp.bind(thisLayer),thisLayer.mask&&thisLayer.mask.bind(thisLayer)),transform||(transform=elem.layerInterface("ADBE Transform Group")),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&velocityAtTime(time),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt)}return executeExpression}return BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn"),BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut"),BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut"),ob.initiateExpression=initiateExpression,ob}(),expressionHelpers={searchExpressions:function(t,i,e){i.x&&(e.k=!0,e.x=!0,e.initiateExpression=ExpressionManager.initiateExpression,e.effectsSequence.push(e.initiateExpression(t,i,e).bind(e)))},getSpeedAtTime:function(t){var i=this.getValueAtTime(t),e=this.getValueAtTime(t+-.01),s=0;if(i.length){var r;for(r=0;r<i.length;r+=1)s+=Math.pow(e[r]-i[r],2);s=100*Math.sqrt(s)}else s=0;return s},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var i,e,s=-.001,r=this.getValueAtTime(t),n=this.getValueAtTime(t+s);if(r.length)for(i=createTypedArray("float32",r.length),e=0;e<r.length;e+=1)i[e]=(n[e]-r[e])/s;else i=(n-r)/s;return i},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};!function(){function t(t,i,e){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var s,r,n,h,o,a=this.comp.renderedFrame,f=this.keyframes,c=f[f.length-1].t;if(a<=c)return this.pv;if(e?r=c-(s=i?Math.abs(c-this.elem.comp.globalData.frameRate*i):Math.max(0,c-this.elem.data.ip)):((!i||i>f.length-1)&&(i=f.length-1),s=c-(r=f[f.length-1-i].t)),"pingpong"===t){if(Math.floor((a-r)/s)%2!=0)return this.getValueAtTime((s-(a-r)%s+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(r/this.comp.globalData.frameRate,0),l=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((a-r)%s+r)/this.comp.globalData.frameRate,0),d=Math.floor((a-r)/s);if(this.pv.length){for(h=(o=new Array(u.length)).length,n=0;n<h;n+=1)o[n]=(l[n]-u[n])*d+p[n];return o}return(l-u)*d+p}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(h=(o=new Array(m.length)).length,n=0;n<h;n+=1)o[n]=m[n]+(a-c)/this.comp.globalData.frameRate*(m[n]-y[n])/5e-4;return o}return m+(a-c)/.001*(m-y)}}return this.getValueAtTime(((a-r)%s+r)/this.comp.globalData.frameRate,0)}function i(t,i,e){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var s,r,n,h,o,a=this.comp.renderedFrame,f=this.keyframes,c=f[0].t;if(a>=c)return this.pv;if(e?r=c+(s=i?Math.abs(this.elem.comp.globalData.frameRate*i):Math.max(0,this.elem.data.op-c)):((!i||i>f.length-1)&&(i=f.length-1),s=(r=f[i].t)-c),"pingpong"===t){if(Math.floor((c-a)/s)%2==0)return this.getValueAtTime(((c-a)%s+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),l=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime((s-(c-a)%s+c)/this.comp.globalData.frameRate,0),d=Math.floor((c-a)/s)+1;if(this.pv.length){for(h=(o=new Array(u.length)).length,n=0;n<h;n+=1)o[n]=p[n]-(l[n]-u[n])*d;return o}return p-(l-u)*d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(h=(o=new Array(m.length)).length,n=0;n<h;n+=1)o[n]=m[n]+(m[n]-y[n])*(c-a)/.001;return o}return m+(m-y)*(c-a)/.001}}return this.getValueAtTime((s-((c-a)%s+c))/this.comp.globalData.frameRate,0)}function e(t,i){if(!this.k)return this.pv;if(t=.5*(t||.4),(i=Math.floor(i||5))<=1)return this.pv;var e,s,r=this.comp.renderedFrame/this.comp.globalData.frameRate,n=r-t,h=i>1?(r+t-n)/(i-1):1,o=0,a=0;for(e=this.pv.length?createTypedArray("float32",this.pv.length):0;o<i;){if(s=this.getValueAtTime(n+o*h),this.pv.length)for(a=0;a<this.pv.length;a+=1)e[a]+=s[a];else e+=s;o+=1}if(this.pv.length)for(a=0;a<this.pv.length;a+=1)e[a]/=i;else e/=i;return e}function s(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var i=this._transformCachingAtTime.v;if(i.cloneFromProps(this.pre.props),this.appliedTransformations<1){var e=this.a.getValueAtTime(t);i.translate(-e[0]*this.a.mult,-e[1]*this.a.mult,e[2]*this.a.mult)}if(this.appliedTransformations<2){var s=this.s.getValueAtTime(t);i.scale(s[0]*this.s.mult,s[1]*this.s.mult,s[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),n=this.sa.getValueAtTime(t);i.skewFromAxis(-r*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var h=this.r.getValueAtTime(t);i.rotate(-h*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),a=this.ry.getValueAtTime(t),f=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);i.rotateZ(-o*this.rz.mult).rotateY(a*this.ry.mult).rotateX(f*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var u=this.px.getValueAtTime(t),l=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);i.translate(u*this.px.mult,l*this.py.mult,-p*this.pz.mult)}else i.translate(u*this.px.mult,l*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);i.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return i}function r(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,i,e){var h=n(t,i,e);return h.getValueAtTime=h.dynamicProperties.length?s.bind(h):r.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h};var h=PropertyFactory.getProp;PropertyFactory.getProp=function(s,r,n,o,a){var f=h(s,r,n,o,a);f.getValueAtTime=f.kf?expressionHelpers.getValueAtTime.bind(f):expressionHelpers.getStaticValueAtTime.bind(f),f.setGroupProperty=expressionHelpers.setGroupProperty,f.loopOut=t,f.loopIn=i,f.smooth=e,f.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(f),f.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(f),f.numKeys=1===r.a?r.k.length:0,f.propertyIndex=r.ix;var c=0;return 0!==n&&(c=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),f._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(s,r,f),f.k&&a.addDynamicProperty(f),f};var o=ShapePropertyFactory.getConstructorFunction(),a=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(t,i){this.k&&this.getValue();var e,s=this.v;void 0!==i&&(s=this.getValueAtTime(i,0));var r=s._length,n=s[t],h=s.v,o=createSizedArray(r);for(e=0;e<r;e+=1)o[e]="i"===t||"o"===t?[n[e][0]-h[e][0],n[e][1]-h[e][1]]:[n[e][0],n[e][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,i){var e=this.v;void 0!==i&&(e=this.getValueAtTime(i,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(e));for(var s,r=this._segmentsLength,n=r.lengths,h=r.totalLength*t,o=0,a=n.length,f=0;o<a;){if(f+n[o].addedLength>h){var c=e.c&&o===a-1?0:o+1;s=bez.getPointInSegment(e.v[o],e.v[c],e.o[o],e.i[c],(h-f)/n[o].addedLength,n[o]);break}f+=n[o].addedLength,o+=1}return s||(s=e.c?[e.v[0][0],e.v[0][1]]:[e.v[e._length-1][0],e.v[e._length-1][1]]),s},vectorOnPath:function(t,i,e){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,i),r=this.pointOnPath(t+.001,i),n=r[0]-s[0],h=r[1]-s[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(h,2));return 0===o?[0,0]:"tangent"===e?[n/o,h/o]:[-h/o,n/o]},tangentOnPath:function(t,i){return this.vectorOnPath(t,i,"tangent")},normalOnPath:function(t,i){return this.vectorOnPath(t,i,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],o),extendPrototype([f],a),a.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},a.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,i,e,s,r){var n=c(t,i,e,s,r);return n.propertyIndex=i.ix,n.lock=!1,3===e?expressionHelpers.searchExpressions(t,i.pt,n):4===e&&expressionHelpers.searchExpressions(t,i.ks,n),n.k&&t.addDynamicProperty(n),n}}(),TextProperty.prototype.getExpressionValue=function(t,i){var e=this.calculateExpression(i);if(t.t!==e){var s={};return this.copyData(s,t),s.t=e.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),i=this.searchExpressions();return this.kf=t||i,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null};var ShapePathInterface=function(t,i,e){var s=i.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var n=propertyGroupFactory(r,e);return s.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:e}}),r},propertyGroupFactory=function(t,i){return function(e){return(e=void 0===e?1:e)<=0?t:i(e-1)}},PropertyInterface=function(t,i){var e={_name:t};return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},ShapeExpressionInterface=function(){function t(t,h,l){var p,d=[],m=t?t.length:0;for(p=0;p<m;p+=1)"gr"===t[p].ty?d.push(i(t[p],h[p],l)):"fl"===t[p].ty?d.push(e(t[p],h[p],l)):"st"===t[p].ty?d.push(r(t[p],h[p],l)):"tm"===t[p].ty?d.push(n(t[p],h[p],l)):"tr"===t[p].ty||d.push("el"===t[p].ty?o(t[p],h[p],l):"sr"===t[p].ty?a(t[p],h[p],l):"sh"===t[p].ty?ShapePathInterface(t[p],h[p],l):"rc"===t[p].ty?f(t[p],h[p],l):"rd"===t[p].ty?c(t[p],h[p],l):"rp"===t[p].ty?u(t[p],h[p],l):"gf"===t[p].ty?s(t[p],h[p],l):function(){return null});return d}function i(i,e,s){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,s);var n=function(i,e,s){var r,n=function(t){for(var i=0,e=r.length;i<e;){if(r[i]._name===t||r[i].mn===t||r[i].propertyIndex===t||r[i].ix===t||r[i].ind===t)return r[i];i+=1}return"number"==typeof t?r[t-1]:null};n.propertyGroup=propertyGroupFactory(n,s),r=t(i.it,e.it,n.propertyGroup),n.numProperties=r.length;var o=h(i.it[i.it.length-1],e.it[e.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=i.cix,n._name=i.nm,n}(i,e,r.propertyGroup),o=h(i.it[i.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.content=n,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return i.nm}}),r.numProperties=i.np,r.propertyIndex=i.ix,r.nm=i.nm,r.mn=i.mn,r}function e(t,i,e){function s(t){return"Color"===t||"color"===t?s.color:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm},mn:{value:t.mn}}),i.c.setGroupProperty(PropertyInterface("Color",e)),i.o.setGroupProperty(PropertyInterface("Opacity",e)),s}function s(t,i,e){function s(t){return"Start Point"===t||"start point"===t?s.startPoint:"End Point"===t||"end point"===t?s.endPoint:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(i.s)},endPoint:{get:ExpressionPropertyInterface(i.e)},opacity:{get:ExpressionPropertyInterface(i.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),i.s.setGroupProperty(PropertyInterface("Start Point",e)),i.e.setGroupProperty(PropertyInterface("End Point",e)),i.o.setGroupProperty(PropertyInterface("Opacity",e)),s}function r(t,i,e){var s,r=propertyGroupFactory(f,e),n=propertyGroupFactory(a,r);function h(e){Object.defineProperty(a,t.d[e].nm,{get:ExpressionPropertyInterface(i.d.dataProps[e].p)})}var o=t.d?t.d.length:0,a={};for(s=0;s<o;s+=1)h(s),i.d.dataProps[s].p.setGroupProperty(n);function f(t){return"Color"===t||"color"===t?f.color:"Opacity"===t||"opacity"===t?f.opacity:"Stroke Width"===t||"stroke width"===t?f.strokeWidth:null}return Object.defineProperties(f,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function(){return a}},_name:{value:t.nm},mn:{value:t.mn}}),i.c.setGroupProperty(PropertyInterface("Color",r)),i.o.setGroupProperty(PropertyInterface("Opacity",r)),i.w.setGroupProperty(PropertyInterface("Stroke Width",r)),f}function n(t,i,e){function s(i){return i===t.e.ix||"End"===i||"end"===i?s.end:i===t.s.ix?s.start:i===t.o.ix?s.offset:null}var r=propertyGroupFactory(s,e);return s.propertyIndex=t.ix,i.s.setGroupProperty(PropertyInterface("Start",r)),i.e.setGroupProperty(PropertyInterface("End",r)),i.o.setGroupProperty(PropertyInterface("Offset",r)),s.propertyIndex=t.ix,s.propertyGroup=e,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(i.s)},end:{get:ExpressionPropertyInterface(i.e)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function h(t,i,e){function s(i){return t.a.ix===i||"Anchor Point"===i?s.anchorPoint:t.o.ix===i||"Opacity"===i?s.opacity:t.p.ix===i||"Position"===i?s.position:t.r.ix===i||"Rotation"===i||"ADBE Vector Rotation"===i?s.rotation:t.s.ix===i||"Scale"===i?s.scale:t.sk&&t.sk.ix===i||"Skew"===i?s.skew:t.sa&&t.sa.ix===i||"Skew Axis"===i?s.skewAxis:null}var r=propertyGroupFactory(s,e);return i.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),i.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),i.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),i.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),i.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),i.transform.mProps.sk&&(i.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),i.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),i.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(i.transform.mProps.o)},position:{get:ExpressionPropertyInterface(i.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(i.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(i.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(i.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(i.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(i.transform.mProps.sa)},_name:{value:t.nm}}),s.ty="tr",s.mn=t.mn,s.propertyGroup=e,s}function o(t,i,e){function s(i){return t.p.ix===i?s.position:t.s.ix===i?s.size:null}var r=propertyGroupFactory(s,e);s.propertyIndex=t.ix;var n="tm"===i.sh.ty?i.sh.prop:i.sh;return n.s.setGroupProperty(PropertyInterface("Size",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:t.nm}}),s.mn=t.mn,s}function a(t,i,e){function s(i){return t.p.ix===i?s.position:t.r.ix===i?s.rotation:t.pt.ix===i?s.points:t.or.ix===i||"ADBE Vector Star Outer Radius"===i?s.outerRadius:t.os.ix===i?s.outerRoundness:!t.ir||t.ir.ix!==i&&"ADBE Vector Star Inner Radius"!==i?t.is&&t.is.ix===i?s.innerRoundness:null:s.innerRadius}var r=propertyGroupFactory(s,e),n="tm"===i.sh.ty?i.sh.prop:i.sh;return s.propertyIndex=t.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",r)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),n.pt.setGroupProperty(PropertyInterface("Points",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:t.nm}}),s.mn=t.mn,s}function f(t,i,e){function s(i){return t.p.ix===i?s.position:t.r.ix===i?s.roundness:t.s.ix===i||"Size"===i||"ADBE Vector Rect Size"===i?s.size:null}var r=propertyGroupFactory(s,e),n="tm"===i.sh.ty?i.sh.prop:i.sh;return s.propertyIndex=t.ix,n.p.setGroupProperty(PropertyInterface("Position",r)),n.s.setGroupProperty(PropertyInterface("Size",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:t.nm}}),s.mn=t.mn,s}function c(t,i,e){function s(i){return t.r.ix===i||"Round Corners 1"===i?s.radius:null}var r=propertyGroupFactory(s,e),n=i;return s.propertyIndex=t.ix,n.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:t.nm}}),s.mn=t.mn,s}function u(t,i,e){function s(i){return t.c.ix===i||"Copies"===i?s.copies:t.o.ix===i||"Offset"===i?s.offset:null}var r=propertyGroupFactory(s,e),n=i;return s.propertyIndex=t.ix,n.c.setGroupProperty(PropertyInterface("Copies",r)),n.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:t.nm}}),s.mn=t.mn,s}return function(i,e,s){var r;function n(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?s:r[t-1];for(var i=0,e=r.length;i<e;){if(r[i]._name===t)return r[i];i+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return s})),r=t(i,e,n.propertyGroup),n.numProperties=r.length,n._name="Contents",n}}(),TextExpressionInterface=function(t){var i,e;function s(t){switch(t){case"ADBE Text Document":return s.sourceText;default:return null}}return Object.defineProperty(s,"sourceText",{get:function(){t.textProperty.getValue();var s=t.textProperty.currentData.t;return s!==i&&(t.textProperty.currentData.t=i,(e=new String(s)).value=s||new String(s)),e}}),s},LayerExpressionInterface=function(){function t(t){var i=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(i):this._elem.finalTransform.mProp.applyToMatrix(i),i}function i(t,i){var e=this.getMatrix(i);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function e(t,i){var e=this.getMatrix(i);return this.applyPoint(e,t)}function s(t,i){var e=this.getMatrix(i);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function r(t,i){var e=this.getMatrix(i);return this.invertPoint(e,t)}function n(t,i){if(this._elem.hierarchy&&this._elem.hierarchy.length){var e,s=this._elem.hierarchy.length;for(e=0;e<s;e+=1)this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(i[0],i[1],i[2]||0)}function h(t,i){if(this._elem.hierarchy&&this._elem.hierarchy.length){var e,s=this._elem.hierarchy.length;for(e=0;e<s;e+=1)this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(i)}function o(t){var i=new Matrix;if(i.reset(),this._elem.finalTransform.mProp.applyToMatrix(i),this._elem.hierarchy&&this._elem.hierarchy.length){var e,s=this._elem.hierarchy.length;for(e=0;e<s;e+=1)this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(i);return i.inversePoint(t)}return i.inversePoint(t)}function a(){return[1,1,1,1]}return function(f){var c;function u(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=t,u.invertPoint=h,u.applyPoint=n,u.toWorld=e,u.toWorldVec=i,u.fromWorld=r,u.fromWorldVec=s,u.toComp=e,u.fromComp=o,u.sampleImage=a,u.sourceRectAtTime=f.sourceRectAtTime.bind(f),u._elem=f;var l=getDescriptor(c=TransformExpressionInterface(f.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return f.hierarchy.length}},parent:{get:function(){return f.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:l,anchor_point:l,transform:{get:function(){return c}},active:{get:function(){return f.isInRange}}}),u.startTime=f.data.st,u.index=f.data.ind,u.source=f.data.refId,u.height=0===f.data.ty?f.data.h:100,u.width=0===f.data.ty?f.data.w:100,u.inPoint=f.data.ip/f.comp.globalData.frameRate,u.outPoint=f.data.op/f.comp.globalData.frameRate,u._name=f.data.nm,u.registerMaskInterface=function(t){u.mask=new MaskManagerInterface(t,f)},u.registerEffectsInterface=function(t){u.effect=t},u}}(),FootageInterface=(dataInterfaceFactory=function(t){function i(t){return"Outline"===t?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=function(t){var i="",e=t.getFootageData();function s(t){if(e[t])return i=t,"object"==typeof(e=e[t])?s:e;var r=t.indexOf(i);if(-1!==r){var n=parseInt(t.substr(r+i.length),10);return"object"==typeof(e=e[n])?s:e}return""}return function(){return i="",e=t.getFootageData(),s}}(t),i},function(t){function i(t){return"Data"===t?i.dataInterface:null}return i._name="Data",i.dataInterface=dataInterfaceFactory(t),i}),dataInterfaceFactory,CompExpressionInterface=function(t){function i(i){for(var e=0,s=t.layers.length;e<s;){if(t.layers[e].nm===i||t.layers[e].ind===i)return t.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(i,"_name",{value:t.data.nm}),i.layer=i,i.pixelAspect=1,i.height=t.data.h||t.globalData.compSize.h,i.width=t.data.w||t.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/t.globalData.frameRate,i.displayStartTime=0,i.numLayers=t.layers.length,i},TransformExpressionInterface=function(t){function i(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}var e,s,r,n;return Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?n=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),s=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(i,"position",{get:function(){return t.p?n():[e(),s(),r?r():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(t.or)}),i},ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function i(t){for(var i=0,e=this.compositions.length;i<e;){if(this.compositions[i].data&&this.compositions[i].data.nm===t)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=t,i}}(),EffectsExpressionInterface=function(){function t(e,s,r,n){function h(t){for(var i=e.ef,s=0,r=i.length;s<r;){if(t===i[s].nm||t===i[s].mn||t===i[s].ix)return 5===i[s].ty?f[s]:f[s]();s+=1}throw new Error}var o,a=propertyGroupFactory(h,r),f=[],c=e.ef.length;for(o=0;o<c;o+=1)f.push(5===e.ef[o].ty?t(e.ef[o],s.effectElements[o],s.effectElements[o].propertyGroup,n):i(s.effectElements[o],e.ef[o].ty,n,a));return"ADBE Color Control"===e.mn&&Object.defineProperty(h,"color",{get:function(){return f[0]()}}),Object.defineProperties(h,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:a}}),h.active=h.enabled=0!==e.en,h}function i(t,i,e,s){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",s)),function(){return 10===i?e.comp.compInterface(t.p.v):r()}}return{createEffectsInterface:function(i,e){if(i.effectsManager){var s,r=[],n=i.data.ef,h=i.effectsManager.effectElements.length;for(s=0;s<h;s+=1)r.push(t(n[s],i.effectsManager.effectElements[s],e,i));var o=i.data.ef||[],a=function(t){for(s=0,h=o.length;s<h;){if(t===o[s].nm||t===o[s].mn||t===o[s].ix)return r[s];s+=1}return null};return Object.defineProperty(a,"numProperties",{get:function(){return o.length}}),a}return null}}}(),MaskManagerInterface=function(){function t(t,i){this._mask=t,this._data=i}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(i){var e,s=createSizedArray(i.viewData.length),r=i.viewData.length;for(e=0;e<r;e+=1)s[e]=new t(i.viewData[e],i.masksProperties[e]);return function(t){for(e=0;e<r;){if(i.masksProperties[e].nm===t)return s[e];e+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function e(t,i,e){Object.defineProperty(t,"velocity",{get:function(){return i.getVelocityAtTime(i.comp.currentFrame)}}),t.numKeys=i.keyframes?i.keyframes.length:0,t.key=function(s){if(!t.numKeys)return 0;var r;r="s"in i.keyframes[s-1]?i.keyframes[s-1].s:"e"in i.keyframes[s-2]?i.keyframes[s-2].e:i.keyframes[s-2].s;var n="unidimensional"===e?new Number(r):Object.assign({},r);return n.time=i.keyframes[s-1].t/i.elem.comp.globalData.frameRate,n.value="unidimensional"===e?r[0]:r,n},t.valueAtTime=i.getValueAtTime,t.speedAtTime=i.getSpeedAtTime,t.velocityAtTime=i.getVelocityAtTime,t.propertyGroup=i.propertyGroup}function s(){return t}return function(r){return r?"unidimensional"===r.propType?function(i){i&&"pv"in i||(i=t);var s=1/i.mult,r=i.pv*s,n=new Number(r);return n.value=r,e(n,i,"unidimensional"),function(){return i.k&&i.getValue(),n.value!==(r=i.v*s)&&((n=new Number(r)).value=r,e(n,i,"unidimensional")),n}}(r):function(t){t&&"pv"in t||(t=i);var s=1/t.mult,r=t.data&&t.data.l||t.pv.length,n=createTypedArray("float32",r),h=createTypedArray("float32",r);return n.value=h,e(n,t,"multidimensional"),function(){t.k&&t.getValue();for(var i=0;i<r;i+=1)h[i]=t.v[i]*s,n[i]=h[i];return n}}(r):s}}(),TextExpressionSelectorPropFactory=function(){function t(t,i){return this.textIndex=t+1,this.textTotal=i,this.v=this.getValue()*this.mult,this.v}return function(i,e){this.pv=1,this.comp=i.comp,this.elem=i,this.mult=.01,this.propType="textSelector",this.textTotal=e.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(i,e,this),this.getMult=t,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.getValueAtTime=this.kf?expressionHelpers.getValueAtTime.bind(this):expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),propertyGetTextProp=TextSelectorProp.getTextSelectorProp;function SliderEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function AngleEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function ColorEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,1,0,e)}function PointEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,1,0,e)}function LayerIndexEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function MaskIndexEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function CheckboxEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function NoValueEffect(){this.p={}}function EffectsManager(t,i){var e,s=t.ef||[];this.effectElements=[];var r,n=s.length;for(e=0;e<n;e+=1)r=new GroupEffect(s[e],i),this.effectElements.push(r)}function GroupEffect(t,i){this.init(t,i)}TextSelectorProp.getTextSelectorProp=function(t,i,e){return 1===i.t?new TextExpressionSelectorPropFactory(t,i,e):propertyGetTextProp(t,i,e)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,i){var e;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(i);var s,r=this.data.ef.length,n=this.data.ef;for(e=0;e<r;e+=1){switch(s=null,n[e].ty){case 0:s=new SliderEffect(n[e],i,this);break;case 1:s=new AngleEffect(n[e],i,this);break;case 2:s=new ColorEffect(n[e],i,this);break;case 3:s=new PointEffect(n[e],i,this);break;case 4:case 7:s=new CheckboxEffect(n[e],i,this);break;case 10:s=new LayerIndexEffect(n[e],i,this);break;case 11:s=new MaskIndexEffect(n[e],i,this);break;case 5:s=new EffectsManager(n[e],i,this);break;default:s=new NoValueEffect(n[e],i,this)}s&&this.effectElements.push(s)}};var lottie={},queryString;function setLocationHref(t){locationHref=t}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function setIDPrefix(t){idPrefix=t}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;default:case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,i){"expressions"===t&&(expressionsPlugin=i)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var i=queryString.split("&"),e=0;e<i.length;e+=1){var s=i[e].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.setIDPrefix=setIDPrefix,lottie.__getFactory=getFactory,lottie.version="5.7.13";var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src.replace(/^[^\?]+\??/,""),getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);return lottie},module.exports?module.exports=factory(root):(root.lottie=factory(root),root.bodymovin=root.lottie))})),PlayerState,PlayMode;function parseSrc(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(i){return new URL(t,window.location.href).toString()}}!function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"}(PlayerState||(PlayerState={})),function(t){t.Normal="normal",t.Bounce="bounce"}(PlayMode||(PlayMode={}));const lottiePlayerCss=":host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:transparent;--lottie-player-toolbar-icon-color:#999;--lottie-player-toolbar-icon-hover-color:#222;--lottie-player-toolbar-icon-active-color:#555;--lottie-player-seeker-track-color:#CCC;--lottie-player-seeker-thumb-color:rgba(0, 107, 120, 0.8);display:block;width:100%;height:100%}.main{box-sizing:border-box;display:inline-grid;grid-auto-columns:auto;grid-template-rows:auto;position:relative;height:inherit;width:inherit}.main.controls{grid-template-rows:1fr var(--lottie-player-toolbar-height)}.animation{overflow:hidden;height:calc(1fr - var(--lottie-player-toolbar-height))}.toolbar{display:grid;grid-template-columns:32px 32px 1fr 32px 32px;align-items:center;justify-items:center;background-color:var(--lottie-player-toolbar-background-color)}.toolbar button{cursor:pointer;fill:var(--lottie-player-toolbar-icon-color);display:flex;background:none;border:0;padding:0;outline:none;height:100%}.toolbar button:hover{fill:var(--lottie-player-toolbar-icon-hover-color)}.toolbar button.active{fill:var(--lottie-player-toolbar-icon-active-color)}.toolbar button.disabled svg{display:none}.toolbar a{filter:grayscale(100%);display:flex;transition:filter .5s, opacity 0.5s;opacity:0.4;height:100%;align-items:center}.toolbar a:hover{filter:none;display:flex;opacity:1}.seeker{-webkit-appearance:none;width:95%;outline:none}.seeker::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-webkit-slider-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer;-webkit-appearance:none;margin-top:-5px}.seeker:focus::-webkit-slider-runnable-track{background:#999}.seeker::-moz-range-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-moz-range-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker::-ms-track{width:100%;height:5px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.seeker::-ms-fill-lower{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-thumb{border:0;height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker:focus::-ms-fill-lower{background:var(--lottie-player-seeker-track-color)}.seeker:focus::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}.error{display:flex;justify-content:center;height:100%;align-items:center}",LottiePlayer=class{constructor(t){registerInstance(this,t),this.error=createEvent(this,"error",7),this.frame=createEvent(this,"frame",7),this.complete=createEvent(this,"complete",7),this.looped=createEvent(this,"looped",7),this.ready=createEvent(this,"ready",7),this.loaded=createEvent(this,"loaded",7),this.playing=createEvent(this,"playing",7),this.paused=createEvent(this,"paused",7),this.stopped=createEvent(this,"stopped",7),this.freezed=createEvent(this,"freezed",7),this.mode=PlayMode.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.loop=!1,this.renderer="svg",this.speed=1,this.currentState=PlayerState.Loading,this.intermission=1,this._counter=0}componentDidLoad(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver((t=>{t[0].isIntersecting?this.currentState===PlayerState.Frozen&&this.play():this.currentState===PlayerState.Playing&&this.freeze()})),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>this.onVisibilityChange())),this.src&&this.load(this.src)}load(t){const i={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{const e=parseSrc(t),s="string"==typeof e?"path":"animationData";this._lottie&&this._lottie.destroy(),this._lottie=lottie_svg.loadAnimation(Object.assign(Object.assign({},i),{[s]:e}))}catch(t){return this.currentState=PlayerState.Error,void this.error.emit()}this._lottie&&(this._lottie.addEventListener("enterFrame",(()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.frame.emit({frame:this._lottie.currentFrame,seeker:this.seeker})})),this._lottie.addEventListener("complete",(()=>{this.currentState===PlayerState.Playing?!this.loop||this.count&&this._counter>=this.count?this.complete.emit():this.mode===PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout((()=>{this.looped.emit(),this.currentState===PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())}),this.intermission)):(this.count&&(this._counter+=1),window.setTimeout((()=>{this.looped.emit(),this.currentState===PlayerState.Playing&&(this._lottie.stop(),this._lottie.play())}),this.intermission)):this.complete.emit()})),this._lottie.addEventListener("DOMLoaded",(()=>{this.ready.emit()})),this._lottie.addEventListener("data_ready",(()=>{this.loaded.emit()})),this._lottie.addEventListener("data_failed",(()=>{this.currentState=PlayerState.Error,this.error.emit()})),this.container.addEventListener("mouseenter",(()=>{this.hover&&this.currentState!==PlayerState.Playing&&this.play()})),this.container.addEventListener("mouseleave",(()=>{this.hover&&this.currentState===PlayerState.Playing&&this.stop()})),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play())}async play(){this._lottie&&(this._lottie.play(),this.currentState=PlayerState.Playing,this.playing.emit())}async pause(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Paused,this.paused.emit())}async stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.currentState=PlayerState.Stopped,this.stopped.emit())}async seek(t){if(!this._lottie)return;const i=t.toString().match(/^([0-9]+)(%?)$/);if(!i)return;const e="%"===i[2]?this._lottie.totalFrames*Number(i[1])/100:i[1];this.seeker=e,this.currentState===PlayerState.Playing?this._lottie.goToAndPlay(e,!0):(this._lottie.goToAndStop(e,!0),this._lottie.pause())}freeze(){this._lottie&&(this.currentState=PlayerState.Frozen,this.freezed.emit())}async getLottie(){return this._lottie}async setSpeed(t=1){this._lottie&&this._lottie.setSpeed(t)}async setDirection(t){this._lottie&&this._lottie.setDirection(t)}async setLooping(t){this._lottie&&(this.loop=t,this._lottie.loop=t)}async togglePlay(){return this.currentState===PlayerState.Playing?this.pause():this.play()}async toggleLooping(){this.setLooping(!this.loop)}renderButtonIcon(t){return h("svg",{width:"24",height:"24"},h("path",t?{d:"M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"}:{d:"M8.016 5.016L18.985 12 8.016 18.984V5.015z"}))}renderControls(){const t=this.currentState===PlayerState.Playing,i=this.currentState===PlayerState.Stopped;return h("div",{class:"toolbar"},h("button",{class:{active:t||this.currentState===PlayerState.Paused},onClick:()=>this.togglePlay()},this.renderButtonIcon(t)),h("button",{class:{active:i},onClick:()=>this.stop()},h("svg",{width:"24",height:"24"},h("path",{d:"M6 6h12v12H6V6z"}))),h("input",{class:"seeker",type:"range",min:"0",step:"1",max:"100",value:this.seeker,onInput:t=>this.handleSeekChange(t),onMouseDown:()=>{this._prevState=this.currentState,this.freeze()},onMouseUp:()=>{this._prevState===PlayerState.Playing&&this.play()}}),h("button",{class:{active:this.loop},onClick:()=>this.toggleLooping()},h("svg",{width:"24",height:"24"},h("path",{d:"M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"}))),h("a",{href:"https://www.lottiefiles.com/",target:"_blank"},h("svg",{width:"24",height:"24",viewBox:"0 0 320 320","fill-rule":"nonzero"},h("rect",{fill:"#adadad",x:".5",y:".5",width:"100%",height:"100%",rx:"26.73"}),h("path",{d:"M251.304 65.44a16.55 16.55 0 0 1 13.927 18.789c-1.333 9.04-9.73 15.292-18.762 13.954-15.992-2.37-39.95 22.534-66.77 73.74-34.24 65.37-66.113 96.517-99.667 94.032-9.102-.674-15.93-8.612-15.258-17.723s8.592-15.96 17.695-15.286c16.57 1.227 40.908-24.737 67.97-76.4 34.46-65.79 66.764-96.157 100.866-91.105z",fill:"#fff"}))))}render(){return h("div",{class:{main:!0,controls:this.controls}},h("div",{class:"animation",style:{background:this.background},ref:t=>this.container=t},this.currentState===PlayerState.Error?h("div",{class:"error"},"⚠️"):void 0),this.controls?this.renderControls():void 0)}onVisibilityChange(){!0===document.hidden&&this.currentState===PlayerState.Playing?this.freeze():this.currentState===PlayerState.Frozen&&this.play()}handleSeekChange(t){this._lottie&&!isNaN(t.target.value)&&this.seek(t.target.value/100*this._lottie.totalFrames)}};LottiePlayer.style=lottiePlayerCss;export{LottiePlayer as lottie_player}
|
|
1
|
+
import{r as registerInstance,c as createEvent,h}from"./p-2ca3c085.js";function createCommonjsModule(t,i,e){return t(e={path:i,exports:{},require:function(){return commonjsRequire()}},e.exports),e.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie_svg=createCommonjsModule((function(module){var root,factory;"undefined"!=typeof navigator&&(root=window||{},factory=function(window){var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,idPrefix="",expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMin=Math.min,BMMath={};function ProjectInterface(){return{}}!function(){var t,i=["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=i.length;for(t=0;t<e;t+=1)BMMath[i[t]]=Math[i[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){var i,e=createSizedArray(t.length),s=t.length;for(i=0;i<s;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function BMEnterFrameEvent(t,i,e,s){this.type=t,this.currentTime=i,this.totalTime=e,this.direction=s<0?-1:1}function BMCompleteEvent(t,i){this.type=t,this.direction=i<0?-1:1}function BMCompleteLoopEvent(t,i,e,s){this.type=t,this.currentLoop=e,this.totalLoops=i,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,i,e){this.type=t,this.firstFrame=i,this.totalFrames=e}function BMDestroyEvent(t,i){this.type=t,this.target=i}function BMRenderFrameErrorEvent(t,i){this.type="renderFrameError",this.nativeError=t,this.currentTime=i}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,i,e){var s,r,n,h,o,a,f,c;switch(a=e*(1-i),f=e*(1-(o=6*t-(h=Math.floor(6*t)))*i),c=e*(1-(1-o)*i),h%6){case 0:s=e,r=c,n=a;break;case 1:s=f,r=e,n=a;break;case 2:s=a,r=e,n=c;break;case 3:s=a,r=f,n=e;break;case 4:s=c,r=a,n=e;break;case 5:s=e,r=a,n=f}return[s,r,n]}function RGBtoHSV(t,i,e){var s,r=Math.max(t,i,e),n=Math.min(t,i,e),h=r-n,o=0===r?0:h/r,a=r/255;switch(r){case n:s=0;break;case t:s=i-e+h*(i<e?6:0),s/=6*h;break;case i:s=e-t+2*h,s/=6*h;break;case e:s=t-i+4*h,s/=6*h}return[s,o,a]}function addSaturationToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[1]+=i,e[1]>1?e[1]=1:e[1]<=0&&(e[1]=0),HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[2]+=i,e[2]>1?e[2]=1:e[2]<0&&(e[2]=0),HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[0]+=i/360,e[0]>1?e[0]-=1:e[0]<0&&(e[0]+=1),HSVtoRGB(e[0],e[1],e[2])}var rgbToHex=function(){var t,i,e=[];for(t=0;t<256;t+=1)i=t.toString(16),e[t]=1===i.length?"0"+i:i;return function(t,i,s){return t<0&&(t=0),i<0&&(i=0),s<0&&(s=0),"#"+e[t]+e[i]+e[s]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var e=this._cbs[t],s=0;s<e.length;s+=1)e[s](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),function(){this.removeEventListener(t,i)}.bind(this)},removeEventListener:function(t,i){if(i){if(this._cbs[t]){for(var e=0,s=this._cbs[t].length;e<s;)this._cbs[t][e]===i&&(this._cbs[t].splice(e,1),e-=1,s-=1),e+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray=function(){function t(t,i){var e,s=0,r=[];switch(t){case"int16":case"uint8c":e=1;break;default:e=1.1}for(s=0;s<i;s+=1)r.push(e);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(i,e){return"float32"===i?new Float32Array(e):"int16"===i?new Int16Array(e):"uint8c"===i?new Uint8ClampedArray(e):t(i,e)}: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){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(blendModeEnums={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 blendModeEnums[t]||""}),blendModeEnums,lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"},Matrix=function(){var t=Math.cos,i=Math.sin,e=Math.tan,s=Math.round;function r(){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 n(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function h(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function a(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function f(t,i){return this._t(1,i,t,1,0,0)}function c(t,i){return this.shear(e(t),e(i))}function u(s,r){var n=t(r),h=i(r);return this._t(n,h,0,0,-h,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,e(s),1,0,0,0,0,1,0,0,0,0,1)._t(n,-h,0,0,h,n,0,0,0,0,1,0,0,0,0,1)}function l(t,i,e){return e||0===e||(e=1),1===t&&1===i&&1===e?this:this._t(t,0,0,0,0,i,0,0,0,0,e,0,0,0,0,1)}function p(t,i,e,s,r,n,h,o,a,f,c,u,l,p,d,m){return this.props[0]=t,this.props[1]=i,this.props[2]=e,this.props[3]=s,this.props[4]=r,this.props[5]=n,this.props[6]=h,this.props[7]=o,this.props[8]=a,this.props[9]=f,this.props[10]=c,this.props[11]=u,this.props[12]=l,this.props[13]=p,this.props[14]=d,this.props[15]=m,this}function d(t,i,e){return e=e||0,0!==t||0!==i||0!==e?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,i,e,1):this}function m(t,i,e,s,r,n,h,o,a,f,c,u,l,p,d,m){var y=this.props;if(1===t&&0===i&&0===e&&0===s&&0===r&&1===n&&0===h&&0===o&&0===a&&0===f&&1===c&&0===u)return y[12]=y[12]*t+y[15]*l,y[13]=y[13]*n+y[15]*p,y[14]=y[14]*c+y[15]*d,y[15]*=m,this._identityCalculated=!1,this;var v=y[0],g=y[1],P=y[2],S=y[3],E=y[4],M=y[5],b=y[6],x=y[7],w=y[8],I=y[9],k=y[10],F=y[11],T=y[12],A=y[13],G=y[14],R=y[15];return y[0]=v*t+g*r+P*a+S*l,y[1]=v*i+g*n+P*f+S*p,y[2]=v*e+g*h+P*c+S*d,y[3]=v*s+g*o+P*u+S*m,y[4]=E*t+M*r+b*a+x*l,y[5]=E*i+M*n+b*f+x*p,y[6]=E*e+M*h+b*c+x*d,y[7]=E*s+M*o+b*u+x*m,y[8]=w*t+I*r+k*a+F*l,y[9]=w*i+I*n+k*f+F*p,y[10]=w*e+I*h+k*c+F*d,y[11]=w*s+I*o+k*u+F*m,y[12]=T*t+A*r+G*a+R*l,y[13]=T*i+A*n+G*f+R*p,y[14]=T*e+A*h+G*c+R*d,y[15]=T*s+A*o+G*u+R*m,this._identityCalculated=!1,this}function y(){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 v(t){for(var i=0;i<16;){if(t.props[i]!==this.props[i])return!1;i+=1}return!0}function g(t){var i;for(i=0;i<16;i+=1)t.props[i]=this.props[i];return t}function P(t){var i;for(i=0;i<16;i+=1)this.props[i]=t[i]}function S(t,i,e){return{x:t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],y:t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],z:t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}}function E(t,i,e){return t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12]}function M(t,i,e){return t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13]}function b(t,i,e){return t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}function x(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/t,e=-this.props[1]/t,s=-this.props[4]/t,r=this.props[0]/t,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,h=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=i,o.props[1]=e,o.props[4]=s,o.props[5]=r,o.props[12]=n,o.props[13]=h,o}function w(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function I(t){var i,e=t.length,s=[];for(i=0;i<e;i+=1)s[i]=w(t[i]);return s}function k(t,i,e){var s=createTypedArray("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=i[0],s[3]=i[1],s[4]=e[0],s[5]=e[1];else{var r=this.props[0],n=this.props[1],h=this.props[4],o=this.props[5],a=this.props[12],f=this.props[13];s[0]=t[0]*r+t[1]*h+a,s[1]=t[0]*n+t[1]*o+f,s[2]=i[0]*r+i[1]*h+a,s[3]=i[0]*n+i[1]*o+f,s[4]=e[0]*r+e[1]*h+a,s[5]=e[0]*n+e[1]*o+f}return s}function F(t,i,e){return this.isIdentity()?[t,i,e]:[t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]]}function T(t,i){if(this.isIdentity())return t+","+i;var e=this.props;return Math.round(100*(t*e[0]+i*e[4]+e[12]))/100+","+Math.round(100*(t*e[1]+i*e[5]+e[13]))/100}function A(){for(var t=0,i=this.props,e="matrix3d(";t<16;)e+=s(1e4*i[t])/1e4,e+=15===t?")":",",t+=1;return e}function G(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function R(){var t=this.props;return"matrix("+G(t[0])+","+G(t[1])+","+G(t[4])+","+G(t[5])+","+G(t[12])+","+G(t[13])+")"}return function(){this.reset=r,this.rotate=n,this.rotateX=h,this.rotateY=o,this.rotateZ=a,this.skew=c,this.skewFromAxis=u,this.shear=f,this.scale=l,this.setTransform=p,this.translate=d,this.transform=m,this.applyToPoint=S,this.applyToX=E,this.applyToY=M,this.applyToZ=b,this.applyToPointArray=F,this.applyToTriplePoints=k,this.applyToPointStringified=T,this.toCSS=A,this.to2dCSS=R,this.clone=g,this.cloneFromProps=P,this.equals=v,this.inversePoints=I,this.inversePoint=w,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,i){var e=this,s=256,r=i.pow(s,6),n=i.pow(2,52),h=2*n,o=255;function a(t){var i,e=t.length,r=this,n=0,h=r.i=r.j=0,a=r.S=[];for(e||(t=[e++]);n<s;)a[n]=n++;for(n=0;n<s;n++)a[n]=a[h=o&h+t[n%e]+(i=a[n])],a[h]=i;r.g=function(t){for(var i,e=0,n=r.i,h=r.j,a=r.S;t--;)i=a[n=o&n+1],e=e*s+a[o&(a[n]=a[h=o&h+i])+(a[h]=i)];return r.i=n,r.j=h,e}}function f(t,i){return i.i=t.i,i.j=t.j,i.S=t.S.slice(),i}function c(t,i){var e,s=[],r=typeof t;if(i&&"object"==r)for(e in t)try{s.push(c(t[e],i-1))}catch(t){}return s.length?s:"string"==r?t:t+"\0"}function u(t,i){for(var e,s=t+"",r=0;r<s.length;)i[o&r]=o&(e^=19*i[o&r])+s.charCodeAt(r++);return l(i)}function l(t){return String.fromCharCode.apply(0,t)}i.seedrandom=function(o,p,d){var m=[],y=u(c((p=!0===p?{entropy:!0}:p||{}).entropy?[o,l(t)]:null===o?function(){try{var i=new Uint8Array(s);return(e.crypto||e.msCrypto).getRandomValues(i),l(i)}catch(i){var r=e.navigator,n=r&&r.plugins;return[+new Date,e,n,e.screen,l(t)]}}():o,3),m),v=new a(m),g=function(){for(var t=v.g(6),i=r,e=0;t<n;)t=(t+e)*s,i*=s,e=v.g(1);for(;t>=h;)t/=2,i/=2,e>>>=1;return(t+e)/i};return g.int32=function(){return 0|v.g(4)},g.quick=function(){return v.g(4)/4294967296},g.double=g,u(l(v.S),t),(p.pass||d||function(t,e,s,r){return r&&(r.S&&f(r,v),t.state=function(){return f(v,{})}),s?(i.random=t,e):t})(g,y,"global"in p?p.global:this==i,p.state)},u(i.random(),t)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,e,s,r,n){var h=n||("bez_"+t+"_"+e+"_"+s+"_"+r).replace(/\./g,"p");if(i[h])return i[h];var o=new f([t,e,s,r]);return i[h]=o,o}},i={},e=.1,s="function"==typeof Float32Array;function r(t,i){return 1-3*i+3*t}function n(t,i){return 3*i-6*t}function h(t){return 3*t}function o(t,i,e){return((r(i,e)*t+n(i,e))*t+h(i))*t}function a(t,i,e){return 3*r(i,e)*t*t+2*n(i,e)*t+h(i)}function f(t){this._p=t,this._mSampleValues=s?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return f.prototype={get:function(t){var i=this._p[0],e=this._p[1],s=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),i===e&&s===r?t:0===t?0:1===t?1:o(this._getTForX(t),e,r)},_precompute:function(){var t=this._p[0],i=this._p[1],e=this._p[2],s=this._p[3];this._precomputed=!0,t===i&&e===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],i=this._p[2],s=0;s<11;++s)this._mSampleValues[s]=o(s*e,t,i)},_getTForX:function(t){for(var i=this._p[0],s=this._p[2],r=this._mSampleValues,n=0,h=1;10!==h&&r[h]<=t;++h)n+=e;var f=n+(t-r[--h])/(r[h+1]-r[h])*e,c=a(f,i,s);return c>=.001?function(t,i,e,s){for(var r=0;r<4;++r){var n=a(i,e,s);if(0===n)return i;i-=(o(i,e,s)-t)/n}return i}(t,f,i,s):0===c?f:function(t,i,e,s,r){var n,h,a=0;do{(n=o(h=i+(e-i)/2,s,r)-t)>0?e=h:i=h}while(Math.abs(n)>1e-7&&++a<10);return h}(t,n,n+e,i,s)}},t}();function extendPrototype(t,i){var e,s,r=t.length;for(e=0;e<r;e+=1)for(var n in s=t[e].prototype)Object.prototype.hasOwnProperty.call(s,n)&&(i.prototype[n]=s[n])}function getDescriptor(t,i){return Object.getOwnPropertyDescriptor(t,i)}function createProxyFunction(t){function i(){}return i.prototype=t,i}function bezFunction(){var t=Math;function i(t,i,e,s,r,n){var h=t*s+i*r+e*n-r*s-n*t-e*i;return h>-.001&&h<.001}var e=function(t,i,e,s){var r,n,h,o,a,f,c=defaultCurveSegments,u=0,l=[],p=[],d=bezierLengthPool.newElement();for(h=e.length,r=0;r<c;r+=1){for(a=r/(c-1),f=0,n=0;n<h;n+=1)o=bmPow(1-a,3)*t[n]+3*bmPow(1-a,2)*a*e[n]+3*(1-a)*bmPow(a,2)*s[n]+bmPow(a,3)*i[n],l[n]=o,null!==p[n]&&(f+=bmPow(l[n]-p[n],2)),p[n]=l[n];f&&(u+=f=bmSqrt(f)),d.percents[r]=a,d.lengths[r]=u}return d.addedLength=u,d};function s(t){this.segmentLength=0,this.points=new Array(t)}function r(t,i){this.partialLength=t,this.point=i}var n,h=(n={},function(t,e,h,o){var a=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+h[0]+"_"+h[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[a]){var f,c,u,l,p,d,m,y=defaultCurveSegments,v=0,g=null;2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&i(t[0],t[1],e[0],e[1],t[0]+h[0],t[1]+h[1])&&i(t[0],t[1],e[0],e[1],e[0]+o[0],e[1]+o[1])&&(y=2);var P=new s(y);for(u=h.length,f=0;f<y;f+=1){for(m=createSizedArray(u),p=f/(y-1),d=0,c=0;c<u;c+=1)l=bmPow(1-p,3)*t[c]+3*bmPow(1-p,2)*p*(t[c]+h[c])+3*(1-p)*bmPow(p,2)*(e[c]+o[c])+bmPow(p,3)*e[c],m[c]=l,null!==g&&(d+=bmPow(m[c]-g[c],2));v+=d=bmSqrt(d),P.points[f]=new r(d,m),g=m}P.segmentLength=v,n[a]=P}return n[a]});function o(t,i){var e=i.percents,s=i.lengths,r=e.length,n=bmFloor((r-1)*t),h=t*i.addedLength,o=0;if(n===r-1||0===n||h===s[n])return e[n];for(var a=s[n]>h?-1:1,f=!0;f;)if(s[n]<=h&&s[n+1]>h?(o=(h-s[n])/(s[n+1]-s[n]),f=!1):n+=a,n<0||n>=r-1){if(n===r-1)return e[n];f=!1}return e[n]+(e[n+1]-e[n])*o}var a=createTypedArray("float32",8);return{getSegmentsLength:function(t){var i,s=segmentsLengthPool.newElement(),r=t.c,n=t.v,h=t.o,o=t.i,a=t._length,f=s.lengths,c=0;for(i=0;i<a-1;i+=1)f[i]=e(n[i],n[i+1],h[i],o[i+1]),c+=f[i].addedLength;return r&&a&&(f[i]=e(n[i],n[0],h[i],o[0]),c+=f[i].addedLength),s.totalLength=c,s},getNewSegment:function(i,e,s,r,n,h,f){n<0?n=0:n>1&&(n=1);var c,u=o(n,f),l=o(h=h>1?1:h,f),p=i.length,d=1-u,m=1-l,y=d*d*d,v=u*d*d*3,g=u*u*d*3,P=u*u*u,S=d*d*m,E=u*d*m+d*u*m+d*d*l,M=u*u*m+d*u*l+u*d*l,b=u*u*l,x=d*m*m,w=u*m*m+d*l*m+d*m*l,I=u*l*m+d*l*l+u*m*l,k=u*l*l,F=m*m*m,T=l*m*m+m*l*m+m*m*l,A=l*l*m+m*l*l+l*m*l,G=l*l*l;for(c=0;c<p;c+=1)a[4*c]=t.round(1e3*(y*i[c]+v*s[c]+g*r[c]+P*e[c]))/1e3,a[4*c+1]=t.round(1e3*(S*i[c]+E*s[c]+M*r[c]+b*e[c]))/1e3,a[4*c+2]=t.round(1e3*(x*i[c]+w*s[c]+I*r[c]+k*e[c]))/1e3,a[4*c+3]=t.round(1e3*(F*i[c]+T*s[c]+A*r[c]+G*e[c]))/1e3;return a},getPointInSegment:function(i,e,s,r,n,h){var a=o(n,h),f=1-a;return[t.round(1e3*(f*f*f*i[0]+(a*f*f+f*a*f+f*f*a)*s[0]+(a*a*f+f*a*a+a*f*a)*r[0]+a*a*a*e[0]))/1e3,t.round(1e3*(f*f*f*i[1]+(a*f*f+f*a*f+f*f*a)*s[1]+(a*a*f+f*a*a+a*f*a)*r[1]+a*a*a*e[1]))/1e3]},buildBezierData:h,pointOnLine2D:i,pointOnLine3D:function(e,s,r,n,h,o,a,f,c){if(0===r&&0===o&&0===c)return i(e,s,n,h,a,f);var u,l=t.sqrt(t.pow(n-e,2)+t.pow(h-s,2)+t.pow(o-r,2)),p=t.sqrt(t.pow(a-e,2)+t.pow(f-s,2)+t.pow(c-r,2)),d=t.sqrt(t.pow(a-n,2)+t.pow(f-h,2)+t.pow(c-o,2));return(u=l>p?l>d?l-p-d:d-p-l:d>p?d-p-l:p-l-d)>-1e-4&&u<1e-4}}}!function(){for(var t=0,i=["ms","moz","webkit","o"],e=0;e<i.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[i[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i[e]+"CancelAnimationFrame"]||window[i[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(i){var e=(new Date).getTime(),s=Math.max(0,16-(e-t)),r=setTimeout((function(){i(e+s)}),s);return t=e+s,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function t(r,n){var h,o,a,f,c,u,l,p=r.length;for(o=0;o<p;o+=1)if("ks"in(h=r[o])&&!h.completed){if(h.completed=!0,h.tt&&(r[o-1].td=h.tt),h.hasMask){var d=h.masksProperties;for(f=d.length,a=0;a<f;a+=1)if(d[a].pt.k.i)s(d[a].pt.k);else for(u=d[a].pt.k.length,c=0;c<u;c+=1)d[a].pt.k[c].s&&s(d[a].pt.k[c].s[0]),d[a].pt.k[c].e&&s(d[a].pt.k[c].e[0])}0===h.ty?(h.layers=i(h.refId,n),t(h.layers,n)):4===h.ty?e(h.shapes):5===h.ty&&(0!==(l=h).t.a.length||"m"in l.t.p||(l.singleShape=!0))}}function i(t,i){for(var e=0,s=i.length;e<s;){if(i[e].id===t)return i[e].layers.__used?JSON.parse(JSON.stringify(i[e].layers)):(i[e].layers.__used=!0,i[e].layers);e+=1}return null}function e(t){var i,r,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)s(t[i].ks.k);else for(n=t[i].ks.k.length,r=0;r<n;r+=1)t[i].ks.k[r].s&&s(t[i].ks.k[r].s[0]),t[i].ks.k[r].e&&s(t[i].ks.k[r].e[0]);else"gr"===t[i].ty&&e(t[i].it)}function s(t){var i,e=t.i.length;for(i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function r(t,i){var e=i?i.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]>t[2])&&null))}var n,h=function(){var t=[4,4,14];function i(t){var i,e,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&((e=t[i]).t.d={k:[{s:e.t.d,t:0}]})}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var s,n=e.assets.length;for(s=0;s<n;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),o=(n=[4,7,99],function(t){if(t.chars&&!r(n,t.v)){var i,e,h,o,a,f=t.chars.length;for(i=0;i<f;i+=1)if(t.chars[i].data&&t.chars[i].data.shapes)for(h=(a=t.chars[i].data.shapes[0].it).length,e=0;e<h;e+=1)(o=a[e].ks.k).__converted||(s(a[e].ks.k),o.__converted=!0)}}),a=function(){var t=[4,1,9];function i(t){var e,s,r,n=t.length;for(e=0;e<n;e+=1)if("gr"===t[e].ty)i(t[e].it);else if("fl"===t[e].ty||"st"===t[e].ty)if(t[e].c.k&&t[e].c.k[0].i)for(r=t[e].c.k.length,s=0;s<r;s+=1)t[e].c.k[s].s&&(t[e].c.k[s].s[0]/=255,t[e].c.k[s].s[1]/=255,t[e].c.k[s].s[2]/=255,t[e].c.k[s].s[3]/=255),t[e].c.k[s].e&&(t[e].c.k[s].e[0]/=255,t[e].c.k[s].e[1]/=255,t[e].c.k[s].e[2]/=255,t[e].c.k[s].e[3]/=255);else t[e].c.k[0]/=255,t[e].c.k[1]/=255,t[e].c.k[2]/=255,t[e].c.k[3]/=255}function e(t){var e,s=t.length;for(e=0;e<s;e+=1)4===t[e].ty&&i(t[e].shapes)}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var s,n=i.assets.length;for(s=0;s<n;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),f=function(){var t=[4,4,18];function i(t){var e,s,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)t[e].ks.k.c=t[e].closed;else for(r=t[e].ks.k.length,s=0;s<r;s+=1)t[e].ks.k[s].s&&(t[e].ks.k[s].s[0].c=t[e].closed),t[e].ks.k[s].e&&(t[e].ks.k[s].e[0].c=t[e].closed);else"gr"===t[e].ty&&i(t[e].it)}function e(t){var e,s,r,n,h,o,a=t.length;for(s=0;s<a;s+=1){if((e=t[s]).hasMask){var f=e.masksProperties;for(n=f.length,r=0;r<n;r+=1)if(f[r].pt.k.i)f[r].pt.k.c=f[r].cl;else for(o=f[r].pt.k.length,h=0;h<o;h+=1)f[r].pt.k[h].s&&(f[r].pt.k[h].s[0].c=f[r].cl),f[r].pt.k[h].e&&(f[r].pt.k[h].e[0].c=f[r].cl)}4===e.ty&&i(e.shapes)}}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var s,n=i.assets.length;for(s=0;s<n;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),c={completeData:function(i){i.__complete||(a(i),h(i),o(i),f(i),t(i.layers,i.assets),i.__complete=!0)}};return c.checkColors=a,c.checkChars=o,c.checkShapes=f,c.completeLayers=t,c}var dataManager=dataFunctionManager();function getFontProperties(t){for(var i=t.fStyle?t.fStyle.split(" "):[],e="normal",s="normal",r=i.length,n=0;n<r;n+=1)switch(i[n].toLowerCase()){case"italic":s="italic";break;case"bold":e="700";break;case"black":e="900";break;case"medium":e="500";break;case"regular":case"normal":e="400";break;case"light":case"thin":e="200"}return{style:s,weight:t.fWeight||e}}var FontManager=function(){var t={w:0,size:0,shapes:[]},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var e=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],s=[65039,8205];function r(t,i){var e=createTag("span");e.setAttribute("aria-hidden",!0),e.style.fontFamily=i;var s=createTag("span");s.innerText="giItT1WQy@!-/#",e.style.position="absolute",e.style.left="-10000px",e.style.top="-10000px",e.style.fontSize="300px",e.style.fontVariant="normal",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="0",e.appendChild(s),document.body.appendChild(e);var r=s.offsetWidth;return s.style.fontFamily=function(t){var i,e=t.split(","),s=e.length,r=[];for(i=0;i<s;i+=1)"sans-serif"!==e[i]&&"monospace"!==e[i]&&r.push(e[i]);return r.join(",")}(t)+", "+i,{node:s,w:r,parent:e}}function n(t,i){var e=createNS("text");e.style.fontSize="100px";var s=getFontProperties(i);return e.setAttribute("font-family",i.fFamily),e.setAttribute("font-style",s.style),e.setAttribute("font-weight",s.weight),e.textContent="1",i.fClass?(e.style.fontFamily="inherit",e.setAttribute("class",i.fClass)):e.style.fontFamily=i.fFamily,t.appendChild(e),createTag("canvas").getContext("2d").font=i.fWeight+" "+i.fStyle+" 100px "+i.fFamily,e}var h=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return h.isModifier=function(t,i){var s=t.toString(16)+i.toString(16);return-1!==e.indexOf(s)},h.isZeroWidthJoiner=function(t,i){return i?t===s[0]&&i===s[1]:t===s[1]},h.isCombinedCharacter=function(t){return-1!==i.indexOf(t)},h.prototype={addChars:function(t){if(t){var i;this.chars||(this.chars=[]);var e,s,r=t.length,n=this.chars.length;for(i=0;i<r;i+=1){for(e=0,s=!1;e<n;)this.chars[e].style===t[i].style&&this.chars[e].fFamily===t[i].fFamily&&this.chars[e].ch===t[i].ch&&(s=!0),e+=1;s||(this.chars.push(t[i]),n+=1)}}},addFonts:function(t,i){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var e,s=t.list,h=s.length,o=h;for(e=0;e<h;e+=1){var a,f,c=!0;if(s[e].loaded=!1,s[e].monoCase=r(s[e].fFamily,"monospace"),s[e].sansCase=r(s[e].fFamily,"sans-serif"),s[e].fPath){if("p"===s[e].fOrigin||3===s[e].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[e].fFamily+'"], style[f-origin="3"][f-family="'+s[e].fFamily+'"]')).length>0&&(c=!1),c){var u=createTag("style");u.setAttribute("f-forigin",s[e].fOrigin),u.setAttribute("f-origin",s[e].origin),u.setAttribute("f-family",s[e].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+s[e].fFamily+"; font-style: normal; src: url('"+s[e].fPath+"');}",i.appendChild(u)}}else if("g"===s[e].fOrigin||1===s[e].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),f=0;f<a.length;f+=1)-1!==a[f].href.indexOf(s[e].fPath)&&(c=!1);if(c){var l=createTag("link");l.setAttribute("f-forigin",s[e].fOrigin),l.setAttribute("f-origin",s[e].origin),l.type="text/css",l.rel="stylesheet",l.href=s[e].fPath,document.body.appendChild(l)}}else if("t"===s[e].fOrigin||2===s[e].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),f=0;f<a.length;f+=1)s[e].fPath===a[f].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",s[e].fOrigin),p.setAttribute("f-origin",s[e].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",s[e].fPath),i.appendChild(p)}}}else s[e].loaded=!0,o-=1;s[e].helper=n(i,s[e]),s[e].cache={},this.fonts.push(s[e])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(i,e,s){for(var r=0,n=this.chars.length;r<n;){if(this.chars[r].ch===i&&this.chars[r].style===e&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return("string"==typeof i&&13!==i.charCodeAt(0)||!i)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",i,e,s)),t},getFontByName:function(t){for(var i=0,e=this.fonts.length;i<e;){if(this.fonts[i].fName===t)return this.fonts[i];i+=1}return this.fonts[0]},measureText:function(t,i,e){var s=this.getFontByName(i),r=t.charCodeAt(0);if(!s.cache[r+1]){var n=s.helper;if(" "===t){n.textContent="|"+t+"|";var h=n.getComputedTextLength();n.textContent="||";var o=n.getComputedTextLength();s.cache[r+1]=(h-o)/100}else n.textContent=t,s.cache[r+1]=n.getComputedTextLength()/100}return s.cache[r+1]*e},checkLoadedFonts:function(){var t,i=this.fonts.length,e=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?e-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:((this.fonts[t].monoCase.node.offsetWidth!==this.fonts[t].monoCase.w||this.fonts[t].sansCase.node.offsetWidth!==this.fonts[t].sansCase.w)&&(e-=1,this.fonts[t].loaded=!0),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==e&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},h}(),PropertyFactory=function(){var t=initialDefaultFrame,i=Math.abs;function e(t,i){var e,r=this.offsetTime;"multidimensional"===this.propType&&(e=createTypedArray("float32",this.pv.length));for(var n,h,o,a,f,c,u,l,p=i.lastIndex,d=p,m=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[d],h=this.keyframes[d+1],d===m-1&&t>=h.t-r){n.h&&(n=h),p=0;break}if(h.t-r>t){p=d;break}d<m-1?d+=1:(p=0,y=!1)}var v,g,P,S,E,M,b,x,w,I,k=h.t-r,F=n.t-r;if(n.to){n.bezierData||(n.bezierData=bez.buildBezierData(n.s,h.s||n.e,n.to,n.ti));var T=n.bezierData;if(t>=k||t<F){var A=t>=k?T.points.length-1:0;for(a=T.points[A].point.length,o=0;o<a;o+=1)e[o]=T.points[A].point[o]}else{n.__fnct?l=n.__fnct:(l=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,n.__fnct=l),f=l((t-F)/(k-F));var G,R=T.segmentLength*f,V=i.lastFrame<t&&i._lastKeyframeIndex===d?i._lastAddedLength:0;for(u=i.lastFrame<t&&i._lastKeyframeIndex===d?i._lastPoint:0,y=!0,c=T.points.length;y;){if(V+=T.points[u].partialLength,0===R||0===f||u===T.points.length-1){for(a=T.points[u].point.length,o=0;o<a;o+=1)e[o]=T.points[u].point[o];break}if(R>=V&&R<V+T.points[u+1].partialLength){for(G=(R-V)/T.points[u+1].partialLength,a=T.points[u].point.length,o=0;o<a;o+=1)e[o]=T.points[u].point[o]+(T.points[u+1].point[o]-T.points[u].point[o])*G;break}u<c-1?u+=1:y=!1}i._lastPoint=u,i._lastAddedLength=V-T.points[u].partialLength,i._lastKeyframeIndex=d}}else{var B;if(m=n.s.length,v=h.s||n.e,this.sh&&1!==n.h)if(t>=k)e[0]=v[0],e[1]=v[1],e[2]=v[2];else if(t<=F)e[0]=n.s[0],e[1]=n.s[1],e[2]=n.s[2];else{g=e,S=(P=function(t,i,e){var s,r,n,h,o,a=[],f=t[0],c=t[1],u=t[2],l=t[3],p=i[0],d=i[1],m=i[2],y=i[3];return(r=f*p+c*d+u*m+l*y)<0&&(r=-r,p=-p,d=-d,m=-m,y=-y),1-r>1e-6?(s=Math.acos(r),n=Math.sin(s),h=Math.sin((1-e)*s)/n,o=Math.sin(e*s)/n):(h=1-e,o=e),a[0]=h*f+o*p,a[1]=h*c+o*d,a[2]=h*u+o*m,a[3]=h*l+o*y,a}(s(n.s),s(v),(t-F)/(k-F)))[0],E=P[1],M=P[2],b=P[3],x=Math.atan2(2*E*b-2*S*M,1-2*E*E-2*M*M),w=Math.asin(2*S*E+2*M*b),I=Math.atan2(2*S*b-2*E*M,1-2*S*S-2*M*M),g[0]=x/degToRads,g[1]=w/degToRads,g[2]=I/degToRads}else for(d=0;d<m;d+=1)1!==n.h&&(t>=k?f=1:t<F?f=0:(n.o.x.constructor===Array?(n.__fnct||(n.__fnct=[]),n.__fnct[d]?l=n.__fnct[d]:(l=BezierFactory.getBezierEasing(void 0===n.o.x[d]?n.o.x[0]:n.o.x[d],void 0===n.o.y[d]?n.o.y[0]:n.o.y[d],void 0===n.i.x[d]?n.i.x[0]:n.i.x[d],void 0===n.i.y[d]?n.i.y[0]:n.i.y[d]).get,n.__fnct[d]=l)):n.__fnct?l=n.__fnct:(l=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y).get,n.__fnct=l),f=l((t-F)/(k-F)))),v=h.s||n.e,B=1===n.h?n.s[d]:n.s[d]+(v[d]-n.s[d])*f,"multidimensional"===this.propType?e[d]=B:e=B}return i.lastIndex=p,e}function s(t){var i=t[0]*degToRads,e=t[1]*degToRads,s=t[2]*degToRads,r=Math.cos(i/2),n=Math.cos(e/2),h=Math.cos(s/2),o=Math.sin(i/2),a=Math.sin(e/2),f=Math.sin(s/2);return[o*a*h+r*n*f,o*n*h+r*a*f,r*a*h-o*n*f,r*n*h-o*a*f]}function r(){var i=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=s&&i>=s||this._caching.lastFrame<e&&i<e))){this._caching.lastFrame>=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(i,this._caching);this.pv=r}return this._caching.lastFrame=i,this.pv}function n(t){var e;if("unidimensional"===this.propType)i(this.v-(e=t*this.mult))>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,r=this.v.length;s<r;)i(this.v[s]-(e=t[s]*this.mult))>1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}function h(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var i=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function a(t,i,e,s){this.propType="unidimensional",this.mult=e||1,this.data=i,this.v=e?i.k*e:i.k,this.pv=i.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=h,this.setVValue=n,this.addEffect=o}function f(t,i,e,s){var r;this.propType="multidimensional",this.mult=e||1,this.data=i,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=i.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),r=0;r<a;r+=1)this.v[r]=i.k[r]*this.mult,this.pv[r]=i.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=h,this.setVValue=n,this.addEffect=o}function c(i,s,a,f){this.propType="unidimensional",this.keyframes=s.k,this.offsetTime=i.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=a||1,this.elem=i,this.container=f,this.comp=i.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=h,this.setVValue=n,this.interpolateValue=e,this.effectsSequence=[r.bind(this)],this.addEffect=o}function u(i,s,a,f){var c;this.propType="multidimensional";var u,l,p,d,m=s.k.length;for(c=0;c<m-1;c+=1)s.k[c].to&&s.k[c].s&&s.k[c+1]&&s.k[c+1].s&&(l=s.k[c+1].s,p=s.k[c].to,d=s.k[c].ti,(2===(u=s.k[c].s).length&&(u[0]!==l[0]||u[1]!==l[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],u[0]+p[0],u[1]+p[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],l[0]+d[0],l[1]+d[1])||3===u.length&&(u[0]!==l[0]||u[1]!==l[1]||u[2]!==l[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],u[0]+p[0],u[1]+p[1],u[2]+p[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],l[0]+d[0],l[1]+d[1],l[2]+d[2]))&&(s.k[c].to=null,s.k[c].ti=null),u[0]===l[0]&&u[1]===l[1]&&0===p[0]&&0===p[1]&&0===d[0]&&0===d[1]&&(2===u.length||u[2]===l[2]&&0===p[2]&&0===d[2])&&(s.k[c].to=null,s.k[c].ti=null));this.effectsSequence=[r.bind(this)],this.data=s,this.keyframes=s.k,this.offsetTime=i.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=i,this.container=f,this.comp=i.comp,this.getValue=h,this.setVValue=n,this.interpolateValue=e,this.frameId=-1;var y=s.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),c=0;c<y;c+=1)this.v[c]=t,this.pv[c]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(t,i,e,s,r){var n;if(i.k.length)if("number"==typeof i.k[0])n=new f(t,i,s,r);else switch(e){case 0:n=new c(t,i,s,r);break;case 1:n=new u(t,i,s,r)}else n=new a(t,i,s,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n}}}(),TransformPropertyFactory=function(){var t=[0,0];function i(t,i,e){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(e||t),i.p&&i.p.s?(this.px=PropertyFactory.getProp(t,i.p.x,0,0,this),this.py=PropertyFactory.getProp(t,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(t,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(t,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,i.rz,0,degToRads,this),i.or.k[0].ti){var s,r=i.or.k.length;for(s=0;s<r;s+=1)i.or.k[s].to=null,i.or.k[s].ti=null}this.or=PropertyFactory.getProp(t,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(t,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,i.s||{k:[100,100,100]},1,.01,this),this.o=i.o?PropertyFactory.getProp(t,i.o,0,.01,t):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return i.prototype={applyToMatrix:function(t){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,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?t.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(i){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||i){var e;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,r;if(e=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/e,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/e,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/e,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/e,0)):(s=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],r=[];var n=this.px,h=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(s[0]=n.getValueAtTime((n.keyframes[0].t+.01)/e,0),s[1]=h.getValueAtTime((h.keyframes[0].t+.01)/e,0),r[0]=n.getValueAtTime(n.keyframes[0].t/e,0),r[1]=h.getValueAtTime(h.keyframes[0].t/e,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(s[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/e,0),s[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/e,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/e,0),r[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/e,0)):(s=[n.pv,h.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/e,n.offsetTime),r[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/e,h.offsetTime))}else s=r=t;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.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],i),i.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,s){return new i(t,e,s)}}}();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,i){this.c=t,this.setLength(i);for(var e=0;e<i;)this.v[e]=pointPool.newElement(),this.o[e]=pointPool.newElement(),this.i[e]=pointPool.newElement(),e+=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,i,e,s,r){var n;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),e){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[s]||n[s]&&!r)&&(n[s]=pointPool.newElement()),n[s][0]=t,n[s][1]=i},ShapePath.prototype.setTripleAt=function(t,i,e,s,r,n,h,o){this.setXYAt(t,i,"v",h,o),this.setXYAt(e,s,"o",h,o),this.setXYAt(r,n,"i",h,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var i=this.v,e=this.o,s=this.i,r=0;this.c&&(t.setTripleAt(i[0][0],i[0][1],s[0][0],s[0][1],e[0][0],e[0][1],0,!1),r=1);var n,h=this._length-1,o=this._length;for(n=r;n<o;n+=1)t.setTripleAt(i[h][0],i[h][1],s[h][0],s[h][1],e[h][0],e[h][1],n,!1),h-=1;return t};var ShapePropertyFactory=function(){var t=-999999;function i(t,i,e){var s,r,n,h,o,a,f,c,u=e.lastIndex,l=this.keyframes;if(t<l[0].t-this.offsetTime)s=l[0].s[0],n=!0,u=0;else if(t>=l[l.length-1].t-this.offsetTime)s=l[l.length-1].s?l[l.length-1].s[0]:l[l.length-2].e[0],n=!0;else{for(var p,d,m=u,y=l.length-1,v=!0;v&&(p=l[m],!((d=l[m+1]).t-this.offsetTime>t));)m<y-1?m+=1:v=!1;if(u=m,!(n=1===p.h)){if(t>=d.t-this.offsetTime)c=1;else if(t<p.t-this.offsetTime)c=0;else{var g;p.__fnct?g=p.__fnct:(g=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,p.__fnct=g),c=g((t-(p.t-this.offsetTime))/(d.t-this.offsetTime-(p.t-this.offsetTime)))}r=d.s?d.s[0]:p.e[0]}s=p.s[0]}for(a=i._length,f=s.i[0].length,e.lastIndex=u,h=0;h<a;h+=1)for(o=0;o<f;o+=1)i.i[h][o]=n?s.i[h][o]:s.i[h][o]+(r.i[h][o]-s.i[h][o])*c,i.o[h][o]=n?s.o[h][o]:s.o[h][o]+(r.o[h][o]-s.o[h][o])*c,i.v[h][o]=n?s.v[h][o]:s.v[h][o]+(r.v[h][o]-s.v[h][o])*c}function e(){var i=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<e&&i<e||r>s&&i>s)||(this._caching.lastIndex=r<i?this._caching.lastIndex:0,this.interpolateShape(i,this.pv,this._caching)),this._caching.lastFrame=i,this.pv}function s(){this.paths=this.localShapeCollection}function r(t){(function(t,i){if(t._length!==i._length||t.c!==i.c)return!1;var e,s=t._length;for(e=0;e<s;e+=1)if(t.v[e][0]!==i.v[e][0]||t.v[e][1]!==i.v[e][1]||t.o[e][0]!==i.o[e][0]||t.o[e][1]!==i.o[e][1]||t.i[e][0]!==i.i[e][0]||t.i[e][1]!==i.i[e][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,i;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e=this.effectsSequence.length;for(i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function h(t,i,e){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=i,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===e?i.pt.k:i.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function a(i,r,n){this.propType="shape",this.comp=i.comp,this.elem=i,this.container=i,this.offsetTime=i.data.st,this.keyframes=3===n?r.pt.k:r.ks.k,this.k=!0,this.kf=!0;var h=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,h),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[e.bind(this)]}h.prototype.interpolateShape=i,h.prototype.getValue=n,h.prototype.setVValue=r,h.prototype.addEffect=o,a.prototype.getValue=n,a.prototype.interpolateShape=i,a.prototype.setVValue=r,a.prototype.addEffect=o;var f=function(){var t=roundCorner;function i(t,i){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=i.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.s=PropertyFactory.getProp(t,i.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return i.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var i=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,n=3!==this.d,h=this.v;h.v[0][0]=i,h.v[0][1]=e-r,h.v[1][0]=n?i+s:i-s,h.v[1][1]=e,h.v[2][0]=i,h.v[2][1]=e+r,h.v[3][0]=n?i-s:i+s,h.v[3][1]=e,h.i[0][0]=n?i-s*t:i+s*t,h.i[0][1]=e-r,h.i[1][0]=n?i+s:i-s,h.i[1][1]=e-r*t,h.i[2][0]=n?i+s*t:i-s*t,h.i[2][1]=e+r,h.i[3][0]=n?i-s:i+s,h.i[3][1]=e+r*t,h.o[0][0]=n?i+s*t:i-s*t,h.o[0][1]=e-r,h.o[1][0]=n?i+s:i-s,h.o[1][1]=e+r*t,h.o[2][0]=n?i-s*t:i+s*t,h.o[2][1]=e+r,h.o[3][0]=n?i-s:i+s,h.o[3][1]=e-r*t}},extendPrototype([DynamicPropertyContainer],i),i}(),c=function(){function t(t,i){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=i,this.frameId=-1,this.d=i.d,this.initDynamicPropertyContainer(t),1===i.sy?(this.ir=PropertyFactory.getProp(t,i.ir,0,0,this),this.is=PropertyFactory.getProp(t,i.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,i.pt,0,0,this),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.r=PropertyFactory.getProp(t,i.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,i.or,0,0,this),this.os=PropertyFactory.getProp(t,i.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,i,e,s,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,h=!0,o=this.or.v,a=this.ir.v,f=this.os.v,c=this.is.v,u=2*Math.PI*o/(2*r),l=2*Math.PI*a/(2*r),p=-Math.PI/2;p+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){e=h?f:c,s=h?u:l;var m=(i=h?o:a)*Math.cos(p),y=i*Math.sin(p),v=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),g=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);this.v.setTripleAt(m+=+this.p.v[0],y+=+this.p.v[1],m-v*s*e*d,y-g*s*e*d,m+v*s*e*d,y+g*s*e*d,t,!0),h=!h,p+=n*d}},convertPolygonToPath:function(){var t,i=Math.floor(this.pt.v),e=2*Math.PI/i,s=this.or.v,r=this.os.v,n=2*Math.PI*s/(4*i),h=.5*-Math.PI,o=3===this.data.d?-1:1;for(h+=this.r.v,this.v._length=0,t=0;t<i;t+=1){var a=s*Math.cos(h),f=s*Math.sin(h),c=0===a&&0===f?0:f/Math.sqrt(a*a+f*f),u=0===a&&0===f?0:-a/Math.sqrt(a*a+f*f);this.v.setTripleAt(a+=+this.p.v[0],f+=+this.p.v[1],a-c*n*r*o,f-u*n*r*o,a+c*n*r*o,f+u*n*r*o,t,!0),h+=e*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function t(t,i){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=i.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.s=PropertyFactory.getProp(t,i.s,1,0,this),this.r=PropertyFactory.getProp(t,i.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],i=this.p.v[1],e=this.s.v[0]/2,s=this.s.v[1]/2,r=bmMin(e,s,this.r.v),n=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+e,i-s+r,t+e,i-s+r,t+e,i-s+n,0,!0),this.v.setTripleAt(t+e,i+s-r,t+e,i+s-n,t+e,i+s-r,1,!0),0!==r?(this.v.setTripleAt(t+e-r,i+s,t+e-r,i+s,t+e-n,i+s,2,!0),this.v.setTripleAt(t-e+r,i+s,t-e+n,i+s,t-e+r,i+s,3,!0),this.v.setTripleAt(t-e,i+s-r,t-e,i+s-r,t-e,i+s-n,4,!0),this.v.setTripleAt(t-e,i-s+r,t-e,i-s+n,t-e,i-s+r,5,!0),this.v.setTripleAt(t-e+r,i-s,t-e+r,i-s,t-e+n,i-s,6,!0),this.v.setTripleAt(t+e-r,i-s,t+e-n,i-s,t+e-r,i-s,7,!0)):(this.v.setTripleAt(t-e,i+s,t-e+n,i+s,t-e,i+s,2),this.v.setTripleAt(t-e,i-s,t-e,i-s+n,t-e,i-s,3))):(this.v.setTripleAt(t+e,i-s+r,t+e,i-s+n,t+e,i-s+r,0,!0),0!==r?(this.v.setTripleAt(t+e-r,i-s,t+e-r,i-s,t+e-n,i-s,1,!0),this.v.setTripleAt(t-e+r,i-s,t-e+n,i-s,t-e+r,i-s,2,!0),this.v.setTripleAt(t-e,i-s+r,t-e,i-s+r,t-e,i-s+n,3,!0),this.v.setTripleAt(t-e,i+s-r,t-e,i+s-n,t-e,i+s-r,4,!0),this.v.setTripleAt(t-e+r,i+s,t-e+r,i+s,t-e+n,i+s,5,!0),this.v.setTripleAt(t+e-r,i+s,t+e-n,i+s,t+e-r,i+s,6,!0),this.v.setTripleAt(t+e,i+s-r,t+e,i+s-r,t+e,i+s-n,7,!0)):(this.v.setTripleAt(t-e,i-s,t-e+n,i-s,t-e,i-s,1,!0),this.v.setTripleAt(t-e,i+s,t-e,i+s-n,t-e,i+s,2,!0),this.v.setTripleAt(t+e,i+s,t+e-n,i+s,t+e,i+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,i,e){var s;return 3===e||4===e?s=(3===e?i.pt:i.ks).k.length?new a(t,i,e):new h(t,i,e):5===e?s=new u(t,i):6===e?s=new f(t,i):7===e&&(s=new c(t,i)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return h},getKeyframedConstructorFunction:function(){return a}}}(),ShapeModifiers=(ob={},modifiers={},ob.registerModifier=function(t,i){modifiers[t]||(modifiers[t]=i)},ob.getModifier=function(t,i,e){return new modifiers[t](i,e)},ob),ob,modifiers;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,i,e,s){var r;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=e,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);var n,h=i.length||0;for(r=0;r<h;r+=1)n=PropertyFactory.getProp(t,i[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:i[r].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,i,e){this.data=i,this.c=createTypedArray("uint8c",4*i.p);var s=i.k.k[0].s?i.k.k[0].s.length-4*i.p:i.k.k.length-4*i.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(e),this.prop=PropertyFactory.getProp(t,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var i={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,i){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,i){this.s=PropertyFactory.getProp(t,i.s,0,.01,this),this.e=PropertyFactory.getProp(t,i.e,0,.01,this),this.o=PropertyFactory.getProp(t,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,i,e,s,r){var n=[];i<=1?n.push({s:t,e:i}):t>=1?n.push({s:t-1,e:i-1}):(n.push({s:t,e:1}),n.push({s:0,e:i-1}));var h,o,a=[],f=n.length;for(h=0;h<f;h+=1)(o=n[h]).e*r<s||o.s*r>s+e||a.push([o.s*r<=s?0:(o.s*r-s)/e,o.e*r>=s+e?1:(o.e*r-s)/e]);return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(t){var i,e=t.length;for(i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var i,e,s,r;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),(i=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(e=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var h=i;i=e,e=h}i=1e-4*Math.round(1e4*i),e=1e-4*Math.round(1e4*e),this.sValue=i,this.eValue=e}else i=this.sValue,e=this.eValue;var o,a,f,c,u,l=this.shapes.length,p=0;if(e===i)for(r=0;r<l;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===e&&0===i||0===e&&1===i){if(this._mdf)for(r=0;r<l;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var d,m,y=[];for(r=0;r<l;r+=1)if((d=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(a=(s=d.shape.paths)._length,u=0,!d.shape._mdf&&d.pathsData.length)u=d.totalShapeLength;else{for(f=this.releasePathsData(d.pathsData),o=0;o<a;o+=1)c=bez.getSegmentsLength(s.shapes[o]),f.push(c),u+=c.totalLength;d.totalShapeLength=u,d.pathsData=f}p+=u,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var v,g=i,P=e,S=0;for(r=l-1;r>=0;r-=1)if((d=this.shapes[r]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&l>1?(v=this.calculateShapeEdges(i,e,d.totalShapeLength,S,p),S+=d.totalShapeLength):v=[[g,P]],a=v.length,o=0;o<a;o+=1){g=v[o][0],P=v[o][1],y.length=0,P<=1?y.push({s:d.totalShapeLength*g,e:d.totalShapeLength*P}):g>=1?y.push({s:d.totalShapeLength*(g-1),e:d.totalShapeLength*(P-1)}):(y.push({s:d.totalShapeLength*g,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(P-1)}));var E=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var M=E.pop();this.addPaths(E,m),E=this.addShapes(d,y[1],M)}else this.addPaths(E,m),E=this.addShapes(d,y[1]);this.addPaths(E,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,i){var e,s=t.length;for(e=0;e<s;e+=1)i.addShape(t[e])},TrimModifier.prototype.addSegment=function(t,i,e,s,r,n,h){r.setXYAt(i[0],i[1],"o",n),r.setXYAt(e[0],e[1],"i",n+1),h&&r.setXYAt(t[0],t[1],"v",n),r.setXYAt(s[0],s[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(t,i,e,s){i.setXYAt(t[1],t[5],"o",e),i.setXYAt(t[2],t[6],"i",e+1),s&&i.setXYAt(t[0],t[4],"v",e),i.setXYAt(t[3],t[7],"v",e+1)},TrimModifier.prototype.addShapes=function(t,i,e){var s,r,n,h,o,a,f,c,u=t.pathsData,l=t.shape.paths.shapes,p=t.shape.paths._length,d=0,m=[],y=!0;for(e?(o=e._length,c=e._length):(e=shapePool.newElement(),o=0,c=0),m.push(e),s=0;s<p;s+=1){for(a=u[s].lengths,e.c=l[s].c,n=l[s].c?a.length:a.length+1,r=1;r<n;r+=1)if(d+(h=a[r-1]).addedLength<i.s)d+=h.addedLength,e.c=!1;else{if(d>i.e){e.c=!1;break}i.s<=d&&i.e>=d+h.addedLength?(this.addSegment(l[s].v[r-1],l[s].o[r-1],l[s].i[r],l[s].v[r],e,o,y),y=!1):(f=bez.getNewSegment(l[s].v[r-1],l[s].v[r],l[s].o[r-1],l[s].i[r],(i.s-d)/h.addedLength,(i.e-d)/h.addedLength,a[r-1]),this.addSegmentFromArray(f,e,o,y),y=!1,e.c=!1),d+=h.addedLength,o+=1}if(l[s].c&&a.length){if(h=a[r-1],d<=i.e){var v=a[r-1].addedLength;i.s<=d&&i.e>=d+v?(this.addSegment(l[s].v[r-1],l[s].o[r-1],l[s].i[0],l[s].v[0],e,o,y),y=!1):(f=bez.getNewSegment(l[s].v[r-1],l[s].v[0],l[s].o[r-1],l[s].i[0],(i.s-d)/v,(i.e-d)/v,a[r-1]),this.addSegmentFromArray(f,e,o,y),y=!1,e.c=!1)}else e.c=!1;d+=h.addedLength,o+=1}if(e._length&&(e.setXYAt(e.v[c][0],e.v[c][1],"i",c),e.setXYAt(e.v[e._length-1][0],e.v[e._length-1][1],"o",e._length-1)),d>i.e)break;s<p-1&&(e=shapePool.newElement(),y=!0,m.push(e),o=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,i){var e,s=shapePool.newElement();s.c=t.c;var r,n,h,o,a,f,c,u,l,p,d,m,y=t._length,v=0;for(e=0;e<y;e+=1)n=t.i[e],(r=t.v[e])[0]===(h=t.o[e])[0]&&r[1]===h[1]&&r[0]===n[0]&&r[1]===n[1]?0!==e&&e!==y-1||t.c?(o=0===e?t.v[y-1]:t.v[e-1],f=(a=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(a/2,i)/a:0,s.setTripleAt(c=d=r[0]+(o[0]-r[0])*f,u=m=r[1]-(r[1]-o[1])*f,c-(c-r[0])*roundCorner,u-(u-r[1])*roundCorner,d,m,v),v+=1,o=e===y-1?t.v[0]:t.v[e+1],f=(a=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(a/2,i)/a:0,s.setTripleAt(c=l=r[0]+(o[0]-r[0])*f,u=p=r[1]+(o[1]-r[1])*f,l,p,d=c-(c-r[0])*roundCorner,m=u-(u-r[1])*roundCorner,v),v+=1):(s.setTripleAt(r[0],r[1],h[0],h[1],n[0],n[1],v),v+=1):(s.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],v),v+=1);return s},RoundCornersModifier.prototype.processShapes=function(t){var i,e,s,r,n,h,o=this.shapes.length,a=this.rd.v;if(0!==a)for(e=0;e<o;e+=1){if(h=(n=this.shapes[e]).localShapeCollection,n.shape._mdf||this._mdf||t)for(h.releaseShapes(),n.shape._mdf=!0,i=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)h.addShape(this.processPath(i[s],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,i){var e=i/100,s=[0,0],r=t._length,n=0;for(n=0;n<r;n+=1)s[0]+=t.v[n][0],s[1]+=t.v[n][1];s[0]/=r,s[1]/=r;var h=shapePool.newElement();for(h.c=t.c,n=0;n<r;n+=1)h.setTripleAt(t.v[n][0]+(s[0]-t.v[n][0])*e,t.v[n][1]+(s[1]-t.v[n][1])*e,t.o[n][0]+(s[0]-t.o[n][0])*-e,t.o[n][1]+(s[1]-t.o[n][1])*-e,t.i[n][0]+(s[0]-t.i[n][0])*-e,t.i[n][1]+(s[1]-t.i[n][1])*-e,n);return h},PuckerAndBloatModifier.prototype.processShapes=function(t){var i,e,s,r,n,h,o=this.shapes.length,a=this.amount.v;if(0!==a)for(e=0;e<o;e+=1){if(h=(n=this.shapes[e]).localShapeCollection,n.shape._mdf||this._mdf||t)for(h.releaseShapes(),n.shape._mdf=!0,i=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)h.addShape(this.processPath(i[s],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,i.c,0,null,this),this.o=PropertyFactory.getProp(t,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,i.tr,this),this.so=PropertyFactory.getProp(t,i.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,i,e,s,r,n){var h=n?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),a=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*h*r,s.p.v[1]*h*r,s.p.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.rotate(-s.r.v*h*r),i.translate(s.a.v[0],s.a.v[1],s.a.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.scale(n?1/o:o,n?1/a:a),e.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,i,e,s){for(this.elem=t,this.arr=i,this.pos=e,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,i[e]);e>0;)this._elements.unshift(i[e-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){var i=JSON.parse(JSON.stringify(t));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(t,i){var e,s=t.length;for(e=0;e<s;e+=1)t[e]._render=i,"gr"===t[e].ty&&this.changeGroupRender(t[e].it,i)},RepeaterModifier.prototype.processShapes=function(t){var i,e,s,r,n,h=!1;if(this._mdf||t){var o,a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),h=!0}for(n=0,s=0;s<=this._groups.length-1;s+=1){if(this._groups[s]._render=o=n<a,this.changeGroupRender(this._groups[s].it,o),!o){var c=this.elemsData[s].it,u=c[c.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}n+=1}this._currentCopies=a;var l=this.o.v,p=l%1,d=l>0?Math.floor(l):Math.ceil(l),m=this.pMatrix.props,y=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var g,P,S=0;if(l>0){for(;S<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),S+=p)}else if(l<0){for(;S>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),S-=p)}for(s=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(P=(e=(i=this.elemsData[s].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+s/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==S){for((0!==s&&1===r||s!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),g=0;g<P;g+=1)e[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<P;g+=1)e[g]=this.matrix.props[g];S+=1,n-=1,s+=r}}else for(n=this._currentCopies,s=0,r=1;n;)e=(i=this.elemsData[s].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,n-=1,s+=r;return h},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var i=0,e=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),i=0;i<e;i+=1)"o"!==this.dataProps[i].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,i){for(var e=0,s=this.o.length/2;e<s;){if(Math.abs(t[4*e]-t[4*i+2*e])>.01)return!1;e+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,i=this.data.k.k.length;t<i;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var i,e,s,r=4*this.data.p;for(i=0;i<r;i+=1)e=i%4==0?100:255,s=Math.round(this.prop.v[i]*e),this.c[i]!==s&&(this.c[i]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,i=4*this.data.p;i<r;i+=1)e=i%2==0?100:1,s=i%2==0?Math.round(100*this.prop.v[i]):this.prop.v[i],this.o[i-4*this.data.p]!==s&&(this.o[i-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,i,e,s){if(0===i)return"";var r,n=t.o,h=t.i,o=t.v,a=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<i;r+=1)a+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(h[r][0],h[r][1])+" "+s.applyToPointStringified(o[r][0],o[r][1]);return e&&i&&(a+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(h[0][0],h[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),a+="z"),a},audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].pause()},resume:function(){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].resume()},setRate:function(t){var i,e=this.audios.length;for(i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):Howl?new Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var i=t.getContext("2d");return i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1),t}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function e(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,i,e){var s="";if(t.e)s=t.p;else if(i){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),s=i+r}else s=e,s+=t.u?t.u:"",s+=t.p;return s}function r(t){var i=0,e=setInterval(function(){(t.getBBox().width||i>500)&&(this._imageLoaded(),clearInterval(e)),i+=1}.bind(this),50)}function n(t){var i={assetData:t},e=s(t,this.assetsPath,this.path);return assetLoader.load(e,function(t){i.img=t,this._footageLoaded()}.bind(this),function(){i.img={},this._footageLoaded()}.bind(this)),i}function h(){this._imageLoaded=i.bind(this),this._footageLoaded=e.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return h.prototype={loadAssets:function(t,i){var e;this.imagesLoadedCb=i;var s=t.length;for(e=0;e<s;e+=1)t[e].layers||(t[e].t&&"seq"!==t[e].t?3===t[e].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[e]))):(this.totalImages+=1,this.images.push(this._createImageData(t[e]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var i=0,e=this.images.length;i<e;){if(this.images[i].assetData===t)return this.images[i].img;i+=1}return null},createImgData:function(i){var e=s(i,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),r.src=e;var n={img:r,assetData:i};return n},createImageData:function(i){var e=s(i,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var n={img:r,assetData:i};return n},imageLoaded:i,footageLoaded:e,setCacheType:function(t,i){"svg"===t?(this._elementHelper=i,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},h}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory={createFilter:function(t,i){var e=createNS("filter");return e.setAttribute("id",t),!0!==i&&(e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%")),e},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}},assetLoader=function(){function t(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(i,e,s){var r,n=new XMLHttpRequest;try{n.responseType="json"}catch(t){}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)r=t(n),e(r);else try{r=t(n),e(r)}catch(t){s&&s(t)}},n.open("GET",i,!0),n.send()}}}();function TextAnimatorProperty(t,i,e){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=i,this._elem=e,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(e)}function TextAnimatorDataProperty(t,i,e){var s={propType:!1},r=PropertyFactory.getProp,n=i.a;this.a={r:n.r?r(t,n.r,0,degToRads,e):s,rx:n.rx?r(t,n.rx,0,degToRads,e):s,ry:n.ry?r(t,n.ry,0,degToRads,e):s,sk:n.sk?r(t,n.sk,0,degToRads,e):s,sa:n.sa?r(t,n.sa,0,degToRads,e):s,s:n.s?r(t,n.s,1,.01,e):s,a:n.a?r(t,n.a,1,0,e):s,o:n.o?r(t,n.o,0,.01,e):s,p:n.p?r(t,n.p,1,0,e):s,sw:n.sw?r(t,n.sw,0,0,e):s,sc:n.sc?r(t,n.sc,1,0,e):s,fc:n.fc?r(t,n.fc,1,0,e):s,fh:n.fh?r(t,n.fh,0,0,e):s,fs:n.fs?r(t,n.fs,0,.01,e):s,fb:n.fb?r(t,n.fb,0,.01,e):s,t:n.t?r(t,n.t,0,0,e):s},this.s=TextSelectorProp.getTextSelectorProp(t,i.s,e),this.s.t=i.s.t}function LetterProps(t,i,e,s,r,n){this.o=t,this.sw=i,this.sc=e,this.fc=s,this.m=r,this.p=n,this._mdf={o:!0,sw:!!i,sc:!!e,fc:!!s,m:!0,p:!0}}function TextProperty(t,i){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=i,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var t,i=this._textData.a.length,e=PropertyFactory.getProp;for(t=0;t<i;t+=1)this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,this._textData.a[t],this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:e(this._elem,this._textData.p.f,0,0,this),l:e(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=e(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,i){if(this.lettersChangedFlag=i,this._mdf||this._isFirstFrame||i||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,s,r,n,h,o,a,f,c,u,l,p,d,m,y,v,g,P,S=this._moreOptions.alignment.v,E=this._animatorsData,M=this._textData,b=this.mHelper,x=this._renderType,w=this.renderedLetters.length,I=t.l;if(this._hasMaskedPath){if(P=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,F=P.v;for(this._pathData.r&&(F=F.reverse()),h={tLength:0,segments:[]},n=F._length-1,v=0,r=0;r<n;r+=1)k=bez.buildBezierData(F.v[r],F.v[r+1],[F.o[r][0]-F.v[r][0],F.o[r][1]-F.v[r][1]],[F.i[r+1][0]-F.v[r+1][0],F.i[r+1][1]-F.v[r+1][1]]),h.tLength+=k.segmentLength,h.segments.push(k),v+=k.segmentLength;r=n,P.v.c&&(k=bez.buildBezierData(F.v[r],F.v[0],[F.o[r][0]-F.v[r][0],F.o[r][1]-F.v[r][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),h.tLength+=k.segmentLength,h.segments.push(k),v+=k.segmentLength),this._pathData.pi=h}if(l=0,u=1,f=0,c=!0,m=(h=this._pathData.pi).segments,(o=this._pathData.f.v)<0&&P.v.c)for(h.tLength<Math.abs(o)&&(o=-Math.abs(o)%h.tLength),u=(d=m[l=m.length-1].points).length-1;o<0;)o+=d[u].partialLength,(u-=1)<0&&(u=(d=m[l-=1].points).length-1);p=(d=m[l].points)[u-1],y=(a=d[u]).partialLength}n=I.length,e=0,s=0;var T,A,G,R,V,B=1.2*t.finalSize*.714,C=!0;G=E.length;var D,N,O,_,L,z,j,H,q,J,U,W,Q=-1,X=o,Y=l,K=u,$=-1,Z="",tt=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,et=0,st=2===t.j?-.5:-1,rt=0,nt=!0;for(r=0;r<n;r+=1)if(I[r].n){for(it&&(it+=et);rt<r;)I[rt].animatorJustifyOffset=it,rt+=1;it=0,nt=!0}else{for(A=0;A<G;A+=1)(T=E[A].a).t.propType&&(nt&&2===t.j&&(et+=T.t.v*st),it+=(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?T.t.v*V[0]*st:T.t.v*V*st);nt=!1}for(it&&(it+=et);rt<r;)I[rt].animatorJustifyOffset=it,rt+=1}for(r=0;r<n;r+=1){if(b.reset(),_=1,I[r].n)e=0,s+=t.yOffset,s+=C?1:0,o=X,C=!1,this._hasMaskedPath&&(p=(d=m[l=Y].points)[(u=K)-1],y=(a=d[u]).partialLength,f=0),Z="",U="",q="",W="",tt=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==I[r].line){switch(t.j){case 1:o+=v-t.lineWidths[I[r].line];break;case 2:o+=(v-t.lineWidths[I[r].line])/2}$=I[r].line}Q!==I[r].ind&&(I[Q]&&(o+=I[Q].extra),o+=I[r].an/2,Q=I[r].ind),o+=S[0]*I[r].an*.005;var ht=0;for(A=0;A<G;A+=1)(T=E[A].a).p.propType&&(ht+=(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?T.p.v[0]*V[0]:T.p.v[0]*V),T.a.propType&&(ht+=(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?T.a.v[0]*V[0]:T.a.v[0]*V);for(c=!0;c;)f+y>=o+ht||!d?(N=p.point[0]+(a.point[0]-p.point[0])*(g=(o+ht-f)/a.partialLength),O=p.point[1]+(a.point[1]-p.point[1])*g,b.translate(-S[0]*I[r].an*.005,-S[1]*B*.01),c=!1):d&&(f+=a.partialLength,(u+=1)>=d.length&&(u=0,m[l+=1]?d=m[l].points:P.v.c?(u=0,d=m[l=0].points):(f-=a.partialLength,d=null)),d&&(p=a,y=(a=d[u]).partialLength));b.translate(-(D=I[r].an/2-I[r].add),0,0)}else b.translate(-(D=I[r].an/2-I[r].add),0,0),b.translate(-S[0]*I[r].an*.005,-S[1]*B*.01,0);for(A=0;A<G;A+=1)(T=E[A].a).t.propType&&(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars),0===e&&0===t.j||(this._hasMaskedPath?o+=V.length?T.t.v*V[0]:T.t.v*V:e+=V.length?T.t.v*V[0]:T.t.v*V));for(t.strokeWidthAnim&&(z=t.sw||0),t.strokeColorAnim&&(L=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(j=[t.fc[0],t.fc[1],t.fc[2]]),A=0;A<G;A+=1)(T=E[A].a).a.propType&&((V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?b.translate(-T.a.v[0]*V[0],-T.a.v[1]*V[1],T.a.v[2]*V[2]):b.translate(-T.a.v[0]*V,-T.a.v[1]*V,T.a.v[2]*V));for(A=0;A<G;A+=1)(T=E[A].a).s.propType&&((V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars)).length?b.scale(1+(T.s.v[0]-1)*V[0],1+(T.s.v[1]-1)*V[1],1):b.scale(1+(T.s.v[0]-1)*V,1+(T.s.v[1]-1)*V,1));for(A=0;A<G;A+=1){if(T=E[A].a,V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars),T.sk.propType&&(V.length?b.skewFromAxis(-T.sk.v*V[0],T.sa.v*V[1]):b.skewFromAxis(-T.sk.v*V,T.sa.v*V)),T.r.propType&&b.rotateZ(V.length?-T.r.v*V[2]:-T.r.v*V),T.ry.propType&&b.rotateY(V.length?T.ry.v*V[1]:T.ry.v*V),T.rx.propType&&b.rotateX(V.length?T.rx.v*V[0]:T.rx.v*V),T.o.propType&&(_+=V.length?(T.o.v*V[0]-_)*V[0]:(T.o.v*V-_)*V),t.strokeWidthAnim&&T.sw.propType&&(z+=V.length?T.sw.v*V[0]:T.sw.v*V),t.strokeColorAnim&&T.sc.propType)for(H=0;H<3;H+=1)L[H]+=V.length?(T.sc.v[H]-L[H])*V[0]:(T.sc.v[H]-L[H])*V;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(H=0;H<3;H+=1)j[H]+=V.length?(T.fc.v[H]-j[H])*V[0]:(T.fc.v[H]-j[H])*V;T.fh.propType&&(j=addHueToRGB(j,V.length?T.fh.v*V[0]:T.fh.v*V)),T.fs.propType&&(j=addSaturationToRGB(j,V.length?T.fs.v*V[0]:T.fs.v*V)),T.fb.propType&&(j=addBrightnessToRGB(j,V.length?T.fb.v*V[0]:T.fb.v*V))}}for(A=0;A<G;A+=1)(T=E[A].a).p.propType&&(V=E[A].s.getMult(I[r].anIndexes[A],M.a[A].s.totalChars),this._hasMaskedPath?V.length?b.translate(0,T.p.v[1]*V[0],-T.p.v[2]*V[1]):b.translate(0,T.p.v[1]*V,-T.p.v[2]*V):V.length?b.translate(T.p.v[0]*V[0],T.p.v[1]*V[1],-T.p.v[2]*V[2]):b.translate(T.p.v[0]*V,T.p.v[1]*V,-T.p.v[2]*V));if(t.strokeWidthAnim&&(q=z<0?0:z),t.strokeColorAnim&&(J="rgb("+Math.round(255*L[0])+","+Math.round(255*L[1])+","+Math.round(255*L[2])+")"),t.fillColorAnim&&t.fc&&(U="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),this._hasMaskedPath){if(b.translate(0,-t.ls),b.translate(0,S[1]*B*.01+s,0),M.p.p){var ot=180*Math.atan((a.point[1]-p.point[1])/(a.point[0]-p.point[0]))/Math.PI;a.point[0]<p.point[0]&&(ot+=180),b.rotate(-ot*Math.PI/180)}b.translate(N,O,0),o-=S[0]*I[r].an*.005,I[r+1]&&Q!==I[r+1].ind&&(o+=I[r].an/2,o+=.001*t.tr*t.finalSize)}else{switch(b.translate(e,s,0),t.ps&&b.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:b.translate(I[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[r].line]),0,0);break;case 2:b.translate(I[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[r].line])/2,0,0)}b.translate(0,-t.ls),b.translate(D,0,0),b.translate(S[0]*I[r].an*.005,S[1]*B*.01,0),e+=I[r].l+.001*t.tr*t.finalSize}"html"===x?Z=b.toCSS():"svg"===x?Z=b.to2dCSS():tt=[b.props[0],b.props[1],b.props[2],b.props[3],b.props[4],b.props[5],b.props[6],b.props[7],b.props[8],b.props[9],b.props[10],b.props[11],b.props[12],b.props[13],b.props[14],b.props[15]],W=_}w<=r?(R=new LetterProps(W,q,J,U,Z,tt),this.renderedLetters.push(R),w+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=(R=this.renderedLetters[r]).update(W,q,J,U,Z,tt)||this.lettersChangedFlag}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,i,e,s,r,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var h=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,h=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,h=!0),this.sc!==e&&(this.sc=e,this._mdf.sc=!0,h=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,h=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,h=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,h=!0),h},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,e=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,n=t||this.data.d.k[this.keysIndex].s;for(s=0;s<r;s+=1)n=this.effectsSequence[s](e!==this.keysIndex?n:this.currentData,n.t);i!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,i=this.elem.comp.renderedFrame,e=0,s=t.length;e<=s-1&&!(e===s-1||t[e+1].t>i);)e+=1;return this.keysIndex!==e&&(this.keysIndex=e),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var i,e,s=[],r=0,n=t.length,h=!1;r<n;)i=t.charCodeAt(r),FontManager.isCombinedCharacter(i)?s[s.length-1]+=t.charAt(r):i>=55296&&i<=56319?(e=t.charCodeAt(r+1))>=56320&&e<=57343?(h||FontManager.isModifier(i,e)?(s[s.length-1]+=t.substr(r,2),h=!1):s.push(t.substr(r,2)),r+=1):s.push(t.charAt(r)):i>56319?(e=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(i,e)?(h=!0,s[s.length-1]+=t.substr(r,2),r+=1):s.push(t.charAt(r))):FontManager.isZeroWidthJoiner(i)?(s[s.length-1]+=t.charAt(r),h=!0):s.push(t.charAt(r)),r+=1;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var i,e,s,r,n,h,o,a=this.elem.globalData.fontManager,f=this.data,c=[],u=0,l=f.m.g,p=0,d=0,m=0,y=[],v=0,g=0,P=a.getFontByName(t.f),S=0,E=getFontProperties(P);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),e=t.finalText.length,t.finalLineHeight=t.lh;var M,b=t.tr/1e3*t.finalSize;if(t.sz)for(var x,w,I=!0,k=t.sz[0],F=t.sz[1];I;){x=0,v=0,e=(w=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize;var T=-1;for(i=0;i<e;i+=1)M=w[i].charCodeAt(0),s=!1," "===w[i]?T=i:13!==M&&3!==M||(v=0,s=!0,x+=t.finalLineHeight||1.2*t.finalSize),a.chars?(o=a.getCharData(w[i],P.fStyle,P.fFamily),S=s?0:o.w*t.finalSize/100):S=a.measureText(w[i],t.f,t.finalSize),v+S>k&&" "!==w[i]?(-1===T?e+=1:i=T,x+=t.finalLineHeight||1.2*t.finalSize,w.splice(i,T===i?1:0,"\r"),T=-1,v=0):(v+=S,v+=b);x+=P.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&F<x?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=w,e=t.finalText.length,I=!1)}v=-b,S=0;var A,G=0;for(i=0;i<e;i+=1)if(s=!1,13===(M=(A=t.finalText[i]).charCodeAt(0))||3===M?(G=0,y.push(v),g=v>g?v:g,v=-2*b,r="",s=!0,m+=1):r=A,a.chars?(o=a.getCharData(A,P.fStyle,a.getFontByName(t.f).fFamily),S=s?0:o.w*t.finalSize/100):S=a.measureText(r,t.f,t.finalSize)," "===A?G+=S+b:(v+=S+b+G,G=0),c.push({l:S,an:S,add:p,n:s,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==l){if(p+=S,""===r||" "===r||i===e-1){for(""!==r&&" "!==r||(p-=S);d<=i;)c[d].an=p,c[d].ind=u,c[d].extra=S,d+=1;u+=1,p=0}}else if(3==l){if(p+=S,""===r||i===e-1){for(""===r&&(p-=S);d<=i;)c[d].an=p,c[d].ind=u,c[d].extra=S,d+=1;p=0,u+=1}}else c[u].ind=u,c[u].extra=0,u+=1;if(t.l=c,g=v>g?v:g,y.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var R,V,B,C,D=f.a;h=D.length;var N=[];for(n=0;n<h;n+=1){for((R=D[n]).a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),C=0,B=R.s.b,i=0;i<e;i+=1)(V=c[i]).anIndexes[n]=C,(1==B&&""!==V.val||2==B&&""!==V.val&&" "!==V.val||3==B&&(V.n||" "==V.val||i==e-1)||4==B&&(V.n||i==e-1))&&(1===R.s.rn&&N.push(C),C+=1);f.a[n].s.totalChars=C;var O,_=-1;if(1===R.s.rn)for(i=0;i<e;i+=1)_!=(V=c[i]).anIndexes[n]&&(_=V.anIndexes[n],O=N.splice(Math.floor(Math.random()*N.length),1)[0]),V.anIndexes[n]=O}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=P.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,i){var e=this.copyData({},this.data.d.k[i=void 0===i?this.keysIndex:i].s);e=this.copyData(e,t),this.data.d.k[i].s=e,this.recalculate(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var i=this.data.d.k[t].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,i=Math.min,e=Math.floor;function s(t,i){this._currentTextLength=-1,this.k=!1,this.data=i,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,i.s||{k:0},0,0,this),this.e="e"in i?PropertyFactory.getProp(t,i.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,i.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,i.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,i.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,i.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,n=0,h=1,o=1;this.ne.v>0?r=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?h=1-this.xe.v/100:o=1+this.xe.v/100;var a=BezierFactory.getBezierEasing(r,n,h,o).get,f=0,c=this.finalS,u=this.finalE,l=this.data.sh;if(2===l)f=a(f=u===c?s>=u?1:0:t(0,i(.5/(u-c)+(s-c)/(u-c),1)));else if(3===l)f=a(f=u===c?s>=u?0:1:1-t(0,i(.5/(u-c)+(s-c)/(u-c),1)));else if(4===l)u===c?f=0:(f=t(0,i(.5/(u-c)+(s-c)/(u-c),1)))<.5?f*=2:f=1-2*(f-.5),f=a(f);else if(5===l){if(u===c)f=0;else{var p=u-c,d=-p/2+(s=i(t(0,s+.5-c),u-c)),m=p/2;f=Math.sqrt(1-d*d/(m*m))}f=a(f)}else 6===l?(u===c?f=0:(s=i(t(0,s+.5-c),u-c),f=(1+Math.cos(Math.PI+2*Math.PI*s/(u-c)))/2),f=a(f)):(s>=e(c)&&(f=t(0,i(s-c<0?i(u,1)-(c-s):u-s,1))),f=a(f));return f*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var i=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/i,s=this.s.v/i+e,r=this.e.v/i+e;if(s>r){var n=s;s=r,r=n}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(t,i,e){return new s(t,i,e)}}}(),poolFactory=function(t,i,e){var s=0,r=t,n=createSizedArray(r);return{newElement:function(){return s?n[s-=1]:i()},release:function(t){s===r&&(n=pooling.double(n),r*=2),e&&e(t),n[s]=t,s+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)})),shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var i,e=t._length;for(i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1})),factory.clone=function(t){var i,e=factory.newElement(),s=void 0===t._length?t.v.length:t._length;for(e.setLength(s),e.c=t.c,i=0;i<s;i+=1)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e},factory),factory,shapeCollectionPool=function(){var t={newShapeCollection:function(){return i?s[i-=1]:new ShapeCollection},release:function(t){var r,n=t._length;for(r=0;r<n;r+=1)shapePool.release(t.shapes[r]);t._length=0,i===e&&(s=pooling.double(s),e*=2),s[i]=t,i+=1}},i=0,e=4,s=createSizedArray(e);return t}(),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var i,e=t.lengths.length;for(i=0;i<e;i+=1)bezierLengthPool.release(t.lengths[i]);t.lengths.length=0})),bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}})),markerParser=function(){function t(t){for(var i,e=t.split("\r\n"),s={},r=0,n=0;n<e.length;n+=1)2===(i=e[n].split(":")).length&&(s[i[0]]=i[1].trim(),r+=1);if(0===r)throw new Error;return s}return function(i){for(var e=[],s=0;s<i.length;s+=1){var r=i[s],n={time:r.tm,duration:r.dr};try{n.payload=JSON.parse(i[s].cm)}catch(e){try{n.payload=t(i[s].cm)}catch(t){n.payload={name:i[s]}}}e.push(n)}return e}}();function BaseRenderer(){}function SVGRenderer(t,i){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var e="";if(i&&i.title){var s=createNS("title"),r=createElementID();s.setAttribute("id",r),s.textContent=i.title,this.svgElement.appendChild(s),e+=r}if(i&&i.description){var n=createNS("desc"),h=createElementID();n.setAttribute("id",h),n.textContent=i.description,this.svgElement.appendChild(n),e+=" "+h}e&&this.svgElement.setAttribute("aria-labelledby",e);var o=createNS("defs");this.svgElement.appendChild(o);var a=createNS("g");this.svgElement.appendChild(a),this.layerElement=a,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&!1===i.hideOnTransparent),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function MaskElement(t,i,e){this.data=t,this.element=i,this.globalData=e,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,r,n=this.globalData.defs,h=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(h),this.solidPath="";var o,a,f,c,u,l,p=this.masksProperties,d=0,m=[],y=createElementID(),v="clipPath",g="clip-path";for(s=0;s<h;s+=1)if(("a"!==p[s].mode&&"n"!==p[s].mode||p[s].inv||100!==p[s].o.k||p[s].o.x)&&(v="mask",g="mask"),"s"!==p[s].mode&&"i"!==p[s].mode||0!==d?f=null:((f=createNS("rect")).setAttribute("fill","#ffffff"),f.setAttribute("width",this.element.comp.data.w||0),f.setAttribute("height",this.element.comp.data.h||0),m.push(f)),r=createNS("path"),"n"===p[s].mode)this.viewData[s]={op:PropertyFactory.getProp(this.element,p[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[s],3),elem:r,lastPath:""},n.appendChild(r);else{var P;if(d+=1,r.setAttribute("fill","s"===p[s].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==p[s].x.k?(v="mask",g="mask",l=PropertyFactory.getProp(this.element,p[s].x,0,null,this.element),P=createElementID(),(c=createNS("filter")).setAttribute("id",P),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),n.appendChild(c),r.setAttribute("stroke","s"===p[s].mode?"#000000":"#ffffff")):(u=null,l=null),this.storedData[s]={elem:r,x:l,expan:u,lastPath:"",lastOperator:"",filterId:P,lastRadius:0},"i"===p[s].mode){a=m.length;var S=createNS("g");for(o=0;o<a;o+=1)S.appendChild(m[o]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",y+"_"+d),E.appendChild(r),n.appendChild(E),S.setAttribute("mask","url("+locationHref+"#"+y+"_"+d+")"),m.length=0,m.push(S)}else m.push(r);p[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,p[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[s],3),invRect:f},this.viewData[s].prop.k||this.drawPath(p[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(v),h=m.length,s=0;s<h;s+=1)this.maskElement.appendChild(m[s]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(g,"url("+locationHref+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,i){this.elem=t,this.pos=i}function SVGStyleData(t,i){this.data=t,this.type=t.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,i,e){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=e,this.lvl=i,this._isAnimated=!!e.k;for(var s=0,r=t.length;s<r;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGTransformData(t,i,e){this.transform={mProps:t,op:i,container:e},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,i.o,0,.01,this),this.w=PropertyFactory.getProp(t,i.w,0,null,this),this.d=new DashProperty(t,i.d||{},"svg",this),this.c=PropertyFactory.getProp(t,i.c,1,255,this),this.style=e,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,i.o,0,.01,this),this.c=PropertyFactory.getProp(t,i.c,1,255,this),this.style=e}function SVGGradientFillStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,i,e)}function SVGGradientStrokeStyleData(t,i,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,i.w,0,null,this),this.d=new DashProperty(t,i.d||{},"svg",this),this.initGradientData(t,i,e),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var i,e,s=this.layers.length;for(this.completeLayers=!0,i=s-1;i>=0;i-=1)this.elements[i]||(e=this.layers[i]).ip-e.st<=t-this.layers[i].st&&e.op-e.st>t-this.layers[i].st&&this.buildItem(i),this.completeLayers=!!this.elements[i]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,i=this.layers.length;for(t=0;t<i;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var i;this.completeLayers=!1;var e,s=t.length,r=this.layers.length;for(i=0;i<s;i+=1)for(e=0;e<r;){if(this.layers[e].id===t[i].id){this.layers[e]=t[i];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,i,e){for(var s=this.elements,r=this.layers,n=0,h=r.length;n<h;)r[n].ind==i&&(s[n]&&!0!==s[n]?(e.push(s[n]),s[n].setAsParent(),void 0!==r[n].parent?this.buildElementParenting(t,r[n].parent,e):t.setHierarchy(e)):(this.buildItem(n),this.addPendingElement(t))),n+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var i,e=t.length;for(i=0;i<e;i+=1)if(t[i].xt){var s=this.createComp(t[i]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.setupGlobalData=function(t,i){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(t,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var e=createNS("clipPath"),s=createNS("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var r=createElementID();e.setAttribute("id",r),e.appendChild(s),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+r+")"),i.appendChild(e),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var i=this.layers?this.layers.length:0;for(t=0;t<i;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var i=this.elements;if(!i[t]&&99!==this.layers[t].ty){i[t]=!0;var e=this.createItem(this.layers[t]);i[t]=e,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var i=0,e=this.elements.length;i<e;){if(this.elements[i]===t){t.setMatte(this.elements[i-1].layerId);break}i+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var i;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=e-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<e;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,i){var e=t.getBaseElement();if(e){for(var s,r=0;r<i;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(s=this.elements[r].getBaseElement()),r+=1;s?this.layerElement.insertBefore(e,s):this.layerElement.appendChild(e)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var i,e=this.element.finalTransform.mat,s=this.masksProperties.length;for(i=0;i<s;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),"n"!==this.masksProperties[i].mode&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var r=this.storedData[i].expan;this.storedData[i].x.v<0?("erode"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[i].filterId+")")),r.setAttribute("radius",-this.storedData[i].x.v)):("dilate"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",2*this.storedData[i].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,i,e){var s,r,n=" M"+i.v[0][0]+","+i.v[0][1];for(r=i._length,s=1;s<r;s+=1)n+=" C"+i.o[s-1][0]+","+i.o[s-1][1]+" "+i.i[s][0]+","+i.i[s][1]+" "+i.v[s][0]+","+i.v[s][1];if(i.c&&r>1&&(n+=" C"+i.o[s-1][0]+","+i.o[s-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),e.lastPath!==n){var h="";e.elem&&(i.c&&(h=t.inv?this.solidPath+n:n),e.elem.setAttribute("d",h)),e.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,i){var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)(i||this._isParent&&"transform"===this.dynamicProperties[e].propType)&&(this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,i=this.finalTransform.mat,e=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;e<s;){if(this.hierarchy[e].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}e+=1}if(this.finalTransform._matMdf)for(i.cloneFromProps(t=this.finalTransform.mProp.v.props),e=0;e<s;e+=1)i.transform((t=this.hierarchy[e].finalTransform.mProp.v.props)[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var i=[];i.push(this.finalTransform);for(var e,s=!0,r=this.comp;s;)r.finalTransform?(r.data.hasMask&&i.splice(0,0,r.finalTransform),r=r.comp):s=!1;var n,h=i.length;for(e=0;e<h;e+=1)n=i[e].mat.applyToPointArray(0,0,0),t=[t[0]-n[0],t[1]-n[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,i=this.renderableComponents.length;for(t=0;t<i;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,i,e){this.initFrame(),this.initBaseData(t,i,e),this.initTransform(t,i,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,i,e){this.o=PropertyFactory.getProp(t,i.o,0,.01,this),this.s=PropertyFactory.getProp(t,i.s,1,null,this),this.e=PropertyFactory.getProp(t,i.e,1,null,this),this.h=PropertyFactory.getProp(t,i.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,i.g,this),this.style=e,this.stops=[],this.setGradientData(e.pElem,i),this.setGradientOpacity(i,e),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,i){var e=createElementID(),s=createNS(1===i.t?"linearGradient":"radialGradient");s.setAttribute("id",e),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var r,n,h,o=[];for(h=4*i.g.p,n=0;n<h;n+=4)r=createNS("stop"),s.appendChild(r),o.push(r);t.setAttribute("gf"===i.ty?"fill":"stroke","url("+locationHref+"#"+e+")"),this.gf=s,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,i){if(this.g._hasOpacity&&!this.g._collapsable){var e,s,r,n=createNS("mask"),h=createNS("path");n.appendChild(h);var o=createElementID(),a=createElementID();n.setAttribute("id",a);var f=createNS(1===t.t?"linearGradient":"radialGradient");f.setAttribute("id",o),f.setAttribute("spreadMethod","pad"),f.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(s=4*t.g.p;s<r;s+=2)(e=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),f.appendChild(e),c.push(e);h.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+o+")"),"gs"===t.ty&&(h.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&h.setAttribute("stroke-miterlimit",t.ml)),this.of=f,this.ms=n,this.ost=c,this.maskId=a,i.msElem=h}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var t=new Matrix,i=new Matrix;function e(t,i,e){(e||i.transform.op._mdf)&&i.transform.container.setAttribute("opacity",i.transform.op.v),(e||i.transform.mProps._mdf)&&i.transform.container.setAttribute("transform",i.transform.mProps.v.to2dCSS())}function s(e,s,r){var n,h,o,a,f,c,u,l,p,d,m,y=s.styles.length,v=s.lvl;for(c=0;c<y;c+=1){if(a=s.sh._mdf||r,s.styles[c].lvl<v){for(l=i.reset(),d=v-s.styles[c].lvl,m=s.transformers.length-1;!a&&d>0;)a=s.transformers[m].mProps._mdf||a,d-=1,m-=1;if(a)for(d=v-s.styles[c].lvl,m=s.transformers.length-1;d>0;)l.transform((p=s.transformers[m].mProps.v.props)[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),d-=1,m-=1}else l=t;if(h=(u=s.sh.paths)._length,a){for(o="",n=0;n<h;n+=1)(f=u.shapes[n])&&f._length&&(o+=buildShapeString(f,f._length,f.c,l));s.caches[c]=o}else o=s.caches[c];s.styles[c].d+=!0===e.hd?"":o,s.styles[c]._mdf=a||s.styles[c]._mdf}}function r(t,i,e){var s=i.style;(i.c._mdf||e)&&s.pElem.setAttribute("fill","rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"),(i.o._mdf||e)&&s.pElem.setAttribute("fill-opacity",i.o.v)}function n(t,i,e){h(t,i,e),o(0,i,e)}function h(t,i,e){var s,r,n,h,o,a=i.gf,f=i.g._hasOpacity,c=i.s.v,u=i.e.v;if((i.o._mdf||e)&&i.style.pElem.setAttribute("gf"===t.ty?"fill-opacity":"stroke-opacity",i.o.v),i.s._mdf||e){var l=1===t.t?"x1":"cx",p="x1"===l?"y1":"cy";a.setAttribute(l,c[0]),a.setAttribute(p,c[1]),f&&!i.g._collapsable&&(i.of.setAttribute(l,c[0]),i.of.setAttribute(p,c[1]))}if(i.g._cmdf||e){var d=i.g.c;for(n=(s=i.cst).length,r=0;r<n;r+=1)(h=s[r]).setAttribute("offset",d[4*r]+"%"),h.setAttribute("stop-color","rgb("+d[4*r+1]+","+d[4*r+2]+","+d[4*r+3]+")")}if(f&&(i.g._omdf||e)){var m=i.g.o;for(n=(s=i.g._collapsable?i.cst:i.ost).length,r=0;r<n;r+=1)h=s[r],i.g._collapsable||h.setAttribute("offset",m[2*r]+"%"),h.setAttribute("stop-opacity",m[2*r+1])}if(1===t.t)(i.e._mdf||e)&&(a.setAttribute("x2",u[0]),a.setAttribute("y2",u[1]),f&&!i.g._collapsable&&(i.of.setAttribute("x2",u[0]),i.of.setAttribute("y2",u[1])));else if((i.s._mdf||i.e._mdf||e)&&(o=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),a.setAttribute("r",o),f&&!i.g._collapsable&&i.of.setAttribute("r",o)),i.e._mdf||i.h._mdf||i.a._mdf||e){o||(o=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)));var y=Math.atan2(u[1]-c[1],u[0]-c[0]),v=i.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var g=o*v,P=Math.cos(y+i.a.v)*g+c[0],S=Math.sin(y+i.a.v)*g+c[1];a.setAttribute("fx",P),a.setAttribute("fy",S),f&&!i.g._collapsable&&(i.of.setAttribute("fx",P),i.of.setAttribute("fy",S))}}function o(t,i,e){var s=i.style,r=i.d;r&&(r._mdf||e)&&r.dashStr&&(s.pElem.setAttribute("stroke-dasharray",r.dashStr),s.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),i.c&&(i.c._mdf||e)&&s.pElem.setAttribute("stroke","rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"),(i.o._mdf||e)&&s.pElem.setAttribute("stroke-opacity",i.o.v),(i.w._mdf||e)&&(s.pElem.setAttribute("stroke-width",i.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",i.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return h;case"gs":return n;case"st":return o;case"sh":case"el":case"rc":case"sr":return s;case"tr":return e;default:return null}}}}();function BaseElement(){}function NullElement(t,i,e){this.initFrame(),this.initBaseData(t,i,e),this.initFrame(),this.initTransform(t,i,e),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,i,e){this.assetData=i.getAssetData(t.refId),this.initElement(t,i,e),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,i,e){this.initElement(t,i,e)}function AudioElement(t,i,e){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(t.refId),this.initBaseData(t,i,e),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:!0}}function FootageElement(t,i,e){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(t.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(t,i,e)}function SVGCompElement(t,i,e){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,i,e),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:!0}}function SVGTextLottieElement(t,i,e){this.textSpans=[],this.renderType="svg",this.initElement(t,i,e)}function SVGShapeElement(t,i,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,i,e),this.prevViewData=[]}function SVGTintFilter(t,i){this.filterManager=i;var e=createNS("feColorMatrix");if(e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result","f2"),t.appendChild(e),this.matrixFilter=e,100!==i.effectElements[2].p.v||i.effectElements[2].p.k){var s,r=createNS("feMerge");t.appendChild(r),(s=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),r.appendChild(s),(s=createNS("feMergeNode")).setAttribute("in","f2"),r.appendChild(s)}}function SVGFillFilter(t,i){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(e),this.matrixFilter=e}function SVGGaussianBlurEffect(t,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=i;var e=createNS("feGaussianBlur");t.appendChild(e),this.feGaussianBlur=e}function SVGStrokeEffect(t,i){this.initialized=!1,this.filterManager=i,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,i){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.matrixFilter=s;var r=createNS("feFuncR");r.setAttribute("type","table"),s.appendChild(r),this.feFuncR=r;var n=createNS("feFuncG");n.setAttribute("type","table"),s.appendChild(n),this.feFuncG=n;var h=createNS("feFuncB");h.setAttribute("type","table"),s.appendChild(h),this.feFuncB=h}function SVGProLevelsFilter(t,i){this.filterManager=i;var e=this.filterManager.effectElements,s=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),s=createNS("feComponentTransfer")),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,i){var e=i.container.globalData.renderConfig.filterSize;t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("width",e.width),t.setAttribute("height",e.height),this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result","drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var r=createNS("feOffset");r.setAttribute("dx","25"),r.setAttribute("dy","0"),r.setAttribute("in","drop_shadow_1"),r.setAttribute("result","drop_shadow_2"),this.feOffset=r,t.appendChild(r);var n=createNS("feFlood");n.setAttribute("flood-color","#00ff00"),n.setAttribute("flood-opacity","1"),n.setAttribute("result","drop_shadow_3"),this.feFlood=n,t.appendChild(n);var h=createNS("feComposite");h.setAttribute("in","drop_shadow_3"),h.setAttribute("in2","drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result","drop_shadow_4"),t.appendChild(h);var o,a=createNS("feMerge");t.appendChild(a),o=createNS("feMergeNode"),a.appendChild(o),(o=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=a,this.originalNodeAdded=!1,a.appendChild(o)}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,i=this.data.masksProperties.length;t<i;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,i,e){this.globalData=i,this.comp=e,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,i,e,s=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var r=createNS("mask");r.setAttribute("id",this.layerId),r.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),r.appendChild(this.layerElement),s=r,this.globalData.defs.appendChild(r),featureSupport.maskType||1!=this.data.td||(r.setAttribute("mask-type","luminance"),t=createElementID(),i=filtersFactory.createFilter(t),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(e=createNS("g")).appendChild(this.layerElement),s=e,r.appendChild(e),e.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var h=createNS("g");n.appendChild(h),t=createElementID(),i=filtersFactory.createFilter(t);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),i.appendChild(o);var a=createNS("feFuncA");a.setAttribute("type","table"),a.setAttribute("tableValues","1.0 0.0"),o.appendChild(a),this.globalData.defs.appendChild(i);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),h.setAttribute("filter","url("+locationHref+"#"+t+")"),h.appendChild(f),h.appendChild(this.layerElement),s=h,featureSupport.maskType||(n.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),e=createNS("g"),h.appendChild(f),e.appendChild(this.layerElement),s=e,h.appendChild(e)),this.globalData.defs.appendChild(n)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),u=createNS("path");u.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var l=createElementID();if(c.setAttribute("id",l),c.appendChild(u),this.globalData.defs.appendChild(c),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+locationHref+"#"+l+")"),p.appendChild(this.layerElement),this.transformedElement=p,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+l+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var i,e=this.shapeModifiers.length;for(i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var i=this.shapeModifiers.length;0<i;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,i=this.shapes.length;for(t=0;t<i;t+=1)this.shapes[t].sh.reset();for(t=(i=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var i=this.processedElements,e=0,s=i.length;e<s;){if(i[e].elem===t)return i[e].pos;e+=1}return 0},addProcessedElement:function(t,i){for(var e=this.processedElements,s=e.length;s;)if(e[s-=1].elem===t)return void(e[s].pos=i);e.push(new ProcessedElement(t,i))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,i,e){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,i,e),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,i,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,i){var e,s,r=i.length,n="";for(e=0;e<r;e+=1)n+=buildShapeString(s=i[e].ks.k,s.i.length,!0,t);return n},ITextElement.prototype.updateDocumentData=function(t,i){this.textProperty.updateDocumentData(t,i)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,i,e,s,r){switch(t.ps&&i.translate(t.ps[0],t.ps[1]+t.ascent,0),i.translate(0,-t.ls,0),t.j){case 1:i.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e]),0,0);break;case 2:i.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e])/2,0,0)}i.translate(s,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,i,e){this.initFrame(),this.initBaseData(t,i,e),this.initTransform(t,i,e),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&i.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var e,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=s-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,i=this.layers.length;for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,i=this.layers.length;for(t=0;t<i;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this._currentTime=this.tm._placeholder?t/this.data.sr:this.tm.v},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var i=0,e=t.length,s=[],r="";i<e;)t[i]===String.fromCharCode(13)||t[i]===String.fromCharCode(3)?(s.push(r),r=""):r+=t[i],i+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildNewText=function(){var t,i,e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),this.layerElement.setAttribute("fill",e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var s=this.globalData.fontManager.getFontByName(e.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var r=e.fWeight;this.layerElement.setAttribute("font-style",e.fStyle),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",e.t);var n,h=e.l||[],o=!!this.globalData.fontManager.chars;i=h.length;var a,f=this.mHelper,c="",u=this.data.singleShape,l=0,p=0,d=!0,m=.001*e.tr*e.finalSize;if(!u||o||e.sz){var y,v,g=this.textSpans.length;for(t=0;t<i;t+=1)o&&u&&0!==t||(n=g>t?this.textSpans[t]:createNS(o?"path":"text"),g<=t&&(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=n,this.layerElement.appendChild(n)),n.style.display="inherit"),f.reset(),f.scale(e.finalSize/100,e.finalSize/100),u&&(h[t].n&&(l=-m,p+=e.yOffset,p+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(e,f,h[t].line,l,p),l+=h[t].l||0,l+=m),o?(a=(y=(v=this.globalData.fontManager.getCharData(e.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&v.data||{}).shapes?y.shapes[0].it:[],u?c+=this.createPathShape(f,a):n.setAttribute("d",this.createPathShape(f,a))):(u&&n.setAttribute("transform","translate("+f.props[12]+","+f.props[13]+")"),n.textContent=h[t].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));u&&n&&n.setAttribute("d",c)}else{var P=this.textContainer,S="start";switch(e.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}P.setAttribute("text-anchor",S),P.setAttribute("letter-spacing",m);var E=this.buildTextContents(e.finalText);for(i=E.length,p=e.ps?e.ps[1]+e.ascent:0,t=0;t<i;t+=1)(n=this.textSpans[t]||createNS("tspan")).textContent=E[t],n.setAttribute("x",0),n.setAttribute("y",p),n.style.display="inherit",P.appendChild(n),this.textSpans[t]=n,p+=e.finalLineHeight;this.layerElement.appendChild(P)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,i;this._sizeChanged=!0;var e,s,r=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(i=n.length,t=0;t<i;t+=1)n[t].n||(s=this.textSpans[t],(e=r[t])._mdf.m&&s.setAttribute("transform",e.m),e._mdf.o&&s.setAttribute("opacity",e.o),e._mdf.sw&&s.setAttribute("stroke-width",e.sw),e._mdf.sc&&s.setAttribute("stroke",e.sc),e._mdf.fc&&s.setAttribute("fill",e.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,i,e,s,r=this.shapes.length,n=this.stylesList.length,h=[],o=!1;for(e=0;e<n;e+=1){for(s=this.stylesList[e],o=!1,h.length=0,t=0;t<r;t+=1)-1!==(i=this.shapes[t]).styles.indexOf(s)&&(h.push(i),o=i._isAnimated||o);h.length>1&&o&&this.setShapesAsAnimated(h)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,i){var e,s=new SVGStyleData(t,i),r=s.pElem;return"st"===t.ty?e=new SVGStrokeStyleData(this,t,s):"fl"===t.ty?e=new SVGFillStyleData(this,t,s):"gf"!==t.ty&&"gs"!==t.ty||(e=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,s),this.globalData.defs.appendChild(e.gf),e.maskId&&(this.globalData.defs.appendChild(e.ms),this.globalData.defs.appendChild(e.of),r.setAttribute("mask","url("+locationHref+"#"+e.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.createGroupElement=function(t){var i=new ShapeGroupData;return t.ln&&i.gr.setAttribute("id",t.ln),t.cl&&i.gr.setAttribute("class",t.cl),t.bm&&(i.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),i},SVGShapeElement.prototype.createTransformElement=function(t,i){var e=TransformPropertyFactory.getTransformProperty(this,t,this),s=new SVGTransformData(e,e.o,i);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,i,e){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var r=new SVGShapeData(i,e,ShapePropertyFactory.getShapeProp(this,t,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,i){for(var e=0,s=this.animatedContents.length;e<s;){if(this.animatedContents[e].element===i)return;e+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:i,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var i,e=t.styles,s=this.stylesList.length;for(i=0;i<s;i+=1)this.stylesList[i].closed||e.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var i=this.itemsData.length;for(t=0;t<i;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,t=0;t<i;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,i,e,s,r,n,h){var o,a,f,c,u,l=[].concat(n),p=t.length-1,d=[],m=[];for(o=p;o>=0;o-=1){if((u=this.searchProcessedElement(t[o]))?i[o]=e[u-1]:t[o]._render=h,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)u?i[o].style.closed=!1:i[o]=this.createStyleElement(t[o],r),t[o]._render&&s.appendChild(i[o].style.pElem),d.push(i[o].style);else if("gr"===t[o].ty){if(u)for(f=i[o].it.length,a=0;a<f;a+=1)i[o].prevViewData[a]=i[o].it[a];else i[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,i[o].it,i[o].prevViewData,i[o].gr,r+1,l,h),t[o]._render&&s.appendChild(i[o].gr)}else"tr"===t[o].ty?(u||(i[o]=this.createTransformElement(t[o],s)),l.push(i[o].transform)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(u||(i[o]=this.createShapeElement(t[o],l,r)),this.setElementStyles(i[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty?(u?(c=i[o]).closed=!1:((c=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),i[o]=c,this.shapeModifiers.push(c)),m.push(c)):"rp"===t[o].ty&&(u?(c=i[o]).closed=!0:(c=ShapeModifiers.getModifier(t[o].ty),i[o]=c,c.init(this,t,o,i),this.shapeModifiers.push(c),h=!1),m.push(c));this.addProcessedElement(t[o],o+1)}for(p=d.length,o=0;o<p;o+=1)d[o].closed=!0;for(p=m.length,o=0;o<p;o+=1)m[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<i;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,i,e=this.animatedContents.length;for(t=0;t<e;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&!0!==i.data&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v;this.matrixFilter.setAttribute("values",e[0]-i[0]+" 0 0 0 "+i[0]+" "+(e[1]-i[1])+" 0 0 0 "+i[1]+" "+(e[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 "+this.filterManager.effectElements[2].p.v/100+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+this.filterManager.effectElements[6].p.v+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:i)+" "+(2==e?0:i)),this.feGaussianBlur.setAttribute("edgeMode",1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate")}},SVGStrokeEffect.prototype.initialize=function(){var t,i,e,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,e=0):s=1+(e=this.filterManager.effectElements[0].p.v-1),(i=createNS("g")).setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1);e<s;e+=1)t=createNS("path"),i.appendChild(t),this.paths.push({p:t,m:e});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),h=createElementID();n.setAttribute("id",h),n.setAttribute("mask-type","alpha"),n.appendChild(i),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+locationHref+"#"+h+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=n,i.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(t){var i;this.initialized||this.initialize();var e,s,r=this.paths.length;for(i=0;i<r;i+=1)if(-1!==this.paths[i].m&&(e=this.elem.maskManager.viewData[this.paths[i].m],s=this.paths[i].p,(t||this.filterManager._mdf||e.prop._mdf)&&s.setAttribute("d",e.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||e.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var h=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=s.getTotalLength();n="0 0 0 "+a*h+" ";var f,c=Math.floor(a*(o-h)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(f=0;f<c;f+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*a+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,r=s[1]+" "+e[1]+" "+i[1],n=s[2]+" "+e[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",s[0]+" "+e[0]+" "+i[0]),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,i){var e=createNS(t);return e.setAttribute("type","table"),i.appendChild(e),e},SVGProLevelsFilter.prototype.getTableValue=function(t,i,e,s,r){for(var n,h,o=0,a=Math.min(t,i),f=Math.max(t,i),c=Array.call(null,{length:256}),u=0,l=r-s,p=i-t;o<=256;)h=(n=o/256)<=a?p<0?r:s:n>=f?p<0?s:r:s+l*Math.pow((n-t)/p,1/e),c[u]=h,u+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i,e=this.filterManager.effectElements;this.feFuncRComposed&&(t||e[3].p._mdf||e[4].p._mdf||e[5].p._mdf||e[6].p._mdf||e[7].p._mdf)&&(i=this.getTableValue(e[3].p.v,e[4].p.v,e[5].p.v,e[6].p.v,e[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i)),this.feFuncR&&(t||e[10].p._mdf||e[11].p._mdf||e[12].p._mdf||e[13].p._mdf||e[14].p._mdf)&&(i=this.getTableValue(e[10].p.v,e[11].p.v,e[12].p.v,e[13].p.v,e[14].p.v),this.feFuncR.setAttribute("tableValues",i)),this.feFuncG&&(t||e[17].p._mdf||e[18].p._mdf||e[19].p._mdf||e[20].p._mdf||e[21].p._mdf)&&(i=this.getTableValue(e[17].p.v,e[18].p.v,e[19].p.v,e[20].p.v,e[21].p.v),this.feFuncG.setAttribute("tableValues",i)),this.feFuncB&&(t||e[24].p._mdf||e[25].p._mdf||e[26].p._mdf||e[27].p._mdf||e[28].p._mdf)&&(i=this.getTableValue(e[24].p.v,e[25].p.v,e[26].p.v,e[27].p.v,e[28].p.v),this.feFuncB.setAttribute("tableValues",i)),this.feFuncA&&(t||e[31].p._mdf||e[32].p._mdf||e[33].p._mdf||e[34].p._mdf||e[35].p._mdf)&&(i=this.getTableValue(e[31].p.v,e[32].p.v,e[33].p.v,e[34].p.v,e[35].p.v),this.feFuncA.setAttribute("tableValues",i))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=e*Math.cos(s),n=e*Math.sin(s);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,i,e){this.initialized=!1,this.filterManager=i,this.filterElem=t,this.elem=e,e.matteElement=createNS("g"),e.matteElement.appendChild(e.layerElement),e.matteElement.appendChild(e.transformedElement),e.baseElement=e.matteElement}function SVGEffects(t){var i,e,s=t.data.ef?t.data.ef.length:0,r=createElementID(),n=filtersFactory.createFilter(r,!0),h=0;for(this.filters=[],i=0;i<s;i+=1)e=null,20===t.data.ef[i].ty?(h+=1,e=new SVGTintFilter(n,t.effectsManager.effectElements[i])):21===t.data.ef[i].ty?(h+=1,e=new SVGFillFilter(n,t.effectsManager.effectElements[i])):22===t.data.ef[i].ty?e=new SVGStrokeEffect(t,t.effectsManager.effectElements[i]):23===t.data.ef[i].ty?(h+=1,e=new SVGTritoneFilter(n,t.effectsManager.effectElements[i])):24===t.data.ef[i].ty?(h+=1,e=new SVGProLevelsFilter(n,t.effectsManager.effectElements[i])):25===t.data.ef[i].ty?(h+=1,e=new SVGDropShadowEffect(n,t.effectsManager.effectElements[i])):28===t.data.ef[i].ty?e=new SVGMatte3Effect(n,t.effectsManager.effectElements[i],t):29===t.data.ef[i].ty&&(h+=1,e=new SVGGaussianBlurEffect(n,t.effectsManager.effectElements[i])),e&&this.filters.push(e);h&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute("filter","url("+locationHref+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}SVGMatte3Effect.prototype.findSymbol=function(t){for(var i=0,e=_svgMatteSymbols.length;i<e;){if(_svgMatteSymbols[i]===t)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,i){var e=t.layerElement.parentNode;if(e){for(var s,r=e.children,n=0,h=r.length;n<h&&r[n]!==t.layerElement;)n+=1;n<=h-2&&(s=r[n+1]);var o=createNS("use");o.setAttribute("href","#"+i),s?e.insertBefore(o,s):e.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,i){if(!this.findSymbol(i)){var e=createElementID(),s=createNS("mask");s.setAttribute("id",i.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var r=t.globalData.defs;r.appendChild(s);var n=createNS("symbol");n.setAttribute("id",e),this.replaceInParent(i,e),n.appendChild(i.layerElement),r.appendChild(n);var h=createNS("use");h.setAttribute("href","#"+e),s.appendChild(h),i.data.hd=!1,i.show()}t.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,e=0,s=i.length;e<s;)i[e]&&i[e].data.ind===t&&this.setElementAsMask(this.elem,i[e]),e+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var i,e=this.filters.length;for(i=0;i<e;i+=1)this.filters[i].renderFrame(t)};var animationManager=function(){var t={},i=[],e=0,s=0,r=0,n=!0,h=!1;function o(t){for(var e=0,r=t.target;e<s;)i[e].animation===r&&(i.splice(e,1),e-=1,s-=1,r.isPaused||c()),e+=1}function a(t,e){if(!t)return null;for(var r=0;r<s;){if(i[r].elem===t&&null!==i[r].elem)return i[r].animation;r+=1}var n=new AnimationItem;return u(n,t),n.setData(t,e),n}function f(){r+=1,d()}function c(){r-=1}function u(t,e){t.addEventListener("destroy",o),t.addEventListener("_active",f),t.addEventListener("_idle",c),i.push({elem:e,animation:t}),s+=1}function l(t){var o,a=t-e;for(o=0;o<s;o+=1)i[o].animation.advanceTime(a);e=t,r&&!h?window.requestAnimationFrame(l):n=!0}function p(t){e=t,window.requestAnimationFrame(l)}function d(){!h&&r&&n&&(window.requestAnimationFrame(p),n=!1)}return t.registerAnimation=a,t.loadAnimation=function(t){var i=new AnimationItem;return u(i,null),i.setParams(t),i},t.setSpeed=function(t,e){var r;for(r=0;r<s;r+=1)i[r].animation.setSpeed(t,e)},t.setDirection=function(t,e){var r;for(r=0;r<s;r+=1)i[r].animation.setDirection(t,e)},t.play=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.play(t)},t.pause=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.pause(t)},t.stop=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.stop(t)},t.togglePause=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.togglePause(t)},t.searchAnimations=function(t,i,e){var s,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=r.length;for(s=0;s<n;s+=1)e&&r[s].setAttribute("data-bm-type",e),a(r[s],t);if(i&&0===n){e||(e="svg");var h=document.getElementsByTagName("body")[0];h.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",e),h.appendChild(o),a(o,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)i[t].animation.resize()},t.goToAndStop=function(t,e,r){var n;for(n=0;n<s;n+=1)i[n].animation.goToAndStop(t,e,r)},t.destroy=function(t){var e;for(e=s-1;e>=0;e-=1)i[e].animation.destroy(t)},t.freeze=function(){h=!0},t.unfreeze=function(){h=!1,d()},t.setVolume=function(t,e){var r;for(r=0;r<s;r+=1)i[r].animation.setVolume(t,e)},t.mute=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.mute(t)},t.unmute=function(t){var e;for(e=0;e<s;e+=1)i[e].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,e=i.length,s=[];for(t=0;t<e;t+=1)s.push(i[t].animation);return s},t}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[]};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var i="svg";switch(t.animType?i=t.animType:t.renderer&&(i=t.renderer),i){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,this.loop=""===t.loop||null==t.loop||!0===t.loop||!1!==t.loop&&parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.configAnimation(t.animationData):t.path&&(this.path=-1!==t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,i){i&&"object"!=typeof i&&(i=JSON.parse(i));var e={wrapper:t,animationData:i},s=t.attributes;e.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",e.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:"canvas";var r=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===r?e.loop=!1:"true"===r?e.loop=!0:""!==r&&(e.loop=parseInt(r,10));var n=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;e.autoplay="false"!==n,e.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),this.setParams(e)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var i,e,s=this.animationData.layers,r=s.length,n=t.layers,h=n.length;for(e=0;e<h;e+=1)for(i=0;i<r;){if(s[i].id===n[e].id){s[i]=n[e];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,i=0;i<r;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var i=t.shift();this.timeCompleted=i.time*this.frameRate;var e=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,assetLoader.load(e,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var i,e=0;e<this.markers.length;e+=1)if((i=this.markers[e]).payload&&i.payload.name===t)return i;return null},AnimationItem.prototype.goToAndStop=function(t,i,e){if(!e||this.name===e){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else this.setCurrentRawFrameValue(i?t:t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,i,e){if(!e||this.name===e){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,i,e);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var i=this.currentRawFrame+t*this.frameModifier,e=!1;i>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(e=!0,i=this.totalFrames-1):i<0?this.checkSegments(i%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,i=0):(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(i),e&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,i){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,i){var e=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?e=t:this.currentRawFrame+this.firstFrame>i&&(e=i-t)),this.firstFrame=t,this.totalFrames=i-t,this.timeCompleted=this.totalFrames,-1!==e&&this.goToAndStop(e,!0)},AnimationItem.prototype.playSegments=function(t,i){if(i&&(this.segments.length=0),"object"==typeof t[0]){var e,s=t.length;for(e=0;e<s;e+=1)this.segments.push(t[e])}else this.segments.push(t);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,i){i&&this.name!==i||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var i="";if(t.e)i=t.p;else if(this.assetsPath){var e=t.p;-1!==e.indexOf("images/")&&(e=e.split("/")[1]),i=this.assetsPath+e}else i=this.path,i+=t.u?t.u:"",i+=t.p;return i},AnimationItem.prototype.getAssetData=function(t){for(var i=0,e=this.assets.length;i<e;){if(t===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var i=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},AnimationItem.prototype.triggerConfigError=function(t){var i=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var Expressions={initExpressions:function(t){var i=0,e=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){0==(i-=1)&&function(){var t,i=e.length;for(t=0;t<i;t+=1)e[t].release();e.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===e.indexOf(t)&&e.push(t)}}};expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath;function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,content,effect,thisProperty=property,thisLayer,velocityAtTime,scoped_bm_rt;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],time,value;function seedRandom(t){BMMath.seedrandom(randSeed+t)}(function(t,i){var e,s,r=this.pv.length?this.pv.length:1,n=createTypedArray("float32",r),h=Math.floor(5*time);for(e=0,s=0;e<h;){for(s=0;s<r;s+=1)n[s]+=-i+2*i*BMMath.random();e+=1}var o=5*time,a=o-Math.floor(o),f=createTypedArray("float32",r);if(r>1){for(s=0;s<r;s+=1)f[s]=this.pv[s]+n[s]+(-i+2*i*BMMath.random())*a;return f}return this.pv+n[0]+(-i+2*i*BMMath.random())*a}).bind(this),thisProperty.loopIn&&thisProperty.loopIn.bind(thisProperty),thisProperty.loopOut&&thisProperty.loopOut.bind(thisProperty),thisProperty.smooth&&thisProperty.smooth.bind(thisProperty),this.getValueAtTime&&this.getValueAtTime.bind(this),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this)),elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);var randSeed=Math.floor(1e6*Math.random());function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:(thisLayer||((thisLayer=elem.layerInterface).toWorld.bind(thisLayer),thisLayer.fromWorld.bind(thisLayer),thisLayer.fromComp.bind(thisLayer),thisLayer.toComp.bind(thisLayer),thisLayer.mask&&thisLayer.mask.bind(thisLayer)),transform||(transform=elem.layerInterface("ADBE Transform Group")),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&velocityAtTime(time),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt)}return executeExpression}return BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn"),BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut"),BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut"),ob.initiateExpression=initiateExpression,ob}(),expressionHelpers={searchExpressions:function(t,i,e){i.x&&(e.k=!0,e.x=!0,e.initiateExpression=ExpressionManager.initiateExpression,e.effectsSequence.push(e.initiateExpression(t,i,e).bind(e)))},getSpeedAtTime:function(t){var i=this.getValueAtTime(t),e=this.getValueAtTime(t+-.01),s=0;if(i.length){var r;for(r=0;r<i.length;r+=1)s+=Math.pow(e[r]-i[r],2);s=100*Math.sqrt(s)}else s=0;return s},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var i,e,s=-.001,r=this.getValueAtTime(t),n=this.getValueAtTime(t+s);if(r.length)for(i=createTypedArray("float32",r.length),e=0;e<r.length;e+=1)i[e]=(n[e]-r[e])/s;else i=(n-r)/s;return i},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};!function(){function t(t,i,e){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var s,r,n,h,o,a=this.comp.renderedFrame,f=this.keyframes,c=f[f.length-1].t;if(a<=c)return this.pv;if(e?r=c-(s=i?Math.abs(c-this.elem.comp.globalData.frameRate*i):Math.max(0,c-this.elem.data.ip)):((!i||i>f.length-1)&&(i=f.length-1),s=c-(r=f[f.length-1-i].t)),"pingpong"===t){if(Math.floor((a-r)/s)%2!=0)return this.getValueAtTime((s-(a-r)%s+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(r/this.comp.globalData.frameRate,0),l=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((a-r)%s+r)/this.comp.globalData.frameRate,0),d=Math.floor((a-r)/s);if(this.pv.length){for(h=(o=new Array(u.length)).length,n=0;n<h;n+=1)o[n]=(l[n]-u[n])*d+p[n];return o}return(l-u)*d+p}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(h=(o=new Array(m.length)).length,n=0;n<h;n+=1)o[n]=m[n]+(a-c)/this.comp.globalData.frameRate*(m[n]-y[n])/5e-4;return o}return m+(a-c)/.001*(m-y)}}return this.getValueAtTime(((a-r)%s+r)/this.comp.globalData.frameRate,0)}function i(t,i,e){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var s,r,n,h,o,a=this.comp.renderedFrame,f=this.keyframes,c=f[0].t;if(a>=c)return this.pv;if(e?r=c+(s=i?Math.abs(this.elem.comp.globalData.frameRate*i):Math.max(0,this.elem.data.op-c)):((!i||i>f.length-1)&&(i=f.length-1),s=(r=f[i].t)-c),"pingpong"===t){if(Math.floor((c-a)/s)%2==0)return this.getValueAtTime(((c-a)%s+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),l=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime((s-(c-a)%s+c)/this.comp.globalData.frameRate,0),d=Math.floor((c-a)/s)+1;if(this.pv.length){for(h=(o=new Array(u.length)).length,n=0;n<h;n+=1)o[n]=p[n]-(l[n]-u[n])*d;return o}return p-(l-u)*d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(h=(o=new Array(m.length)).length,n=0;n<h;n+=1)o[n]=m[n]+(m[n]-y[n])*(c-a)/.001;return o}return m+(m-y)*(c-a)/.001}}return this.getValueAtTime((s-((c-a)%s+c))/this.comp.globalData.frameRate,0)}function e(t,i){if(!this.k)return this.pv;if(t=.5*(t||.4),(i=Math.floor(i||5))<=1)return this.pv;var e,s,r=this.comp.renderedFrame/this.comp.globalData.frameRate,n=r-t,h=i>1?(r+t-n)/(i-1):1,o=0,a=0;for(e=this.pv.length?createTypedArray("float32",this.pv.length):0;o<i;){if(s=this.getValueAtTime(n+o*h),this.pv.length)for(a=0;a<this.pv.length;a+=1)e[a]+=s[a];else e+=s;o+=1}if(this.pv.length)for(a=0;a<this.pv.length;a+=1)e[a]/=i;else e/=i;return e}function s(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var i=this._transformCachingAtTime.v;if(i.cloneFromProps(this.pre.props),this.appliedTransformations<1){var e=this.a.getValueAtTime(t);i.translate(-e[0]*this.a.mult,-e[1]*this.a.mult,e[2]*this.a.mult)}if(this.appliedTransformations<2){var s=this.s.getValueAtTime(t);i.scale(s[0]*this.s.mult,s[1]*this.s.mult,s[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),n=this.sa.getValueAtTime(t);i.skewFromAxis(-r*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var h=this.r.getValueAtTime(t);i.rotate(-h*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),a=this.ry.getValueAtTime(t),f=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);i.rotateZ(-o*this.rz.mult).rotateY(a*this.ry.mult).rotateX(f*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var u=this.px.getValueAtTime(t),l=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);i.translate(u*this.px.mult,l*this.py.mult,-p*this.pz.mult)}else i.translate(u*this.px.mult,l*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);i.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return i}function r(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,i,e){var h=n(t,i,e);return h.getValueAtTime=h.dynamicProperties.length?s.bind(h):r.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h};var h=PropertyFactory.getProp;PropertyFactory.getProp=function(s,r,n,o,a){var f=h(s,r,n,o,a);f.getValueAtTime=f.kf?expressionHelpers.getValueAtTime.bind(f):expressionHelpers.getStaticValueAtTime.bind(f),f.setGroupProperty=expressionHelpers.setGroupProperty,f.loopOut=t,f.loopIn=i,f.smooth=e,f.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(f),f.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(f),f.numKeys=1===r.a?r.k.length:0,f.propertyIndex=r.ix;var c=0;return 0!==n&&(c=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),f._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(s,r,f),f.k&&a.addDynamicProperty(f),f};var o=ShapePropertyFactory.getConstructorFunction(),a=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(t,i){this.k&&this.getValue();var e,s=this.v;void 0!==i&&(s=this.getValueAtTime(i,0));var r=s._length,n=s[t],h=s.v,o=createSizedArray(r);for(e=0;e<r;e+=1)o[e]="i"===t||"o"===t?[n[e][0]-h[e][0],n[e][1]-h[e][1]]:[n[e][0],n[e][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,i){var e=this.v;void 0!==i&&(e=this.getValueAtTime(i,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(e));for(var s,r=this._segmentsLength,n=r.lengths,h=r.totalLength*t,o=0,a=n.length,f=0;o<a;){if(f+n[o].addedLength>h){var c=e.c&&o===a-1?0:o+1;s=bez.getPointInSegment(e.v[o],e.v[c],e.o[o],e.i[c],(h-f)/n[o].addedLength,n[o]);break}f+=n[o].addedLength,o+=1}return s||(s=e.c?[e.v[0][0],e.v[0][1]]:[e.v[e._length-1][0],e.v[e._length-1][1]]),s},vectorOnPath:function(t,i,e){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,i),r=this.pointOnPath(t+.001,i),n=r[0]-s[0],h=r[1]-s[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(h,2));return 0===o?[0,0]:"tangent"===e?[n/o,h/o]:[-h/o,n/o]},tangentOnPath:function(t,i){return this.vectorOnPath(t,i,"tangent")},normalOnPath:function(t,i){return this.vectorOnPath(t,i,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],o),extendPrototype([f],a),a.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},a.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,i,e,s,r){var n=c(t,i,e,s,r);return n.propertyIndex=i.ix,n.lock=!1,3===e?expressionHelpers.searchExpressions(t,i.pt,n):4===e&&expressionHelpers.searchExpressions(t,i.ks,n),n.k&&t.addDynamicProperty(n),n}}(),TextProperty.prototype.getExpressionValue=function(t,i){var e=this.calculateExpression(i);if(t.t!==e){var s={};return this.copyData(s,t),s.t=e.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),i=this.searchExpressions();return this.kf=t||i,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null};var ShapePathInterface=function(t,i,e){var s=i.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var n=propertyGroupFactory(r,e);return s.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:e}}),r},propertyGroupFactory=function(t,i){return function(e){return(e=void 0===e?1:e)<=0?t:i(e-1)}},PropertyInterface=function(t,i){var e={_name:t};return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},ShapeExpressionInterface=function(){function t(t,h,l){var p,d=[],m=t?t.length:0;for(p=0;p<m;p+=1)"gr"===t[p].ty?d.push(i(t[p],h[p],l)):"fl"===t[p].ty?d.push(e(t[p],h[p],l)):"st"===t[p].ty?d.push(r(t[p],h[p],l)):"tm"===t[p].ty?d.push(n(t[p],h[p],l)):"tr"===t[p].ty||d.push("el"===t[p].ty?o(t[p],h[p],l):"sr"===t[p].ty?a(t[p],h[p],l):"sh"===t[p].ty?ShapePathInterface(t[p],h[p],l):"rc"===t[p].ty?f(t[p],h[p],l):"rd"===t[p].ty?c(t[p],h[p],l):"rp"===t[p].ty?u(t[p],h[p],l):"gf"===t[p].ty?s(t[p],h[p],l):function(){return null});return d}function i(i,e,s){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,s);var n=function(i,e,s){var r,n=function(t){for(var i=0,e=r.length;i<e;){if(r[i]._name===t||r[i].mn===t||r[i].propertyIndex===t||r[i].ix===t||r[i].ind===t)return r[i];i+=1}return"number"==typeof t?r[t-1]:null};n.propertyGroup=propertyGroupFactory(n,s),r=t(i.it,e.it,n.propertyGroup),n.numProperties=r.length;var o=h(i.it[i.it.length-1],e.it[e.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=i.cix,n._name=i.nm,n}(i,e,r.propertyGroup),o=h(i.it[i.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.content=n,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return i.nm}}),r.numProperties=i.np,r.propertyIndex=i.ix,r.nm=i.nm,r.mn=i.mn,r}function e(t,i,e){function s(t){return"Color"===t||"color"===t?s.color:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm},mn:{value:t.mn}}),i.c.setGroupProperty(PropertyInterface("Color",e)),i.o.setGroupProperty(PropertyInterface("Opacity",e)),s}function s(t,i,e){function s(t){return"Start Point"===t||"start point"===t?s.startPoint:"End Point"===t||"end point"===t?s.endPoint:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(i.s)},endPoint:{get:ExpressionPropertyInterface(i.e)},opacity:{get:ExpressionPropertyInterface(i.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),i.s.setGroupProperty(PropertyInterface("Start Point",e)),i.e.setGroupProperty(PropertyInterface("End Point",e)),i.o.setGroupProperty(PropertyInterface("Opacity",e)),s}function r(t,i,e){var s,r=propertyGroupFactory(f,e),n=propertyGroupFactory(a,r);function h(e){Object.defineProperty(a,t.d[e].nm,{get:ExpressionPropertyInterface(i.d.dataProps[e].p)})}var o=t.d?t.d.length:0,a={};for(s=0;s<o;s+=1)h(s),i.d.dataProps[s].p.setGroupProperty(n);function f(t){return"Color"===t||"color"===t?f.color:"Opacity"===t||"opacity"===t?f.opacity:"Stroke Width"===t||"stroke width"===t?f.strokeWidth:null}return Object.defineProperties(f,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function(){return a}},_name:{value:t.nm},mn:{value:t.mn}}),i.c.setGroupProperty(PropertyInterface("Color",r)),i.o.setGroupProperty(PropertyInterface("Opacity",r)),i.w.setGroupProperty(PropertyInterface("Stroke Width",r)),f}function n(t,i,e){function s(i){return i===t.e.ix||"End"===i||"end"===i?s.end:i===t.s.ix?s.start:i===t.o.ix?s.offset:null}var r=propertyGroupFactory(s,e);return s.propertyIndex=t.ix,i.s.setGroupProperty(PropertyInterface("Start",r)),i.e.setGroupProperty(PropertyInterface("End",r)),i.o.setGroupProperty(PropertyInterface("Offset",r)),s.propertyIndex=t.ix,s.propertyGroup=e,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(i.s)},end:{get:ExpressionPropertyInterface(i.e)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function h(t,i,e){function s(i){return t.a.ix===i||"Anchor Point"===i?s.anchorPoint:t.o.ix===i||"Opacity"===i?s.opacity:t.p.ix===i||"Position"===i?s.position:t.r.ix===i||"Rotation"===i||"ADBE Vector Rotation"===i?s.rotation:t.s.ix===i||"Scale"===i?s.scale:t.sk&&t.sk.ix===i||"Skew"===i?s.skew:t.sa&&t.sa.ix===i||"Skew Axis"===i?s.skewAxis:null}var r=propertyGroupFactory(s,e);return i.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),i.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),i.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),i.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),i.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),i.transform.mProps.sk&&(i.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),i.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),i.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(i.transform.mProps.o)},position:{get:ExpressionPropertyInterface(i.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(i.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(i.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(i.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(i.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(i.transform.mProps.sa)},_name:{value:t.nm}}),s.ty="tr",s.mn=t.mn,s.propertyGroup=e,s}function o(t,i,e){function s(i){return t.p.ix===i?s.position:t.s.ix===i?s.size:null}var r=propertyGroupFactory(s,e);s.propertyIndex=t.ix;var n="tm"===i.sh.ty?i.sh.prop:i.sh;return n.s.setGroupProperty(PropertyInterface("Size",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:t.nm}}),s.mn=t.mn,s}function a(t,i,e){function s(i){return t.p.ix===i?s.position:t.r.ix===i?s.rotation:t.pt.ix===i?s.points:t.or.ix===i||"ADBE Vector Star Outer Radius"===i?s.outerRadius:t.os.ix===i?s.outerRoundness:!t.ir||t.ir.ix!==i&&"ADBE Vector Star Inner Radius"!==i?t.is&&t.is.ix===i?s.innerRoundness:null:s.innerRadius}var r=propertyGroupFactory(s,e),n="tm"===i.sh.ty?i.sh.prop:i.sh;return s.propertyIndex=t.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",r)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),n.pt.setGroupProperty(PropertyInterface("Points",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:t.nm}}),s.mn=t.mn,s}function f(t,i,e){function s(i){return t.p.ix===i?s.position:t.r.ix===i?s.roundness:t.s.ix===i||"Size"===i||"ADBE Vector Rect Size"===i?s.size:null}var r=propertyGroupFactory(s,e),n="tm"===i.sh.ty?i.sh.prop:i.sh;return s.propertyIndex=t.ix,n.p.setGroupProperty(PropertyInterface("Position",r)),n.s.setGroupProperty(PropertyInterface("Size",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:t.nm}}),s.mn=t.mn,s}function c(t,i,e){function s(i){return t.r.ix===i||"Round Corners 1"===i?s.radius:null}var r=propertyGroupFactory(s,e),n=i;return s.propertyIndex=t.ix,n.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:t.nm}}),s.mn=t.mn,s}function u(t,i,e){function s(i){return t.c.ix===i||"Copies"===i?s.copies:t.o.ix===i||"Offset"===i?s.offset:null}var r=propertyGroupFactory(s,e),n=i;return s.propertyIndex=t.ix,n.c.setGroupProperty(PropertyInterface("Copies",r)),n.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:t.nm}}),s.mn=t.mn,s}return function(i,e,s){var r;function n(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?s:r[t-1];for(var i=0,e=r.length;i<e;){if(r[i]._name===t)return r[i];i+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return s})),r=t(i,e,n.propertyGroup),n.numProperties=r.length,n._name="Contents",n}}(),TextExpressionInterface=function(t){var i,e;function s(t){switch(t){case"ADBE Text Document":return s.sourceText;default:return null}}return Object.defineProperty(s,"sourceText",{get:function(){t.textProperty.getValue();var s=t.textProperty.currentData.t;return s!==i&&(t.textProperty.currentData.t=i,(e=new String(s)).value=s||new String(s)),e}}),s},LayerExpressionInterface=function(){function t(t){var i=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(i):this._elem.finalTransform.mProp.applyToMatrix(i),i}function i(t,i){var e=this.getMatrix(i);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function e(t,i){var e=this.getMatrix(i);return this.applyPoint(e,t)}function s(t,i){var e=this.getMatrix(i);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function r(t,i){var e=this.getMatrix(i);return this.invertPoint(e,t)}function n(t,i){if(this._elem.hierarchy&&this._elem.hierarchy.length){var e,s=this._elem.hierarchy.length;for(e=0;e<s;e+=1)this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(i[0],i[1],i[2]||0)}function h(t,i){if(this._elem.hierarchy&&this._elem.hierarchy.length){var e,s=this._elem.hierarchy.length;for(e=0;e<s;e+=1)this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(i)}function o(t){var i=new Matrix;if(i.reset(),this._elem.finalTransform.mProp.applyToMatrix(i),this._elem.hierarchy&&this._elem.hierarchy.length){var e,s=this._elem.hierarchy.length;for(e=0;e<s;e+=1)this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(i);return i.inversePoint(t)}return i.inversePoint(t)}function a(){return[1,1,1,1]}return function(f){var c;function u(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=t,u.invertPoint=h,u.applyPoint=n,u.toWorld=e,u.toWorldVec=i,u.fromWorld=r,u.fromWorldVec=s,u.toComp=e,u.fromComp=o,u.sampleImage=a,u.sourceRectAtTime=f.sourceRectAtTime.bind(f),u._elem=f;var l=getDescriptor(c=TransformExpressionInterface(f.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return f.hierarchy.length}},parent:{get:function(){return f.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:l,anchor_point:l,transform:{get:function(){return c}},active:{get:function(){return f.isInRange}}}),u.startTime=f.data.st,u.index=f.data.ind,u.source=f.data.refId,u.height=0===f.data.ty?f.data.h:100,u.width=0===f.data.ty?f.data.w:100,u.inPoint=f.data.ip/f.comp.globalData.frameRate,u.outPoint=f.data.op/f.comp.globalData.frameRate,u._name=f.data.nm,u.registerMaskInterface=function(t){u.mask=new MaskManagerInterface(t,f)},u.registerEffectsInterface=function(t){u.effect=t},u}}(),FootageInterface=(dataInterfaceFactory=function(t){function i(t){return"Outline"===t?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=function(t){var i="",e=t.getFootageData();function s(t){if(e[t])return i=t,"object"==typeof(e=e[t])?s:e;var r=t.indexOf(i);if(-1!==r){var n=parseInt(t.substr(r+i.length),10);return"object"==typeof(e=e[n])?s:e}return""}return function(){return i="",e=t.getFootageData(),s}}(t),i},function(t){function i(t){return"Data"===t?i.dataInterface:null}return i._name="Data",i.dataInterface=dataInterfaceFactory(t),i}),dataInterfaceFactory,CompExpressionInterface=function(t){function i(i){for(var e=0,s=t.layers.length;e<s;){if(t.layers[e].nm===i||t.layers[e].ind===i)return t.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(i,"_name",{value:t.data.nm}),i.layer=i,i.pixelAspect=1,i.height=t.data.h||t.globalData.compSize.h,i.width=t.data.w||t.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/t.globalData.frameRate,i.displayStartTime=0,i.numLayers=t.layers.length,i},TransformExpressionInterface=function(t){function i(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}var e,s,r,n;return Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?n=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),s=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(i,"position",{get:function(){return t.p?n():[e(),s(),r?r():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(t.or)}),i},ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function i(t){for(var i=0,e=this.compositions.length;i<e;){if(this.compositions[i].data&&this.compositions[i].data.nm===t)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=t,i}}(),EffectsExpressionInterface=function(){function t(e,s,r,n){function h(t){for(var i=e.ef,s=0,r=i.length;s<r;){if(t===i[s].nm||t===i[s].mn||t===i[s].ix)return 5===i[s].ty?f[s]:f[s]();s+=1}throw new Error}var o,a=propertyGroupFactory(h,r),f=[],c=e.ef.length;for(o=0;o<c;o+=1)f.push(5===e.ef[o].ty?t(e.ef[o],s.effectElements[o],s.effectElements[o].propertyGroup,n):i(s.effectElements[o],e.ef[o].ty,n,a));return"ADBE Color Control"===e.mn&&Object.defineProperty(h,"color",{get:function(){return f[0]()}}),Object.defineProperties(h,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:a}}),h.active=h.enabled=0!==e.en,h}function i(t,i,e,s){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",s)),function(){return 10===i?e.comp.compInterface(t.p.v):r()}}return{createEffectsInterface:function(i,e){if(i.effectsManager){var s,r=[],n=i.data.ef,h=i.effectsManager.effectElements.length;for(s=0;s<h;s+=1)r.push(t(n[s],i.effectsManager.effectElements[s],e,i));var o=i.data.ef||[],a=function(t){for(s=0,h=o.length;s<h;){if(t===o[s].nm||t===o[s].mn||t===o[s].ix)return r[s];s+=1}return null};return Object.defineProperty(a,"numProperties",{get:function(){return o.length}}),a}return null}}}(),MaskManagerInterface=function(){function t(t,i){this._mask=t,this._data=i}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(i){var e,s=createSizedArray(i.viewData.length),r=i.viewData.length;for(e=0;e<r;e+=1)s[e]=new t(i.viewData[e],i.masksProperties[e]);return function(t){for(e=0;e<r;){if(i.masksProperties[e].nm===t)return s[e];e+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function e(t,i,e){Object.defineProperty(t,"velocity",{get:function(){return i.getVelocityAtTime(i.comp.currentFrame)}}),t.numKeys=i.keyframes?i.keyframes.length:0,t.key=function(s){if(!t.numKeys)return 0;var r;r="s"in i.keyframes[s-1]?i.keyframes[s-1].s:"e"in i.keyframes[s-2]?i.keyframes[s-2].e:i.keyframes[s-2].s;var n="unidimensional"===e?new Number(r):Object.assign({},r);return n.time=i.keyframes[s-1].t/i.elem.comp.globalData.frameRate,n.value="unidimensional"===e?r[0]:r,n},t.valueAtTime=i.getValueAtTime,t.speedAtTime=i.getSpeedAtTime,t.velocityAtTime=i.getVelocityAtTime,t.propertyGroup=i.propertyGroup}function s(){return t}return function(r){return r?"unidimensional"===r.propType?function(i){i&&"pv"in i||(i=t);var s=1/i.mult,r=i.pv*s,n=new Number(r);return n.value=r,e(n,i,"unidimensional"),function(){return i.k&&i.getValue(),n.value!==(r=i.v*s)&&((n=new Number(r)).value=r,e(n,i,"unidimensional")),n}}(r):function(t){t&&"pv"in t||(t=i);var s=1/t.mult,r=t.data&&t.data.l||t.pv.length,n=createTypedArray("float32",r),h=createTypedArray("float32",r);return n.value=h,e(n,t,"multidimensional"),function(){t.k&&t.getValue();for(var i=0;i<r;i+=1)h[i]=t.v[i]*s,n[i]=h[i];return n}}(r):s}}(),TextExpressionSelectorPropFactory=function(){function t(t,i){return this.textIndex=t+1,this.textTotal=i,this.v=this.getValue()*this.mult,this.v}return function(i,e){this.pv=1,this.comp=i.comp,this.elem=i,this.mult=.01,this.propType="textSelector",this.textTotal=e.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(i,e,this),this.getMult=t,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.getValueAtTime=this.kf?expressionHelpers.getValueAtTime.bind(this):expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),propertyGetTextProp=TextSelectorProp.getTextSelectorProp;function SliderEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function AngleEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function ColorEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,1,0,e)}function PointEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,1,0,e)}function LayerIndexEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function MaskIndexEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function CheckboxEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function NoValueEffect(){this.p={}}function EffectsManager(t,i){var e,s=t.ef||[];this.effectElements=[];var r,n=s.length;for(e=0;e<n;e+=1)r=new GroupEffect(s[e],i),this.effectElements.push(r)}function GroupEffect(t,i){this.init(t,i)}TextSelectorProp.getTextSelectorProp=function(t,i,e){return 1===i.t?new TextExpressionSelectorPropFactory(t,i,e):propertyGetTextProp(t,i,e)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,i){var e;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(i);var s,r=this.data.ef.length,n=this.data.ef;for(e=0;e<r;e+=1){switch(s=null,n[e].ty){case 0:s=new SliderEffect(n[e],i,this);break;case 1:s=new AngleEffect(n[e],i,this);break;case 2:s=new ColorEffect(n[e],i,this);break;case 3:s=new PointEffect(n[e],i,this);break;case 4:case 7:s=new CheckboxEffect(n[e],i,this);break;case 10:s=new LayerIndexEffect(n[e],i,this);break;case 11:s=new MaskIndexEffect(n[e],i,this);break;case 5:s=new EffectsManager(n[e],i,this);break;default:s=new NoValueEffect(n[e],i,this)}s&&this.effectElements.push(s)}};var lottie={},queryString;function setLocationHref(t){locationHref=t}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function setIDPrefix(t){idPrefix=t}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;default:case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,i){"expressions"===t&&(expressionsPlugin=i)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var i=queryString.split("&"),e=0;e<i.length;e+=1){var s=i[e].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.setIDPrefix=setIDPrefix,lottie.__getFactory=getFactory,lottie.version="5.7.13";var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src.replace(/^[^\?]+\??/,""),getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);return lottie},module.exports?module.exports=factory(root):(root.lottie=factory(root),root.bodymovin=root.lottie))})),PlayerState,PlayMode;function parseSrc(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(i){return new URL(t,window.location.href).toString()}}!function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"}(PlayerState||(PlayerState={})),function(t){t.Normal="normal",t.Bounce="bounce"}(PlayMode||(PlayMode={}));const lottiePlayerCss=":host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:transparent;--lottie-player-toolbar-icon-color:#999;--lottie-player-toolbar-icon-hover-color:#222;--lottie-player-toolbar-icon-active-color:#555;--lottie-player-seeker-track-color:#CCC;--lottie-player-seeker-thumb-color:rgba(0, 107, 120, 0.8);display:block;width:100%;height:100%}.main{box-sizing:border-box;display:inline-grid;grid-auto-columns:auto;grid-template-rows:auto;position:relative;height:inherit;width:inherit}.main.controls{grid-template-rows:1fr var(--lottie-player-toolbar-height)}.animation{overflow:hidden;height:calc(1fr - var(--lottie-player-toolbar-height))}.toolbar{display:grid;grid-template-columns:32px 32px 1fr 32px 32px;align-items:center;justify-items:center;background-color:var(--lottie-player-toolbar-background-color)}.toolbar button{cursor:pointer;fill:var(--lottie-player-toolbar-icon-color);display:flex;background:none;border:0;padding:0;outline:none;height:100%}.toolbar button:hover{fill:var(--lottie-player-toolbar-icon-hover-color)}.toolbar button.active{fill:var(--lottie-player-toolbar-icon-active-color)}.toolbar button.disabled svg{display:none}.toolbar a{filter:grayscale(100%);display:flex;transition:filter .5s, opacity 0.5s;opacity:0.4;height:100%;align-items:center}.toolbar a:hover{filter:none;display:flex;opacity:1}.seeker{-webkit-appearance:none;width:95%;outline:none}.seeker::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-webkit-slider-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer;-webkit-appearance:none;margin-top:-5px}.seeker:focus::-webkit-slider-runnable-track{background:#999}.seeker::-moz-range-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-moz-range-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker::-ms-track{width:100%;height:5px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.seeker::-ms-fill-lower{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-thumb{border:0;height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker:focus::-ms-fill-lower{background:var(--lottie-player-seeker-track-color)}.seeker:focus::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}.error{display:flex;justify-content:center;height:100%;align-items:center}";let LottiePlayer=class{constructor(t){registerInstance(this,t),this.error=createEvent(this,"error",7),this.frame=createEvent(this,"frame",7),this.complete=createEvent(this,"complete",7),this.looped=createEvent(this,"looped",7),this.ready=createEvent(this,"ready",7),this.loaded=createEvent(this,"loaded",7),this.playing=createEvent(this,"playing",7),this.paused=createEvent(this,"paused",7),this.stopped=createEvent(this,"stopped",7),this.freezed=createEvent(this,"freezed",7),this.mode=PlayMode.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.loop=!1,this.renderer="svg",this.speed=1,this.currentState=PlayerState.Loading,this.intermission=1,this._counter=0}componentDidLoad(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver((t=>{t[0].isIntersecting?this.currentState===PlayerState.Frozen&&this.play():this.currentState===PlayerState.Playing&&this.freeze()})),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>this.onVisibilityChange())),this.src&&this.load(this.src)}load(t){const i={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{const e=parseSrc(t),s="string"==typeof e?"path":"animationData";this._lottie&&this._lottie.destroy(),this._lottie=lottie_svg.loadAnimation(Object.assign(Object.assign({},i),{[s]:e}))}catch(t){return this.currentState=PlayerState.Error,void this.error.emit()}this._lottie&&(this._lottie.addEventListener("enterFrame",(()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.frame.emit({frame:this._lottie.currentFrame,seeker:this.seeker})})),this._lottie.addEventListener("complete",(()=>{this.currentState===PlayerState.Playing?!this.loop||this.count&&this._counter>=this.count?this.complete.emit():this.mode===PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout((()=>{this.looped.emit(),this.currentState===PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())}),this.intermission)):(this.count&&(this._counter+=1),window.setTimeout((()=>{this.looped.emit(),this.currentState===PlayerState.Playing&&(this._lottie.stop(),this._lottie.play())}),this.intermission)):this.complete.emit()})),this._lottie.addEventListener("DOMLoaded",(()=>{this.ready.emit()})),this._lottie.addEventListener("data_ready",(()=>{this.loaded.emit()})),this._lottie.addEventListener("data_failed",(()=>{this.currentState=PlayerState.Error,this.error.emit()})),this.container.addEventListener("mouseenter",(()=>{this.hover&&this.currentState!==PlayerState.Playing&&this.play()})),this.container.addEventListener("mouseleave",(()=>{this.hover&&this.currentState===PlayerState.Playing&&this.stop()})),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play())}async play(){this._lottie&&(this._lottie.play(),this.currentState=PlayerState.Playing,this.playing.emit())}async pause(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Paused,this.paused.emit())}async stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.currentState=PlayerState.Stopped,this.stopped.emit())}async seek(t){if(!this._lottie)return;const i=t.toString().match(/^([0-9]+)(%?)$/);if(!i)return;const e="%"===i[2]?this._lottie.totalFrames*Number(i[1])/100:i[1];this.seeker=e,this.currentState===PlayerState.Playing?this._lottie.goToAndPlay(e,!0):(this._lottie.goToAndStop(e,!0),this._lottie.pause())}freeze(){this._lottie&&(this.currentState=PlayerState.Frozen,this.freezed.emit())}async getLottie(){return this._lottie}async setSpeed(t=1){this._lottie&&this._lottie.setSpeed(t)}async setDirection(t){this._lottie&&this._lottie.setDirection(t)}async setLooping(t){this._lottie&&(this.loop=t,this._lottie.loop=t)}async togglePlay(){return this.currentState===PlayerState.Playing?this.pause():this.play()}async toggleLooping(){this.setLooping(!this.loop)}renderButtonIcon(t){return h("svg",{width:"24",height:"24"},h("path",t?{d:"M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"}:{d:"M8.016 5.016L18.985 12 8.016 18.984V5.015z"}))}renderControls(){const t=this.currentState===PlayerState.Playing,i=this.currentState===PlayerState.Stopped;return h("div",{class:"toolbar"},h("button",{class:{active:t||this.currentState===PlayerState.Paused},onClick:()=>this.togglePlay()},this.renderButtonIcon(t)),h("button",{class:{active:i},onClick:()=>this.stop()},h("svg",{width:"24",height:"24"},h("path",{d:"M6 6h12v12H6V6z"}))),h("input",{class:"seeker",type:"range",min:"0",step:"1",max:"100",value:this.seeker,onInput:t=>this.handleSeekChange(t),onMouseDown:()=>{this._prevState=this.currentState,this.freeze()},onMouseUp:()=>{this._prevState===PlayerState.Playing&&this.play()}}),h("button",{class:{active:this.loop},onClick:()=>this.toggleLooping()},h("svg",{width:"24",height:"24"},h("path",{d:"M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"}))),h("a",{href:"https://www.lottiefiles.com/",target:"_blank"},h("svg",{width:"24",height:"24",viewBox:"0 0 320 320","fill-rule":"nonzero"},h("rect",{fill:"#adadad",x:".5",y:".5",width:"100%",height:"100%",rx:"26.73"}),h("path",{d:"M251.304 65.44a16.55 16.55 0 0 1 13.927 18.789c-1.333 9.04-9.73 15.292-18.762 13.954-15.992-2.37-39.95 22.534-66.77 73.74-34.24 65.37-66.113 96.517-99.667 94.032-9.102-.674-15.93-8.612-15.258-17.723s8.592-15.96 17.695-15.286c16.57 1.227 40.908-24.737 67.97-76.4 34.46-65.79 66.764-96.157 100.866-91.105z",fill:"#fff"}))))}render(){return h("div",{class:{main:!0,controls:this.controls}},h("div",{class:"animation",style:{background:this.background},ref:t=>this.container=t},this.currentState===PlayerState.Error?h("div",{class:"error"},"⚠️"):void 0),this.controls?this.renderControls():void 0)}onVisibilityChange(){!0===document.hidden&&this.currentState===PlayerState.Playing?this.freeze():this.currentState===PlayerState.Frozen&&this.play()}handleSeekChange(t){this._lottie&&!isNaN(t.target.value)&&this.seek(t.target.value/100*this._lottie.totalFrames)}};LottiePlayer.style=lottiePlayerCss;export{LottiePlayer as lottie_player}
|