@paolataboada/trez-ui 1.0.0 → 1.1.1
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/trez-ui.css +1 -1
- package/dist/trez-ui.d.ts +13 -2
- package/dist/trez-ui.js +9529 -3
- package/dist/trez-ui.umd.cjs +21 -1
- package/package.json +12 -9
package/dist/trez-ui.umd.cjs
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["trez-ui"]={},e["react/jsx-runtime"]))})(this,(function(e,t){"use strict";const n=({children:i})=>t.jsx("button",{className:"bg-amber-500 rounded-lg py-1 px-3 cursor-pointer",children:i});e.Button=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["trez-ui"]={},e["react/jsx-runtime"],e.React))})(this,(function(exports,jsxRuntime,require$$6){"use strict";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dist={},_extends={},es6_object_assign={},_global={exports:{}},hasRequired_global;function require_global(){if(hasRequired_global)return _global.exports;hasRequired_global=1;var e=_global.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();return typeof __g=="number"&&(__g=e),_global.exports}var _core={exports:{}},hasRequired_core;function require_core(){if(hasRequired_core)return _core.exports;hasRequired_core=1;var e=_core.exports={version:"2.6.12"};return typeof __e=="number"&&(__e=e),_core.exports}var _aFunction,hasRequired_aFunction;function require_aFunction(){return hasRequired_aFunction||(hasRequired_aFunction=1,_aFunction=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}),_aFunction}var _ctx,hasRequired_ctx;function require_ctx(){if(hasRequired_ctx)return _ctx;hasRequired_ctx=1;var e=require_aFunction();return _ctx=function(t,r,i){if(e(t),r===void 0)return t;switch(i){case 1:return function(s){return t.call(r,s)};case 2:return function(s,n){return t.call(r,s,n)};case 3:return function(s,n,a){return t.call(r,s,n,a)}}return function(){return t.apply(r,arguments)}},_ctx}var _objectDp={},_isObject,hasRequired_isObject;function require_isObject(){return hasRequired_isObject||(hasRequired_isObject=1,_isObject=function(e){return typeof e=="object"?e!==null:typeof e=="function"}),_isObject}var _anObject,hasRequired_anObject;function require_anObject(){if(hasRequired_anObject)return _anObject;hasRequired_anObject=1;var e=require_isObject();return _anObject=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t},_anObject}var _fails,hasRequired_fails;function require_fails(){return hasRequired_fails||(hasRequired_fails=1,_fails=function(e){try{return!!e()}catch{return!0}}),_fails}var _descriptors,hasRequired_descriptors;function require_descriptors(){return hasRequired_descriptors||(hasRequired_descriptors=1,_descriptors=!require_fails()(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})),_descriptors}var _domCreate,hasRequired_domCreate;function require_domCreate(){if(hasRequired_domCreate)return _domCreate;hasRequired_domCreate=1;var e=require_isObject(),t=require_global().document,r=e(t)&&e(t.createElement);return _domCreate=function(i){return r?t.createElement(i):{}},_domCreate}var _ie8DomDefine,hasRequired_ie8DomDefine;function require_ie8DomDefine(){return hasRequired_ie8DomDefine||(hasRequired_ie8DomDefine=1,_ie8DomDefine=!require_descriptors()&&!require_fails()(function(){return Object.defineProperty(require_domCreate()("div"),"a",{get:function(){return 7}}).a!=7})),_ie8DomDefine}var _toPrimitive,hasRequired_toPrimitive;function require_toPrimitive(){if(hasRequired_toPrimitive)return _toPrimitive;hasRequired_toPrimitive=1;var e=require_isObject();return _toPrimitive=function(t,r){if(!e(t))return t;var i,s;if(r&&typeof(i=t.toString)=="function"&&!e(s=i.call(t))||typeof(i=t.valueOf)=="function"&&!e(s=i.call(t))||!r&&typeof(i=t.toString)=="function"&&!e(s=i.call(t)))return s;throw TypeError("Can't convert object to primitive value")},_toPrimitive}var hasRequired_objectDp;function require_objectDp(){if(hasRequired_objectDp)return _objectDp;hasRequired_objectDp=1;var e=require_anObject(),t=require_ie8DomDefine(),r=require_toPrimitive(),i=Object.defineProperty;return _objectDp.f=require_descriptors()?Object.defineProperty:function(n,a,l){if(e(n),a=r(a,!0),e(l),t)try{return i(n,a,l)}catch{}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(n[a]=l.value),n},_objectDp}var _propertyDesc,hasRequired_propertyDesc;function require_propertyDesc(){return hasRequired_propertyDesc||(hasRequired_propertyDesc=1,_propertyDesc=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),_propertyDesc}var _hide,hasRequired_hide;function require_hide(){if(hasRequired_hide)return _hide;hasRequired_hide=1;var e=require_objectDp(),t=require_propertyDesc();return _hide=require_descriptors()?function(r,i,s){return e.f(r,i,t(1,s))}:function(r,i,s){return r[i]=s,r},_hide}var _has,hasRequired_has;function require_has(){if(hasRequired_has)return _has;hasRequired_has=1;var e={}.hasOwnProperty;return _has=function(t,r){return e.call(t,r)},_has}var _export,hasRequired_export;function require_export(){if(hasRequired_export)return _export;hasRequired_export=1;var e=require_global(),t=require_core(),r=require_ctx(),i=require_hide(),s=require_has(),n="prototype",a=function(l,o,f){var m=l&a.F,E=l&a.G,p=l&a.S,P=l&a.P,b=l&a.B,c=l&a.W,T=E?t:t[o]||(t[o]={}),d=T[n],y=E?e:p?e[o]:(e[o]||{})[n],u,g,S;E&&(f=o);for(u in f)g=!m&&y&&y[u]!==void 0,!(g&&s(T,u))&&(S=g?y[u]:f[u],T[u]=E&&typeof y[u]!="function"?f[u]:b&&g?r(S,e):c&&y[u]==S?(function(A){var F=function(k,q,z){if(this instanceof A){switch(arguments.length){case 0:return new A;case 1:return new A(k);case 2:return new A(k,q)}return new A(k,q,z)}return A.apply(this,arguments)};return F[n]=A[n],F})(S):P&&typeof S=="function"?r(Function.call,S):S,P&&((T.virtual||(T.virtual={}))[u]=S,l&a.R&&d&&!d[u]&&i(d,u,S)))};return a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,_export=a,_export}var _cof,hasRequired_cof;function require_cof(){if(hasRequired_cof)return _cof;hasRequired_cof=1;var e={}.toString;return _cof=function(t){return e.call(t).slice(8,-1)},_cof}var _iobject,hasRequired_iobject;function require_iobject(){if(hasRequired_iobject)return _iobject;hasRequired_iobject=1;var e=require_cof();return _iobject=Object("z").propertyIsEnumerable(0)?Object:function(t){return e(t)=="String"?t.split(""):Object(t)},_iobject}var _defined,hasRequired_defined;function require_defined(){return hasRequired_defined||(hasRequired_defined=1,_defined=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}),_defined}var _toIobject,hasRequired_toIobject;function require_toIobject(){if(hasRequired_toIobject)return _toIobject;hasRequired_toIobject=1;var e=require_iobject(),t=require_defined();return _toIobject=function(r){return e(t(r))},_toIobject}var _toInteger,hasRequired_toInteger;function require_toInteger(){if(hasRequired_toInteger)return _toInteger;hasRequired_toInteger=1;var e=Math.ceil,t=Math.floor;return _toInteger=function(r){return isNaN(r=+r)?0:(r>0?t:e)(r)},_toInteger}var _toLength,hasRequired_toLength;function require_toLength(){if(hasRequired_toLength)return _toLength;hasRequired_toLength=1;var e=require_toInteger(),t=Math.min;return _toLength=function(r){return r>0?t(e(r),9007199254740991):0},_toLength}var _toAbsoluteIndex,hasRequired_toAbsoluteIndex;function require_toAbsoluteIndex(){if(hasRequired_toAbsoluteIndex)return _toAbsoluteIndex;hasRequired_toAbsoluteIndex=1;var e=require_toInteger(),t=Math.max,r=Math.min;return _toAbsoluteIndex=function(i,s){return i=e(i),i<0?t(i+s,0):r(i,s)},_toAbsoluteIndex}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var e=require_toIobject(),t=require_toLength(),r=require_toAbsoluteIndex();return _arrayIncludes=function(i){return function(s,n,a){var l=e(s),o=t(l.length),f=r(a,o),m;if(i&&n!=n){for(;o>f;)if(m=l[f++],m!=m)return!0}else for(;o>f;f++)if((i||f in l)&&l[f]===n)return i||f||0;return!i&&-1}},_arrayIncludes}var _shared={exports:{}},_library,hasRequired_library;function require_library(){return hasRequired_library||(hasRequired_library=1,_library=!0),_library}var hasRequired_shared;function require_shared(){if(hasRequired_shared)return _shared.exports;hasRequired_shared=1;var e=require_core(),t=require_global(),r="__core-js_shared__",i=t[r]||(t[r]={});return(_shared.exports=function(s,n){return i[s]||(i[s]=n!==void 0?n:{})})("versions",[]).push({version:e.version,mode:require_library()?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"}),_shared.exports}var _uid,hasRequired_uid;function require_uid(){if(hasRequired_uid)return _uid;hasRequired_uid=1;var e=0,t=Math.random();return _uid=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++e+t).toString(36))},_uid}var _sharedKey,hasRequired_sharedKey;function require_sharedKey(){if(hasRequired_sharedKey)return _sharedKey;hasRequired_sharedKey=1;var e=require_shared()("keys"),t=require_uid();return _sharedKey=function(r){return e[r]||(e[r]=t(r))},_sharedKey}var _objectKeysInternal,hasRequired_objectKeysInternal;function require_objectKeysInternal(){if(hasRequired_objectKeysInternal)return _objectKeysInternal;hasRequired_objectKeysInternal=1;var e=require_has(),t=require_toIobject(),r=require_arrayIncludes()(!1),i=require_sharedKey()("IE_PROTO");return _objectKeysInternal=function(s,n){var a=t(s),l=0,o=[],f;for(f in a)f!=i&&e(a,f)&&o.push(f);for(;n.length>l;)e(a,f=n[l++])&&(~r(o,f)||o.push(f));return o},_objectKeysInternal}var _enumBugKeys,hasRequired_enumBugKeys;function require_enumBugKeys(){return hasRequired_enumBugKeys||(hasRequired_enumBugKeys=1,_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")),_enumBugKeys}var _objectKeys,hasRequired_objectKeys;function require_objectKeys(){if(hasRequired_objectKeys)return _objectKeys;hasRequired_objectKeys=1;var e=require_objectKeysInternal(),t=require_enumBugKeys();return _objectKeys=Object.keys||function(i){return e(i,t)},_objectKeys}var _objectGops={},hasRequired_objectGops;function require_objectGops(){return hasRequired_objectGops||(hasRequired_objectGops=1,_objectGops.f=Object.getOwnPropertySymbols),_objectGops}var _objectPie={},hasRequired_objectPie;function require_objectPie(){return hasRequired_objectPie||(hasRequired_objectPie=1,_objectPie.f={}.propertyIsEnumerable),_objectPie}var _toObject,hasRequired_toObject;function require_toObject(){if(hasRequired_toObject)return _toObject;hasRequired_toObject=1;var e=require_defined();return _toObject=function(t){return Object(e(t))},_toObject}var _objectAssign,hasRequired_objectAssign;function require_objectAssign(){if(hasRequired_objectAssign)return _objectAssign;hasRequired_objectAssign=1;var e=require_descriptors(),t=require_objectKeys(),r=require_objectGops(),i=require_objectPie(),s=require_toObject(),n=require_iobject(),a=Object.assign;return _objectAssign=!a||require_fails()(function(){var l={},o={},f=Symbol(),m="abcdefghijklmnopqrst";return l[f]=7,m.split("").forEach(function(E){o[E]=E}),a({},l)[f]!=7||Object.keys(a({},o)).join("")!=m})?function(o,f){for(var m=s(o),E=arguments.length,p=1,P=r.f,b=i.f;E>p;)for(var c=n(arguments[p++]),T=P?t(c).concat(P(c)):t(c),d=T.length,y=0,u;d>y;)u=T[y++],(!e||b.call(c,u))&&(m[u]=c[u]);return m}:a,_objectAssign}var hasRequiredEs6_object_assign;function requireEs6_object_assign(){if(hasRequiredEs6_object_assign)return es6_object_assign;hasRequiredEs6_object_assign=1;var e=require_export();return e(e.S+e.F,"Object",{assign:require_objectAssign()}),es6_object_assign}var assign$1,hasRequiredAssign$1;function requireAssign$1(){return hasRequiredAssign$1||(hasRequiredAssign$1=1,requireEs6_object_assign(),assign$1=require_core().Object.assign),assign$1}var assign,hasRequiredAssign;function requireAssign(){return hasRequiredAssign||(hasRequiredAssign=1,assign={default:requireAssign$1(),__esModule:!0}),assign}var hasRequired_extends;function require_extends(){if(hasRequired_extends)return _extends;hasRequired_extends=1,_extends.__esModule=!0;var e=requireAssign(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}return _extends.default=t.default||function(i){for(var s=1;s<arguments.length;s++){var n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])}return i},_extends}var es6_object_getPrototypeOf={},_objectGpo,hasRequired_objectGpo;function require_objectGpo(){if(hasRequired_objectGpo)return _objectGpo;hasRequired_objectGpo=1;var e=require_has(),t=require_toObject(),r=require_sharedKey()("IE_PROTO"),i=Object.prototype;return _objectGpo=Object.getPrototypeOf||function(s){return s=t(s),e(s,r)?s[r]:typeof s.constructor=="function"&&s instanceof s.constructor?s.constructor.prototype:s instanceof Object?i:null},_objectGpo}var _objectSap,hasRequired_objectSap;function require_objectSap(){if(hasRequired_objectSap)return _objectSap;hasRequired_objectSap=1;var e=require_export(),t=require_core(),r=require_fails();return _objectSap=function(i,s){var n=(t.Object||{})[i]||Object[i],a={};a[i]=s(n),e(e.S+e.F*r(function(){n(1)}),"Object",a)},_objectSap}var hasRequiredEs6_object_getPrototypeOf;function requireEs6_object_getPrototypeOf(){if(hasRequiredEs6_object_getPrototypeOf)return es6_object_getPrototypeOf;hasRequiredEs6_object_getPrototypeOf=1;var e=require_toObject(),t=require_objectGpo();return require_objectSap()("getPrototypeOf",function(){return function(i){return t(e(i))}}),es6_object_getPrototypeOf}var getPrototypeOf$1,hasRequiredGetPrototypeOf$1;function requireGetPrototypeOf$1(){return hasRequiredGetPrototypeOf$1||(hasRequiredGetPrototypeOf$1=1,requireEs6_object_getPrototypeOf(),getPrototypeOf$1=require_core().Object.getPrototypeOf),getPrototypeOf$1}var getPrototypeOf,hasRequiredGetPrototypeOf;function requireGetPrototypeOf(){return hasRequiredGetPrototypeOf||(hasRequiredGetPrototypeOf=1,getPrototypeOf={default:requireGetPrototypeOf$1(),__esModule:!0}),getPrototypeOf}var classCallCheck={},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,classCallCheck.__esModule=!0,classCallCheck.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),classCallCheck}var createClass={},es6_object_defineProperty={},hasRequiredEs6_object_defineProperty;function requireEs6_object_defineProperty(){if(hasRequiredEs6_object_defineProperty)return es6_object_defineProperty;hasRequiredEs6_object_defineProperty=1;var e=require_export();return e(e.S+e.F*!require_descriptors(),"Object",{defineProperty:require_objectDp().f}),es6_object_defineProperty}var defineProperty$1,hasRequiredDefineProperty$1;function requireDefineProperty$1(){if(hasRequiredDefineProperty$1)return defineProperty$1;hasRequiredDefineProperty$1=1,requireEs6_object_defineProperty();var e=require_core().Object;return defineProperty$1=function(r,i,s){return e.defineProperty(r,i,s)},defineProperty$1}var defineProperty,hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,defineProperty={default:requireDefineProperty$1(),__esModule:!0}),defineProperty}var hasRequiredCreateClass;function requireCreateClass(){if(hasRequiredCreateClass)return createClass;hasRequiredCreateClass=1,createClass.__esModule=!0;var e=requireDefineProperty(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}return createClass.default=(function(){function i(s,n){for(var a=0;a<n.length;a++){var l=n[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),(0,t.default)(s,l.key,l)}}return function(s,n,a){return n&&i(s.prototype,n),a&&i(s,a),s}})(),createClass}var possibleConstructorReturn={},_typeof={},es6_string_iterator={},_stringAt,hasRequired_stringAt;function require_stringAt(){if(hasRequired_stringAt)return _stringAt;hasRequired_stringAt=1;var e=require_toInteger(),t=require_defined();return _stringAt=function(r){return function(i,s){var n=String(t(i)),a=e(s),l=n.length,o,f;return a<0||a>=l?r?"":void 0:(o=n.charCodeAt(a),o<55296||o>56319||a+1===l||(f=n.charCodeAt(a+1))<56320||f>57343?r?n.charAt(a):o:r?n.slice(a,a+2):(o-55296<<10)+(f-56320)+65536)}},_stringAt}var _redefine,hasRequired_redefine;function require_redefine(){return hasRequired_redefine||(hasRequired_redefine=1,_redefine=require_hide()),_redefine}var _iterators,hasRequired_iterators;function require_iterators(){return hasRequired_iterators||(hasRequired_iterators=1,_iterators={}),_iterators}var _objectDps,hasRequired_objectDps;function require_objectDps(){if(hasRequired_objectDps)return _objectDps;hasRequired_objectDps=1;var e=require_objectDp(),t=require_anObject(),r=require_objectKeys();return _objectDps=require_descriptors()?Object.defineProperties:function(s,n){t(s);for(var a=r(n),l=a.length,o=0,f;l>o;)e.f(s,f=a[o++],n[f]);return s},_objectDps}var _html,hasRequired_html;function require_html(){if(hasRequired_html)return _html;hasRequired_html=1;var e=require_global().document;return _html=e&&e.documentElement,_html}var _objectCreate,hasRequired_objectCreate;function require_objectCreate(){if(hasRequired_objectCreate)return _objectCreate;hasRequired_objectCreate=1;var e=require_anObject(),t=require_objectDps(),r=require_enumBugKeys(),i=require_sharedKey()("IE_PROTO"),s=function(){},n="prototype",a=function(){var l=require_domCreate()("iframe"),o=r.length,f="<",m=">",E;for(l.style.display="none",require_html().appendChild(l),l.src="javascript:",E=l.contentWindow.document,E.open(),E.write(f+"script"+m+"document.F=Object"+f+"/script"+m),E.close(),a=E.F;o--;)delete a[n][r[o]];return a()};return _objectCreate=Object.create||function(o,f){var m;return o!==null?(s[n]=e(o),m=new s,s[n]=null,m[i]=o):m=a(),f===void 0?m:t(m,f)},_objectCreate}var _wks={exports:{}},hasRequired_wks;function require_wks(){if(hasRequired_wks)return _wks.exports;hasRequired_wks=1;var e=require_shared()("wks"),t=require_uid(),r=require_global().Symbol,i=typeof r=="function",s=_wks.exports=function(n){return e[n]||(e[n]=i&&r[n]||(i?r:t)("Symbol."+n))};return s.store=e,_wks.exports}var _setToStringTag,hasRequired_setToStringTag;function require_setToStringTag(){if(hasRequired_setToStringTag)return _setToStringTag;hasRequired_setToStringTag=1;var e=require_objectDp().f,t=require_has(),r=require_wks()("toStringTag");return _setToStringTag=function(i,s,n){i&&!t(i=n?i:i.prototype,r)&&e(i,r,{configurable:!0,value:s})},_setToStringTag}var _iterCreate,hasRequired_iterCreate;function require_iterCreate(){if(hasRequired_iterCreate)return _iterCreate;hasRequired_iterCreate=1;var e=require_objectCreate(),t=require_propertyDesc(),r=require_setToStringTag(),i={};return require_hide()(i,require_wks()("iterator"),function(){return this}),_iterCreate=function(s,n,a){s.prototype=e(i,{next:t(1,a)}),r(s,n+" Iterator")},_iterCreate}var _iterDefine,hasRequired_iterDefine;function require_iterDefine(){if(hasRequired_iterDefine)return _iterDefine;hasRequired_iterDefine=1;var e=require_library(),t=require_export(),r=require_redefine(),i=require_hide(),s=require_iterators(),n=require_iterCreate(),a=require_setToStringTag(),l=require_objectGpo(),o=require_wks()("iterator"),f=!([].keys&&"next"in[].keys()),m="@@iterator",E="keys",p="values",P=function(){return this};return _iterDefine=function(b,c,T,d,y,u,g){n(T,c,d);var S=function(R){if(!f&&R in q)return q[R];switch(R){case E:return function(){return new T(this,R)};case p:return function(){return new T(this,R)}}return function(){return new T(this,R)}},A=c+" Iterator",F=y==p,k=!1,q=b.prototype,z=q[o]||q[m]||y&&q[y],j=z||S(y),O=y?F?S("entries"):j:void 0,$=c=="Array"&&q.entries||z,B,D,C;if($&&(C=l($.call(new b)),C!==Object.prototype&&C.next&&(a(C,A,!0),!e&&typeof C[o]!="function"&&i(C,o,P))),F&&z&&z.name!==p&&(k=!0,j=function(){return z.call(this)}),(!e||g)&&(f||k||!q[o])&&i(q,o,j),s[c]=j,s[A]=P,y)if(B={values:F?j:S(p),keys:u?j:S(E),entries:O},g)for(D in B)D in q||r(q,D,B[D]);else t(t.P+t.F*(f||k),c,B);return B},_iterDefine}var hasRequiredEs6_string_iterator;function requireEs6_string_iterator(){if(hasRequiredEs6_string_iterator)return es6_string_iterator;hasRequiredEs6_string_iterator=1;var e=require_stringAt()(!0);return require_iterDefine()(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,r=this._i,i;return r>=t.length?{value:void 0,done:!0}:(i=e(t,r),this._i+=i.length,{value:i,done:!1})}),es6_string_iterator}var web_dom_iterable={},_addToUnscopables,hasRequired_addToUnscopables;function require_addToUnscopables(){return hasRequired_addToUnscopables||(hasRequired_addToUnscopables=1,_addToUnscopables=function(){}),_addToUnscopables}var _iterStep,hasRequired_iterStep;function require_iterStep(){return hasRequired_iterStep||(hasRequired_iterStep=1,_iterStep=function(e,t){return{value:t,done:!!e}}),_iterStep}var es6_array_iterator,hasRequiredEs6_array_iterator;function requireEs6_array_iterator(){if(hasRequiredEs6_array_iterator)return es6_array_iterator;hasRequiredEs6_array_iterator=1;var e=require_addToUnscopables(),t=require_iterStep(),r=require_iterators(),i=require_toIobject();return es6_array_iterator=require_iterDefine()(Array,"Array",function(s,n){this._t=i(s),this._i=0,this._k=n},function(){var s=this._t,n=this._k,a=this._i++;return!s||a>=s.length?(this._t=void 0,t(1)):n=="keys"?t(0,a):n=="values"?t(0,s[a]):t(0,[a,s[a]])},"values"),r.Arguments=r.Array,e("keys"),e("values"),e("entries"),es6_array_iterator}var hasRequiredWeb_dom_iterable;function requireWeb_dom_iterable(){if(hasRequiredWeb_dom_iterable)return web_dom_iterable;hasRequiredWeb_dom_iterable=1,requireEs6_array_iterator();for(var e=require_global(),t=require_hide(),r=require_iterators(),i=require_wks()("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),n=0;n<s.length;n++){var a=s[n],l=e[a],o=l&&l.prototype;o&&!o[i]&&t(o,i,a),r[a]=r.Array}return web_dom_iterable}var _wksExt={},hasRequired_wksExt;function require_wksExt(){return hasRequired_wksExt||(hasRequired_wksExt=1,_wksExt.f=require_wks()),_wksExt}var iterator$1,hasRequiredIterator$1;function requireIterator$1(){return hasRequiredIterator$1||(hasRequiredIterator$1=1,requireEs6_string_iterator(),requireWeb_dom_iterable(),iterator$1=require_wksExt().f("iterator")),iterator$1}var iterator,hasRequiredIterator;function requireIterator(){return hasRequiredIterator||(hasRequiredIterator=1,iterator={default:requireIterator$1(),__esModule:!0}),iterator}var es6_symbol={},_meta={exports:{}},hasRequired_meta;function require_meta(){if(hasRequired_meta)return _meta.exports;hasRequired_meta=1;var e=require_uid()("meta"),t=require_isObject(),r=require_has(),i=require_objectDp().f,s=0,n=Object.isExtensible||function(){return!0},a=!require_fails()(function(){return n(Object.preventExtensions({}))}),l=function(p){i(p,e,{value:{i:"O"+ ++s,w:{}}})},o=function(p,P){if(!t(p))return typeof p=="symbol"?p:(typeof p=="string"?"S":"P")+p;if(!r(p,e)){if(!n(p))return"F";if(!P)return"E";l(p)}return p[e].i},f=function(p,P){if(!r(p,e)){if(!n(p))return!0;if(!P)return!1;l(p)}return p[e].w},m=function(p){return a&&E.NEED&&n(p)&&!r(p,e)&&l(p),p},E=_meta.exports={KEY:e,NEED:!1,fastKey:o,getWeak:f,onFreeze:m};return _meta.exports}var _wksDefine,hasRequired_wksDefine;function require_wksDefine(){if(hasRequired_wksDefine)return _wksDefine;hasRequired_wksDefine=1;var e=require_global(),t=require_core(),r=require_library(),i=require_wksExt(),s=require_objectDp().f;return _wksDefine=function(n){var a=t.Symbol||(t.Symbol=r?{}:e.Symbol||{});n.charAt(0)!="_"&&!(n in a)&&s(a,n,{value:i.f(n)})},_wksDefine}var _enumKeys,hasRequired_enumKeys;function require_enumKeys(){if(hasRequired_enumKeys)return _enumKeys;hasRequired_enumKeys=1;var e=require_objectKeys(),t=require_objectGops(),r=require_objectPie();return _enumKeys=function(i){var s=e(i),n=t.f;if(n)for(var a=n(i),l=r.f,o=0,f;a.length>o;)l.call(i,f=a[o++])&&s.push(f);return s},_enumKeys}var _isArray,hasRequired_isArray;function require_isArray(){if(hasRequired_isArray)return _isArray;hasRequired_isArray=1;var e=require_cof();return _isArray=Array.isArray||function(r){return e(r)=="Array"},_isArray}var _objectGopnExt={},_objectGopn={},hasRequired_objectGopn;function require_objectGopn(){if(hasRequired_objectGopn)return _objectGopn;hasRequired_objectGopn=1;var e=require_objectKeysInternal(),t=require_enumBugKeys().concat("length","prototype");return _objectGopn.f=Object.getOwnPropertyNames||function(i){return e(i,t)},_objectGopn}var hasRequired_objectGopnExt;function require_objectGopnExt(){if(hasRequired_objectGopnExt)return _objectGopnExt;hasRequired_objectGopnExt=1;var e=require_toIobject(),t=require_objectGopn().f,r={}.toString,i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(n){try{return t(n)}catch{return i.slice()}};return _objectGopnExt.f=function(a){return i&&r.call(a)=="[object Window]"?s(a):t(e(a))},_objectGopnExt}var _objectGopd={},hasRequired_objectGopd;function require_objectGopd(){if(hasRequired_objectGopd)return _objectGopd;hasRequired_objectGopd=1;var e=require_objectPie(),t=require_propertyDesc(),r=require_toIobject(),i=require_toPrimitive(),s=require_has(),n=require_ie8DomDefine(),a=Object.getOwnPropertyDescriptor;return _objectGopd.f=require_descriptors()?a:function(o,f){if(o=r(o),f=i(f,!0),n)try{return a(o,f)}catch{}if(s(o,f))return t(!e.f.call(o,f),o[f])},_objectGopd}var hasRequiredEs6_symbol;function requireEs6_symbol(){if(hasRequiredEs6_symbol)return es6_symbol;hasRequiredEs6_symbol=1;var e=require_global(),t=require_has(),r=require_descriptors(),i=require_export(),s=require_redefine(),n=require_meta().KEY,a=require_fails(),l=require_shared(),o=require_setToStringTag(),f=require_uid(),m=require_wks(),E=require_wksExt(),p=require_wksDefine(),P=require_enumKeys(),b=require_isArray(),c=require_anObject(),T=require_isObject(),d=require_toObject(),y=require_toIobject(),u=require_toPrimitive(),g=require_propertyDesc(),S=require_objectCreate(),A=require_objectGopnExt(),F=require_objectGopd(),k=require_objectGops(),q=require_objectDp(),z=require_objectKeys(),j=F.f,O=q.f,$=A.f,B=e.Symbol,D=e.JSON,C=D&&D.stringify,R="prototype",_=m("_hidden"),x=m("toPrimitive"),M={}.propertyIsEnumerable,I=l("symbol-registry"),L=l("symbols"),G=l("op-symbols"),V=Object[R],K=typeof B=="function"&&!!k.f,H=e.QObject,X=!H||!H[R]||!H[R].findChild,J=r&&a(function(){return S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(re,W,U){var ee=j(V,W);ee&&delete V[W],O(re,W,U),ee&&re!==V&&O(V,W,ee)}:O,Q=function(re){var W=L[re]=S(B[R]);return W._k=re,W},Z=K&&typeof B.iterator=="symbol"?function(re){return typeof re=="symbol"}:function(re){return re instanceof B},ie=function(W,U,ee){return W===V&&ie(G,U,ee),c(W),U=u(U,!0),c(ee),t(L,U)?(ee.enumerable?(t(W,_)&&W[_][U]&&(W[_][U]=!1),ee=S(ee,{enumerable:g(0,!1)})):(t(W,_)||O(W,_,g(1,{})),W[_][U]=!0),J(W,U,ee)):O(W,U,ee)},N=function(W,U){c(W);for(var ee=P(U=y(U)),se=0,ne=ee.length,le;ne>se;)ie(W,le=ee[se++],U[le]);return W},te=function(W,U){return U===void 0?S(W):N(S(W),U)},Y=function(W){var U=M.call(this,W=u(W,!0));return this===V&&t(L,W)&&!t(G,W)?!1:U||!t(this,W)||!t(L,W)||t(this,_)&&this[_][W]?U:!0},oe=function(W,U){if(W=y(W),U=u(U,!0),!(W===V&&t(L,U)&&!t(G,U))){var ee=j(W,U);return ee&&t(L,U)&&!(t(W,_)&&W[_][U])&&(ee.enumerable=!0),ee}},ce=function(W){for(var U=$(y(W)),ee=[],se=0,ne;U.length>se;)!t(L,ne=U[se++])&&ne!=_&&ne!=n&&ee.push(ne);return ee},fe=function(W){for(var U=W===V,ee=$(U?G:y(W)),se=[],ne=0,le;ee.length>ne;)t(L,le=ee[ne++])&&(!U||t(V,le))&&se.push(L[le]);return se};K||(B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var W=f(arguments.length>0?arguments[0]:void 0),U=function(ee){this===V&&U.call(G,ee),t(this,_)&&t(this[_],W)&&(this[_][W]=!1),J(this,W,g(1,ee))};return r&&X&&J(V,W,{configurable:!0,set:U}),Q(W)},s(B[R],"toString",function(){return this._k}),F.f=oe,q.f=ie,require_objectGopn().f=A.f=ce,require_objectPie().f=Y,k.f=fe,r&&!require_library()&&s(V,"propertyIsEnumerable",Y,!0),E.f=function(re){return Q(m(re))}),i(i.G+i.W+i.F*!K,{Symbol:B});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ue=0;he.length>ue;)m(he[ue++]);for(var pe=z(m.store),ae=0;pe.length>ae;)p(pe[ae++]);i(i.S+i.F*!K,"Symbol",{for:function(re){return t(I,re+="")?I[re]:I[re]=B(re)},keyFor:function(W){if(!Z(W))throw TypeError(W+" is not a symbol!");for(var U in I)if(I[U]===W)return U},useSetter:function(){X=!0},useSimple:function(){X=!1}}),i(i.S+i.F*!K,"Object",{create:te,defineProperty:ie,defineProperties:N,getOwnPropertyDescriptor:oe,getOwnPropertyNames:ce,getOwnPropertySymbols:fe});var de=a(function(){k.f(1)});return i(i.S+i.F*de,"Object",{getOwnPropertySymbols:function(W){return k.f(d(W))}}),D&&i(i.S+i.F*(!K||a(function(){var re=B();return C([re])!="[null]"||C({a:re})!="{}"||C(Object(re))!="{}"})),"JSON",{stringify:function(W){for(var U=[W],ee=1,se,ne;arguments.length>ee;)U.push(arguments[ee++]);if(ne=se=U[1],!(!T(se)&&W===void 0||Z(W)))return b(se)||(se=function(le,me){if(typeof ne=="function"&&(me=ne.call(this,le,me)),!Z(me))return me}),U[1]=se,C.apply(D,U)}}),B[R][x]||require_hide()(B[R],x,B[R].valueOf),o(B,"Symbol"),o(Math,"Math",!0),o(e.JSON,"JSON",!0),es6_symbol}var es7_symbol_asyncIterator={},hasRequiredEs7_symbol_asyncIterator;function requireEs7_symbol_asyncIterator(){return hasRequiredEs7_symbol_asyncIterator||(hasRequiredEs7_symbol_asyncIterator=1,require_wksDefine()("asyncIterator")),es7_symbol_asyncIterator}var es7_symbol_observable={},hasRequiredEs7_symbol_observable;function requireEs7_symbol_observable(){return hasRequiredEs7_symbol_observable||(hasRequiredEs7_symbol_observable=1,require_wksDefine()("observable")),es7_symbol_observable}var symbol$1,hasRequiredSymbol$1;function requireSymbol$1(){return hasRequiredSymbol$1||(hasRequiredSymbol$1=1,requireEs6_symbol(),requireEs7_symbol_asyncIterator(),requireEs7_symbol_observable(),symbol$1=require_core().Symbol),symbol$1}var symbol,hasRequiredSymbol;function requireSymbol(){return hasRequiredSymbol||(hasRequiredSymbol=1,symbol={default:requireSymbol$1(),__esModule:!0}),symbol}var hasRequired_typeof;function require_typeof(){if(hasRequired_typeof)return _typeof;hasRequired_typeof=1,_typeof.__esModule=!0;var e=requireIterator(),t=n(e),r=requireSymbol(),i=n(r),s=typeof i.default=="function"&&typeof t.default=="symbol"?function(a){return typeof a}:function(a){return a&&typeof i.default=="function"&&a.constructor===i.default&&a!==i.default.prototype?"symbol":typeof a};function n(a){return a&&a.__esModule?a:{default:a}}return _typeof.default=typeof i.default=="function"&&s(t.default)==="symbol"?function(a){return typeof a>"u"?"undefined":s(a)}:function(a){return a&&typeof i.default=="function"&&a.constructor===i.default&&a!==i.default.prototype?"symbol":typeof a>"u"?"undefined":s(a)},_typeof}var hasRequiredPossibleConstructorReturn;function requirePossibleConstructorReturn(){if(hasRequiredPossibleConstructorReturn)return possibleConstructorReturn;hasRequiredPossibleConstructorReturn=1,possibleConstructorReturn.__esModule=!0;var e=require_typeof(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}return possibleConstructorReturn.default=function(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&((typeof s>"u"?"undefined":(0,t.default)(s))==="object"||typeof s=="function")?s:i},possibleConstructorReturn}var inherits={},es6_object_setPrototypeOf={},_setProto,hasRequired_setProto;function require_setProto(){if(hasRequired_setProto)return _setProto;hasRequired_setProto=1;var e=require_isObject(),t=require_anObject(),r=function(i,s){if(t(i),!e(s)&&s!==null)throw TypeError(s+": can't set as prototype!")};return _setProto={set:Object.setPrototypeOf||("__proto__"in{}?(function(i,s,n){try{n=require_ctx()(Function.call,require_objectGopd().f(Object.prototype,"__proto__").set,2),n(i,[]),s=!(i instanceof Array)}catch{s=!0}return function(l,o){return r(l,o),s?l.__proto__=o:n(l,o),l}})({},!1):void 0),check:r},_setProto}var hasRequiredEs6_object_setPrototypeOf;function requireEs6_object_setPrototypeOf(){if(hasRequiredEs6_object_setPrototypeOf)return es6_object_setPrototypeOf;hasRequiredEs6_object_setPrototypeOf=1;var e=require_export();return e(e.S,"Object",{setPrototypeOf:require_setProto().set}),es6_object_setPrototypeOf}var setPrototypeOf$1,hasRequiredSetPrototypeOf$1;function requireSetPrototypeOf$1(){return hasRequiredSetPrototypeOf$1||(hasRequiredSetPrototypeOf$1=1,requireEs6_object_setPrototypeOf(),setPrototypeOf$1=require_core().Object.setPrototypeOf),setPrototypeOf$1}var setPrototypeOf,hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,setPrototypeOf={default:requireSetPrototypeOf$1(),__esModule:!0}),setPrototypeOf}var es6_object_create={},hasRequiredEs6_object_create;function requireEs6_object_create(){if(hasRequiredEs6_object_create)return es6_object_create;hasRequiredEs6_object_create=1;var e=require_export();return e(e.S,"Object",{create:require_objectCreate()}),es6_object_create}var create$1,hasRequiredCreate$1;function requireCreate$1(){if(hasRequiredCreate$1)return create$1;hasRequiredCreate$1=1,requireEs6_object_create();var e=require_core().Object;return create$1=function(r,i){return e.create(r,i)},create$1}var create,hasRequiredCreate;function requireCreate(){return hasRequiredCreate||(hasRequiredCreate=1,create={default:requireCreate$1(),__esModule:!0}),create}var hasRequiredInherits;function requireInherits(){if(hasRequiredInherits)return inherits;hasRequiredInherits=1,inherits.__esModule=!0;var e=requireSetPrototypeOf(),t=a(e),r=requireCreate(),i=a(r),s=require_typeof(),n=a(s);function a(l){return l&&l.__esModule?l:{default:l}}return inherits.default=function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof o>"u"?"undefined":(0,n.default)(o)));l.prototype=(0,i.default)(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(t.default?(0,t.default)(l,o):l.__proto__=o)},inherits}var propTypes={exports:{}},reactIs={exports:{}},reactIs_production_min={};var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,o=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,P=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function u(S){if(typeof S=="object"&&S!==null){var A=S.$$typeof;switch(A){case t:switch(S=S.type,S){case o:case f:case i:case n:case s:case E:return S;default:switch(S=S&&S.$$typeof,S){case l:case m:case b:case P:case a:return S;default:return A}}case r:return A}}}function g(S){return u(S)===f}return reactIs_production_min.AsyncMode=o,reactIs_production_min.ConcurrentMode=f,reactIs_production_min.ContextConsumer=l,reactIs_production_min.ContextProvider=a,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=m,reactIs_production_min.Fragment=i,reactIs_production_min.Lazy=b,reactIs_production_min.Memo=P,reactIs_production_min.Portal=r,reactIs_production_min.Profiler=n,reactIs_production_min.StrictMode=s,reactIs_production_min.Suspense=E,reactIs_production_min.isAsyncMode=function(S){return g(S)||u(S)===o},reactIs_production_min.isConcurrentMode=g,reactIs_production_min.isContextConsumer=function(S){return u(S)===l},reactIs_production_min.isContextProvider=function(S){return u(S)===a},reactIs_production_min.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},reactIs_production_min.isForwardRef=function(S){return u(S)===m},reactIs_production_min.isFragment=function(S){return u(S)===i},reactIs_production_min.isLazy=function(S){return u(S)===b},reactIs_production_min.isMemo=function(S){return u(S)===P},reactIs_production_min.isPortal=function(S){return u(S)===r},reactIs_production_min.isProfiler=function(S){return u(S)===n},reactIs_production_min.isStrictMode=function(S){return u(S)===s},reactIs_production_min.isSuspense=function(S){return u(S)===E},reactIs_production_min.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===f||S===n||S===s||S===E||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===P||S.$$typeof===a||S.$$typeof===l||S.$$typeof===m||S.$$typeof===T||S.$$typeof===d||S.$$typeof===y||S.$$typeof===c)},reactIs_production_min.typeOf=u,reactIs_production_min}var reactIs_development={};var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,o=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,P=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function u(N){return typeof N=="string"||typeof N=="function"||N===i||N===f||N===n||N===s||N===E||N===p||typeof N=="object"&&N!==null&&(N.$$typeof===b||N.$$typeof===P||N.$$typeof===a||N.$$typeof===l||N.$$typeof===m||N.$$typeof===T||N.$$typeof===d||N.$$typeof===y||N.$$typeof===c)}function g(N){if(typeof N=="object"&&N!==null){var te=N.$$typeof;switch(te){case t:var Y=N.type;switch(Y){case o:case f:case i:case n:case s:case E:return Y;default:var oe=Y&&Y.$$typeof;switch(oe){case l:case m:case b:case P:case a:return oe;default:return te}}case r:return te}}}var S=o,A=f,F=l,k=a,q=t,z=m,j=i,O=b,$=P,B=r,D=n,C=s,R=E,_=!1;function x(N){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(N)||g(N)===o}function M(N){return g(N)===f}function I(N){return g(N)===l}function L(N){return g(N)===a}function G(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function V(N){return g(N)===m}function K(N){return g(N)===i}function H(N){return g(N)===b}function X(N){return g(N)===P}function J(N){return g(N)===r}function Q(N){return g(N)===n}function Z(N){return g(N)===s}function ie(N){return g(N)===E}reactIs_development.AsyncMode=S,reactIs_development.ConcurrentMode=A,reactIs_development.ContextConsumer=F,reactIs_development.ContextProvider=k,reactIs_development.Element=q,reactIs_development.ForwardRef=z,reactIs_development.Fragment=j,reactIs_development.Lazy=O,reactIs_development.Memo=$,reactIs_development.Portal=B,reactIs_development.Profiler=D,reactIs_development.StrictMode=C,reactIs_development.Suspense=R,reactIs_development.isAsyncMode=x,reactIs_development.isConcurrentMode=M,reactIs_development.isContextConsumer=I,reactIs_development.isContextProvider=L,reactIs_development.isElement=G,reactIs_development.isForwardRef=V,reactIs_development.isFragment=K,reactIs_development.isLazy=H,reactIs_development.isMemo=X,reactIs_development.isPortal=J,reactIs_development.isProfiler=Q,reactIs_development.isStrictMode=Z,reactIs_development.isSuspense=ie,reactIs_development.isValidElementType=u,reactIs_development.typeOf=g})()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,process.env.NODE_ENV==="production"?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development()),reactIs.exports}var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function s(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var o=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(o.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=s()?Object.assign:function(n,a){for(var l,o=i(n),f,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var E in l)t.call(l,E)&&(o[E]=l[E]);if(e){f=e(l);for(var p=0;p<f.length;p++)r.call(l,f[p])&&(o[f[p]]=l[f[p]])}}return o},objectAssign}var ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=e,ReactPropTypesSecret_1}var has,hasRequiredHas;function requireHas(){return hasRequiredHas||(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty)),has}var checkPropTypes_1,hasRequiredCheckPropTypes;function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=requireReactPropTypesSecret(),r={},i=requireHas();e=function(n){var a="Warning: "+n;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(n,a,l,o,f){if(process.env.NODE_ENV!=="production"){for(var m in n)if(i(n,m)){var E;try{if(typeof n[m]!="function"){var p=Error((o||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}E=n[m](a,m,o,l,null,t)}catch(b){E=b}if(E&&!(E instanceof Error)&&e((o||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in r)){r[E.message]=!0;var P=f?f():"";e("Failed "+l+" type: "+E.message+(P??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},checkPropTypes_1=s,checkPropTypes_1}var factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers;function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),r=requireReactPropTypesSecret(),i=requireHas(),s=requireCheckPropTypes(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(l){var o="Warning: "+l;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}});function a(){return null}return factoryWithTypeCheckers=function(l,o){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function E(M){var I=M&&(f&&M[f]||M[m]);if(typeof I=="function")return I}var p="<<anonymous>>",P={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:y(),arrayOf:u,element:g(),elementType:S(),instanceOf:A,node:z(),objectOf:k,oneOf:F,oneOfType:q,shape:O,exact:$};function b(M,I){return M===I?M!==0||1/M===1/I:M!==M&&I!==I}function c(M,I){this.message=M,this.data=I&&typeof I=="object"?I:{},this.stack=""}c.prototype=Error.prototype;function T(M){if(process.env.NODE_ENV!=="production")var I={},L=0;function G(K,H,X,J,Q,Z,ie){if(J=J||p,Z=Z||X,ie!==r){if(o){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=J+":"+X;!I[te]&&L<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[te]=!0,L++)}}return H[X]==null?K?H[X]===null?new c("The "+Q+" `"+Z+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new c("The "+Q+" `"+Z+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:M(H,X,J,Q,Z)}var V=G.bind(null,!1);return V.isRequired=G.bind(null,!0),V}function d(M){function I(L,G,V,K,H,X){var J=L[G],Q=C(J);if(Q!==M){var Z=R(J);return new c("Invalid "+K+" `"+H+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return T(I)}function y(){return T(a)}function u(M){function I(L,G,V,K,H){if(typeof M!="function")return new c("Property `"+H+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var X=L[G];if(!Array.isArray(X)){var J=C(X);return new c("Invalid "+K+" `"+H+"` of type "+("`"+J+"` supplied to `"+V+"`, expected an array."))}for(var Q=0;Q<X.length;Q++){var Z=M(X,Q,V,K,H+"["+Q+"]",r);if(Z instanceof Error)return Z}return null}return T(I)}function g(){function M(I,L,G,V,K){var H=I[L];if(!l(H)){var X=C(H);return new c("Invalid "+V+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return T(M)}function S(){function M(I,L,G,V,K){var H=I[L];if(!e.isValidElementType(H)){var X=C(H);return new c("Invalid "+V+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return T(M)}function A(M){function I(L,G,V,K,H){if(!(L[G]instanceof M)){var X=M.name||p,J=x(L[G]);return new c("Invalid "+K+" `"+H+"` of type "+("`"+J+"` supplied to `"+V+"`, expected ")+("instance of `"+X+"`."))}return null}return T(I)}function F(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),a;function I(L,G,V,K,H){for(var X=L[G],J=0;J<M.length;J++)if(b(X,M[J]))return null;var Q=JSON.stringify(M,function(ie,N){var te=R(N);return te==="symbol"?String(N):N});return new c("Invalid "+K+" `"+H+"` of value `"+String(X)+"` "+("supplied to `"+V+"`, expected one of "+Q+"."))}return T(I)}function k(M){function I(L,G,V,K,H){if(typeof M!="function")return new c("Property `"+H+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var X=L[G],J=C(X);if(J!=="object")return new c("Invalid "+K+" `"+H+"` of type "+("`"+J+"` supplied to `"+V+"`, expected an object."));for(var Q in X)if(i(X,Q)){var Z=M(X,Q,V,K,H+"."+Q,r);if(Z instanceof Error)return Z}return null}return T(I)}function q(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<M.length;I++){var L=M[I];if(typeof L!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(L)+" at index "+I+"."),a}function G(V,K,H,X,J){for(var Q=[],Z=0;Z<M.length;Z++){var ie=M[Z],N=ie(V,K,H,X,J,r);if(N==null)return null;N.data&&i(N.data,"expectedType")&&Q.push(N.data.expectedType)}var te=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new c("Invalid "+X+" `"+J+"` supplied to "+("`"+H+"`"+te+"."))}return T(G)}function z(){function M(I,L,G,V,K){return B(I[L])?null:new c("Invalid "+V+" `"+K+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return T(M)}function j(M,I,L,G,V){return new c((M||"React class")+": "+I+" type `"+L+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function O(M){function I(L,G,V,K,H){var X=L[G],J=C(X);if(J!=="object")return new c("Invalid "+K+" `"+H+"` of type `"+J+"` "+("supplied to `"+V+"`, expected `object`."));for(var Q in M){var Z=M[Q];if(typeof Z!="function")return j(V,K,H,Q,R(Z));var ie=Z(X,Q,V,K,H+"."+Q,r);if(ie)return ie}return null}return T(I)}function $(M){function I(L,G,V,K,H){var X=L[G],J=C(X);if(J!=="object")return new c("Invalid "+K+" `"+H+"` of type `"+J+"` "+("supplied to `"+V+"`, expected `object`."));var Q=t({},L[G],M);for(var Z in Q){var ie=M[Z];if(i(M,Z)&&typeof ie!="function")return j(V,K,H,Z,R(ie));if(!ie)return new c("Invalid "+K+" `"+H+"` key `"+Z+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(L[G],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var N=ie(X,Z,V,K,H+"."+Z,r);if(N)return N}return null}return T(I)}function B(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(B);if(M===null||l(M))return!0;var I=E(M);if(I){var L=I.call(M),G;if(I!==M.entries){for(;!(G=L.next()).done;)if(!B(G.value))return!1}else for(;!(G=L.next()).done;){var V=G.value;if(V&&!B(V[1]))return!1}}else return!1;return!0;default:return!1}}function D(M,I){return M==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function C(M){var I=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":D(I,M)?"symbol":I}function R(M){if(typeof M>"u"||M===null)return""+M;var I=C(M);if(I==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return I}function _(M){var I=R(M);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function x(M){return!M.constructor||!M.constructor.name?p:M.constructor.name}return P.checkPropTypes=s,P.resetWarningCache=s.resetWarningCache,P.PropTypes=P,P},factoryWithTypeCheckers}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function r(){}return r.resetWarningCache=t,factoryWithThrowingShims=function(){function i(a,l,o,f,m,E){if(E!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function s(){return i}var n={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,process.env.NODE_ENV!=="production"){var e=requireReactIs(),t=!0;propTypes.exports=requireFactoryWithTypeCheckers()(e.isElement,t)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var lottie$1={exports:{}},lottie=lottie$1.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,s;for(r=0;r<i;r+=1){s=e[r].prototype;for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(r,i){var s=0,n=[],a;switch(r){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(s=0;s<i;s+=1)n.push(a);return n}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["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"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,r){var i,s,n,a,l,o,f,m;switch(a=Math.floor(e*6),l=e*6-a,o=r*(1-t),f=r*(1-l*t),m=r*(1-(1-l)*t),a%6){case 0:i=r,s=m,n=o;break;case 1:i=f,s=r,n=o;break;case 2:i=o,s=r,n=m;break;case 3:i=o,s=f,n=r;break;case 4:i=m,s=o,n=r;break;case 5:i=r,s=o,n=f;break}return[i,s,n]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),s=Math.min(e,t,r),n=i-s,a,l=i===0?0:n/i,o=i/255;switch(i){case s:a=0;break;case e:a=t-r+n*(t<r?6:0),a/=6*n;break;case t:a=r-e+n*2,a/=6*n;break;case r:a=e-t+n*4,a/=6*n;break}return[a,l,o]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,n){return i<0&&(i=0),s<0&&(s=0),n<0&&(n=0),"#"+e[i]+e[s]+e[n]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(P){r({data:P})}},n={postMessage:function(P){s.onmessage({data:P})}};function a(p){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",p.toString()],{type:"text/javascript"}),b=URL.createObjectURL(P);return new Worker(b)}return r=p,s}function l(){i||(i=a(function(P){function b(){function T(D,C){var R,_,x=D.length,M,I,L,G;for(_=0;_<x;_+=1)if(R=D[_],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var V=R.masksProperties;for(I=V.length,M=0;M<I;M+=1)if(V[M].pt.k.i)S(V[M].pt.k);else for(G=V[M].pt.k.length,L=0;L<G;L+=1)V[M].pt.k[L].s&&S(V[M].pt.k[L].s[0]),V[M].pt.k[L].e&&S(V[M].pt.k[L].e[0])}R.ty===0?(R.layers=u(R.refId,C),T(R.layers,C)):R.ty===4?g(R.shapes):R.ty===5&&$(R)}}function d(D,C){if(D){var R=0,_=D.length;for(R=0;R<_;R+=1)D[R].t===1&&(D[R].data.layers=u(D[R].data.refId,C),T(D[R].data.layers,C))}}function y(D,C){for(var R=0,_=C.length;R<_;){if(C[R].id===D)return C[R];R+=1}return null}function u(D,C){var R=y(D,C);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function g(D){var C,R=D.length,_,x;for(C=R-1;C>=0;C-=1)if(D[C].ty==="sh")if(D[C].ks.k.i)S(D[C].ks.k);else for(x=D[C].ks.k.length,_=0;_<x;_+=1)D[C].ks.k[_].s&&S(D[C].ks.k[_].s[0]),D[C].ks.k[_].e&&S(D[C].ks.k[_].e[0]);else D[C].ty==="gr"&&g(D[C].it)}function S(D){var C,R=D.i.length;for(C=0;C<R;C+=1)D.i[C][0]+=D.v[C][0],D.i[C][1]+=D.v[C][1],D.o[C][0]+=D.v[C][0],D.o[C][1]+=D.v[C][1]}function A(D,C){var R=C?C.split("."):[100,100,100];return D[0]>R[0]?!0:R[0]>D[0]?!1:D[1]>R[1]?!0:R[1]>D[1]?!1:D[2]>R[2]?!0:R[2]>D[2]?!1:null}var F=(function(){var D=[4,4,14];function C(_){var x=_.t.d;_.t.d={k:[{s:x,t:0}]}}function R(_){var x,M=_.length;for(x=0;x<M;x+=1)_[x].ty===5&&C(_[x])}return function(_){if(A(D,_.v)&&(R(_.layers),_.assets)){var x,M=_.assets.length;for(x=0;x<M;x+=1)_.assets[x].layers&&R(_.assets[x].layers)}}})(),k=(function(){var D=[4,7,99];return function(C){if(C.chars&&!A(D,C.v)){var R,_=C.chars.length;for(R=0;R<_;R+=1){var x=C.chars[R];x.data&&x.data.shapes&&(g(x.data.shapes),x.data.ip=0,x.data.op=99999,x.data.st=0,x.data.sr=1,x.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},C.chars[R].t||(x.data.shapes.push({ty:"no"}),x.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),q=(function(){var D=[5,7,15];function C(_){var x=_.t.p;typeof x.a=="number"&&(x.a={a:0,k:x.a}),typeof x.p=="number"&&(x.p={a:0,k:x.p}),typeof x.r=="number"&&(x.r={a:0,k:x.r})}function R(_){var x,M=_.length;for(x=0;x<M;x+=1)_[x].ty===5&&C(_[x])}return function(_){if(A(D,_.v)&&(R(_.layers),_.assets)){var x,M=_.assets.length;for(x=0;x<M;x+=1)_.assets[x].layers&&R(_.assets[x].layers)}}})(),z=(function(){var D=[4,1,9];function C(_){var x,M=_.length,I,L;for(x=0;x<M;x+=1)if(_[x].ty==="gr")C(_[x].it);else if(_[x].ty==="fl"||_[x].ty==="st")if(_[x].c.k&&_[x].c.k[0].i)for(L=_[x].c.k.length,I=0;I<L;I+=1)_[x].c.k[I].s&&(_[x].c.k[I].s[0]/=255,_[x].c.k[I].s[1]/=255,_[x].c.k[I].s[2]/=255,_[x].c.k[I].s[3]/=255),_[x].c.k[I].e&&(_[x].c.k[I].e[0]/=255,_[x].c.k[I].e[1]/=255,_[x].c.k[I].e[2]/=255,_[x].c.k[I].e[3]/=255);else _[x].c.k[0]/=255,_[x].c.k[1]/=255,_[x].c.k[2]/=255,_[x].c.k[3]/=255}function R(_){var x,M=_.length;for(x=0;x<M;x+=1)_[x].ty===4&&C(_[x].shapes)}return function(_){if(A(D,_.v)&&(R(_.layers),_.assets)){var x,M=_.assets.length;for(x=0;x<M;x+=1)_.assets[x].layers&&R(_.assets[x].layers)}}})(),j=(function(){var D=[4,4,18];function C(_){var x,M=_.length,I,L;for(x=M-1;x>=0;x-=1)if(_[x].ty==="sh")if(_[x].ks.k.i)_[x].ks.k.c=_[x].closed;else for(L=_[x].ks.k.length,I=0;I<L;I+=1)_[x].ks.k[I].s&&(_[x].ks.k[I].s[0].c=_[x].closed),_[x].ks.k[I].e&&(_[x].ks.k[I].e[0].c=_[x].closed);else _[x].ty==="gr"&&C(_[x].it)}function R(_){var x,M,I=_.length,L,G,V,K;for(M=0;M<I;M+=1){if(x=_[M],x.hasMask){var H=x.masksProperties;for(G=H.length,L=0;L<G;L+=1)if(H[L].pt.k.i)H[L].pt.k.c=H[L].cl;else for(K=H[L].pt.k.length,V=0;V<K;V+=1)H[L].pt.k[V].s&&(H[L].pt.k[V].s[0].c=H[L].cl),H[L].pt.k[V].e&&(H[L].pt.k[V].e[0].c=H[L].cl)}x.ty===4&&C(x.shapes)}}return function(_){if(A(D,_.v)&&(R(_.layers),_.assets)){var x,M=_.assets.length;for(x=0;x<M;x+=1)_.assets[x].layers&&R(_.assets[x].layers)}}})();function O(D){D.__complete||(z(D),F(D),k(D),q(D),j(D),T(D.layers,D.assets),d(D.chars,D.assets),D.__complete=!0)}function $(D){D.t.a.length===0&&"m"in D.t.p}var B={};return B.completeData=O,B.checkColors=z,B.checkChars=k,B.checkPathProperties=q,B.checkShapes=j,B.completeLayers=T,B}if(n.dataManager||(n.dataManager=b()),n.assetLoader||(n.assetLoader=(function(){function T(y){var u=y.getResponseHeader("content-type");return u&&y.responseType==="json"&&u.indexOf("json")!==-1||y.response&&_typeof$5(y.response)==="object"?y.response:y.response&&typeof y.response=="string"?JSON.parse(y.response):y.responseText?JSON.parse(y.responseText):null}function d(y,u,g,S){var A,F=new XMLHttpRequest;try{F.responseType="json"}catch{}F.onreadystatechange=function(){if(F.readyState===4)if(F.status===200)A=T(F),g(A);else try{A=T(F),g(A)}catch(k){S&&S(k)}};try{F.open(["G","E","T"].join(""),y,!0)}catch{F.open(["G","E","T"].join(""),u+"/"+y,!0)}F.send()}return{load:d}})()),P.data.type==="loadAnimation")n.assetLoader.load(P.data.path,P.data.fullPath,function(T){n.dataManager.completeData(T),n.postMessage({id:P.data.id,payload:T,status:"success"})},function(){n.postMessage({id:P.data.id,status:"error"})});else if(P.data.type==="complete"){var c=P.data.animation;n.dataManager.completeData(c),n.postMessage({id:P.data.id,payload:c,status:"success"})}else P.data.type==="loadData"&&n.assetLoader.load(P.data.path,P.data.fullPath,function(T){n.postMessage({id:P.data.id,payload:T,status:"success"})},function(){n.postMessage({id:P.data.id,status:"error"})})}),i.onmessage=function(p){var P=p.data,b=P.id,c=t[b];t[b]=null,P.status==="success"?c.onComplete(P.payload):c.onError&&c.onError()})}function o(p,P){e+=1;var b="processId_"+e;return t[b]={onComplete:p,onError:P},b}function f(p,P,b){l();var c=o(P,b);i.postMessage({type:"loadAnimation",path:p,fullPath:window.location.origin+window.location.pathname,id:c})}function m(p,P,b){l();var c=o(P,b);i.postMessage({type:"loadData",path:p,fullPath:window.location.origin+window.location.pathname,id:c})}function E(p,P,b){l();var c=o(P,b);i.postMessage({type:"complete",animation:p,id:c})}return{loadAnimation:f,loadData:m,completeAnimation:E}})(),ImagePreloader=(function(){var e=(function(){var d=createTag("canvas");d.width=1,d.height=1;var y=d.getContext("2d");return y.fillStyle="rgba(0,0,0,0)",y.fillRect(0,0,1,1),d})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(d,y,u){var g="";if(d.e)g=d.p;else if(y){var S=d.p;S.indexOf("images/")!==-1&&(S=S.split("/")[1]),g=y+S}else g=u,g+=d.u?d.u:"",g+=d.p;return g}function s(d){var y=0,u=setInterval((function(){var g=d.getBBox();(g.width||y>500)&&(this._imageLoaded(),clearInterval(u)),y+=1}).bind(this),50)}function n(d){var y=i(d,this.assetsPath,this.path),u=createNS("image");isSafari?this.testImageLoaded(u):u.addEventListener("load",this._imageLoaded,!1),u.addEventListener("error",(function(){g.img=e,this._imageLoaded()}).bind(this),!1),u.setAttributeNS("http://www.w3.org/1999/xlink","href",y),this._elementHelper.append?this._elementHelper.append(u):this._elementHelper.appendChild(u);var g={img:u,assetData:d};return g}function a(d){var y=i(d,this.assetsPath,this.path),u=createTag("img");u.crossOrigin="anonymous",u.addEventListener("load",this._imageLoaded,!1),u.addEventListener("error",(function(){g.img=e,this._imageLoaded()}).bind(this),!1),u.src=y;var g={img:u,assetData:d};return g}function l(d){var y={assetData:d},u=i(d,this.assetsPath,this.path);return dataManager.loadData(u,(function(g){y.img=g,this._footageLoaded()}).bind(this),(function(){y.img={},this._footageLoaded()}).bind(this)),y}function o(d,y){this.imagesLoadedCb=y;var u,g=d.length;for(u=0;u<g;u+=1)d[u].layers||(!d[u].t||d[u].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(d[u]))):d[u].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(d[u]))))}function f(d){this.path=d||""}function m(d){this.assetsPath=d||""}function E(d){for(var y=0,u=this.images.length;y<u;){if(this.images[y].assetData===d)return this.images[y].img;y+=1}return null}function p(){this.imagesLoadedCb=null,this.images.length=0}function P(){return this.totalImages===this.loadedAssets}function b(){return this.totalFootages===this.loadedFootagesCount}function c(d,y){d==="svg"?(this._elementHelper=y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function T(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return T.prototype={loadAssets:o,setAssetsPath:m,setPath:f,loadedImages:P,loadedFootages:b,destroy:p,getAsset:E,createImgData:a,createImageData:n,imageLoaded:t,footageLoaded:r,setCacheType:c},T})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),(function(){this.removeEventListener(t,r)}).bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var r=t.split(`\r
|
|
3
|
+
`),i={},s,n=0,a=0;a<r.length;a+=1)s=r[a].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),n+=1);if(n===0)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var s=t[i],n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(t[i].cm)}catch{try{n.payload=e(t[i].cm)}catch{n.payload={name:t[i].cm}}}r.push(n)}return r}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)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 t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}var 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=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var n=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=n!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var a=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";a==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,s=e.layers,n,a=s.length;for(n=0;n<a;n+=1)for(r=0;r<i;){if(t[r].id===s[n].id){t[r]=s[n];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.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(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!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.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||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(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],r=0,i=0,s=0,n=!0,a=!1;function l(C){for(var R=0,_=C.target;R<i;)t[R].animation===_&&(t.splice(R,1),R-=1,i-=1,_.isPaused||E()),R+=1}function o(C,R){if(!C)return null;for(var _=0;_<i;){if(t[_].elem===C&&t[_].elem!==null)return t[_].animation;_+=1}var x=new AnimationItem;return p(x,C),x.setData(C,R),x}function f(){var C,R=t.length,_=[];for(C=0;C<R;C+=1)_.push(t[C].animation);return _}function m(){s+=1,z()}function E(){s-=1}function p(C,R){C.addEventListener("destroy",l),C.addEventListener("_active",m),C.addEventListener("_idle",E),t.push({elem:R,animation:C}),i+=1}function P(C){var R=new AnimationItem;return p(R,null),R.setParams(C),R}function b(C,R){var _;for(_=0;_<i;_+=1)t[_].animation.setSpeed(C,R)}function c(C,R){var _;for(_=0;_<i;_+=1)t[_].animation.setDirection(C,R)}function T(C){var R;for(R=0;R<i;R+=1)t[R].animation.play(C)}function d(C){var R=C-r,_;for(_=0;_<i;_+=1)t[_].animation.advanceTime(R);r=C,s&&!a?window.requestAnimationFrame(d):n=!0}function y(C){r=C,window.requestAnimationFrame(d)}function u(C){var R;for(R=0;R<i;R+=1)t[R].animation.pause(C)}function g(C,R,_){var x;for(x=0;x<i;x+=1)t[x].animation.goToAndStop(C,R,_)}function S(C){var R;for(R=0;R<i;R+=1)t[R].animation.stop(C)}function A(C){var R;for(R=0;R<i;R+=1)t[R].animation.togglePause(C)}function F(C){var R;for(R=i-1;R>=0;R-=1)t[R].animation.destroy(C)}function k(C,R,_){var x=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),M,I=x.length;for(M=0;M<I;M+=1)_&&x[M].setAttribute("data-bm-type",_),o(x[M],C);if(R&&I===0){_||(_="svg");var L=document.getElementsByTagName("body")[0];L.innerText="";var G=createTag("div");G.style.width="100%",G.style.height="100%",G.setAttribute("data-bm-type",_),L.appendChild(G),o(G,C)}}function q(){var C;for(C=0;C<i;C+=1)t[C].animation.resize()}function z(){!a&&s&&n&&(window.requestAnimationFrame(y),n=!1)}function j(){a=!0}function O(){a=!1,z()}function $(C,R){var _;for(_=0;_<i;_+=1)t[_].animation.setVolume(C,R)}function B(C){var R;for(R=0;R<i;R+=1)t[R].animation.mute(C)}function D(C){var R;for(R=0;R<i;R+=1)t[R].animation.unmute(C)}return e.registerAnimation=o,e.loadAnimation=P,e.setSpeed=b,e.setDirection=c,e.play=T,e.pause=u,e.stop=S,e.togglePause=A,e.searchAnimations=k,e.resize=q,e.goToAndStop=g,e.destroy=F,e.freeze=j,e.unfreeze=O,e.setVolume=$,e.mute=B,e.unmute=D,e.getRegisteredAnimations=f,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=r;var t={};function r(y,u,g,S,A){var F=A||("bez_"+y+"_"+u+"_"+g+"_"+S).replace(/\./g,"p");if(t[F])return t[F];var k=new d([y,u,g,S]);return t[F]=k,k}var i=4,s=.001,n=1e-7,a=10,l=11,o=1/(l-1),f=typeof Float32Array=="function";function m(y,u){return 1-3*u+3*y}function E(y,u){return 3*u-6*y}function p(y){return 3*y}function P(y,u,g){return((m(u,g)*y+E(u,g))*y+p(u))*y}function b(y,u,g){return 3*m(u,g)*y*y+2*E(u,g)*y+p(u)}function c(y,u,g,S,A){var F,k,q=0;do k=u+(g-u)/2,F=P(k,S,A)-y,F>0?g=k:u=k;while(Math.abs(F)>n&&++q<a);return k}function T(y,u,g,S){for(var A=0;A<i;++A){var F=b(u,g,S);if(F===0)return u;var k=P(u,g,S)-y;u-=k/F}return u}function d(y){this._p=y,this._mSampleValues=f?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(u){var g=this._p[0],S=this._p[1],A=this._p[2],F=this._p[3];return this._precomputed||this._precompute(),g===S&&A===F?u:u===0?0:u===1?1:P(this._getTForX(u),S,F)},_precompute:function(){var u=this._p[0],g=this._p[1],S=this._p[2],A=this._p[3];this._precomputed=!0,(u!==g||S!==A)&&this._calcSampleValues()},_calcSampleValues:function(){for(var u=this._p[0],g=this._p[2],S=0;S<l;++S)this._mSampleValues[S]=P(S*o,u,g)},_getTForX:function(u){for(var g=this._p[0],S=this._p[2],A=this._mSampleValues,F=0,k=1,q=l-1;k!==q&&A[k]<=u;++k)F+=o;--k;var z=(u-A[k])/(A[k+1]-A[k]),j=F+z*o,O=b(j,g,S);return O>=s?T(u,j,g,S):O===0?j:c(u,F,F+o,g,S)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,r){var i=0,s=e,n=createSizedArray(s),a={newElement:l,release:o};function l(){var f;return i?(i-=1,f=n[i]):f=t(),f}function o(f){i===s&&(n=pooling.double(n),s*=2),r&&r(f),n[i]=f,i+=1}return a}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,s=r.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(p,P,b,c,T,d){var y=p*c+P*T+b*d-T*c-d*p-b*P;return y>-.001&&y<.001}function r(p,P,b,c,T,d,y,u,g){if(b===0&&d===0&&g===0)return t(p,P,c,T,y,u);var S=e.sqrt(e.pow(c-p,2)+e.pow(T-P,2)+e.pow(d-b,2)),A=e.sqrt(e.pow(y-p,2)+e.pow(u-P,2)+e.pow(g-b,2)),F=e.sqrt(e.pow(y-c,2)+e.pow(u-T,2)+e.pow(g-d,2)),k;return S>A?S>F?k=S-A-F:k=F-A-S:F>A?k=F-A-S:k=A-S-F,k>-1e-4&&k<1e-4}var i=(function(){return function(p,P,b,c){var T=getDefaultCurveSegments(),d,y,u,g,S,A=0,F,k=[],q=[],z=bezierLengthPool.newElement();for(u=b.length,d=0;d<T;d+=1){for(S=d/(T-1),F=0,y=0;y<u;y+=1)g=bmPow(1-S,3)*p[y]+3*bmPow(1-S,2)*S*b[y]+3*(1-S)*bmPow(S,2)*c[y]+bmPow(S,3)*P[y],k[y]=g,q[y]!==null&&(F+=bmPow(k[y]-q[y],2)),q[y]=k[y];F&&(F=bmSqrt(F),A+=F),z.percents[d]=S,z.lengths[d]=A}return z.addedLength=A,z}})();function s(p){var P=segmentsLengthPool.newElement(),b=p.c,c=p.v,T=p.o,d=p.i,y,u=p._length,g=P.lengths,S=0;for(y=0;y<u-1;y+=1)g[y]=i(c[y],c[y+1],T[y],d[y+1]),S+=g[y].addedLength;return b&&u&&(g[y]=i(c[y],c[0],T[y],d[0]),S+=g[y].addedLength),P.totalLength=S,P}function n(p){this.segmentLength=0,this.points=new Array(p)}function a(p,P){this.partialLength=p,this.point=P}var l=(function(){var p={};return function(P,b,c,T){var d=(P[0]+"_"+P[1]+"_"+b[0]+"_"+b[1]+"_"+c[0]+"_"+c[1]+"_"+T[0]+"_"+T[1]).replace(/\./g,"p");if(!p[d]){var y=getDefaultCurveSegments(),u,g,S,A,F,k=0,q,z,j=null;P.length===2&&(P[0]!==b[0]||P[1]!==b[1])&&t(P[0],P[1],b[0],b[1],P[0]+c[0],P[1]+c[1])&&t(P[0],P[1],b[0],b[1],b[0]+T[0],b[1]+T[1])&&(y=2);var O=new n(y);for(S=c.length,u=0;u<y;u+=1){for(z=createSizedArray(S),F=u/(y-1),q=0,g=0;g<S;g+=1)A=bmPow(1-F,3)*P[g]+3*bmPow(1-F,2)*F*(P[g]+c[g])+3*(1-F)*bmPow(F,2)*(b[g]+T[g])+bmPow(F,3)*b[g],z[g]=A,j!==null&&(q+=bmPow(z[g]-j[g],2));q=bmSqrt(q),k+=q,O.points[u]=new a(q,z),j=z}O.segmentLength=k,p[d]=O}return p[d]}})();function o(p,P){var b=P.percents,c=P.lengths,T=b.length,d=bmFloor((T-1)*p),y=p*P.addedLength,u=0;if(d===T-1||d===0||y===c[d])return b[d];for(var g=c[d]>y?-1:1,S=!0;S;)if(c[d]<=y&&c[d+1]>y?(u=(y-c[d])/(c[d+1]-c[d]),S=!1):d+=g,d<0||d>=T-1){if(d===T-1)return b[d];S=!1}return b[d]+(b[d+1]-b[d])*u}function f(p,P,b,c,T,d){var y=o(T,d),u=1-y,g=e.round((u*u*u*p[0]+(y*u*u+u*y*u+u*u*y)*b[0]+(y*y*u+u*y*y+y*u*y)*c[0]+y*y*y*P[0])*1e3)/1e3,S=e.round((u*u*u*p[1]+(y*u*u+u*y*u+u*u*y)*b[1]+(y*y*u+u*y*y+y*u*y)*c[1]+y*y*y*P[1])*1e3)/1e3;return[g,S]}var m=createTypedArray("float32",8);function E(p,P,b,c,T,d,y){T<0?T=0:T>1&&(T=1);var u=o(T,y);d=d>1?1:d;var g=o(d,y),S,A=p.length,F=1-u,k=1-g,q=F*F*F,z=u*F*F*3,j=u*u*F*3,O=u*u*u,$=F*F*k,B=u*F*k+F*u*k+F*F*g,D=u*u*k+F*u*g+u*F*g,C=u*u*g,R=F*k*k,_=u*k*k+F*g*k+F*k*g,x=u*g*k+F*g*g+u*k*g,M=u*g*g,I=k*k*k,L=g*k*k+k*g*k+k*k*g,G=g*g*k+k*g*g+g*k*g,V=g*g*g;for(S=0;S<A;S+=1)m[S*4]=e.round((q*p[S]+z*b[S]+j*c[S]+O*P[S])*1e3)/1e3,m[S*4+1]=e.round(($*p[S]+B*b[S]+D*c[S]+C*P[S])*1e3)/1e3,m[S*4+2]=e.round((R*p[S]+_*b[S]+x*c[S]+M*P[S])*1e3)/1e3,m[S*4+3]=e.round((I*p[S]+L*b[S]+G*c[S]+V*P[S])*1e3)/1e3;return m}return{getSegmentsLength:s,getNewSegment:E,getPointInSegment:f,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,n=s,a=this.keyframes.length-1,l=!0,o,f,m;l;){if(o=this.keyframes[n],f=this.keyframes[n+1],n===a-1&&e>=f.t-r){o.h&&(o=f),s=0;break}if(f.t-r>e){s=n;break}n<a-1?n+=1:(s=0,l=!1)}m=this.keyframesMetadata[n]||{};var E,p,P,b,c,T,d=f.t-r,y=o.t-r,u;if(o.to){m.bezierData||(m.bezierData=bez.buildBezierData(o.s,f.s||o.e,o.to,o.ti));var g=m.bezierData;if(e>=d||e<y){var S=e>=d?g.points.length-1:0;for(p=g.points[S].point.length,E=0;E<p;E+=1)i[E]=g.points[S].point[E]}else{m.__fnct?T=m.__fnct:(T=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,m.__fnct=T),P=T((e-y)/(d-y));var A=g.segmentLength*P,F,k=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastAddedLength:0;for(c=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastPoint:0,l=!0,b=g.points.length;l;){if(k+=g.points[c].partialLength,A===0||P===0||c===g.points.length-1){for(p=g.points[c].point.length,E=0;E<p;E+=1)i[E]=g.points[c].point[E];break}else if(A>=k&&A<k+g.points[c+1].partialLength){for(F=(A-k)/g.points[c+1].partialLength,p=g.points[c].point.length,E=0;E<p;E+=1)i[E]=g.points[c].point[E]+(g.points[c+1].point[E]-g.points[c].point[E])*F;break}c<b-1?c+=1:l=!1}t._lastPoint=c,t._lastAddedLength=k-g.points[c].partialLength,t._lastKeyframeIndex=n}}else{var q,z,j,O,$;if(a=o.s.length,u=f.s||o.e,this.sh&&o.h!==1)if(e>=d)i[0]=u[0],i[1]=u[1],i[2]=u[2];else if(e<=y)i[0]=o.s[0],i[1]=o.s[1],i[2]=o.s[2];else{var B=createQuaternion(o.s),D=createQuaternion(u),C=(e-y)/(d-y);quaternionToEuler(i,slerp(B,D,C))}else for(n=0;n<a;n+=1)o.h!==1&&(e>=d?P=1:e<y?P=0:(o.o.x.constructor===Array?(m.__fnct||(m.__fnct=[]),m.__fnct[n]?T=m.__fnct[n]:(q=o.o.x[n]===void 0?o.o.x[0]:o.o.x[n],z=o.o.y[n]===void 0?o.o.y[0]:o.o.y[n],j=o.i.x[n]===void 0?o.i.x[0]:o.i.x[n],O=o.i.y[n]===void 0?o.i.y[0]:o.i.y[n],T=BezierFactory.getBezierEasing(q,z,j,O).get,m.__fnct[n]=T)):m.__fnct?T=m.__fnct:(q=o.o.x,z=o.o.y,j=o.i.x,O=o.i.y,T=BezierFactory.getBezierEasing(q,z,j,O).get,o.keyframeMetadata=T),P=T((e-y)/(d-y)))),u=f.s||o.e,$=o.h===1?o.s[n]:o.s[n]+(u[n]-o.s[n])*P,this.propType==="multidimensional"?i[n]=$:i=$}return t.lastIndex=s,i}function slerp(e,t,r){var i=[],s=e[0],n=e[1],a=e[2],l=e[3],o=t[0],f=t[1],m=t[2],E=t[3],p,P,b,c,T;return P=s*o+n*f+a*m+l*E,P<0&&(P=-P,o=-o,f=-f,m=-m,E=-E),1-P>1e-6?(p=Math.acos(P),b=Math.sin(p),c=Math.sin((1-r)*p)/b,T=Math.sin(r*p)/b):(c=1-r,T=r),i[0]=c*s+T*o,i[1]=c*n+T*f,i[2]=c*a+T*m,i[3]=c*l+T*E,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],s=t[2],n=t[3],a=Math.atan2(2*i*n-2*r*s,1-2*i*i-2*s*s),l=Math.asin(2*r*i+2*s*n),o=Math.atan2(2*r*n-2*i*s,1-2*r*r-2*s*s);e[0]=a/degToRads,e[1]=l/degToRads,e[2]=o/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),n=Math.cos(r/2),a=Math.cos(i/2),l=Math.sin(t/2),o=Math.sin(r/2),f=Math.sin(i/2),m=s*n*a-l*o*f,E=l*o*a+s*n*f,p=l*n*a+s*o*f,P=s*o*a-l*n*f;return[E,p,P,m]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),s=0;s<n;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){this.propType="multidimensional";var s,n=t.k.length,a,l,o,f;for(s=0;s<n-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(a=t.k[s].s,l=t.k[s+1].s,o=t.k[s].to,f=t.k[s].ti,(a.length===2&&!(a[0]===l[0]&&a[1]===l[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],l[0]+f[0],l[1]+f[1])||a.length===3&&!(a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],l[0]+f[0],l[1]+f[1],l[2]+f[2]))&&(t.k[s].to=null,t.k[s].ti=null),a[0]===l[0]&&a[1]===l[1]&&o[0]===0&&o[1]===0&&f[0]===0&&f[1]===0&&(a.length===2||a[2]===l[2]&&o[2]===0&&f[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var m=t.k[0].s.length;for(this.v=createTypedArray("float32",m),this.pv=createTypedArray("float32",m),s=0;s<m;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",m)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(r,i,s,n,a){i.sid&&(i=r.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(r,i,n,a);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(r,i,n,a);else switch(s){case 0:l=new KeyframedValueProperty(r,i,n,a);break;case 1:l=new KeyframedMultidimensionalProperty(r,i,n,a);break}return l.effectsSequence.length&&a.addDynamicProperty(l),l}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;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 pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();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(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},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(e,t,r,i,s){var n;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[];break}(!n[i]||n[i]&&!s)&&(n[i]=pointPool.newElement()),n[i][0]=e,n[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,s,n,a,l){this.setXYAt(e,t,"v",a,l),this.setXYAt(r,i,"o",a,l),this.setXYAt(s,n,"i",a,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var n=this._length-1,a=this._length,l;for(l=s;l<a;l+=1)e.setTripleAt(t[n][0],t[n][1],i[n][0],i[n][1],r[n][0],r[n][1],l,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var n=s._length,a;for(a=0;a<n;a+=1)pointPool.release(s.v[a]),pointPool.release(s.i[a]),pointPool.release(s.o[a]),s.v[a]=null,s.i[a]=null,s.o[a]=null;s._length=0,s.c=!1}function r(s){var n=i.newElement(),a,l=s._length===void 0?s.v.length:s._length;for(n.setLength(l),n.c=s.c,a=0;a<l;a+=1)n.setTripleAt(s.v[a][0],s.v[a][1],s.o[a][0],s.o[a][1],s.i[a][0],s.i[a][1],a);return n}var i=poolFactory(4,e,t);return i.clone=r,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:n},t=0,r=4,i=createSizedArray(r);function s(){var a;return t?(t-=1,a=i[t]):a=new ShapeCollection,a}function n(a){var l,o=a._length;for(l=0;l<o;l+=1)shapePool.release(a.shapes[l]);a._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=a,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(d,y,u){var g=u.lastIndex,S,A,F,k,q,z,j,O,$,B=this.keyframes;if(d<B[0].t-this.offsetTime)S=B[0].s[0],F=!0,g=0;else if(d>=B[B.length-1].t-this.offsetTime)S=B[B.length-1].s?B[B.length-1].s[0]:B[B.length-2].e[0],F=!0;else{for(var D=g,C=B.length-1,R=!0,_,x,M;R&&(_=B[D],x=B[D+1],!(x.t-this.offsetTime>d));)D<C-1?D+=1:R=!1;if(M=this.keyframesMetadata[D]||{},F=_.h===1,g=D,!F){if(d>=x.t-this.offsetTime)O=1;else if(d<_.t-this.offsetTime)O=0;else{var I;M.__fnct?I=M.__fnct:(I=BezierFactory.getBezierEasing(_.o.x,_.o.y,_.i.x,_.i.y).get,M.__fnct=I),O=I((d-(_.t-this.offsetTime))/(x.t-this.offsetTime-(_.t-this.offsetTime)))}A=x.s?x.s[0]:_.e[0]}S=_.s[0]}for(z=y._length,j=S.i[0].length,u.lastIndex=g,k=0;k<z;k+=1)for(q=0;q<j;q+=1)$=F?S.i[k][q]:S.i[k][q]+(A.i[k][q]-S.i[k][q])*O,y.i[k][q]=$,$=F?S.o[k][q]:S.o[k][q]+(A.o[k][q]-S.o[k][q])*O,y.o[k][q]=$,$=F?S.v[k][q]:S.v[k][q]+(A.v[k][q]-S.v[k][q])*O,y.v[k][q]=$}function r(){var d=this.comp.renderedFrame-this.offsetTime,y=this.keyframes[0].t-this.offsetTime,u=this.keyframes[this.keyframes.length-1].t-this.offsetTime,g=this._caching.lastFrame;return g!==e&&(g<y&&d<y||g>u&&d>u)||(this._caching.lastIndex=g<d?this._caching.lastIndex:0,this.interpolateShape(d,this.pv,this._caching)),this._caching.lastFrame=d,this.pv}function i(){this.paths=this.localShapeCollection}function s(d,y){if(d._length!==y._length||d.c!==y.c)return!1;var u,g=d._length;for(u=0;u<g;u+=1)if(d.v[u][0]!==y.v[u][0]||d.v[u][1]!==y.v[u][1]||d.o[u][0]!==y.o[u][0]||d.o[u][1]!==y.o[u][1]||d.i[u][0]!==y.i[u][0]||d.i[u][1]!==y.i[u][1])return!1;return!0}function n(d){s(this.v,d)||(this.v=shapePool.clone(d),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var d;this.kf?d=this.pv:this.data.ks?d=this.data.ks.k:d=this.data.pt.k;var y,u=this.effectsSequence.length;for(y=0;y<u;y+=1)d=this.effectsSequence[y](d);this.setVValue(d),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(d,y,u){this.propType="shape",this.comp=d.comp,this.container=d,this.elem=d,this.data=y,this.k=!1,this.kf=!1,this._mdf=!1;var g=u===3?y.pt.k:y.ks.k;this.v=shapePool.clone(g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function o(d){this.effectsSequence.push(d),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=a,l.prototype.setVValue=n,l.prototype.addEffect=o;function f(d,y,u){this.propType="shape",this.comp=d.comp,this.elem=d,this.container=d,this.offsetTime=d.data.st,this.keyframes=u===3?y.pt.k:y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var g=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}f.prototype.getValue=a,f.prototype.interpolateShape=t,f.prototype.setVValue=n,f.prototype.addEffect=o;var m=(function(){var d=roundCorner;function y(u,g){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=g.d,this.elem=u,this.comp=u.comp,this.frameId=-1,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,g.p,1,0,this),this.s=PropertyFactory.getProp(u,g.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return y.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var g=this.p.v[0],S=this.p.v[1],A=this.s.v[0]/2,F=this.s.v[1]/2,k=this.d!==3,q=this.v;q.v[0][0]=g,q.v[0][1]=S-F,q.v[1][0]=k?g+A:g-A,q.v[1][1]=S,q.v[2][0]=g,q.v[2][1]=S+F,q.v[3][0]=k?g-A:g+A,q.v[3][1]=S,q.i[0][0]=k?g-A*d:g+A*d,q.i[0][1]=S-F,q.i[1][0]=k?g+A:g-A,q.i[1][1]=S-F*d,q.i[2][0]=k?g+A*d:g-A*d,q.i[2][1]=S+F,q.i[3][0]=k?g-A:g+A,q.i[3][1]=S+F*d,q.o[0][0]=k?g+A*d:g-A*d,q.o[0][1]=S-F,q.o[1][0]=k?g+A:g-A,q.o[1][1]=S+F*d,q.o[2][0]=k?g-A*d:g+A*d,q.o[2][1]=S+F,q.o[3][0]=k?g-A:g+A,q.o[3][1]=S-F*d}},extendPrototype([DynamicPropertyContainer],y),y})(),E=(function(){function d(y,u){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=y,this.comp=y.comp,this.data=u,this.frameId=-1,this.d=u.d,this.initDynamicPropertyContainer(y),u.sy===1?(this.ir=PropertyFactory.getProp(y,u.ir,0,0,this),this.is=PropertyFactory.getProp(y,u.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(y,u.pt,0,0,this),this.p=PropertyFactory.getProp(y,u.p,1,0,this),this.r=PropertyFactory.getProp(y,u.r,0,degToRads,this),this.or=PropertyFactory.getProp(y,u.or,0,0,this),this.os=PropertyFactory.getProp(y,u.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 d.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var u=Math.floor(this.pt.v)*2,g=Math.PI*2/u,S=!0,A=this.or.v,F=this.ir.v,k=this.os.v,q=this.is.v,z=2*Math.PI*A/(u*2),j=2*Math.PI*F/(u*2),O,$,B,D,C=-Math.PI/2;C+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,O=0;O<u;O+=1){$=S?A:F,B=S?k:q,D=S?z:j;var _=$*Math.cos(C),x=$*Math.sin(C),M=_===0&&x===0?0:x/Math.sqrt(_*_+x*x),I=_===0&&x===0?0:-_/Math.sqrt(_*_+x*x);_+=+this.p.v[0],x+=+this.p.v[1],this.v.setTripleAt(_,x,_-M*D*B*R,x-I*D*B*R,_+M*D*B*R,x+I*D*B*R,O,!0),S=!S,C+=g*R}},convertPolygonToPath:function(){var u=Math.floor(this.pt.v),g=Math.PI*2/u,S=this.or.v,A=this.os.v,F=2*Math.PI*S/(u*4),k,q=-Math.PI*.5,z=this.data.d===3?-1:1;for(q+=this.r.v,this.v._length=0,k=0;k<u;k+=1){var j=S*Math.cos(q),O=S*Math.sin(q),$=j===0&&O===0?0:O/Math.sqrt(j*j+O*O),B=j===0&&O===0?0:-j/Math.sqrt(j*j+O*O);j+=+this.p.v[0],O+=+this.p.v[1],this.v.setTripleAt(j,O,j-$*F*A*z,O-B*F*A*z,j+$*F*A*z,O+B*F*A*z,k,!0),q+=g*z}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],d),d})(),p=(function(){function d(y,u){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=y,this.comp=y.comp,this.frameId=-1,this.d=u.d,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,u.p,1,0,this),this.s=PropertyFactory.getProp(y,u.s,1,0,this),this.r=PropertyFactory.getProp(y,u.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return d.prototype={convertRectToPath:function(){var u=this.p.v[0],g=this.p.v[1],S=this.s.v[0]/2,A=this.s.v[1]/2,F=bmMin(S,A,this.r.v),k=F*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(u+S,g-A+F,u+S,g-A+F,u+S,g-A+k,0,!0),this.v.setTripleAt(u+S,g+A-F,u+S,g+A-k,u+S,g+A-F,1,!0),F!==0?(this.v.setTripleAt(u+S-F,g+A,u+S-F,g+A,u+S-k,g+A,2,!0),this.v.setTripleAt(u-S+F,g+A,u-S+k,g+A,u-S+F,g+A,3,!0),this.v.setTripleAt(u-S,g+A-F,u-S,g+A-F,u-S,g+A-k,4,!0),this.v.setTripleAt(u-S,g-A+F,u-S,g-A+k,u-S,g-A+F,5,!0),this.v.setTripleAt(u-S+F,g-A,u-S+F,g-A,u-S+k,g-A,6,!0),this.v.setTripleAt(u+S-F,g-A,u+S-k,g-A,u+S-F,g-A,7,!0)):(this.v.setTripleAt(u-S,g+A,u-S+k,g+A,u-S,g+A,2),this.v.setTripleAt(u-S,g-A,u-S,g-A+k,u-S,g-A,3))):(this.v.setTripleAt(u+S,g-A+F,u+S,g-A+k,u+S,g-A+F,0,!0),F!==0?(this.v.setTripleAt(u+S-F,g-A,u+S-F,g-A,u+S-k,g-A,1,!0),this.v.setTripleAt(u-S+F,g-A,u-S+k,g-A,u-S+F,g-A,2,!0),this.v.setTripleAt(u-S,g-A+F,u-S,g-A+F,u-S,g-A+k,3,!0),this.v.setTripleAt(u-S,g+A-F,u-S,g+A-k,u-S,g+A-F,4,!0),this.v.setTripleAt(u-S+F,g+A,u-S+F,g+A,u-S+k,g+A,5,!0),this.v.setTripleAt(u+S-F,g+A,u+S-k,g+A,u+S-F,g+A,6,!0),this.v.setTripleAt(u+S,g+A-F,u+S,g+A-F,u+S,g+A-k,7,!0)):(this.v.setTripleAt(u-S,g-A,u-S+k,g-A,u-S,g-A,1,!0),this.v.setTripleAt(u-S,g+A,u-S,g+A-k,u-S,g+A,2,!0),this.v.setTripleAt(u+S,g+A,u+S-k,g+A,u+S,g+A,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],d),d})();function P(d,y,u){var g;if(u===3||u===4){var S=u===3?y.pt:y.ks,A=S.k;A.length?g=new f(d,y,u):g=new l(d,y,u)}else u===5?g=new p(d,y):u===6?g=new m(d,y):u===7&&(g=new E(d,y));return g.k&&d.addDynamicProperty(g),g}function b(){return l}function c(){return f}var T={};return T.getShapeProp=P,T.getConstructorFunction=b,T.getKeyframedConstructorFunction=c,T})();var Matrix=(function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(_){if(_===0)return this;var x=e(_),M=t(_);return this._t(x,-M,0,0,M,x,0,0,0,0,1,0,0,0,0,1)}function a(_){if(_===0)return this;var x=e(_),M=t(_);return this._t(1,0,0,0,0,x,-M,0,0,M,x,0,0,0,0,1)}function l(_){if(_===0)return this;var x=e(_),M=t(_);return this._t(x,0,M,0,0,1,0,0,-M,0,x,0,0,0,0,1)}function o(_){if(_===0)return this;var x=e(_),M=t(_);return this._t(x,-M,0,0,M,x,0,0,0,0,1,0,0,0,0,1)}function f(_,x){return this._t(1,x,_,1,0,0)}function m(_,x){return this.shear(r(_),r(x))}function E(_,x){var M=e(x),I=t(x);return this._t(M,I,0,0,-I,M,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(_),1,0,0,0,0,1,0,0,0,0,1)._t(M,-I,0,0,I,M,0,0,0,0,1,0,0,0,0,1)}function p(_,x,M){return!M&&M!==0&&(M=1),_===1&&x===1&&M===1?this:this._t(_,0,0,0,0,x,0,0,0,0,M,0,0,0,0,1)}function P(_,x,M,I,L,G,V,K,H,X,J,Q,Z,ie,N,te){return this.props[0]=_,this.props[1]=x,this.props[2]=M,this.props[3]=I,this.props[4]=L,this.props[5]=G,this.props[6]=V,this.props[7]=K,this.props[8]=H,this.props[9]=X,this.props[10]=J,this.props[11]=Q,this.props[12]=Z,this.props[13]=ie,this.props[14]=N,this.props[15]=te,this}function b(_,x,M){return M=M||0,_!==0||x!==0||M!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,_,x,M,1):this}function c(_,x,M,I,L,G,V,K,H,X,J,Q,Z,ie,N,te){var Y=this.props;if(_===1&&x===0&&M===0&&I===0&&L===0&&G===1&&V===0&&K===0&&H===0&&X===0&&J===1&&Q===0)return Y[12]=Y[12]*_+Y[15]*Z,Y[13]=Y[13]*G+Y[15]*ie,Y[14]=Y[14]*J+Y[15]*N,Y[15]*=te,this._identityCalculated=!1,this;var oe=Y[0],ce=Y[1],fe=Y[2],he=Y[3],ue=Y[4],pe=Y[5],ae=Y[6],de=Y[7],re=Y[8],W=Y[9],U=Y[10],ee=Y[11],se=Y[12],ne=Y[13],le=Y[14],me=Y[15];return Y[0]=oe*_+ce*L+fe*H+he*Z,Y[1]=oe*x+ce*G+fe*X+he*ie,Y[2]=oe*M+ce*V+fe*J+he*N,Y[3]=oe*I+ce*K+fe*Q+he*te,Y[4]=ue*_+pe*L+ae*H+de*Z,Y[5]=ue*x+pe*G+ae*X+de*ie,Y[6]=ue*M+pe*V+ae*J+de*N,Y[7]=ue*I+pe*K+ae*Q+de*te,Y[8]=re*_+W*L+U*H+ee*Z,Y[9]=re*x+W*G+U*X+ee*ie,Y[10]=re*M+W*V+U*J+ee*N,Y[11]=re*I+W*K+U*Q+ee*te,Y[12]=se*_+ne*L+le*H+me*Z,Y[13]=se*x+ne*G+le*X+me*ie,Y[14]=se*M+ne*V+le*J+me*N,Y[15]=se*I+ne*K+le*Q+me*te,this._identityCalculated=!1,this}function T(_){var x=_.props;return this.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15])}function d(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function y(_){for(var x=0;x<16;){if(_.props[x]!==this.props[x])return!1;x+=1}return!0}function u(_){var x;for(x=0;x<16;x+=1)_.props[x]=this.props[x];return _}function g(_){var x;for(x=0;x<16;x+=1)this.props[x]=_[x]}function S(_,x,M){return{x:_*this.props[0]+x*this.props[4]+M*this.props[8]+this.props[12],y:_*this.props[1]+x*this.props[5]+M*this.props[9]+this.props[13],z:_*this.props[2]+x*this.props[6]+M*this.props[10]+this.props[14]}}function A(_,x,M){return _*this.props[0]+x*this.props[4]+M*this.props[8]+this.props[12]}function F(_,x,M){return _*this.props[1]+x*this.props[5]+M*this.props[9]+this.props[13]}function k(_,x,M){return _*this.props[2]+x*this.props[6]+M*this.props[10]+this.props[14]}function q(){var _=this.props[0]*this.props[5]-this.props[1]*this.props[4],x=this.props[5]/_,M=-this.props[1]/_,I=-this.props[4]/_,L=this.props[0]/_,G=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/_,V=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/_,K=new Matrix;return K.props[0]=x,K.props[1]=M,K.props[4]=I,K.props[5]=L,K.props[12]=G,K.props[13]=V,K}function z(_){var x=this.getInverseMatrix();return x.applyToPointArray(_[0],_[1],_[2]||0)}function j(_){var x,M=_.length,I=[];for(x=0;x<M;x+=1)I[x]=z(_[x]);return I}function O(_,x,M){var I=createTypedArray("float32",6);if(this.isIdentity())I[0]=_[0],I[1]=_[1],I[2]=x[0],I[3]=x[1],I[4]=M[0],I[5]=M[1];else{var L=this.props[0],G=this.props[1],V=this.props[4],K=this.props[5],H=this.props[12],X=this.props[13];I[0]=_[0]*L+_[1]*V+H,I[1]=_[0]*G+_[1]*K+X,I[2]=x[0]*L+x[1]*V+H,I[3]=x[0]*G+x[1]*K+X,I[4]=M[0]*L+M[1]*V+H,I[5]=M[0]*G+M[1]*K+X}return I}function $(_,x,M){var I;return this.isIdentity()?I=[_,x,M]:I=[_*this.props[0]+x*this.props[4]+M*this.props[8]+this.props[12],_*this.props[1]+x*this.props[5]+M*this.props[9]+this.props[13],_*this.props[2]+x*this.props[6]+M*this.props[10]+this.props[14]],I}function B(_,x){if(this.isIdentity())return _+","+x;var M=this.props;return Math.round((_*M[0]+x*M[4]+M[12])*100)/100+","+Math.round((_*M[1]+x*M[5]+M[13])*100)/100}function D(){for(var _=0,x=this.props,M="matrix3d(",I=1e4;_<16;)M+=i(x[_]*I)/I,M+=_===15?")":",",_+=1;return M}function C(_){var x=1e4;return _<1e-6&&_>0||_>-1e-6&&_<0?i(_*x)/x:_}function R(){var _=this.props,x=C(_[0]),M=C(_[1]),I=C(_[4]),L=C(_[5]),G=C(_[12]),V=C(_[13]);return"matrix("+x+","+M+","+I+","+L+","+G+","+V+")"}return function(){this.reset=s,this.rotate=n,this.rotateX=a,this.rotateY=l,this.rotateZ=o,this.skew=m,this.skewFromAxis=E,this.shear=f,this.scale=p,this.setTransform=P,this.translate=b,this.transform=c,this.multiply=T,this.applyToPoint=S,this.applyToX=A,this.applyToY=F,this.applyToZ=k,this.applyToPointArray=$,this.applyToTriplePoints=O,this.applyToPointStringified=B,this.toCSS=D,this.to2dCSS=R,this.clone=u,this.cloneFromProps=g,this.equals=y,this.inversePoints=j,this.inversePoint=z,this.getInverseMatrix=q,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=r,e.getModifier=i;function r(s,n){t[s]||(t[s]=n)}function i(s,n,a){return new t[s](n,a)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,s){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a=[],l,o=n.length,f;for(l=0;l<o;l+=1)if(f=n[l],!(f.e*s<i||f.s*s>i+r)){var m,E;f.s*s<=i?m=0:m=(f.s*s-i)/r,f.e*s>=i+r?E=1:E=(f.e*s-i)/r,a.push([m,E])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var n,a,l=this.shapes.length,o,f,m,E,p,P=0;if(r===t)for(a=0;a<l;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(a=0;a<l;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var b=[],c,T;for(a=0;a<l;a+=1)if(c=this.shapes[a],!c.shape._mdf&&!this._mdf&&!e&&this.m!==2)c.shape.paths=c.localShapeCollection;else{if(n=c.shape.paths,f=n._length,p=0,!c.shape._mdf&&c.pathsData.length)p=c.totalShapeLength;else{for(m=this.releasePathsData(c.pathsData),o=0;o<f;o+=1)E=bez.getSegmentsLength(n.shapes[o]),m.push(E),p+=E.totalLength;c.totalShapeLength=p,c.pathsData=m}P+=p,c.shape._mdf=!0}var d=t,y=r,u=0,g;for(a=l-1;a>=0;a-=1)if(c=this.shapes[a],c.shape._mdf){for(T=c.localShapeCollection,T.releaseShapes(),this.m===2&&l>1?(g=this.calculateShapeEdges(t,r,c.totalShapeLength,u,P),u+=c.totalShapeLength):g=[[d,y]],f=g.length,o=0;o<f;o+=1){d=g[o][0],y=g[o][1],b.length=0,y<=1?b.push({s:c.totalShapeLength*d,e:c.totalShapeLength*y}):d>=1?b.push({s:c.totalShapeLength*(d-1),e:c.totalShapeLength*(y-1)}):(b.push({s:c.totalShapeLength*d,e:c.totalShapeLength}),b.push({s:0,e:c.totalShapeLength*(y-1)}));var S=this.addShapes(c,b[0]);if(b[0].s!==b[0].e){if(b.length>1){var A=c.shape.paths.shapes[c.shape.paths._length-1];if(A.c){var F=S.pop();this.addPaths(S,T),S=this.addShapes(c,b[1],F)}else this.addPaths(S,T),S=this.addShapes(c,b[1])}this.addPaths(S,T)}}c.shape.paths=T}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,s,n,a){s.setXYAt(t[0],t[1],"o",n),s.setXYAt(r[0],r[1],"i",n+1),a&&s.setXYAt(e[0],e[1],"v",n),s.setXYAt(i[0],i[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i=e.pathsData,s=e.shape.paths.shapes,n,a=e.shape.paths._length,l,o,f=0,m,E,p,P,b=[],c,T=!0;for(r?(E=r._length,c=r._length):(r=shapePool.newElement(),E=0,c=0),b.push(r),n=0;n<a;n+=1){for(p=i[n].lengths,r.c=s[n].c,o=s[n].c?p.length:p.length+1,l=1;l<o;l+=1)if(m=p[l-1],f+m.addedLength<t.s)f+=m.addedLength,r.c=!1;else if(f>t.e){r.c=!1;break}else t.s<=f&&t.e>=f+m.addedLength?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[l],s[n].v[l],r,E,T),T=!1):(P=bez.getNewSegment(s[n].v[l-1],s[n].v[l],s[n].o[l-1],s[n].i[l],(t.s-f)/m.addedLength,(t.e-f)/m.addedLength,p[l-1]),this.addSegmentFromArray(P,r,E,T),T=!1,r.c=!1),f+=m.addedLength,E+=1;if(s[n].c&&p.length){if(m=p[l-1],f<=t.e){var d=p[l-1].addedLength;t.s<=f&&t.e>=f+d?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[0],s[n].v[0],r,E,T),T=!1):(P=bez.getNewSegment(s[n].v[l-1],s[n].v[0],s[n].o[l-1],s[n].i[0],(t.s-f)/d,(t.e-f)/d,p[l-1]),this.addSegmentFromArray(P,r,E,T),T=!1,r.c=!1)}else r.c=!1;f+=m.addedLength,E+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;n<a-1&&(r=shapePool.newElement(),T=!0,b.push(r),E=0)}return b};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],s=e._length,n=0;for(n=0;n<s;n+=1)i[0]+=e.v[n][0],i[1]+=e.v[n][1];i[0]/=s,i[1]/=s;var a=shapePool.newElement();a.c=e.c;var l,o,f,m,E,p;for(n=0;n<s;n+=1)l=e.v[n][0]+(i[0]-e.v[n][0])*r,o=e.v[n][1]+(i[1]-e.v[n][1])*r,f=e.o[n][0]+(i[0]-e.o[n][0])*-r,m=e.o[n][1]+(i[1]-e.o[n][1])*-r,E=e.i[n][0]+(i[0]-e.i[n][0])*-r,p=e.i[n][1]+(i[1]-e.i[n][1])*-r,a.setTripleAt(l,o,f,m,E,p,n);return a},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v;if(a!==0){var l,o;for(r=0;r<i;r+=1){if(l=this.shapes[r],o=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(o.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)o.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(o){var f=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||f,this.a&&o.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&o.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&o.skewFromAxis(-this.sk.v,this.sa.v),this.r?o.rotate(-this.r.v):o.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?o.translate(this.px.v,this.py.v,-this.pz.v):o.translate(this.px.v,this.py.v,0):o.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(o){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||o){var f;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 m,E;if(f=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(m=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/f,0),E=this.p.getValueAtTime(this.p.keyframes[0].t/f,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(m=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/f,0),E=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/f,0)):(m=this.p.pv,E=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/f,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){m=[],E=[];var p=this.px,P=this.py;p._caching.lastFrame+p.offsetTime<=p.keyframes[0].t?(m[0]=p.getValueAtTime((p.keyframes[0].t+.01)/f,0),m[1]=P.getValueAtTime((P.keyframes[0].t+.01)/f,0),E[0]=p.getValueAtTime(p.keyframes[0].t/f,0),E[1]=P.getValueAtTime(P.keyframes[0].t/f,0)):p._caching.lastFrame+p.offsetTime>=p.keyframes[p.keyframes.length-1].t?(m[0]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/f,0),m[1]=P.getValueAtTime(P.keyframes[P.keyframes.length-1].t/f,0),E[0]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-.01)/f,0),E[1]=P.getValueAtTime((P.keyframes[P.keyframes.length-1].t-.01)/f,0)):(m=[p.pv,P.pv],E[0]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-.01)/f,p.offsetTime),E[1]=P.getValueAtTime((P._caching.lastFrame+P.offsetTime-.01)/f,P.offsetTime))}else E=e,m=E;this.v.rotate(-Math.atan2(m[1]-E[1],m[0]-E[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function n(o){this._addDynamicProperty(o),this.elem.addDynamicProperty(o),this._isDirty=!0}function a(o,f,m){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=f,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(m||o),f.p&&f.p.s?(this.px=PropertyFactory.getProp(o,f.p.x,0,0,this),this.py=PropertyFactory.getProp(o,f.p.y,0,0,this),f.p.z&&(this.pz=PropertyFactory.getProp(o,f.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,f.p||{k:[0,0,0]},1,0,this),f.rx){if(this.rx=PropertyFactory.getProp(o,f.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,f.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,f.rz,0,degToRads,this),f.or.k[0].ti){var E,p=f.or.k.length;for(E=0;E<p;E+=1)f.or.k[E].to=null,f.or.k[E].ti=null}this.or=PropertyFactory.getProp(o,f.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(o,f.r||{k:0},0,degToRads,this);f.sk&&(this.sk=PropertyFactory.getProp(o,f.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(o,f.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(o,f.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(o,f.s||{k:[100,100,100]},1,.01,this),f.o?this.o=PropertyFactory.getProp(o,f.o,0,.01,o):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=n,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(o,f,m){return new a(o,f,m)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,i,s,n){var a=n?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),o=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*a*s,i.p.v[1]*a*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(n?1/l:l,n?1/o:o),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,s,n,a=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var o={it:this.cloneElements(this._elements),ty:"gr"};o.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,o),this._groups.splice(0,0,o),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}n=0;var f;for(i=0;i<=this._groups.length-1;i+=1){if(f=n<l,this._groups[i]._render=f,this.changeGroupRender(this._groups[i].it,f),!f){var m=this.elemsData[i].it,E=m[m.length-1];E.transform.op.v!==0?(E.transform.op._mdf=!0,E.transform.op.v=0):E.transform.op._mdf=!1}n+=1}this._currentCopies=l;var p=this.o.v,P=p%1,b=p>0?Math.floor(p):Math.ceil(p),c=this.pMatrix.props,T=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y=0;if(p>0){for(;y<b;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y+=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,P,!1),y+=P)}else if(p<0){for(;y>b;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y-=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-P,!0),y-=P)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,n=this._currentCopies;for(var u,g;n;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,g=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),y!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(T[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]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),u=0;u<g;u+=1)r[u]=this.matrix.props[u];this.matrix.reset()}else for(this.matrix.reset(),u=0;u<g;u+=1)r[u]=this.matrix.props[u];y+=1,n-=1,i+=s}}else for(n=this._currentCopies,i=0,s=1;n;)t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,i+=s;return a},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var i,s=e._length,n,a,l,o,f,m,E=0,p,P,b,c,T,d;for(i=0;i<s;i+=1)n=e.v[i],l=e.o[i],a=e.i[i],n[0]===l[0]&&n[1]===l[1]&&n[0]===a[0]&&n[1]===a[1]?(i===0||i===s-1)&&!e.c?(r.setTripleAt(n[0],n[1],l[0],l[1],a[0],a[1],E),E+=1):(i===0?o=e.v[s-1]:o=e.v[i-1],f=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)),m=f?Math.min(f/2,t)/f:0,T=n[0]+(o[0]-n[0])*m,p=T,d=n[1]-(n[1]-o[1])*m,P=d,b=p-(p-n[0])*roundCorner,c=P-(P-n[1])*roundCorner,r.setTripleAt(p,P,b,c,T,d,E),E+=1,i===s-1?o=e.v[0]:o=e.v[i+1],f=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)),m=f?Math.min(f/2,t)/f:0,b=n[0]+(o[0]-n[0])*m,p=b,c=n[1]+(o[1]-n[1])*m,P=c,T=p-(p-n[0])*roundCorner,d=P-(P-n[1])*roundCorner,r.setTripleAt(p,P,b,c,T,d,E),E+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],E),E+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.rd.v;if(a!==0){var l,o;for(r=0;r<i;r+=1){if(l=this.shapes[r],o=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(o.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)o.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var i=t*t-4*e*r;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var n=Math.sqrt(i)/(2*e);return[s-n,s+n]}function polynomialCoefficients(e,t,r,i){return[-e+3*t-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var n=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),n=lerpPoint(r,i,e),a=lerpPoint(s,n,e);return[new PolynomialBezier(this.points[0],t,s,a,!0),new PolynomialBezier(a,n,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var s=i;i=r,r=s}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var l=e.point(n[a])[t];l<r?r=l:l>i&&(i=l)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,i,s,n){if(boxIntersect(e,t)){if(r>=n||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var a=splitData(e),l=splitData(t);intersectsImpl(a[0],l[0],r+1,i,s,n),intersectsImpl(a[0],l[1],r+1,i,s,n),intersectsImpl(a[1],l[0],r+1,i,s,n),intersectsImpl(a[1],l[1],r+1,i,s,n)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var s=[e[0],e[1],1],n=[t[0],t[1],1],a=[r[0],r[1],1],l=[i[0],i[1],1],o=crossProduct(crossProduct(s,n),crossProduct(a,l));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,s,n,a){var l=r-Math.PI/2,o=r+Math.PI/2,f=t[0]+Math.cos(r)*i*s,m=t[1]-Math.sin(r)*i*s;e.setTripleAt(f,m,f+Math.cos(l)*n,m-Math.sin(l)*n,f+Math.cos(o)*a,m-Math.sin(o)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[r],n=e.v[i],a=getPerpendicularVector(s,n);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,r,i,s,n,a){var l=getProjectingAngle(t,r),o=t.v[r%t._length],f=t.v[r===0?t._length-1:r-1],m=t.v[(r+1)%t._length],E=n===2?Math.sqrt(Math.pow(o[0]-f[0],2)+Math.pow(o[1]-f[1],2)):0,p=n===2?Math.sqrt(Math.pow(o[0]-m[0],2)+Math.pow(o[1]-m[1],2)):0;setPoint(e,t.v[r%t._length],l,a,i,p/((s+1)*2),E/((s+1)*2))}function zigZagSegment(e,t,r,i,s,n){for(var a=0;a<i;a+=1){var l=(a+1)/(i+1),o=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,f=t.normalAngle(l),m=t.point(l);setPoint(e,m,f,n,r,o/((i+1)*2),o/((i+1)*2)),n=-n}return n}ZigZagModifier.prototype.processPath=function(e,t,r,i){var s=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(s-=1),s===0)return n;var a=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,r,i,a);for(var o=0;o<s;o+=1)a=zigZagSegment(n,l,t,r,i,-a),o===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(o+1)%s),zigZagCorner(n,e,o+1,t,r,i,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),o=this.pointsType.v;if(a!==0){var f,m;for(r=0;r<i;r+=1){if(f=this.shapes[r],m=f.localShapeCollection,!(!f.shape._mdf&&!this._mdf&&!e))for(m.releaseShapes(),f.shape._mdf=!0,t=f.shape.paths.shapes,n=f.shape.paths._length,s=0;s<n;s+=1)m.addShape(this.processPath(t[s],a,l,o));f.shape.paths=f.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,s,n,a,l,o;o=linearOffset(e.points[0],e.points[1],t),r=o[0],i=o[1],o=linearOffset(e.points[1],e.points[2],t),s=o[0],n=o[1],o=linearOffset(e.points[2],e.points[3],t),a=o[0],l=o[1];var f=lineIntersection(r,i,s,n);f===null&&(f=i);var m=lineIntersection(a,l,s,n);return m===null&&(m=a),new PolynomialBezier(r,f,m,l)}function joinLines(e,t,r,i,s){var n=t.points[3],a=r.points[0];if(i===3||pointEqual(n,a))return n;if(i===2){var l=-t.tangentAngle(1),o=-r.tangentAngle(0)+Math.PI,f=lineIntersection(n,polarOffset(n,l+Math.PI/2,100),a,polarOffset(a,l+Math.PI/2,100)),m=f?pointDistance(f,n):pointDistance(n,a)/2,E=polarOffset(n,l,2*m*roundCorner);return e.setXYAt(E[0],E[1],"o",e.length()-1),E=polarOffset(a,o,2*m*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],E[0],E[1],e.length()),a}var p=pointEqual(n,t.points[2])?t.points[0]:t.points[2],P=pointEqual(a,r.points[1])?r.points[3]:r.points[1],b=lineIntersection(p,n,a,P);return b&&pointDistance(b,n)<s?(e.setTripleAt(b[0],b[1],b[0],b[1],b[0],b[1],e.length()),b):n}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,s,n,a;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return n=e.split(r[0]),i=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(s,t)];n=e.split(r[0]),i=n[0];var l=(r[1]-r[0])/(1-r[0]);return n=n[1].split(l),a=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(a,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var s=shapePool.newElement();s.c=e.c;var n=e.length();e.c||(n-=1);var a,l,o,f=[];for(a=0;a<n;a+=1)o=PolynomialBezier.shapeSegment(e,a),f.push(offsetSegmentSplit(o,t));if(!e.c)for(a=n-1;a>=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(e,a),f.push(offsetSegmentSplit(o,t));f=pruneIntersections(f);var m=null,E=null;for(a=0;a<f.length;a+=1){var p=f[a];for(E&&(m=joinLines(s,E,p[0],r,i)),E=p[p.length-1],l=0;l<p.length;l+=1)o=p[l],m&&pointEqual(o.points[0],m)?s.setXYAt(o.points[1][0],o.points[1][1],"o",s.length()-1):s.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],s.length()),s.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],s.length()),m=o.points[3]}return f.length&&joinLines(s,E,f[0][0],r,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v,l=this.miterLimit.v,o=this.lineJoin;if(a!==0){var f,m;for(r=0;r<i;r+=1){if(f=this.shapes[r],m=f.localShapeCollection,!(!f.shape._mdf&&!this._mdf&&!e))for(m.releaseShapes(),f.shape._mdf=!0,t=f.shape.paths.shapes,n=f.shape.paths._length,s=0;s<n;s+=1)m.addShape(this.processPath(t[s],a,o,l));f.shape.paths=f.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",s=t.length,n,a=0;a<s;a+=1)switch(n=t[a].toLowerCase(),n){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:i,weight:e.fWeight||r}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=917631,n=917601,a=917626,l=65039,o=8205,f=127462,m=127487,E=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(C){var R=C.split(","),_,x=R.length,M=[];for(_=0;_<x;_+=1)R[_]!=="sans-serif"&&R[_]!=="monospace"&&M.push(R[_]);return M.join(",")}function P(C,R){var _=createTag("span");_.setAttribute("aria-hidden",!0),_.style.fontFamily=R;var x=createTag("span");x.innerText="giItT1WQy@!-/#",_.style.position="absolute",_.style.left="-10000px",_.style.top="-10000px",_.style.fontSize="300px",_.style.fontVariant="normal",_.style.fontStyle="normal",_.style.fontWeight="normal",_.style.letterSpacing="0",_.appendChild(x),document.body.appendChild(_);var M=x.offsetWidth;return x.style.fontFamily=p(C)+", "+R,{node:x,w:M,parent:_}}function b(){var C,R=this.fonts.length,_,x,M=R;for(C=0;C<R;C+=1)this.fonts[C].loaded?M-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(_=this.fonts[C].monoCase.node,x=this.fonts[C].monoCase.w,_.offsetWidth!==x?(M-=1,this.fonts[C].loaded=!0):(_=this.fonts[C].sansCase.node,x=this.fonts[C].sansCase.w,_.offsetWidth!==x&&(M-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));M!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function c(C,R){var _=document.body&&R?"svg":"canvas",x,M=getFontProperties(C);if(_==="svg"){var I=createNS("text");I.style.fontSize="100px",I.setAttribute("font-family",C.fFamily),I.setAttribute("font-style",M.style),I.setAttribute("font-weight",M.weight),I.textContent="1",C.fClass?(I.style.fontFamily="inherit",I.setAttribute("class",C.fClass)):I.style.fontFamily=C.fFamily,R.appendChild(I),x=I}else{var L=new OffscreenCanvas(500,500).getContext("2d");L.font=M.style+" "+M.weight+" 100px "+C.fFamily,x=L}function G(V){return _==="svg"?(x.textContent=V,x.getComputedTextLength()):x.measureText(V).width}return{measureText:G}}function T(C,R){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(J){J.helper=c(J),J.cache={}}),this.fonts=C.list;return}var _=C.list,x,M=_.length,I=M;for(x=0;x<M;x+=1){var L=!0,G,V;if(_[x].loaded=!1,_[x].monoCase=P(_[x].fFamily,"monospace"),_[x].sansCase=P(_[x].fFamily,"sans-serif"),!_[x].fPath)_[x].loaded=!0,I-=1;else if(_[x].fOrigin==="p"||_[x].origin===3){if(G=document.querySelectorAll('style[f-forigin="p"][f-family="'+_[x].fFamily+'"], style[f-origin="3"][f-family="'+_[x].fFamily+'"]'),G.length>0&&(L=!1),L){var K=createTag("style");K.setAttribute("f-forigin",_[x].fOrigin),K.setAttribute("f-origin",_[x].origin),K.setAttribute("f-family",_[x].fFamily),K.type="text/css",K.innerText="@font-face {font-family: "+_[x].fFamily+"; font-style: normal; src: url('"+_[x].fPath+"');}",R.appendChild(K)}}else if(_[x].fOrigin==="g"||_[x].origin===1){for(G=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),V=0;V<G.length;V+=1)G[V].href.indexOf(_[x].fPath)!==-1&&(L=!1);if(L){var H=createTag("link");H.setAttribute("f-forigin",_[x].fOrigin),H.setAttribute("f-origin",_[x].origin),H.type="text/css",H.rel="stylesheet",H.href=_[x].fPath,document.body.appendChild(H)}}else if(_[x].fOrigin==="t"||_[x].origin===2){for(G=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),V=0;V<G.length;V+=1)_[x].fPath===G[V].src&&(L=!1);if(L){var X=createTag("link");X.setAttribute("f-forigin",_[x].fOrigin),X.setAttribute("f-origin",_[x].origin),X.setAttribute("rel","stylesheet"),X.setAttribute("href",_[x].fPath),R.appendChild(X)}}_[x].helper=c(_[x],R),_[x].cache={},this.fonts.push(_[x])}I===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function d(C){if(C){this.chars||(this.chars=[]);var R,_=C.length,x,M=this.chars.length,I;for(R=0;R<_;R+=1){for(x=0,I=!1;x<M;)this.chars[x].style===C[R].style&&this.chars[x].fFamily===C[R].fFamily&&this.chars[x].ch===C[R].ch&&(I=!0),x+=1;I||(this.chars.push(C[R]),M+=1)}}}function y(C,R,_){for(var x=0,M=this.chars.length;x<M;){if(this.chars[x].ch===C&&this.chars[x].style===R&&this.chars[x].fFamily===_)return this.chars[x];x+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,R,_)),t}function u(C,R,_){var x=this.getFontByName(R),M=C;if(!x.cache[M]){var I=x.helper;if(C===" "){var L=I.measureText("|"+C+"|"),G=I.measureText("||");x.cache[M]=(L-G)/100}else x.cache[M]=I.measureText(C)/100}return x.cache[M]*_}function g(C){for(var R=0,_=this.fonts.length;R<_;){if(this.fonts[R].fName===C)return this.fonts[R];R+=1}return this.fonts[0]}function S(C){var R=0,_=C.charCodeAt(0);if(_>=55296&&_<=56319){var x=C.charCodeAt(1);x>=56320&&x<=57343&&(R=(_-55296)*1024+x-56320+65536)}return R}function A(C,R){var _=C.toString(16)+R.toString(16);return E.indexOf(_)!==-1}function F(C){return C===o}function k(C){return C===l}function q(C){var R=S(C);return R>=f&&R<=m}function z(C){return q(C.substr(0,2))&&q(C.substr(2,2))}function j(C){return r.indexOf(C)!==-1}function O(C,R){var _=S(C.substr(R,2));if(_!==i)return!1;var x=0;for(R+=2;x<5;){if(_=S(C.substr(R,2)),_<n||_>a)return!1;x+=1,R+=2}return S(C.substr(R,2))===s}function $(){this.isLoaded=!0}var B=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)};B.isModifier=A,B.isZeroWidthJoiner=F,B.isFlagEmoji=z,B.isRegionalCode=q,B.isCombinedCharacter=j,B.isRegionalFlag=O,B.isVariationSelector=k,B.BLACK_FLAG_CODE_POINT=i;var D={addChars:d,addFonts:T,getCharData:y,getFontByName:g,measureText:u,checkLoadedFonts:b,setIsLoaded:$};return B.prototype=D,B})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var i,s=r.length,n;for(i=0;i<s;i+=1)n=new GroupEffect(r[i],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,s,n=this.data.ef;for(r=0;r<i;r+=1){switch(s=null,n[r].ty){case 0:s=new SliderEffect(n[r],t,this);break;case 1:s=new AngleEffect(n[r],t,this);break;case 2:s=new ColorEffect(n[r],t,this);break;case 3:s=new PointEffect(n[r],t,this);break;case 4:case 7:s=new CheckboxEffect(n[r],t,this);break;case 10:s=new LayerIndexEffect(n[r],t,this);break;case 11:s=new MaskIndexEffect(n[r],t,this);break;case 5:s=new EffectsManager(n[r],t);break;default:s=new NoValueEffect(n[r]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),a=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,i){this.globalData=r,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,i,s=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,s=this.layers,n=0,a=s.length;n<a;)s[n].ind==t&&(!i[n]||i[n]===!0?(this.buildItem(n),this.addPendingElement(e)):(r.push(i[n]),i[n].setAsParent(),s[n].parent!==void 0?this.buildElementParenting(e,s[n].parent,r):e.setHierarchy(r))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),i=0;i<s;i+=1)r.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<r;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)n*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=t.length;for(r=0;r<i;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):i=!1;var n,a=r.length,l;for(n=0;n<a;n+=1)l=r[n].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var a,l=this.masksProperties,o=0,f=[],m,E,p=createElementID(),P,b,c,T,d="clipPath",y="clip-path";for(s=0;s<n;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(d="mask",y="mask"),(l[s].mode==="s"||l[s].mode==="i")&&o===0?(P=createNS("rect"),P.setAttribute("fill","#ffffff"),P.setAttribute("width",this.element.comp.data.w||0),P.setAttribute("height",this.element.comp.data.h||0),f.push(P)):P=null,a=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:a,lastPath:""},i.appendChild(a);else{o+=1,a.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var u;if(l[s].x.k!==0?(d="mask",y="mask",T=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),u=createElementID(),b=createNS("filter"),b.setAttribute("id",u),c=createNS("feMorphology"),c.setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),b.appendChild(c),i.appendChild(b),a.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(c=null,T=null),this.storedData[s]={elem:a,x:T,expan:c,lastPath:"",lastOperator:"",filterId:u,lastRadius:0},l[s].mode==="i"){E=f.length;var g=createNS("g");for(m=0;m<E;m+=1)g.appendChild(f[m]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",p+"_"+o),S.appendChild(a),i.appendChild(S),g.setAttribute("mask","url("+getLocationHref()+"#"+p+"_"+o+")"),f.length=0,f.push(g)}else f.push(a);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:P},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(d),n=f.length,s=0;s<n;s+=1)this.maskElement.appendChild(f[s]);o>0&&(this.maskElement.setAttribute("id",p),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+p+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var s=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),s.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var i=" M"+t.v[0][0]+","+t.v[0][1],s,n;for(n=t._length,s=1;s<n;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&n>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",a)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(i,s){var n=createNS("filter");return n.setAttribute("id",i),s!==!0&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),n=filtersFactory.createFilter(s,!0),a=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var o=e.data.ef[t].ty;if(registeredEffects$1[o]){var f=registeredEffects$1[o].effect;l=new f(n,e.effectsManager.effectElements[t],e,idPrefix+a,r),r=idPrefix+a,registeredEffects$1[o].countsAsEffect&&(a+=1)}l&&this.filters.push(l)}a&&(e.globalData.defs.appendChild(n),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,i,s,n,a;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",t===3?"luminance":"alpha"),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),a.appendChild(n),l.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var o=createNS("mask");o.setAttribute("id",r),o.setAttribute("mask-type","alpha");var f=createNS("g");o.appendChild(f),i=createElementID(),s=filtersFactory.createFilter(i);var m=createNS("feComponentTransfer");m.setAttribute("in","SourceGraphic"),s.appendChild(m);var E=createNS("feFuncA");E.setAttribute("type","table"),E.setAttribute("tableValues","1.0 0.0"),m.appendChild(E),this.globalData.defs.appendChild(s);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),f.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),f.appendChild(p),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),f.appendChild(n),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),f.appendChild(p),a.appendChild(this.layerElement),f.appendChild(a)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,i,s){this.initFrame(),this.initBaseData(r,i,s),this.initTransform(r,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var i;for(t=r-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,s=r.length;i<s;){if(r[i].elem===t)return r[i].pos;i+=1}return 0},addProcessedElement:function(t,r){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=r;return}i.push(new ProcessedElement(t,r))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,n=t.length||0,a;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:t[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2,s;r<i;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,i,s;for(t=0;t<r;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],n,a,l;for(l=t.g.p*4,a=0;a<l;a+=4)n=createNS("stop"),i.appendChild(n),s.push(n);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,n=createNS("mask"),a=createNS("path");n.appendChild(a);var l=createElementID(),o=createElementID();n.setAttribute("id",o);var f=createNS(e.t===1?"linearGradient":"radialGradient");f.setAttribute("id",l),f.setAttribute("spreadMethod","pad"),f.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var m=this.stops;for(i=e.g.p*4;i<s;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),f.appendChild(r),m.push(r);a.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=f,this.ms=n,this.ost=m,this.maskId=o,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,i,s){if(r===0)return"";var n=t.o,a=t.i,l=t.v,o,f=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(o=1;o<r;o+=1)f+=" C"+s.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+s.applyToPointStringified(a[o][0],a[o][1])+" "+s.applyToPointStringified(l[o][0],l[o][1]);return i&&r&&(f+=" C"+s.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),f+="z"),f},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:i};function i(E){switch(E.ty){case"fl":return l;case"gf":return f;case"gs":return o;case"st":return m;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return n;default:return null}}function s(E,p,P){(P||p.transform.op._mdf)&&p.transform.container.setAttribute("opacity",p.transform.op.v),(P||p.transform.mProps._mdf)&&p.transform.container.setAttribute("transform",p.transform.mProps.v.to2dCSS())}function n(){}function a(E,p,P){var b,c,T,d,y,u,g=p.styles.length,S=p.lvl,A,F,k,q;for(u=0;u<g;u+=1){if(d=p.sh._mdf||P,p.styles[u].lvl<S){for(F=t.reset(),k=S-p.styles[u].lvl,q=p.transformers.length-1;!d&&k>0;)d=p.transformers[q].mProps._mdf||d,k-=1,q-=1;if(d)for(k=S-p.styles[u].lvl,q=p.transformers.length-1;k>0;)F.multiply(p.transformers[q].mProps.v),k-=1,q-=1}else F=e;if(A=p.sh.paths,c=A._length,d){for(T="",b=0;b<c;b+=1)y=A.shapes[b],y&&y._length&&(T+=buildShapeString(y,y._length,y.c,F));p.caches[u]=T}else T=p.caches[u];p.styles[u].d+=E.hd===!0?"":T,p.styles[u]._mdf=d||p.styles[u]._mdf}}function l(E,p,P){var b=p.style;(p.c._mdf||P)&&b.pElem.setAttribute("fill","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||P)&&b.pElem.setAttribute("fill-opacity",p.o.v)}function o(E,p,P){f(E,p,P),m(E,p,P)}function f(E,p,P){var b=p.gf,c=p.g._hasOpacity,T=p.s.v,d=p.e.v;if(p.o._mdf||P){var y=E.ty==="gf"?"fill-opacity":"stroke-opacity";p.style.pElem.setAttribute(y,p.o.v)}if(p.s._mdf||P){var u=E.t===1?"x1":"cx",g=u==="x1"?"y1":"cy";b.setAttribute(u,T[0]),b.setAttribute(g,T[1]),c&&!p.g._collapsable&&(p.of.setAttribute(u,T[0]),p.of.setAttribute(g,T[1]))}var S,A,F,k;if(p.g._cmdf||P){S=p.cst;var q=p.g.c;for(F=S.length,A=0;A<F;A+=1)k=S[A],k.setAttribute("offset",q[A*4]+"%"),k.setAttribute("stop-color","rgb("+q[A*4+1]+","+q[A*4+2]+","+q[A*4+3]+")")}if(c&&(p.g._omdf||P)){var z=p.g.o;for(p.g._collapsable?S=p.cst:S=p.ost,F=S.length,A=0;A<F;A+=1)k=S[A],p.g._collapsable||k.setAttribute("offset",z[A*2]+"%"),k.setAttribute("stop-opacity",z[A*2+1])}if(E.t===1)(p.e._mdf||P)&&(b.setAttribute("x2",d[0]),b.setAttribute("y2",d[1]),c&&!p.g._collapsable&&(p.of.setAttribute("x2",d[0]),p.of.setAttribute("y2",d[1])));else{var j;if((p.s._mdf||p.e._mdf||P)&&(j=Math.sqrt(Math.pow(T[0]-d[0],2)+Math.pow(T[1]-d[1],2)),b.setAttribute("r",j),c&&!p.g._collapsable&&p.of.setAttribute("r",j)),p.s._mdf||p.e._mdf||p.h._mdf||p.a._mdf||P){j||(j=Math.sqrt(Math.pow(T[0]-d[0],2)+Math.pow(T[1]-d[1],2)));var O=Math.atan2(d[1]-T[1],d[0]-T[0]),$=p.h.v;$>=1?$=.99:$<=-1&&($=-.99);var B=j*$,D=Math.cos(O+p.a.v)*B+T[0],C=Math.sin(O+p.a.v)*B+T[1];b.setAttribute("fx",D),b.setAttribute("fy",C),c&&!p.g._collapsable&&(p.of.setAttribute("fx",D),p.of.setAttribute("fy",C))}}}function m(E,p,P){var b=p.style,c=p.d;c&&(c._mdf||P)&&c.dashStr&&(b.pElem.setAttribute("stroke-dasharray",c.dashStr),b.pElem.setAttribute("stroke-dashoffset",c.dashoffset[0])),p.c&&(p.c._mdf||P)&&b.pElem.setAttribute("stroke","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||P)&&b.pElem.setAttribute("stroke-opacity",p.o.v),(p.w._mdf||P)&&(b.pElem.setAttribute("stroke-width",p.w.v),b.msElem&&b.msElem.setAttribute("stroke-width",p.w.v))}return r})();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,i,s=this.stylesList.length,n,a=[],l=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],l=!1,a.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(n)!==-1&&(a.push(r),l=r._isAnimated||l);a.length>1&&l&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var n=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new n(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),n=new SVGShapeData(t,r,s);return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)t.indexOf(this.stylesList[r])===-1&&!this.stylesList[r].closed&&t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,s,n,a){var l=[].concat(n),o,f=e.length-1,m,E,p=[],P=[],b,c,T;for(o=f;o>=0;o-=1){if(T=this.searchProcessedElement(e[o]),T?t[o]=r[T-1]:e[o]._render=a,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs"||e[o].ty==="no")T?t[o].style.closed=e[o].hd:t[o]=this.createStyleElement(e[o],s),e[o]._render&&t[o].style.pElem.parentNode!==i&&i.appendChild(t[o].style.pElem),p.push(t[o].style);else if(e[o].ty==="gr"){if(!T)t[o]=this.createGroupElement(e[o]);else for(E=t[o].it.length,m=0;m<E;m+=1)t[o].prevViewData[m]=t[o].it[m];this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,s+1,l,a),e[o]._render&&t[o].gr.parentNode!==i&&i.appendChild(t[o].gr)}else e[o].ty==="tr"?(T||(t[o]=this.createTransformElement(e[o],i)),b=t[o].transform,l.push(b)):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?(T||(t[o]=this.createShapeElement(e[o],l,s)),this.setElementStyles(t[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="ms"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(T?(c=t[o],c.closed=!1):(c=ShapeModifiers.getModifier(e[o].ty),c.init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),P.push(c)):e[o].ty==="rp"&&(T?(c=t[o],c.closed=!0):(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),a=!1),P.push(c));this.addProcessedElement(e[o],o+1)}for(f=p.length,o=0;o<f;o+=1)p[o].closed=!0;for(f=P.length,o=0;o<f;o+=1)P[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,i,s,n){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=s,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,i,s,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 a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,a=!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,a=!0),a};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)r!==this.keysIndex?n=this.effectsSequence[i](n,n.t):n=this.effectsSequence[i](this.currentData,n.t);t!==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 e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,s,n,a=!1,l=!1,o="";r<i;)a=l,l=!1,s=e.charCodeAt(r),o=e.charAt(r),FontManager.isCombinedCharacter(s)?a=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?o=e.substr(r,14):(n=e.charCodeAt(r+1),n>=56320&&n<=57343&&(FontManager.isModifier(s,n)?(o=e.substr(r,2),a=!0):FontManager.isFlagEmoji(e.substr(r,4))?o=e.substr(r,4):o=e.substr(r,2))):s>56319?(n=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(a=!0)):FontManager.isZeroWidthJoiner(s)&&(a=!0,l=!0),a?(t[t.length-1]+=o,a=!1):t.push(o),r+=o.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,i=[],s,n,a,l=0,o,f=r.m.g,m=0,E=0,p=0,P=[],b=0,c=0,T,d,y=t.getFontByName(e.f),u,g=0,S=getFontProperties(y);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var A=e.tr/1e3*e.finalSize,F;if(e.sz)for(var k=!0,q=e.sz[0],z=e.sz[1],j,O;k;){O=this.buildFinalText(e.t),j=0,b=0,n=O.length,A=e.tr/1e3*e.finalSize;var $=-1;for(s=0;s<n;s+=1)F=O[s].charCodeAt(0),a=!1,O[s]===" "?$=s:(F===13||F===3)&&(b=0,a=!0,j+=e.finalLineHeight||e.finalSize*1.2),t.chars?(u=t.getCharData(O[s],y.fStyle,y.fFamily),g=a?0:u.w*e.finalSize/100):g=t.measureText(O[s],e.f,e.finalSize),b+g>q&&O[s]!==" "?($===-1?n+=1:s=$,j+=e.finalLineHeight||e.finalSize*1.2,O.splice(s,$===s?1:0,"\r"),$=-1,b=0):(b+=g,b+=A);j+=y.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&z<j?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,n=e.finalText.length,k=!1)}b=-A,g=0;var B=0,D;for(s=0;s<n;s+=1)if(a=!1,D=e.finalText[s],F=D.charCodeAt(0),F===13||F===3?(B=0,P.push(b),c=b>c?b:c,b=-2*A,o="",a=!0,p+=1):o=D,t.chars?(u=t.getCharData(D,y.fStyle,t.getFontByName(e.f).fFamily),g=a?0:u.w*e.finalSize/100):g=t.measureText(o,e.f,e.finalSize),D===" "?B+=g+A:(b+=g+A+B,B=0),i.push({l:g,an:g,add:m,n:a,anIndexes:[],val:o,line:p,animatorJustifyOffset:0}),f==2){if(m+=g,o===""||o===" "||s===n-1){for((o===""||o===" ")&&(m-=g);E<=s;)i[E].an=m,i[E].ind=l,i[E].extra=g,E+=1;l+=1,m=0}}else if(f==3){if(m+=g,o===""||s===n-1){for(o===""&&(m-=g);E<=s;)i[E].an=m,i[E].ind=l,i[E].extra=g,E+=1;m=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,c=b>c?b:c,P.push(b),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=c,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=P;var C=r.a,R,_;d=C.length;var x,M,I=[];for(T=0;T<d;T+=1){for(R=C[T],R.a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),M=0,x=R.s.b,s=0;s<n;s+=1)_=i[s],_.anIndexes[T]=M,(x==1&&_.val!==""||x==2&&_.val!==""&&_.val!==" "||x==3&&(_.n||_.val==" "||s==n-1)||x==4&&(_.n||s==n-1))&&(R.s.rn===1&&I.push(M),M+=1);r.a[T].s.totalChars=M;var L=-1,G;if(R.s.rn===1)for(s=0;s<n;s+=1)_=i[s],L!=_.anIndexes[T]&&(L=_.anIndexes[T],G=I.splice(Math.floor(Math.random()*I.length),1)[0]),_.anIndexes[T]=G}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=y.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,r=Math.floor;function i(n,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,a.s||{k:0},0,0,this),"e"in a?this.e=PropertyFactory.getProp(n,a.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(n,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,o=0,f=1,m=1;this.ne.v>0?l=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?f=1-this.xe.v/100:m=1+this.xe.v/100;var E=BezierFactory.getBezierEasing(l,o,f,m).get,p=0,P=this.finalS,b=this.finalE,c=this.data.sh;if(c===2)b===P?p=a>=b?1:0:p=e(0,t(.5/(b-P)+(a-P)/(b-P),1)),p=E(p);else if(c===3)b===P?p=a>=b?0:1:p=1-e(0,t(.5/(b-P)+(a-P)/(b-P),1)),p=E(p);else if(c===4)b===P?p=0:(p=e(0,t(.5/(b-P)+(a-P)/(b-P),1)),p<.5?p*=2:p=1-2*(p-.5)),p=E(p);else if(c===5){if(b===P)p=0;else{var T=b-P;a=t(e(0,a+.5-P),b-P);var d=-T/2+a,y=T/2;p=Math.sqrt(1-d*d/(y*y))}p=E(p)}else c===6?(b===P?p=0:(a=t(e(0,a+.5-P),b-P),p=(1+Math.cos(Math.PI+Math.PI*2*a/(b-P)))/2),p=E(p)):(a>=r(P)&&(a-P<0?p=e(0,t(t(b,1)-(P-a),1)):p=e(0,t(b-a,1))),p=E(p));if(this.sm.v!==100){var u=this.sm.v*.01;u===0&&(u=1e-8);var g=.5-u*.5;p<g?p=0:(p=(p-g)/u,p>1&&(p=1))}return p*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,o=this.o.v/l,f=this.s.v/l+o,m=this.e.v/l+o;if(f>m){var E=f;f=m,m=E}this.finalS=f,this.finalE=m}},extendPrototype([DynamicPropertyContainer],i);function s(n,a,l){return new i(n,a)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},s=PropertyFactory.getProp,n=t.a;this.a={r:n.r?s(e,n.r,0,degToRads,r):i,rx:n.rx?s(e,n.rx,0,degToRads,r):i,ry:n.ry?s(e,n.ry,0,degToRads,r):i,sk:n.sk?s(e,n.sk,0,degToRads,r):i,sa:n.sa?s(e,n.sa,0,degToRads,r):i,s:n.s?s(e,n.s,1,.01,r):i,a:n.a?s(e,n.a,1,0,r):i,o:n.o?s(e,n.o,0,.01,r):i,p:n.p?s(e,n.p,1,0,r):i,sw:n.sw?s(e,n.sw,0,0,r):i,sc:n.sc?s(e,n.sc,1,0,r):i,fc:n.fc?s(e,n.fc,1,0,r):i,fh:n.fh?s(e,n.fh,0,0,r):i,fs:n.fs?s(e,n.fs,0,.01,r):i,fb:n.fb?s(e,n.fb,0,.01,r):i,t:n.t?s(e,n.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,n=this.mHelper,a=this._renderType,l=this.renderedLetters.length,o,f,m,E,p=e.l,P,b,c,T,d,y,u,g,S,A,F,k,q,z,j;if(this._hasMaskedPath){if(j=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=j.v;this._pathData.r.v&&(O=O.reverse()),P={tLength:0,segments:[]},E=O._length-1;var $;for(k=0,m=0;m<E;m+=1)$=bez.buildBezierData(O.v[m],O.v[m+1],[O.o[m][0]-O.v[m][0],O.o[m][1]-O.v[m][1]],[O.i[m+1][0]-O.v[m+1][0],O.i[m+1][1]-O.v[m+1][1]]),P.tLength+=$.segmentLength,P.segments.push($),k+=$.segmentLength;m=E,j.v.c&&($=bez.buildBezierData(O.v[m],O.v[0],[O.o[m][0]-O.v[m][0],O.o[m][1]-O.v[m][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),P.tLength+=$.segmentLength,P.segments.push($),k+=$.segmentLength),this._pathData.pi=P}if(P=this._pathData.pi,b=this._pathData.f.v,u=0,y=1,T=0,d=!0,A=P.segments,b<0&&j.v.c)for(P.tLength<Math.abs(b)&&(b=-Math.abs(b)%P.tLength),u=A.length-1,S=A[u].points,y=S.length-1;b<0;)b+=S[y].partialLength,y-=1,y<0&&(u-=1,S=A[u].points,y=S.length-1);S=A[u].points,g=S[y-1],c=S[y],F=c.partialLength}E=p.length,o=0,f=0;var B=e.finalSize*1.2*.714,D=!0,C,R,_,x,M;x=i.length;var I,L=-1,G,V,K,H=b,X=u,J=y,Q=-1,Z,ie,N,te,Y,oe,ce,fe,he="",ue=this.defaultPropsArray,pe;if(e.j===2||e.j===1){var ae=0,de=0,re=e.j===2?-.5:-1,W=0,U=!0;for(m=0;m<E;m+=1)if(p[m].n){for(ae&&(ae+=de);W<m;)p[W].animatorJustifyOffset=ae,W+=1;ae=0,U=!0}else{for(_=0;_<x;_+=1)C=i[_].a,C.t.propType&&(U&&e.j===2&&(de+=C.t.v*re),R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),I.length?ae+=C.t.v*I[0]*re:ae+=C.t.v*I*re);U=!1}for(ae&&(ae+=de);W<m;)p[W].animatorJustifyOffset=ae,W+=1}for(m=0;m<E;m+=1){if(n.reset(),Z=1,p[m].n)o=0,f+=e.yOffset,f+=D?1:0,b=H,D=!1,this._hasMaskedPath&&(u=X,y=J,S=A[u].points,g=S[y-1],c=S[y],F=c.partialLength,T=0),he="",fe="",oe="",pe="",ue=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==p[m].line){switch(e.j){case 1:b+=k-e.lineWidths[p[m].line];break;case 2:b+=(k-e.lineWidths[p[m].line])/2;break}Q=p[m].line}L!==p[m].ind&&(p[L]&&(b+=p[L].extra),b+=p[m].an/2,L=p[m].ind),b+=r[0]*p[m].an*.005;var ee=0;for(_=0;_<x;_+=1)C=i[_].a,C.p.propType&&(R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),I.length?ee+=C.p.v[0]*I[0]:ee+=C.p.v[0]*I),C.a.propType&&(R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),I.length?ee+=C.a.v[0]*I[0]:ee+=C.a.v[0]*I);for(d=!0,this._pathData.a.v&&(b=p[0].an*.5+(k-this._pathData.f.v-p[0].an*.5-p[p.length-1].an*.5)*L/(E-1),b+=this._pathData.f.v);d;)T+F>=b+ee||!S?(q=(b+ee-T)/c.partialLength,V=g.point[0]+(c.point[0]-g.point[0])*q,K=g.point[1]+(c.point[1]-g.point[1])*q,n.translate(-r[0]*p[m].an*.005,-(r[1]*B)*.01),d=!1):S&&(T+=c.partialLength,y+=1,y>=S.length&&(y=0,u+=1,A[u]?S=A[u].points:j.v.c?(y=0,u=0,S=A[u].points):(T-=c.partialLength,S=null)),S&&(g=c,c=S[y],F=c.partialLength));G=p[m].an/2-p[m].add,n.translate(-G,0,0)}else G=p[m].an/2-p[m].add,n.translate(-G,0,0),n.translate(-r[0]*p[m].an*.005,-r[1]*B*.01,0);for(_=0;_<x;_+=1)C=i[_].a,C.t.propType&&(R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),(o!==0||e.j!==0)&&(this._hasMaskedPath?I.length?b+=C.t.v*I[0]:b+=C.t.v*I:I.length?o+=C.t.v*I[0]:o+=C.t.v*I));for(e.strokeWidthAnim&&(N=e.sw||0),e.strokeColorAnim&&(e.sc?ie=[e.sc[0],e.sc[1],e.sc[2]]:ie=[0,0,0]),e.fillColorAnim&&e.fc&&(te=[e.fc[0],e.fc[1],e.fc[2]]),_=0;_<x;_+=1)C=i[_].a,C.a.propType&&(R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),I.length?n.translate(-C.a.v[0]*I[0],-C.a.v[1]*I[1],C.a.v[2]*I[2]):n.translate(-C.a.v[0]*I,-C.a.v[1]*I,C.a.v[2]*I));for(_=0;_<x;_+=1)C=i[_].a,C.s.propType&&(R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),I.length?n.scale(1+(C.s.v[0]-1)*I[0],1+(C.s.v[1]-1)*I[1],1):n.scale(1+(C.s.v[0]-1)*I,1+(C.s.v[1]-1)*I,1));for(_=0;_<x;_+=1){if(C=i[_].a,R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),C.sk.propType&&(I.length?n.skewFromAxis(-C.sk.v*I[0],C.sa.v*I[1]):n.skewFromAxis(-C.sk.v*I,C.sa.v*I)),C.r.propType&&(I.length?n.rotateZ(-C.r.v*I[2]):n.rotateZ(-C.r.v*I)),C.ry.propType&&(I.length?n.rotateY(C.ry.v*I[1]):n.rotateY(C.ry.v*I)),C.rx.propType&&(I.length?n.rotateX(C.rx.v*I[0]):n.rotateX(C.rx.v*I)),C.o.propType&&(I.length?Z+=(C.o.v*I[0]-Z)*I[0]:Z+=(C.o.v*I-Z)*I),e.strokeWidthAnim&&C.sw.propType&&(I.length?N+=C.sw.v*I[0]:N+=C.sw.v*I),e.strokeColorAnim&&C.sc.propType)for(Y=0;Y<3;Y+=1)I.length?ie[Y]+=(C.sc.v[Y]-ie[Y])*I[0]:ie[Y]+=(C.sc.v[Y]-ie[Y])*I;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(Y=0;Y<3;Y+=1)I.length?te[Y]+=(C.fc.v[Y]-te[Y])*I[0]:te[Y]+=(C.fc.v[Y]-te[Y])*I;C.fh.propType&&(I.length?te=addHueToRGB(te,C.fh.v*I[0]):te=addHueToRGB(te,C.fh.v*I)),C.fs.propType&&(I.length?te=addSaturationToRGB(te,C.fs.v*I[0]):te=addSaturationToRGB(te,C.fs.v*I)),C.fb.propType&&(I.length?te=addBrightnessToRGB(te,C.fb.v*I[0]):te=addBrightnessToRGB(te,C.fb.v*I))}}for(_=0;_<x;_+=1)C=i[_].a,C.p.propType&&(R=i[_].s,I=R.getMult(p[m].anIndexes[_],s.a[_].s.totalChars),this._hasMaskedPath?I.length?n.translate(0,C.p.v[1]*I[0],-C.p.v[2]*I[1]):n.translate(0,C.p.v[1]*I,-C.p.v[2]*I):I.length?n.translate(C.p.v[0]*I[0],C.p.v[1]*I[1],-C.p.v[2]*I[2]):n.translate(C.p.v[0]*I,C.p.v[1]*I,-C.p.v[2]*I));if(e.strokeWidthAnim&&(oe=N<0?0:N),e.strokeColorAnim&&(ce="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),e.fillColorAnim&&e.fc&&(fe="rgb("+Math.round(te[0]*255)+","+Math.round(te[1]*255)+","+Math.round(te[2]*255)+")"),this._hasMaskedPath){if(n.translate(0,-e.ls),n.translate(0,r[1]*B*.01+f,0),this._pathData.p.v){z=(c.point[1]-g.point[1])/(c.point[0]-g.point[0]);var se=Math.atan(z)*180/Math.PI;c.point[0]<g.point[0]&&(se+=180),n.rotate(-se*Math.PI/180)}n.translate(V,K,0),b-=r[0]*p[m].an*.005,p[m+1]&&L!==p[m+1].ind&&(b+=p[m].an/2,b+=e.tr*.001*e.finalSize)}else{switch(n.translate(o,f,0),e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:n.translate(p[m].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[m].line]),0,0);break;case 2:n.translate(p[m].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[m].line])/2,0,0);break}n.translate(0,-e.ls),n.translate(G,0,0),n.translate(r[0]*p[m].an*.005,r[1]*B*.01,0),o+=p[m].l+e.tr*.001*e.finalSize}a==="html"?he=n.toCSS():a==="svg"?he=n.to2dCSS():ue=[n.props[0],n.props[1],n.props[2],n.props[3],n.props[4],n.props[5],n.props[6],n.props[7],n.props[8],n.props[9],n.props[10],n.props[11],n.props[12],n.props[13],n.props[14],n.props[15]],pe=Z}l<=m?(M=new LetterProps(pe,oe,ce,fe,he,ue),this.renderedLetters.push(M),l+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[m],this.lettersChangedFlag=M.update(pe,oe,ce,fe,he,ue)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i=t.length,s,n="";for(r=0;r<i;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,n+=buildShapeString(s,s.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,i=[],s="";t<r;)e[t]==="\r"||e[t]===""?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var a=r.l||[],l=!!this.globalData.fontManager.chars;t=a.length;var o,f=this.mHelper,m="",E=this.data.singleShape,p=0,P=0,b=!0,c=r.tr*.001*r.finalSize;if(E&&!l&&!r.sz){var T=this.textContainer,d="start";switch(r.j){case 1:d="end";break;case 2:d="middle";break;default:d="start";break}T.setAttribute("text-anchor",d),T.setAttribute("letter-spacing",c);var y=this.buildTextContents(r.finalText);for(t=y.length,P=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)o=this.textSpans[e].span||createNS("tspan"),o.textContent=y[e],o.setAttribute("x",0),o.setAttribute("y",P),o.style.display="inherit",T.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,P+=r.finalLineHeight;this.layerElement.appendChild(T)}else{var u=this.textSpans.length,g;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!E||e===0){if(o=u>e?this.textSpans[e].span:createNS(l?"g":"text"),u<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var S=createNS("g");o.appendChild(S),this.textSpans[e].childSpan=S}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(f.reset(),E&&(a[e].n&&(p=-c,P+=r.yOffset,P+=b?1:0,b=!1),this.applyTextPropertiesToMatrix(r,f,a[e].line,p,P),p+=a[e].l||0,p+=c),l){g=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var A;if(g.t===1)A=new SVGCompElement(g.data,this.globalData,this);else{var F=emptyShapeData;g.data&&g.data.shapes&&(F=this.buildShapeData(g.data,r.finalSize)),A=new SVGShapeElement(F,this.globalData,this)}if(this.textSpans[e].glyph){var k=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[e].glyph=A,A._debug=!0,A.prepareFrame(0),A.renderFrame(),this.textSpans[e].childSpan.appendChild(A.layerElement),g.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else E&&o.setAttribute("transform","translate("+f.props[12]+","+f.props[13]+")"),o.textContent=a[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}E&&o&&o.setAttribute("d",m)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,n,a;for(e=0;e<t;e+=1)i[e].n||(s=r[e],n=this.textSpans[e].span,a=this.textSpans[e].glyph,a&&a.renderFrame(),s._mdf.m&&n.setAttribute("transform",s.m),s._mdf.o&&n.setAttribute("opacity",s.o),s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s._mdf.sc&&n.setAttribute("stroke",s.sc),s._mdf.fc&&n.setAttribute("fill",s.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var s=t[i],n=s.getMatte(this.layers[e].tt);r.setMatte(n)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],n=s.getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(r,s):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),r+=s}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var o=createNS("g");this.svgElement.appendChild(o),this.layerElement=o,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,i=t.length,s="_";for(r=0;r<i;r+=1)s+=t[r].transform.key+"_";var n=this.sequences[s];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=n,this.sequenceList.push(n)),n},processSequence:function(t,r){for(var i=0,s=t.transforms.length,n=r;i<s&&!r;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,i=null,s=null;function n(){var o=createNS("svg"),f=createNS("filter"),m=createNS("feColorMatrix");return f.setAttribute("id",t),m.setAttribute("type","matrix"),m.setAttribute("color-interpolation-filters","sRGB"),m.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),f.appendChild(m),o.appendChild(f),o.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(o.style.display="none"),o}function a(){r||(s=n(),document.body.appendChild(s),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(o){return r||a(),r.width=o.width,r.height=o.height,i.filter="url(#"+t+")",r}return{load:a,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<r;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var n=registeredEffects[s].effect;i=new n(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,i=this.masksProperties.length,s,n,a;for(t.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),a=this.viewData[r].v,s=e.applyToPointArray(a.v[0][0],a.v[0][1],0),t.moveTo(s[0],s[1]);var l,o=a._length;for(l=1;l<o;l+=1)n=e.applyToTriplePoints(a.o[l-1],a.i[l],a.v[l]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=e.applyToTriplePoints(a.o[l-1],a.i[0],a.v[0]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),n=s.getContext("2d");n.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var n,a=r.length,l;for(n=0;n<a;n+=1)r[n].closed||(l={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(l),r[n].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,s){var n,a=e.length-1,l,o,f=[],m=[],E,p,P,b=[].concat(s);for(n=a;n>=0;n-=1){if(E=this.searchProcessedElement(e[n]),E?t[n]=r[E-1]:e[n]._shouldRender=i,e[n].ty==="fl"||e[n].ty==="st"||e[n].ty==="gf"||e[n].ty==="gs")E?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],b),f.push(t[n].style);else if(e[n].ty==="gr"){if(!E)t[n]=this.createGroupElement(e[n]);else for(o=t[n].it.length,l=0;l<o;l+=1)t[n].prevViewData[l]=t[n].it[l];this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,i,b)}else e[n].ty==="tr"?(E||(P=this.createTransformElement(e[n]),t[n]=P),b.push(t[n]),this.addTransformToStyleList(t[n])):e[n].ty==="sh"||e[n].ty==="rc"||e[n].ty==="el"||e[n].ty==="sr"?E||(t[n]=this.createShapeElement(e[n])):e[n].ty==="tm"||e[n].ty==="rd"||e[n].ty==="pb"||e[n].ty==="zz"||e[n].ty==="op"?(E?(p=t[n],p.closed=!1):(p=ShapeModifiers.getModifier(e[n].ty),p.init(this,e[n]),t[n]=p,this.shapeModifiers.push(p)),m.push(p)):e[n].ty==="rp"&&(E?(p=t[n],p.closed=!0):(p=ShapeModifiers.getModifier(e[n].ty),t[n]=p,p.init(this,e,n,t),this.shapeModifiers.push(p),i=!1),m.push(p));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),a=m.length,n=0;n<a;n+=1)m[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,i,s,n,a,l,o=this.globalData.renderer,f=this.globalData.canvasContext,m,E;for(e=0;e<t;e+=1)if(E=this.stylesList[e],m=E.type,!((m==="st"||m==="gs")&&E.wi===0||!E.data._shouldRender||E.coOp===0||this.globalData.currentGlobalAlpha===0)){for(o.save(),a=E.elements,m==="st"||m==="gs"?(o.ctxStrokeStyle(m==="st"?E.co:E.grd),o.ctxLineWidth(E.wi),o.ctxLineCap(E.lc),o.ctxLineJoin(E.lj),o.ctxMiterLimit(E.ml||0)):o.ctxFillStyle(m==="fl"?E.co:E.grd),o.ctxOpacity(E.coOp),m!=="st"&&m!=="gs"&&f.beginPath(),o.ctxTransform(E.preTransforms.finalTransform.props),i=a.length,r=0;r<i;r+=1){for((m==="st"||m==="gs")&&(f.beginPath(),E.da&&(f.setLineDash(E.da),f.lineDashOffset=E.do)),l=a[r].trNodes,n=l.length,s=0;s<n;s+=1)l[s].t==="m"?f.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?f.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):f.closePath();(m==="st"||m==="gs")&&(o.ctxStroke(),E.da&&f.setLineDash(this.dashResetter))}m!=="st"&&m!=="gs"&&this.globalData.renderer.ctxFill(E.r),o.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var s,n=t.length-1,a;for(a=e,s=n;s>=0;s-=1)t[s].ty==="tr"?(a=r[s].transform,this.renderShapeTransform(e,a)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],a):t[s].ty==="st"?this.renderStroke(t[s],r[s],a):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],a):t[s].ty==="gr"?this.renderShape(a,t[s].it,r[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,s,n,a,l=i._length;r.length=0;var o=e.transforms.finalTransform;for(a=0;a<l;a+=1){var f=i.shapes[a];if(f&&f.v){for(n=f._length,s=1;s<n;s+=1)s===1&&r.push({t:"m",p:o.applyToPointArray(f.v[0][0],f.v[0][1],0)}),r.push({t:"c",pts:o.applyToTriplePoints(f.o[s-1],f.i[s],f.v[s])});n===1&&r.push({t:"m",p:o.applyToPointArray(f.v[0][0],f.v[0][1],0)}),f.c&&n&&(r.push({t:"c",pts:o.applyToTriplePoints(f.o[s-1],f.i[0],f.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var n=this.globalData.canvasContext,a=t.s.v,l=t.e.v;if(e.t===1)s=n.createLinearGradient(a[0],a[1],l[0],l[1]);else{var o=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),f=Math.atan2(l[1]-a[1],l[0]-a[0]),m=t.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var E=o*m,p=Math.cos(f+t.a.v)*E+a[0],P=Math.sin(f+t.a.v)*E+a[1];s=n.createRadialGradient(p,P,0,a[0],a[1],o)}var b,c=e.g.p,T=t.g.c,d=1;for(b=0;b<c;b+=1)t.g._hasOpacity&&t.g._collapsable&&(d=t.g.o[b*2+1]),s.addColorStop(T[b*4]/100,"rgba("+T[b*4+1]+","+T[b*4+2]+","+T[b*4+3]+","+d+")");i.grd=s}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,n,a=e.l,l=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var o,f,m,E,p,P,b,c,T,d,y=this.data.singleShape,u=e.tr*.001*e.finalSize,g=0,S=0,A=!0,F=0;for(s=0;s<n;s+=1){o=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),f=o&&o.data||{},l.reset(),y&&a[s].n&&(g=-u,S+=e.yOffset,S+=A?1:0,A=!1),p=f.shapes?f.shapes[0].it:[],b=p.length,l.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,l,a[s].line,g,S),T=createSizedArray(b-1);var k=0;for(P=0;P<b;P+=1)if(p[P].ty==="sh"){for(E=p[P].ks.k.i.length,c=p[P].ks.k,d=[],m=1;m<E;m+=1)m===1&&d.push(l.applyToX(c.v[0][0],c.v[0][1],0),l.applyToY(c.v[0][0],c.v[0][1],0)),d.push(l.applyToX(c.o[m-1][0],c.o[m-1][1],0),l.applyToY(c.o[m-1][0],c.o[m-1][1],0),l.applyToX(c.i[m][0],c.i[m][1],0),l.applyToY(c.i[m][0],c.i[m][1],0),l.applyToX(c.v[m][0],c.v[m][1],0),l.applyToY(c.v[m][0],c.v[m][1],0));d.push(l.applyToX(c.o[m-1][0],c.o[m-1][1],0),l.applyToY(c.o[m-1][0],c.o[m-1][1],0),l.applyToX(c.i[0][0],c.i[0][1],0),l.applyToY(c.i[0][0],c.i[0][1],0),l.applyToX(c.v[0][0],c.v[0][1],0),l.applyToY(c.v[0][0],c.v[0][1],0)),T[k]=d,k+=1}y&&(g+=a[s].l,g+=u),this.textSpans[F]?this.textSpans[F].elem=T:this.textSpans[F]={elem:T},F+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,i,s,n,a,l=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;r=o.length;var f,m=null,E=null,p=null,P,b,c=this.globalData.renderer;for(t=0;t<r;t+=1)if(!o[t].n){if(f=l[t],f&&(c.save(),c.ctxTransform(f.p),c.ctxOpacity(f.o)),this.fill){for(f&&f.fc?m!==f.fc&&(c.ctxFillStyle(f.fc),m=f.fc):m!==this.values.fill&&(m=this.values.fill,c.ctxFillStyle(this.values.fill)),P=this.textSpans[t].elem,s=P.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(b=P[i],a=b.length,this.globalData.canvasContext.moveTo(b[0],b[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(b[n],b[n+1],b[n+2],b[n+3],b[n+4],b[n+5]);this.globalData.canvasContext.closePath(),c.ctxFill()}if(this.stroke){for(f&&f.sw?p!==f.sw&&(p=f.sw,c.ctxLineWidth(f.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,c.ctxLineWidth(this.values.sWidth)),f&&f.sc?E!==f.sc&&(E=f.sc,c.ctxStrokeStyle(f.sc)):E!==this.values.stroke&&(E=this.values.stroke,c.ctxStrokeStyle(this.values.stroke)),P=this.textSpans[t].elem,s=P.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(b=P[i],a=b.length,this.globalData.canvasContext.moveTo(b[0],b[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(b[n],b[n+1],b[n+2],b[n+3],b[n+4],b[n+5]);this.globalData.canvasContext.closePath(),c.ctxStroke()}f&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,i=this.img.height,s=r/i,n=this.assetData.w/this.assetData.h,a,l,o=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>n&&o==="xMidYMid slice"||s<n&&o!=="xMidYMid slice"?(l=i,a=l*n):(a=r,l=a/n),t.drawImage(this.img,(r-a)/2,(i-l)/2,a,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,i;e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var s,n;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),l=a[1]||"meet",o=a[0]||"xMidYMid",f=o.substr(0,4),m=o.substr(4);s=r/i,n=this.transformCanvas.w/this.transformCanvas.h,n>s&&l==="meet"||n<s&&l==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),f==="xMid"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:f==="xMax"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,m==="YMid"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:m==="YMax"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=r[i];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=r.opacity,s.fillStyle=r.fillStyle,s.strokeStyle=r.strokeStyle,s.lineWidth=r.lineWidth,s.lineCap=r.lineCap,s.lineJoin=r.lineJoin,s.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,i=e.transformers,s,n=r._length,a,l,o,f;if(!(n<=1)){for(s=0;s<n-1;s+=1)a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),o=this.getTransformedPoint(i,r.i[s+1]),f=this.getTransformedPoint(i,r.v[s+1]),this.checkBounds(a,l,o,f,t);r.c&&(a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),o=this.getTransformedPoint(i,r.i[0]),f=this.getTransformedPoint(i,r.v[0]),this.checkBounds(a,l,o,f,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,s){this.getBoundsOfCurve(e,t,r,i);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x),s.xMax=bmMax(n.right,s.xMax),s.y=bmMin(n.top,s.y),s.yMax=bmMax(n.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],n,a,l,o,f,m,E,p=0;p<2;++p)a=6*e[p]-12*t[p]+6*r[p],n=-3*e[p]+9*t[p]-9*r[p]+3*i[p],l=3*t[p]-3*e[p],a|=0,n|=0,l|=0,n===0&&a===0||(n===0?(o=-l/a,o>0&&o<1&&s[p].push(this.calculateF(o,e,t,r,i,p))):(f=a*a-4*l*n,f>=0&&(m=(-a+bmSqrt(f))/(2*n),m>0&&m<1&&s[p].push(this.calculateF(m,e,t,r,i,p)),E=(-a-bmSqrt(f))/(2*n),E>0&&E<1&&s[p].push(this.calculateF(E,e,t,r,i,p)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,s,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*i[n]+bmPow(e,3)*s[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,n=e.fStyle;t.fontStyle=n,t.fontWeight=s}var a,l,o=e.l;l=o.length;var f,m,E,p=this.mHelper,P,b="",c=0;for(a=0;a<l;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[c]?f=this.textPaths[c]:(f=createNS("path"),f.setAttribute("stroke-linecap",lineCapEnum[1]),f.setAttribute("stroke-linejoin",lineJoinEnum[2]),f.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[c]?(m=this.textSpans[c],E=m.children[0]):(m=createTag("div"),m.style.lineHeight=0,E=createNS("svg"),E.appendChild(f),styleDiv(m)))):this.isMasked?f=this.textPaths[c]?this.textPaths[c]:createNS("text"):this.textSpans[c]?(m=this.textSpans[c],f=this.textPaths[c]):(m=createTag("span"),styleDiv(m),f=createTag("span"),styleDiv(f),m.appendChild(f)),this.globalData.fontManager.chars){var T=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d;if(T?d=T.data:d=null,p.reset(),d&&d.shapes&&d.shapes.length&&(P=d.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),b=this.createPathShape(p,P),f.setAttribute("d",b)),this.isMasked)this.innerElem.appendChild(f);else{if(this.innerElem.appendChild(m),d&&d.shapes){document.body.appendChild(E);var y=E.getBBox();E.setAttribute("width",y.width+2),E.setAttribute("height",y.height+2),E.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var u=E.style,g="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";u.transform=g,u.webkitTransform=g,o[a].yOffset=y.y-1}else E.setAttribute("width",1),E.setAttribute("height",1);m.appendChild(E)}}else if(f.textContent=o[a].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(f);else{this.innerElem.appendChild(m);var S=f.style,A="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=A,S.webkitTransform=A}this.isMasked?this.textSpans[c]=f:this.textSpans[c]=m,this.textSpans[c].style.display="block",this.textPaths[c]=f,c+=1}for(;c<this.textSpans.length;)this.textSpans[c].style.display="none",c+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,s=0,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;i=a.length;var l,o,f;for(r=0;r<i;r+=1)a[r].n?s+=1:(o=this.textSpans[r],f=this.textPaths[r],l=n[s],s+=1,l._mdf.m&&(this.isMasked?o.setAttribute("transform",l.m):(o.style.webkitTransform=l.m,o.style.transform=l.m)),o.style.opacity=l.o,l.sw&&l._mdf.sw&&f.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&f.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(f.setAttribute("fill",l.fc),f.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var m=this.innerElem.getBBox();this.currentBBox.w!==m.width&&(this.currentBBox.w=m.width,this.svgElement.setAttribute("width",m.width)),this.currentBBox.h!==m.height&&(this.currentBBox.h=m.height,this.svgElement.setAttribute("height",m.height));var E=1;if(this.currentBBox.w!==m.width+E*2||this.currentBBox.h!==m.height+E*2||this.currentBBox.x!==m.x-E||this.currentBBox.y!==m.y-E){this.currentBBox.w=m.width+E*2,this.currentBBox.h=m.height+E*2,this.currentBBox.x=m.x-E,this.currentBBox.y=m.y-E,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,n=e.ks.or.k.length;for(s=0;s<n;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,i,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,s=r.container.style;var n=this.pe.v+"px",a="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(r=this.hierarchy.length-1,t=r;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),a=[s[0]/n,s[1]/n,s[2]/n],l=Math.sqrt(a[2]*a[2]+a[0]*a[0]),o=Math.atan2(a[1],l),f=Math.atan2(a[0],-a[2]);this.mat.rotateY(f).rotateX(-o)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var m=!this._prevMat.equals(this.mat);if((m||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var E,p,P;for(t=0;t<r;t+=1)if(E=this.comp.threeDElements[t],E.type==="3d"){if(m){var b=this.mat.toCSS();P=E.container.style,P.transform=b,P.webkitTransform=b}this.pe._mdf&&(p=E.perspectiveElem.style,p.perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,n,a,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(a=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement(),n=l||n),s+=1;n?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,n):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,s;styleDiv(r);var n=createTag("div");if(styleDiv(n),t==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a,s=n.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}r.appendChild(n);var o={container:n,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,n;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,n,a,l;i>r?(s=e/this.globalData.compSize.w,n=e/this.globalData.compSize.w,a=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,n=t/this.globalData.compSize.h,a=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+n+",0,0,0,0,1,0,"+a+","+l+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(r){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,s=6,n=52,a="random",l=t.pow(i,s),o=t.pow(2,n),f=o*2,m=i-1,E;function p(u,g,S){var A=[];g=g===!0?{entropy:!0}:g||{};var F=T(c(g.entropy?[u,y(e)]:u===null?d():u,3),A),k=new P(A),q=function(){for(var j=k.g(s),O=l,$=0;j<o;)j=(j+$)*i,O*=i,$=k.g(1);for(;j>=f;)j/=2,O/=2,$>>>=1;return(j+$)/O};return q.int32=function(){return k.g(4)|0},q.quick=function(){return k.g(4)/4294967296},q.double=q,T(y(k.S),e),(g.pass||S||function(z,j,O,$){return $&&($.S&&b($,k),z.state=function(){return b(k,{})}),O?(t[a]=z,j):z})(q,F,"global"in g?g.global:this==t,g.state)}t["seed"+a]=p;function P(u){var g,S=u.length,A=this,F=0,k=A.i=A.j=0,q=A.S=[];for(S||(u=[S++]);F<i;)q[F]=F++;for(F=0;F<i;F++)q[F]=q[k=m&k+u[F%S]+(g=q[F])],q[k]=g;A.g=function(z){for(var j,O=0,$=A.i,B=A.j,D=A.S;z--;)j=D[$=m&$+1],O=O*i+D[m&(D[$]=D[B=m&B+j])+(D[B]=j)];return A.i=$,A.j=B,O}}function b(u,g){return g.i=u.i,g.j=u.j,g.S=u.S.slice(),g}function c(u,g){var S=[],A=_typeof$2(u),F;if(g&&A=="object")for(F in u)try{S.push(c(u[F],g-1))}catch{}return S.length?S:A=="string"?u:u+"\0"}function T(u,g){for(var S=u+"",A,F=0;F<S.length;)g[m&F]=m&(A^=g[m&F]*19)+S.charCodeAt(F++);return y(g)}function d(){try{var u=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(u),y(u)}catch{var g=r.navigator,S=g&&g.plugins;return[+new Date,r,S,r.screen,y(e)]}}function y(u){return String.fromCharCode.apply(0,u)}T(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,s=[];for(r=0;r<i;r+=1)s[r]=-e[r];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||r==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e*t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e*t[n];return s}return 0}function div(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e/t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e/t[n];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],i=e[2],s=Math.max(t,r,i),n=Math.min(t,r,i),a,l,o=(s+n)/2;if(s===n)a=0,l=0;else{var f=s-n;switch(l=o>.5?f/(2-s-n):f/(s+n),s){case t:a=(r-i)/f+(r<i?6:0);break;case r:a=(i-t)/f+2;break;case i:a=(t-r)/f+4;break}a/=6}return[a,l,o,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],s,n,a;if(r===0)s=i,a=i,n=i;else{var l=i<.5?i*(1+r):i+r-i*r,o=2*i-l;s=hue2rgb(o,l,t+1/3),n=hue2rgb(o,l,t),a=hue2rgb(o,l,t-1/3)}return[s,n,a,e[3]]}function linear(e,t,r,i,s){if((i===void 0||s===void 0)&&(i=t,s=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return i;if(e>=r)return s;var a=r===t?0:(e-t)/(r-t);if(!i.length)return i+(s-i)*a;var l,o=i.length,f=createTypedArray("float32",o);for(l=0;l<o;l+=1)f[l]=i[l]+(s[l]-i[l])*a;return f}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),n=BMMath.random();for(r=0;r<i;r+=1)s[r]=e[r]+n*(t[r]-e[r]);return s}e===void 0&&(e=0);var a=BMMath.random();return e+a*(t-e)}function createPath(e,t,r,i){var s,n=e.length,a=shapePool.newElement();a.setPathData(!!i,n);var l=[0,0],o,f;for(s=0;s<n;s+=1)o=t&&t[s]?t[s]:l,f=r&&r[s]?r[s]:l,a.setTripleAt(e[s][0],e[s][1],f[0]+e[s][0],f[1]+e[s][1],o[0]+e[s][0],o[1]+e[s][1],s,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,r){var i,s,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n);t=5;var l=Math.floor(time*t);for(i=0,s=0;i<l;){for(s=0;s<n;s+=1)a[s]+=-r+r*2*BMMath.random();i+=1}var o=time*t,f=o-Math.floor(o),m=createTypedArray("float32",n);if(n>1){for(s=0;s<n;s+=1)m[s]=this.pv[s]+a[s]+(-r+r*2*BMMath.random())*f;return m}return this.pv+a[0]+(-r+r*2*BMMath.random())*f}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,i,0]}function easeOut(e,t,r,i,s){return applyEase(easeOutBez,e,t,r,i,s)}function easeIn(e,t,r,i,s){return applyEase(easeInBez,e,t,r,i,s)}function ease(e,t,r,i,s){return applyEase(easeInOutBez,e,t,r,i,s)}function applyEase(e,t,r,i,s,n){s===void 0?(s=r,n=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(s)){var l,o=s.length,f=createTypedArray("float32",o);for(l=0;l<o;l+=1)f[l]=(n[l]-s[l])*a+s[l];return f}return(n-s)*a+s}function nearestKey(e){var t,r=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var n={};return n.index=i,n.time=s/elem.comp.globalData.frameRate,n}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,r=0;r<i;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var i=0,s=[];function n(){i+=1}function a(){i-=1,i===0&&o()}function l(f){s.indexOf(f)===-1&&s.push(f)}function o(){var f,m=s.length;for(f=0;f<m;f+=1)s[f].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=n,r.renderer.globalData.popExpression=a,r.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),n,a=i.viewData.length;for(n=0;n<a;n+=1)s[n]=new e(i.viewData[n],i.masksProperties[n]);var l=function(f){for(n=0;n<a;){if(i.masksProperties[n].nm===f)return s[n];n+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(a,l,o){Object.defineProperty(a,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),a.numKeys=l.keyframes?l.keyframes.length:0,a.key=function(f){if(!a.numKeys)return 0;var m="";"s"in l.keyframes[f-1]?m=l.keyframes[f-1].s:"e"in l.keyframes[f-2]?m=l.keyframes[f-2].e:m=l.keyframes[f-2].s;var E=o==="unidimensional"?new Number(m):Object.assign({},m);return E.time=l.keyframes[f-1].t/l.elem.comp.globalData.frameRate,E.value=o==="unidimensional"?m[0]:m,E},a.valueAtTime=l.getValueAtTime,a.speedAtTime=l.getSpeedAtTime,a.velocityAtTime=l.getVelocityAtTime,a.propertyGroup=l.propertyGroup}function i(a){(!a||!("pv"in a))&&(a=e);var l=1/a.mult,o=a.pv*l,f=new Number(o);return f.value=o,r(f,a,"unidimensional"),function(){return a.k&&a.getValue(),o=a.v*l,f.value!==o&&(f=new Number(o),f.value=o,f[0]=o,r(f,a,"unidimensional")),f}}function s(a){(!a||!("pv"in a))&&(a=t);var l=1/a.mult,o=a.data&&a.data.l||a.pv.length,f=createTypedArray("float32",o),m=createTypedArray("float32",o);return f.value=m,r(f,a,"multidimensional"),function(){a.k&&a.getValue();for(var E=0;E<o;E+=1)m[E]=a.v[E]*l,f[E]=m[E];return f}}function n(){return e}return function(a){return a?a.propType==="unidimensional"?i(a):s(a):n}})(),TransformExpressionInterface=(function(){return function(e){function t(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,s,n;return e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(f){var m=new Matrix;if(f!==void 0){var E=this._elem.finalTransform.mProp.getValueAtTime(f);E.clone(m)}else{var p=this._elem.finalTransform.mProp;p.applyToMatrix(m)}return m}function t(f,m){var E=this.getMatrix(m);return E.props[12]=0,E.props[13]=0,E.props[14]=0,this.applyPoint(E,f)}function r(f,m){var E=this.getMatrix(m);return this.applyPoint(E,f)}function i(f,m){var E=this.getMatrix(m);return E.props[12]=0,E.props[13]=0,E.props[14]=0,this.invertPoint(E,f)}function s(f,m){var E=this.getMatrix(m);return this.invertPoint(E,f)}function n(f,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var E,p=this._elem.hierarchy.length;for(E=0;E<p;E+=1)this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(f)}return f.applyToPointArray(m[0],m[1],m[2]||0)}function a(f,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var E,p=this._elem.hierarchy.length;for(E=0;E<p;E+=1)this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(f)}return f.inversePoint(m)}function l(f){var m=new Matrix;if(m.reset(),this._elem.finalTransform.mProp.applyToMatrix(m),this._elem.hierarchy&&this._elem.hierarchy.length){var E,p=this._elem.hierarchy.length;for(E=0;E<p;E+=1)this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(m);return m.inversePoint(f)}return m.inversePoint(f)}function o(){return[1,1,1,1]}return function(f){var m;function E(c){P.mask=new MaskManagerInterface(c,f)}function p(c){P.effect=c}function P(c){switch(c){case"ADBE Root Vectors Group":case"Contents":case 2:return P.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return m;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return P.effect;case"ADBE Text Properties":return P.textInterface;default:return null}}P.getMatrix=e,P.invertPoint=a,P.applyPoint=n,P.toWorld=r,P.toWorldVec=t,P.fromWorld=s,P.fromWorldVec=i,P.toComp=r,P.fromComp=l,P.sampleImage=o,P.sourceRectAtTime=f.sourceRectAtTime.bind(f),P._elem=f,m=TransformExpressionInterface(f.finalTransform.mProp);var b=getDescriptor(m,"anchorPoint");return Object.defineProperties(P,{hasParent:{get:function(){return f.hierarchy.length}},parent:{get:function(){return f.hierarchy[0].layerInterface}},rotation:getDescriptor(m,"rotation"),scale:getDescriptor(m,"scale"),position:getDescriptor(m,"position"),opacity:getDescriptor(m,"opacity"),anchorPoint:b,anchor_point:b,transform:{get:function(){return m}},active:{get:function(){return f.isInRange}}}),P.startTime=f.data.st,P.index=f.data.ind,P.source=f.data.refId,P.height=f.data.ty===0?f.data.h:100,P.width=f.data.ty===0?f.data.w:100,P.inPoint=f.data.ip/f.comp.globalData.frameRate,P.outPoint=f.data.op/f.comp.globalData.frameRate,P._name=f.data.nm,P.registerMaskInterface=E,P.registerEffectsInterface=p,P}})(),propertyGroupFactory=(function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}})(),PropertyInterface=(function(){return function(e,t){var r={_name:e};function i(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,n){if(s.effectsManager){var a=[],l=s.data.ef,o,f=s.effectsManager.effectElements.length;for(o=0;o<f;o+=1)a.push(r(l[o],s.effectsManager.effectElements[o],n,s));var m=s.data.ef||[],E=function(P){for(o=0,f=m.length;o<f;){if(P===m[o].nm||P===m[o].mn||P===m[o].ix)return a[o];o+=1}return null};return Object.defineProperty(E,"numProperties",{get:function(){return m.length}}),E}return null}function r(s,n,a,l){function o(P){for(var b=s.ef,c=0,T=b.length;c<T;){if(P===b[c].nm||P===b[c].mn||P===b[c].ix)return b[c].ty===5?m[c]:m[c]();c+=1}throw new Error}var f=propertyGroupFactory(o,a),m=[],E,p=s.ef.length;for(E=0;E<p;E+=1)s.ef[E].ty===5?m.push(r(s.ef[E],n.effectElements[E],n.effectElements[E].propertyGroup,l)):m.push(i(n.effectElements[E],s.ef[E].ty,l,f));return s.mn==="ADBE Color Control"&&Object.defineProperty(o,"color",{get:function(){return m[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:f}}),o.enabled=s.en!==0,o.active=o.enabled,o}function i(s,n,a,l){var o=ExpressionPropertyInterface(s.p);function f(){return n===10?a.comp.compInterface(s.p.v):o()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),f}return e})(),ShapePathInterface=(function(){return function(t,r,i){var s=r.sh;function n(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?n.path:null}var a=propertyGroupFactory(n,i);return s.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{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:i}}),n}})(),ShapeExpressionInterface=(function(){function e(b,c,T){var d=[],y,u=b?b.length:0;for(y=0;y<u;y+=1)b[y].ty==="gr"?d.push(r(b[y],c[y],T)):b[y].ty==="fl"?d.push(i(b[y],c[y],T)):b[y].ty==="st"?d.push(a(b[y],c[y],T)):b[y].ty==="tm"?d.push(l(b[y],c[y],T)):b[y].ty==="tr"||(b[y].ty==="el"?d.push(f(b[y],c[y],T)):b[y].ty==="sr"?d.push(m(b[y],c[y],T)):b[y].ty==="sh"?d.push(ShapePathInterface(b[y],c[y],T)):b[y].ty==="rc"?d.push(E(b[y],c[y],T)):b[y].ty==="rd"?d.push(p(b[y],c[y],T)):b[y].ty==="rp"?d.push(P(b[y],c[y],T)):b[y].ty==="gf"?d.push(s(b[y],c[y],T)):d.push(n(b[y],c[y])));return d}function t(b,c,T){var d,y=function(S){for(var A=0,F=d.length;A<F;){if(d[A]._name===S||d[A].mn===S||d[A].propertyIndex===S||d[A].ix===S||d[A].ind===S)return d[A];A+=1}return typeof S=="number"?d[S-1]:null};y.propertyGroup=propertyGroupFactory(y,T),d=e(b.it,c.it,y.propertyGroup),y.numProperties=d.length;var u=o(b.it[b.it.length-1],c.it[c.it.length-1],y.propertyGroup);return y.transform=u,y.propertyIndex=b.cix,y._name=b.nm,y}function r(b,c,T){var d=function(S){switch(S){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,T);var y=t(b,c,d.propertyGroup),u=o(b.it[b.it.length-1],c.it[c.it.length-1],d.propertyGroup);return d.content=y,d.transform=u,Object.defineProperty(d,"_name",{get:function(){return b.nm}}),d.numProperties=b.np,d.propertyIndex=b.ix,d.nm=b.nm,d.mn=b.mn,d}function i(b,c,T){function d(y){return y==="Color"||y==="color"?d.color:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(c.c)},opacity:{get:ExpressionPropertyInterface(c.o)},_name:{value:b.nm},mn:{value:b.mn}}),c.c.setGroupProperty(PropertyInterface("Color",T)),c.o.setGroupProperty(PropertyInterface("Opacity",T)),d}function s(b,c,T){function d(y){return y==="Start Point"||y==="start point"?d.startPoint:y==="End Point"||y==="end point"?d.endPoint:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(c.s)},endPoint:{get:ExpressionPropertyInterface(c.e)},opacity:{get:ExpressionPropertyInterface(c.o)},type:{get:function(){return"a"}},_name:{value:b.nm},mn:{value:b.mn}}),c.s.setGroupProperty(PropertyInterface("Start Point",T)),c.e.setGroupProperty(PropertyInterface("End Point",T)),c.o.setGroupProperty(PropertyInterface("Opacity",T)),d}function n(){function b(){return null}return b}function a(b,c,T){var d=propertyGroupFactory(F,T),y=propertyGroupFactory(A,d);function u(k){Object.defineProperty(A,b.d[k].nm,{get:ExpressionPropertyInterface(c.d.dataProps[k].p)})}var g,S=b.d?b.d.length:0,A={};for(g=0;g<S;g+=1)u(g),c.d.dataProps[g].p.setGroupProperty(y);function F(k){return k==="Color"||k==="color"?F.color:k==="Opacity"||k==="opacity"?F.opacity:k==="Stroke Width"||k==="stroke width"?F.strokeWidth:null}return Object.defineProperties(F,{color:{get:ExpressionPropertyInterface(c.c)},opacity:{get:ExpressionPropertyInterface(c.o)},strokeWidth:{get:ExpressionPropertyInterface(c.w)},dash:{get:function(){return A}},_name:{value:b.nm},mn:{value:b.mn}}),c.c.setGroupProperty(PropertyInterface("Color",d)),c.o.setGroupProperty(PropertyInterface("Opacity",d)),c.w.setGroupProperty(PropertyInterface("Stroke Width",d)),F}function l(b,c,T){function d(u){return u===b.e.ix||u==="End"||u==="end"?d.end:u===b.s.ix?d.start:u===b.o.ix?d.offset:null}var y=propertyGroupFactory(d,T);return d.propertyIndex=b.ix,c.s.setGroupProperty(PropertyInterface("Start",y)),c.e.setGroupProperty(PropertyInterface("End",y)),c.o.setGroupProperty(PropertyInterface("Offset",y)),d.propertyIndex=b.ix,d.propertyGroup=T,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(c.s)},end:{get:ExpressionPropertyInterface(c.e)},offset:{get:ExpressionPropertyInterface(c.o)},_name:{value:b.nm}}),d.mn=b.mn,d}function o(b,c,T){function d(u){return b.a.ix===u||u==="Anchor Point"?d.anchorPoint:b.o.ix===u||u==="Opacity"?d.opacity:b.p.ix===u||u==="Position"?d.position:b.r.ix===u||u==="Rotation"||u==="ADBE Vector Rotation"?d.rotation:b.s.ix===u||u==="Scale"?d.scale:b.sk&&b.sk.ix===u||u==="Skew"?d.skew:b.sa&&b.sa.ix===u||u==="Skew Axis"?d.skewAxis:null}var y=propertyGroupFactory(d,T);return c.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),c.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),c.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),c.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),c.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),c.transform.mProps.sk&&(c.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),c.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),c.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(c.transform.mProps.o)},position:{get:ExpressionPropertyInterface(c.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(c.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(c.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(c.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(c.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(c.transform.mProps.sa)},_name:{value:b.nm}}),d.ty="tr",d.mn=b.mn,d.propertyGroup=T,d}function f(b,c,T){function d(g){return b.p.ix===g?d.position:b.s.ix===g?d.size:null}var y=propertyGroupFactory(d,T);d.propertyIndex=b.ix;var u=c.sh.ty==="tm"?c.sh.prop:c.sh;return u.s.setGroupProperty(PropertyInterface("Size",y)),u.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(u.s)},position:{get:ExpressionPropertyInterface(u.p)},_name:{value:b.nm}}),d.mn=b.mn,d}function m(b,c,T){function d(g){return b.p.ix===g?d.position:b.r.ix===g?d.rotation:b.pt.ix===g?d.points:b.or.ix===g||g==="ADBE Vector Star Outer Radius"?d.outerRadius:b.os.ix===g?d.outerRoundness:b.ir&&(b.ir.ix===g||g==="ADBE Vector Star Inner Radius")?d.innerRadius:b.is&&b.is.ix===g?d.innerRoundness:null}var y=propertyGroupFactory(d,T),u=c.sh.ty==="tm"?c.sh.prop:c.sh;return d.propertyIndex=b.ix,u.or.setGroupProperty(PropertyInterface("Outer Radius",y)),u.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),u.pt.setGroupProperty(PropertyInterface("Points",y)),u.p.setGroupProperty(PropertyInterface("Position",y)),u.r.setGroupProperty(PropertyInterface("Rotation",y)),b.ir&&(u.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),u.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(u.p)},rotation:{get:ExpressionPropertyInterface(u.r)},points:{get:ExpressionPropertyInterface(u.pt)},outerRadius:{get:ExpressionPropertyInterface(u.or)},outerRoundness:{get:ExpressionPropertyInterface(u.os)},innerRadius:{get:ExpressionPropertyInterface(u.ir)},innerRoundness:{get:ExpressionPropertyInterface(u.is)},_name:{value:b.nm}}),d.mn=b.mn,d}function E(b,c,T){function d(g){return b.p.ix===g?d.position:b.r.ix===g?d.roundness:b.s.ix===g||g==="Size"||g==="ADBE Vector Rect Size"?d.size:null}var y=propertyGroupFactory(d,T),u=c.sh.ty==="tm"?c.sh.prop:c.sh;return d.propertyIndex=b.ix,u.p.setGroupProperty(PropertyInterface("Position",y)),u.s.setGroupProperty(PropertyInterface("Size",y)),u.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(u.p)},roundness:{get:ExpressionPropertyInterface(u.r)},size:{get:ExpressionPropertyInterface(u.s)},_name:{value:b.nm}}),d.mn=b.mn,d}function p(b,c,T){function d(g){return b.r.ix===g||g==="Round Corners 1"?d.radius:null}var y=propertyGroupFactory(d,T),u=c;return d.propertyIndex=b.ix,u.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(u.rd)},_name:{value:b.nm}}),d.mn=b.mn,d}function P(b,c,T){function d(g){return b.c.ix===g||g==="Copies"?d.copies:b.o.ix===g||g==="Offset"?d.offset:null}var y=propertyGroupFactory(d,T),u=c;return d.propertyIndex=b.ix,u.c.setGroupProperty(PropertyInterface("Copies",y)),u.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(u.c)},offset:{get:ExpressionPropertyInterface(u.o)},_name:{value:b.nm}}),d.mn=b.mn,d}return function(b,c,T){var d;function y(g){if(typeof g=="number")return g=g===void 0?1:g,g===0?T:d[g-1];for(var S=0,A=d.length;S<A;){if(d[S]._name===g)return d[S];S+=1}return null}function u(){return T}return y.propertyGroup=propertyGroupFactory(y,u),d=e(b,c,y.propertyGroup),y.numProperties=d.length,y._name="Contents",y}})(),TextExpressionInterface=(function(){return function(e){var t;function r(i){return i==="ADBE Text Document"?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var s="",n=i.getFootageData();function a(){return s="",n=i.getFootageData(),l}function l(o){if(n[o])return s=o,n=n[o],_typeof(n)==="object"?l:n;var f=o.indexOf(s);if(f!==-1){var m=parseInt(o.substr(f+s.length),10);return n=n[m],_typeof(n)==="object"?l:n}return""}return a},t=function(i){function s(n){return n==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(r){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(r),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(a,l,o){l.x&&(o.k=!0,o.x=!0,o.initiateExpression=ExpressionManager.initiateExpression,o.effectsSequence.push(o.initiateExpression(a,l,o).bind(o)))}function t(a){return a*=this.elem.globalData.frameRate,a-=this.offsetTime,a!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<a?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(a,this._cachingAtTime),this._cachingAtTime.lastFrame=a),this._cachingAtTime.value}function r(a){var l=-.01,o=this.getValueAtTime(a),f=this.getValueAtTime(a+l),m=0;if(o.length){var E;for(E=0;E<o.length;E+=1)m+=Math.pow(f[E]-o[E],2);m=Math.sqrt(m)*100}else m=0;return m}function i(a){if(this.vel!==void 0)return this.vel;var l=-.001,o=this.getValueAtTime(a),f=this.getValueAtTime(a+l),m;if(o.length){m=createTypedArray("float32",o.length);var E;for(E=0;E<o.length;E+=1)m[E]=(f[E]-o[E])/l}else m=(f-o)/l;return m}function s(){return this.pv}function n(a){this.propertyGroup=a}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:n}})();function addPropertyDecorator(){function e(p,P,b){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var c=this.comp.renderedFrame,T=this.keyframes,d=T[T.length-1].t;if(c<=d)return this.pv;var y,u;b?(P?y=Math.abs(d-this.elem.comp.globalData.frameRate*P):y=Math.max(0,d-this.elem.data.ip),u=d-y):((!P||P>T.length-1)&&(P=T.length-1),u=T[T.length-1-P].t,y=d-u);var g,S,A;if(p==="pingpong"){var F=Math.floor((c-u)/y);if(F%2!==0)return this.getValueAtTime((y-(c-u)%y+u)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var k=this.getValueAtTime(u/this.comp.globalData.frameRate,0),q=this.getValueAtTime(d/this.comp.globalData.frameRate,0),z=this.getValueAtTime(((c-u)%y+u)/this.comp.globalData.frameRate,0),j=Math.floor((c-u)/y);if(this.pv.length){for(A=new Array(k.length),S=A.length,g=0;g<S;g+=1)A[g]=(q[g]-k[g])*j+z[g];return A}return(q-k)*j+z}else if(p==="continue"){var O=this.getValueAtTime(d/this.comp.globalData.frameRate,0),$=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(A=new Array(O.length),S=A.length,g=0;g<S;g+=1)A[g]=O[g]+(O[g]-$[g])*((c-d)/this.comp.globalData.frameRate)/5e-4;return A}return O+(O-$)*((c-d)/.001)}return this.getValueAtTime(((c-u)%y+u)/this.comp.globalData.frameRate,0)}function t(p,P,b){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var c=this.comp.renderedFrame,T=this.keyframes,d=T[0].t;if(c>=d)return this.pv;var y,u;b?(P?y=Math.abs(this.elem.comp.globalData.frameRate*P):y=Math.max(0,this.elem.data.op-d),u=d+y):((!P||P>T.length-1)&&(P=T.length-1),u=T[P].t,y=u-d);var g,S,A;if(p==="pingpong"){var F=Math.floor((d-c)/y);if(F%2===0)return this.getValueAtTime(((d-c)%y+d)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var k=this.getValueAtTime(d/this.comp.globalData.frameRate,0),q=this.getValueAtTime(u/this.comp.globalData.frameRate,0),z=this.getValueAtTime((y-(d-c)%y+d)/this.comp.globalData.frameRate,0),j=Math.floor((d-c)/y)+1;if(this.pv.length){for(A=new Array(k.length),S=A.length,g=0;g<S;g+=1)A[g]=z[g]-(q[g]-k[g])*j;return A}return z-(q-k)*j}else if(p==="continue"){var O=this.getValueAtTime(d/this.comp.globalData.frameRate,0),$=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(A=new Array(O.length),S=A.length,g=0;g<S;g+=1)A[g]=O[g]+(O[g]-$[g])*(d-c)/.001;return A}return O+(O-$)*(d-c)/.001}return this.getValueAtTime((y-((d-c)%y+d))/this.comp.globalData.frameRate,0)}function r(p,P){if(!this.k)return this.pv;if(p=(p||.4)*.5,P=Math.floor(P||5),P<=1)return this.pv;var b=this.comp.renderedFrame/this.comp.globalData.frameRate,c=b-p,T=b+p,d=P>1?(T-c)/(P-1):1,y=0,u=0,g;this.pv.length?g=createTypedArray("float32",this.pv.length):g=0;for(var S;y<P;){if(S=this.getValueAtTime(c+y*d),this.pv.length)for(u=0;u<this.pv.length;u+=1)g[u]+=S[u];else g+=S;y+=1}if(this.pv.length)for(u=0;u<this.pv.length;u+=1)g[u]/=P;else g/=P;return g}function i(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var P=this._transformCachingAtTime.v;if(P.cloneFromProps(this.pre.props),this.appliedTransformations<1){var b=this.a.getValueAtTime(p);P.translate(-b[0]*this.a.mult,-b[1]*this.a.mult,b[2]*this.a.mult)}if(this.appliedTransformations<2){var c=this.s.getValueAtTime(p);P.scale(c[0]*this.s.mult,c[1]*this.s.mult,c[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var T=this.sk.getValueAtTime(p),d=this.sa.getValueAtTime(p);P.skewFromAxis(-T*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(p);P.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var u=this.rz.getValueAtTime(p),g=this.ry.getValueAtTime(p),S=this.rx.getValueAtTime(p),A=this.or.getValueAtTime(p);P.rotateZ(-u*this.rz.mult).rotateY(g*this.ry.mult).rotateX(S*this.rx.mult).rotateZ(-A[2]*this.or.mult).rotateY(A[1]*this.or.mult).rotateX(A[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var F=this.px.getValueAtTime(p),k=this.py.getValueAtTime(p);if(this.data.p.z){var q=this.pz.getValueAtTime(p);P.translate(F*this.px.mult,k*this.py.mult,-q*this.pz.mult)}else P.translate(F*this.px.mult,k*this.py.mult,0)}else{var z=this.p.getValueAtTime(p);P.translate(z[0]*this.p.mult,z[1]*this.p.mult,-z[2]*this.p.mult)}return P}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,P,b){var c=n(p,P,b);return c.dynamicProperties.length?c.getValueAtTime=i.bind(c):c.getValueAtTime=s.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(p,P,b,c,T){var d=a(p,P,b,c,T);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=e,d.loopIn=t,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=P.a===1?P.k.length:0,d.propertyIndex=P.ix;var y=0;return b!==0&&(y=createTypedArray("float32",P.a===1?P.k[0].s.length:P.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(p,P,d),d.k&&T.addDynamicProperty(d),d};function l(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var o=ShapePropertyFactory.getConstructorFunction(),f=ShapePropertyFactory.getKeyframedConstructorFunction();function m(){}m.prototype={vertices:function(P,b){this.k&&this.getValue();var c=this.v;b!==void 0&&(c=this.getValueAtTime(b,0));var T,d=c._length,y=c[P],u=c.v,g=createSizedArray(d);for(T=0;T<d;T+=1)P==="i"||P==="o"?g[T]=[y[T][0]-u[T][0],y[T][1]-u[T][1]]:g[T]=[y[T][0],y[T][1]];return g},points:function(P){return this.vertices("v",P)},inTangents:function(P){return this.vertices("i",P)},outTangents:function(P){return this.vertices("o",P)},isClosed:function(){return this.v.c},pointOnPath:function(P,b){var c=this.v;b!==void 0&&(c=this.getValueAtTime(b,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(c));for(var T=this._segmentsLength,d=T.lengths,y=T.totalLength*P,u=0,g=d.length,S=0,A;u<g;){if(S+d[u].addedLength>y){var F=u,k=c.c&&u===g-1?0:u+1,q=(y-S)/d[u].addedLength;A=bez.getPointInSegment(c.v[F],c.v[k],c.o[F],c.i[k],q,d[u]);break}else S+=d[u].addedLength;u+=1}return A||(A=c.c?[c.v[0][0],c.v[0][1]]:[c.v[c._length-1][0],c.v[c._length-1][1]]),A},vectorOnPath:function(P,b,c){P==1?P=this.v.c:P==0&&(P=.999);var T=this.pointOnPath(P,b),d=this.pointOnPath(P+.001,b),y=d[0]-T[0],u=d[1]-T[1],g=Math.sqrt(Math.pow(y,2)+Math.pow(u,2));if(g===0)return[0,0];var S=c==="tangent"?[y/g,u/g]:[-u/g,y/g];return S},tangentOnPath:function(P,b){return this.vectorOnPath(P,b,"tangent")},normalOnPath:function(P,b){return this.vectorOnPath(P,b,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([m],o),extendPrototype([m],f),f.prototype.getValueAtTime=l,f.prototype.initiateExpression=ExpressionManager.initiateExpression;var E=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,P,b,c,T){var d=E(p,P,b,c,T);return d.propertyIndex=P.ix,d.lock=!1,b===3?expressionHelpers.searchExpressions(p,P.pt,d):b===4&&expressionHelpers.searchExpressions(p,P.ks,d),d.k&&p.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var i=this.calculateExpression(r);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var s,n;for(n=0;n<r.length;n+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[n]),i.appendChild(s),i.appendChild(s);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,i,s){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",i+"_tint_1"),e.appendChild(n),n=createNS("feColorMatrix"),n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(r),this.elem.globalData.defs.appendChild(n);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+a+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=n,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,i,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var n;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,o=s.getTotalLength();n="0 0 0 "+o*a+" ";var f=o*(l-a),m=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,E=Math.floor(f/m),p;for(p=0;p<E;p+=1)n+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+o*10+" 0 0"}else n="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var P=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(P[0]*255)+","+bmFloor(P[1]*255)+","+bmFloor(P[2]*255)+")")}};function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var l=createNS("feFuncG");l.setAttribute("type","table"),n.appendChild(l),this.feFuncG=l;var o=createNS("feFuncB");o.setAttribute("type","table"),n.appendChild(o),this.feFuncB=o,e.appendChild(n)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+t[0],n=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var s=this.filterManager.effectElements,n=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(n=createNS("feComponentTransfer"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,s){for(var n=0,a=256,l,o=Math.min(e,t),f=Math.max(e,t),m=Array.call(null,{length:a}),E,p=0,P=s-i,b=t-e;n<=256;)l=n/256,l<=o?E=b<0?s:i:l>=f?E=b<0?i:s:E=i+P*Math.pow((l-e)/b,1/r),m[p]=E,p+=1,n+=256/(a-1);return m.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,i,s){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var o=createNS("feOffset");o.setAttribute("dx","25"),o.setAttribute("dy","0"),o.setAttribute("in",i+"_drop_shadow_1"),o.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=o,e.appendChild(o);var f=createNS("feFlood");f.setAttribute("flood-color","#00ff00"),f.setAttribute("flood-opacity","1"),f.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=f,e.appendChild(f);var m=createNS("feComposite");m.setAttribute("in",i+"_drop_shadow_3"),m.setAttribute("in2",i+"_drop_shadow_2"),m.setAttribute("operator","in"),m.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(m);var E=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(E)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),n=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i=r.children,s=0,n=i.length;s<n&&i[s]!==e.layerElement;)s+=1;var a;s<=n-2&&(a=i[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),a?r.insertBefore(l,a):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),s.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:r,n=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+n);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,n=t[3].p.v,a=s?n:t[4].p.v,l=t[5].p.v,o=t[6].p.v,f=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(a*.01,n*.01,1),this.matrix.rotate(-f*degToRads),this.matrix.skewFromAxis(-l*degToRads,(o+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$1,lottie$1.exports)),lottie$1.exports}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0});var e=require_extends(),t=y(e),r=requireGetPrototypeOf(),i=y(r),s=requireClassCallCheck(),n=y(s),a=requireCreateClass(),l=y(a),o=requirePossibleConstructorReturn(),f=y(o),m=requireInherits(),E=y(m),p=require$$6,P=y(p),b=requirePropTypes(),c=y(b),T=requireLottie(),d=y(T);function y(g){return g&&g.__esModule?g:{default:g}}var u=(function(g){(0,E.default)(S,g);function S(){var A,F,k,q;(0,n.default)(this,S);for(var z=arguments.length,j=Array(z),O=0;O<z;O++)j[O]=arguments[O];return q=(F=(k=(0,f.default)(this,(A=S.__proto__||(0,i.default)(S)).call.apply(A,[this].concat(j))),k),k.handleClickToPause=function(){k.anim.isPaused?k.anim.play():k.anim.pause()},F),(0,f.default)(k,q)}return(0,l.default)(S,[{key:"componentDidMount",value:function(){var F=this.props,k=F.options,q=F.eventListeners,z=k.loop,j=k.autoplay,O=k.animationData,$=k.rendererSettings,B=k.segments;this.options={container:this.el,renderer:"svg",loop:z!==!1,autoplay:j!==!1,segments:B!==!1,animationData:O,rendererSettings:$},this.options=(0,t.default)({},this.options,k),this.anim=d.default.loadAnimation(this.options),this.registerEvents(q),this.setSpeed()}},{key:"componentWillUpdate",value:function(F){this.options.animationData!==F.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,t.default)({},this.options,F.options),this.anim=d.default.loadAnimation(this.options),this.registerEvents(F.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){this.props.isPaused&&!this.anim.isPaused?this.anim.pause():!this.props.isPaused&&this.anim.isPaused&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(F){var k=this;F.forEach(function(q){k.anim.addEventListener(q.eventName,q.callback)})}},{key:"deRegisterEvents",value:function(F){var k=this;F.forEach(function(q){k.anim.removeEventListener(q.eventName,q.callback)})}},{key:"render",value:function(){var F=this,k=this.props,q=k.width,z=k.height,j=k.ariaRole,O=k.ariaLabel,$=k.isClickToPauseDisabled,B=k.title,D=function(x){var M=void 0;return typeof x=="number"?M=x+"px":M=x||"100%",M},C=(0,t.default)({width:D(q),height:D(z),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),R=$?function(){return null}:this.handleClickToPause;return P.default.createElement("div",{ref:function(x){F.el=x},style:C,onClick:R,title:B,role:j,"aria-label":O,tabIndex:"0"})}}]),S})(P.default.Component);return dist.default=u,u.propTypes={eventListeners:c.default.arrayOf(c.default.object),options:c.default.object.isRequired,height:c.default.oneOfType([c.default.string,c.default.number]),width:c.default.oneOfType([c.default.string,c.default.number]),isStopped:c.default.bool,isPaused:c.default.bool,speed:c.default.number,segments:c.default.arrayOf(c.default.number),direction:c.default.number,ariaRole:c.default.string,ariaLabel:c.default.string,isClickToPauseDisabled:c.default.bool,title:c.default.string,style:c.default.object},u.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""},dist}var distExports=requireDist();const Lottie=getDefaultExportFromCjs(distExports),v="5.7.4",fr=60,ip=613,op=661,w=600,h=600,nm="asset",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"shape rotation",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[300,300,0],ix:2,l:2},a:{a:0,k:[-26,-20,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[404,404],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:49,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-26,-20],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:613,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:636,s:[20]},{t:660,s:[0]}],ix:1},e:{a:0,k:28,ix:2},o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:613,s:[0]},{t:660,s:[360]}],ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:100,ix:2},o:{a:0,k:0,ix:3},m:1,ix:3,nm:"Trim Paths 2",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:1500,st:0,bm:0}],markers=[],lottieLoader={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},TrezButton=({variant:e,size:t="md",loading:r,children:i,className:s,...n})=>{const a={loop:!0,autoplay:!0,animationData:lottieLoader,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}};return jsxRuntime.jsx("button",{className:cn("transition-all duration-500 flex items-center justify-center gap-1 w-full",{sm:"font-action-small text-center h-10 py-[13px] px-4 rounded-xl",md:"font-action-normal text-center h-12 py-4 px-4 rounded-2xl",lg:"font-action-large text-center h-14 py-[19px] px-4 rounded-[20px]"}[t],{primary:cn(r?"bg-primary-600 pointer-events-none":n.disabled?"bg-neutral-500 text-neutral-300 cursor-not-allowed":`
|
|
4
|
+
text-neutral-50 cursor-pointer
|
|
5
|
+
bg-[linear-gradient(90deg,var(--color-primary-500),var(--color-secondary-500),var(--color-primary-500))]
|
|
6
|
+
bg-size-[200%_200%] bg-position-[0%_50%] transition-[background-position,box-shadow] duration-500
|
|
7
|
+
shadow-[0_0_16px_0_var(--color-secondary-700),0_0_24px_0_rgba(255,255,255,0.40)_inset]
|
|
8
|
+
hover:bg-position-[100%_50%] hover:shadow-[0_0_20px_0_var(--color-secondary-700)]
|
|
9
|
+
active:bg-position-[50%_50%] active:shadow-none `),secondary:cn(r?"bg-neutral-300 pointer-events-none":n.disabled?"bg-neutral-500 cursor-not-allowed":`bg-neutral-900
|
|
10
|
+
text-neutral-50 cursor-pointer
|
|
11
|
+
shadow-[inset_0_0_0_1px_var(--color-neutral-450)]
|
|
12
|
+
hover:bg-neutral-500
|
|
13
|
+
active:bg-neutral-450 active:hover:shadow-none`),red:cn(r?"bg-neutral-400 pointer-events-none":n.disabled?"bg-neutral-500 text-neutral-300 cursor-not-allowed":`bg-red-900 rounded-xl
|
|
14
|
+
text-red-50 cursor-pointer shadow-none
|
|
15
|
+
hover:bg-red-500 active:bg-red-900`),destructive:cn(r?"bg-neutral-400 pointer-events-none":n.disabled?"bg-neutral-500 text-neutral-300 cursor-not-allowed":` rounded-xl shadow-none
|
|
16
|
+
text-neutral-50 cursor-pointer
|
|
17
|
+
bg-red-900 hover:bg-red-500 active:bg-red-900`),neutral:cn(r?"bg-neutral-400 pointer-events-none":n.disabled?"bg-neutral-500 text-neutral-300 cursor-not-allowed":`bg-neutral-500
|
|
18
|
+
text-neutral-300 cursor-pointer
|
|
19
|
+
shadow-none
|
|
20
|
+
hover:bg-neutral-400 hover:text-neutral-200
|
|
21
|
+
active:bg-neutral-600`)}[e],s),...n,children:r?jsxRuntime.jsx(Lottie,{options:a,height:19,width:19}):i})},cn=(...e)=>e.filter(Boolean).join(" ");exports.TrezButton=TrezButton,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|