1"undefined"!=typeof navigator&&((t,e)=>{"function"==typeof define&&define.amd?define(function(){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie)})(window||{},function(window){var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}(()=>{for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){for(var e=createSizedArray(t.length),i=t.length,s=0;s<i;s+=1)e[s]=Math.abs(t[s]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e,this.currentTime=currentTime}roundValues(!1);var createElementID=(G=0,function(){return"__lottie_element_"+ ++G}),G;function HSVtoRGB(t,e,i){var s,r,a,n=Math.floor(6*t),t=6*t-n,o=i*(1-e),l=i*(1-t*e),h=i*(1-(1-t)*e);switch(n%6){case 0:s=i,r=h,a=o;break;case 1:s=l,r=i,a=o;break;case 2:s=o,r=i,a=h;break;case 3:s=o,r=l,a=i;break;case 4:s=h,r=o,a=i;break;case 5:s=i,r=o,a=l}return[s,r,a]}function RGBtoHSV(t,e,i){var s,r=Math.max(t,e,i),a=Math.min(t,e,i),n=r-a,o=0===r?0:n/r,l=r/255;switch(r){case a:s=0;break;case t:s=e-i+n*(e<i?6:0),s/=6*n;break;case e:s=i-t+2*n,s/=6*n;break;case i:s=t-e+4*n,s/=6*n}return[s,o,l]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=(()=>{for(var t,s=[],e=0;e<256;e+=1)t=e.toString(16),s[e]=1==t.length?"0"+t:t;return function(t,e,i){return"#"+s[t=t<0?0:t]+s[e=e<0?0:e]+s[i=i<0?0:i]}})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,s=0;s<i;s++)this._cbs[t][s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--s),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var i,s=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)r.push(i);return r};function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};
vendor: 9,842 bytes, line 1
1var getBlendMode=(Pa={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Pa[t]||""}),Pa,Matrix=(Ra=Math.cos,Sa=Math.sin,Ta=Math.tan,Ua=Math.round,function(){this.reset=Va,this.rotate=Wa,this.rotateX=Xa,this.rotateY=Ya,this.rotateZ=Za,this.skew=_a,this.skewFromAxis=ab,this.shear=$a,this.scale=bb,this.setTransform=cb,this.translate=db,this.transform=eb,this.applyToPoint=jb,this.applyToX=kb,this.applyToY=lb,this.applyToZ=mb,this.applyToPointArray=sb,this.applyToTriplePoints=rb,this.applyToPointStringified=tb,this.toCSS=ub,this.to2dCSS=wb,this.clone=hb,this.cloneFromProps=ib,this.equals=gb,this.inversePoints=qb,this.inversePoint=pb,this.getInverseMatrix=nb,this._t=this.transform,this.isIdentity=fb,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}),Ra,Sa,Ta,Ua;function Va(){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 Wa(t){var e;return 0===t?this:(e=Ra(t),t=Sa(t),this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1))}function Xa(t){var e;return 0===t?this:(e=Ra(t),t=Sa(t),this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1))}function Ya(t){var e;return 0===t?this:(e=Ra(t),t=Sa(t),this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1))}function Za(t){var e;return 0===t?this:(e=Ra(t),t=Sa(t),this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1))}function $a(t,e){return this._t(1,e,t,1,0,0)}function _a(t,e){return this.shear(Ta(t),Ta(e))}function ab(t,e){var i=Ra(e),e=Sa(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Ta(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function bb(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function cb(t,e,i,s,r,a,n,o,l,h,p,c,d,f,u,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=p,this.props[11]=c,this.props[12]=d,this.props[13]=f,this.props[14]=u,this.props[15]=m,this}function db(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function eb(t,e,i,s,r,a,n,o,l,h,p,c,d,f,u,m){var g,y,v,b,S,w,k,E,T,x,A,P,_,M,C,D,I=this.props;return 1===t&&0===e&&0===i&&0===s&&0===r&&1===a&&0===n&&0===o&&0===l&&0===h&&1===p&&0===c?(I[12]=I[12]*t+I[15]*d,I[13]=I[13]*a+I[15]*f,I[14]=I[14]*p+I[15]*u,I[15]=I[15]*m,this._identityCalculated=!1):(g=I[0],S=I[4],w=I[5],k=I[6],E=I[7],T=I[8],x=I[9],A=I[10],P=I[11],_=I[12],M=I[13],C=I[14],D=I[15],I[0]=g*t+(y=I[1])*r+(v=I[2])*l+(b=I[3])*d,I[1]=g*e+y*a+v*h+b*f,I[2]=g*i+y*n+v*p+b*u,I[3]=g*s+y*o+v*c+b*m,I[4]=S*t+w*r+k*l+E*d,I[5]=S*e+w*a+k*h+E*f,I[6]=S*i+w*n+k*p+E*u,I[7]=S*s+w*o+k*c+E*m,I[8]=T*t+x*r+A*l+P*d,I[9]=T*e+x*a+A*h+P*f,I[10]=T*i+x*n+A*p+P*u,I[11]=T*s+x*o+A*c+P*m,I[12]=_*t+M*r+C*l+D*d,I[13]=_*e+M*a+C*h+D*f,I[14]=_*i+M*n+C*p+D*u,I[15]=_*s+M*o+C*c+D*m,this._identityCalculated=!1),this}function fb(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function gb(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function hb(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e]}function ib(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function jb(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function kb(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function lb(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function mb(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function nb(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,r=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,t=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,n=new Matrix;return n.props[0]=e,n.props[1]=i,n.props[4]=s,n.props[5]=r,n.props[12]=a,n.props[13]=t,n}function pb(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function qb(t){for(var e=t.length,i=[],s=0;s<e;s+=1)i[s]=pb(t[s]);return i}function rb(t,e,i){var s,r,a,n,o,l,h=createTypedArray("float32",6);return this.isIdentity()?(h[0]=t[0],h[1]=t[1],h[2]=e[0],h[3]=e[1],h[4]=i[0],h[5]=i[1]):(s=this.props[0],r=this.props[1],a=this.props[4],n=this.props[5],o=this.props[12],l=this.props[13],h[0]=t[0]*s+t[1]*a+o,h[1]=t[0]*r+t[1]*n+l,h[2]=e[0]*s+e[1]*a+o,h[3]=e[0]*r+e[1]*n+l,h[4]=i[0]*s+i[1]*a+o,h[5]=i[0]*r+i[1]*n+l),h}function sb(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function tb(t,e){var i;return this.isIdentity()?t+","+e:(i=this.props,Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100)}function ub(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i=i+Ua(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function vb(t){return t<1e-6&&0<t||-1e-6<t&&t<0?Ua(1e4*t)/1e4:t}function wb(){var t=this.props;return"matrix("+vb(t[0])+","+vb(t[1])+","+vb(t[4])+","+vb(t[5])+","+vb(t[12])+","+vb(t[13])+")"}!function(n,o){var l=this,h=256,p=o.pow(h,6),c=o.pow(2,52),d=2*c,f=h-1;function u(t){var e,i=t.length,n=this,s=0,r=n.i=n.j=0,a=n.S=[];for(i||(t=[i++]);s<h;)a[s]=s++;for(s=0;s<h;s++)a[s]=a[r=f&r+t[s%i]+(e=a[s])],a[r]=e;n.g=function(t){for(var e,i=0,s=n.i,r=n.j,a=n.S;t--;)e=a[s=f&s+1],i=i*h+a[f&(a[s]=a[r=f&r+e])+(a[r]=e)];return n.i=s,n.j=r,i}}function m(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function g(t,e){for(var i,s=t+"",r=0;r<s.length;)e[f&r]=f&(i^=19*e[f&r])+s.charCodeAt(r++);return y(e)}function y(t){return String.fromCharCode.apply(0,t)}o.seedrandom=function(t,e,i){function s(){for(var t=a.g(6),e=p,i=0;t<c;)t=(t+i)*h,e*=h,i=a.g(1);for(;d<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}var r=[],t=g(function t(e,i){var s,r=[],a=typeof e;if(i&&"object"==a)for(s in e)try{r.push(t(e[s],i-1))}catch(t){}return r.length?r:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,y(n)]:null===t?(()=>{try{var t=new Uint8Array(h);return(l.crypto||l.msCrypto).getRandomValues(t),y(t)}catch(t){var e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,y(n)]}})():t,3),r),a=new u(r);return s.int32=function(){return 0|a.g(4)},s.quick=function(){return a.g(4)/4294967296},s.double=s,g(y(a.S),n),(e.pass||i||function(t,e,i,s){return s&&(s.S&&m(s,a),t.state=function(){return m(a,{})}),i?(o.random=t,e):t})(s,t,"global"in e?e.global:this==o,e.state)},g(o.random(),n)}([],BMMath);var BezierFactory=(jf={getBezierEasing:function(t,e,i,s,r){r=r||("bez_"+t+"_"+e+"_"+i+"_"+s).replace(/\./g,"p");return kf[r]||(t=new Af([t,e,i,s]),kf[r]=t)}},kf={},qf=11,rf=1/(qf-1),sf="function"==typeof Float32Array,Af.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&s===r?t:0===t?0:1===t?1:wf(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<qf;++i)this._mSampleValues[i]=wf(i*rf,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,r=0,a=1,n=qf-1;a!==n&&s[a]<=t;++a)r+=rf;var o=r+(t-s[--a])/(s[a+1]-s[a])*rf,l=xf(o,e,i);if(.001<=l){for(var h=t,p=o,c=e,d=i,f=0;f<4;++f){var u=xf(p,c,d);if(0===u)return p;p-=(wf(p,c,d)-h)/u}return p}if(0===l)return o;for(var m,g,y=t,v=r,b=r+rf,S=e,w=i,k=0;0<(m=wf(g=v+(b-v)/2,S,w)-y)?b=g:v=g,1e-7<Math.abs(m)&&++k<10;);return g}},jf),jf,kf,qf,rf,sf;function tf(t,e){return 1-3*e+3*t}function uf(t,e){return 3*e-6*t}function wf(t,e,i){return((tf(e,i)*t+uf(e,i))*t+3*e)*t}function xf(t,e,i){return 3*tf(e,i)*t*t+2*uf(e,i)*t+3*e}function Af(t){this._p=t,this._mSampleValues=new(sf?Float32Array:Array)(qf),this._precomputed=!1,this.get=this.get.bind(this)}function extendPrototype(t,e){for(var i,s=t.length,r=0;r<s;r+=1)for(var a in i=t[r].prototype)i.hasOwnProperty(a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){function g(t,e,i,s,r,a){r=t*s+e*r+i*a-r*s-a*t-i*e;return-.001<r&&r<.001}Math;function p(t,e,i,s){for(var r,a,n,o,l=defaultCurveSegments,h=0,p=[],c=[],d=bezier_length_pool.newElement(),f=i.length,u=0;u<l;u+=1){for(n=u/(l-1),r=o=0;r<f;r+=1)a=bm_pow(1-n,3)*t[r]+3*bm_pow(1-n,2)*n*i[r]+3*(1-n)*bm_pow(n,2)*s[r]+bm_pow(n,3)*e[r],p[r]=a,null!==c[r]&&(o+=bm_pow(p[r]-c[r],2)),c[r]=p[r];o&&(h+=o=bm_sqrt(o)),d.percents[u]=n,d.lengths[u]=h}return d.addedLength=h,d}function y(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}var b;b={};function A(t,e){var i=e.percents,s=e.lengths,r=i.length,a=bm_floor((r-1)*t),n=t*e.addedLength,o=0;if(a===r-1||0===a||n===s[a])return i[a];for(var l=s[a]>n?-1:1,h=!0;h;)if(s[a]<=n&&s[a+1]>
1n?(o=(n-s[a])/(s[a+1]-s[a]),h=!1):a+=l,a<0||r-1<=a){if(a===r-1)return i[a];h=!1}return i[a]+(i[a+1]-i[a])*o}var P=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segments_length_pool.newElement(),i=t.c,s=t.v,r=t.o,a=t.i,n=t._length,o=e.lengths,l=0,h=0;h<n-1;h+=1)o[h]=p(s[h],s[h+1],r[h],a[h+1]),l+=o[h].addedLength;return i&&n&&(o[h]=p(s[h],s[0],r[h],a[0]),l+=o[h].addedLength),e.totalLength=l,e},getNewSegment:function(t,e,i,s,r,a,n){for(var r=A(r=r<0?0:1<r?1:r,n),a=A(a=1<a?1:a,n),o=t.length,n=1-r,l=1-a,h=n*n*n,p=r*n*n*3,c=r*r*n*3,d=r*r*r,f=n*n*l,u=r*n*l+n*r*l+n*n*a,m=r*r*l+n*r*a+r*n*a,g=r*r*a,y=n*l*l,v=r*l*l+n*a*l+n*l*a,b=r*a*l+n*a*a+r*l*a,S=r*a*a,w=l*l*l,k=a*l*l+l*a*l+l*l*a,E=a*a*l+l*a*a+a*l*a,T=a*a*a,x=0;x<o;x+=1)P[4*x]=Math.round(1e3*(h*t[x]+p*i[x]+c*s[x]+d*e[x]))/1e3,P[4*x+1]=Math.round(1e3*(f*t[x]+u*i[x]+m*s[x]+g*e[x]))/1e3,P[4*x+2]=Math.round(1e3*(y*t[x]+v*i[x]+b*s[x]+S*e[x]))/1e3,P[4*x+3]=Math.round(1e3*(w*t[x]+k*i[x]+E*s[x]+T*e[x]))/1e3;return P},getPointInSegment:function(t,e,i,s,r,a){r=A(r,a),a=1-r;return[Math.round(1e3*(a*a*a*t[0]+(r*a*a+a*r*a+a*a*r)*i[0]+(r*r*a+a*r*r+r*a*r)*s[0]+r*r*r*e[0]))/1e3,Math.round(1e3*(a*a*a*t[1]+(r*a*a+a*r*a+a*a*r)*i[1]+(r*r*a+a*r*r+r*a*r)*s[1]+r*r*r*e[1]))/1e3]},buildBezierData:function(t,e,i,s){var r=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!b[r]){for(var a,n,o,l,h,p=defaultCurveSegments,c=0,d=null,f=new y(p=2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&g(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&g(t[0],t[1],e[0],e[1],e[0]+s[0],e[1]+s[1])?2
1:p),u=i.length,m=0;m<p;m+=1){for(h=createSizedArray(u),o=m/(p-1),a=l=0;a<u;a+=1)n=bm_pow(1-o,3)*t[a]+3*bm_pow(1-o,2)*o*(t[a]+i[a])+3*(1-o)*bm_pow(o,2)*(e[a]+s[a])+bm_pow(o,3)*e[a],h[a]=n,null!==d&&(l+=bm_pow(h[a]-d[a],2));c+=l=bm_sqrt(l),f.points[m]=new v(l,h),d=h}f.segmentLength=c,b[r]=f}return b[r]},pointOnLine2D:g,pointOnLine3D:function(t,e,i,s,r,a,n,o,l){var h;return 0===i&&0===a&&0===l?g(t,e,s,r,n,o):(h=Math.sqrt(Math.pow(s-t,2)+Math.pow(r-e,2)+Math.pow(a-i,2)),t=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)+Math.pow(l-i,2)),e=Math.sqrt(Math.pow(n-s,2)+Math.pow(o-r,2)+Math.pow(l-a,2)),-1e-4<(i=t<h?e<h?h-t-e:e-t-h:t<e?e-t-h:t-h-e)&&i<1e-4)}}}(()=>{for(var a=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),s=Math.max(0,16-(i-a)),r=setTimeout(function(){t(i+s)},s);return a=i+s,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();var bez=bezFunction();function dataFunctionManager(){function c(t,e,i){for(var s,r,a,n=t.length,o=0;o<n;o+=1)if("ks"in(a=t[o])&&!a.completed){if(a.completed=!0,a.tt&&(t[o-1].td=a.tt),a.hasMask)for(var l=a.masksProperties,h=l.length,p=0;p<h;p+=1)if(l[p].pt.k.i)d(l[p].pt.k);else for(r=l[p].pt.k.length,s=0;s<r;s+=1)l[p].pt.k[s].s&&d(l[p].pt.k[s].s[0]),l[p].pt.k[s].e&&d(l[p].pt.k[s].e[0]);0===a.ty?(a.layers=((t,e)=>{for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}})(a.refId,e),c(a.layers,e,i)):4===a.ty?function t(e){for(var i,s,r=e.length-1;0<=r;--r)if("sh"==e[r].ty)if(e[r].ks.k.i)d(e[r].ks.k);else for(s=e[r].ks.k.length,i=0;i<s;i+=1)e[r].ks.k[i].s&&d(e[r].ks.k[i].s[0]),e[r].ks.k[i].e&&d(e[r].ks.k[i].e[0]);else"gr"==e[r].ty&&t(e[r].it)}(a.shapes):5!=a.ty||0!==(a=a).t.a.length||"m"in a.t.p||(a.singleShape=!0)}}function d(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function o(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(t[0]<e[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}var a;a=[4,4,14];function n(t){for(var e,i,s=t.length,r=0;r<s;r+=1)5===t[r].ty&&(i=(e=t[r]).t.d,e.t.d={k:[{s:i,t:0}]})}function l(t){if(t.chars&&!o(p,t.v))for(var e,i,s,r,a=t.chars.length,n=0;n<a;n+=1)if(t.chars[n].data&&t.chars[n].data.shapes)for(i=(r=t.chars[n].data.shapes[0].it).length,e=0;e<i;e+=1)(s=r[e].ks.k).__converted||(d(r[e].ks.k),s.__converted=!0)}function h(t){if(o(s,t.v)&&(r(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}var p,s;p=[4,7,99],s=[4,1,9];function r(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&!function t(e){for(var i,s,r=e.length,a=0;a<r;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(s=e[a].c.k.length,i=0;i<s;i+=1)e[a].c.k[i].s&&(e[a].c.k[i].s[0]/=255,e[a].c.k[i].s[1]/=255,e[a].c.k[i].s[2]/=255,e[a].c.k[i].s[3]/=255),e[a].c.k[i].e&&(e[a].c.k[i].e[0]/=255,e[a].c.k[i].e[1]/=255,e[a].c.k[i].e[2]/=255,e[a].c.k[i].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}(t[i].shapes)}function f(t){if(o(u,t.v)&&(m(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&m(t.assets[i].layers)}var u;u=[4,4,18];function m(t){for(var e,i,s,r=t.length,a=0;a<r;a+=1){if((e=t[a]).hasMask)for(var n=e.masksProperties,o=n.length,l=0;l<o;l+=1)if(n[l].pt.k.i)n[l].pt.k.c=n[l].cl;else for(s=n[l].pt.k.length,i=0;i<s;i+=1)n[l].pt.k[i].s&&(n[l].pt.k[i].s[0].c=n[l].cl),n[l].pt.k[i].e&&(n[l].pt.k[i].e[0].c=n[l].cl);4===e.ty&&!function t(e){for(var i,s,r=e.length-1;0<=r;--r)if("sh"==e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(s=e[r].ks.k.length,i=0;i<s;i+=1)e[r].ks.k[i].s&&(e[r].ks.k[i].s[0].c=e[r].closed),e[r].ks.k[i].e&&(e[r].ks.k[i].e[0].c=e[r].closed);else"gr"==e[r].ty&&t(e[r].it)}(e.shapes)}}var t={completeData:function(t,e){if(!t.__complete){h(t);var i=t;if(o(a,i.v)&&(n(i.layers),i.assets))for(var s=i.assets.length,r=0;r<s;r+=1)i.assets[r].layers&&n(i.assets[r].layers);l(t),f(t),c(t.layers,t.assets,e),t.__complete=!0}}};return t.checkColors=h,t.checkChars=l,t.checkShapes=f,t.completeLayers=c,t}var dataManager=dataFunctionManager(),FontManager=(()=>{var a={w:0,size:0,shapes:[]},t=[];function f(r,t){var e=createTag("span"),i=(e.style.fontFamily=t,createTag("span")),s=(i.innerHTML="giItT1WQy@!-/#",e.style.position="absolute",e.style.left="-10000px",e.
1style.top="-10000px",e.style.fontSize="300px",e.style.fontVariant="normal",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="0",e.appendChild(i),document.body.appendChild(e),i.offsetWidth);return i.style.fontFamily=(()=>{for(var t=r.split(","),e=t.length,i=[],s=0;s<e;s+=1)"sans-serif"!==t[s]&&"monospace"!==t[s]&&i.push(t[s]);return i.join(",")})()+", "+t,{node:i,w:s,parent:e}}function e(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}return t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]),e.getCombinedCharacterCodes=function(){return t},e.prototype={addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,i,s=t.length,r=this.chars.length,a=0;a<s;a+=1){for(e=0,i=!1;e<r;)this.chars[e].style===t[a].style&&this.chars[e].fFamily===t[a].fFamily&&this.chars[e].ch===t[a].ch&&(i=!0),e+=1;i||(this.chars.push(t[a]),r+=1)}}},addFonts:function(t,e){if(t)if(this.chars)this.isLoaded=!0,this.fonts=t.list;else{for(var i,s,r=t.list,a=r.length,n=a,o=0;o<a;o+=1){var l,h,p,c,d=!0;if(r[o].loaded=!1,r[o].monoCase=f(r[o].fFamily,"monospace"),r[o].sansCase=f(r[o].fFamily,"sans-serif"),r[o].fPath){if("p"===r[o].fOrigin||3===r[o].origin)(d=0<(h=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[o].fFamily+'"], style[f-origin="3"][f-family="'+r[o].fFamily+'"]')).length?!1:d)&&((p=createTag("style")).setAttribute("f-forigin",r[o].fOrigin),p.setAttribute("f-origin",r[o].origin),p.setAttribute("f-family",r[o].fFamily),p.type="text/css",p.innerHTML="@font-face {font-family: "+r[o].fFamily+"; font-style: normal; src: url('"+r[o].fPath+"');}",e.appendChild(p));else if("g"===r[o].fOrigin||1===r[o].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<h.length;l++)-1!==h[l].href.indexOf(r[o].fPath)&&(d=!1);d&&((p=createTag("link")).setAttribute("f-forigin",r[o].fOrigin),p.setAttribute("f-origin",r[o].origin),p.type="text/css",p.rel="stylesheet",p.href=r[o].fPath,document.body.appendChild(p))}else if("t"===r[o].fOrigin||2===r[o].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<h.length;l++)r[o].fPath===h[l].src&&(d=!1);d&&((c=createTag("link")).setAttribute("f-forigin",r[o].fOrigin),c.setAttribute("f-origin",r[o].origin),c.setAttribute("rel","stylesheet"),c.setAttribute("href",r[o].fPath),e.appendChild(c))}}else r[o].loaded=!0,--n;r[o].helper=(c=e,i=r[o],s=void 0,(s=createNS("text")).style.fontSize="100px",s.setAttribute("font-family",i.fFamily),s.setAttribute("font-style",i.fStyle),s.setAttribute("font-weight",i.fWeight),s.textContent="1",i.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",i.fClass)):s.style.fontFamily=i.fFamily,c.appendChild(s),createTag("canvas").getContext("2d").font=i.fWeight+" "+i.fStyle+" 100px "+i.fFamily,s),r[o].cache={},this.fonts.push(r[o])}0===n?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,e,i){for(var s=0,r=this.chars.length;s<r;){if(this.chars[s].ch===t&&this.chars[s].style===e&&this.chars[s].fFamily===i)return this.chars[s];s+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn,a},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var s,r,a,e=this.getFontByName(e),n=t.charCodeAt(0);return e.cache[n+1]||(s=e.helper," "===t?(s.textContent="|"+t+"|",r=s.getComputedTextLength(),s.textContent="||",a=s.getComputedTextLength(),e.cache[n+1]=(r-a)/100):(s.textContent=t,e.cache[n+1]=s.getComputedTextLength()/100)),e.cache[n+1]*i},checkLoadedFonts:function(){for(var t,e,i=this.fonts.length,s=i,r=0;r<i;r+=1)this.fonts[r].loaded?--s:"n"===this.fonts[r].fOrigin||0===this.fonts[r].origin?this.fonts[r].loaded=!0:(t=this.fonts[r].monoCase.node,e=this.fonts[r].monoCase.w,t.offsetWidth===e&&(t=this.fonts[r].sansCase.node,e=this.fonts[r].sansCase.w,t.offsetWidth===e)||(--s,this.fonts[r].loaded=!0),this.fonts[r].loaded&&(this.fonts[r].sansCase.parent.parentNode.removeChild(this.fonts[r].sansCase.parent),this.fonts[r].monoCase.parent.parentNode.removeChild(this.fonts[r].monoCase.parent)));0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},e})(),PropertyFactory=(xm=initialDefaultFrame,ym=Math.abs,{getProp:function(t,e,
vendor: 37,133 bytes, line 1
1i,s,r){var a;if(e.k.length)if("number"==typeof e.k[0])a=new Im(t,e,s,r);else switch(i){case 0:a=new Jm(t,e,s,r);break;case 1:a=new Km(t,e,s,r)}else a=new Hm(t,e,s,r);return a.effectsSequence.length&&r.addDynamicProperty(a),a}}),xm,ym;function zm(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var r,a,n,o=e.lastIndex,l=o,R=this.keyframes.length-1,h=!0;h;){if(r=this.keyframes[l],a=this.keyframes[l+1],l===R-1&&t>=a.t-s){r.h&&(r=a),o=0;break}if(a.t-s>t){o=l;break}l<R-1?l+=1:(o=0,h=!1)}var p,c,d,f,u,m,g,y,v,b,S,w,k=a.t-s,E=r.t-s;if(r.to){r.bezierData||(r.bezierData=bez.buildBezierData(r.s,a.s||r.e,r.to,r.ti));var T=r.bezierData;if(k<=t||t<E)for(var O=k<=t?T.points.length-1:0,x=T.points[O].point.length,A=0;A<x;A+=1)i[A]=T.points[O].point[A];else{r.__fnct?n=r.__fnct:(n=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,r.__fnct=n);for(var $,P=n((t-E)/(k-E)),_=T.segmentLength*P,M=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastAddedLength:0,C=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastPoint:0,h=!0,N=T.points.length;h;){if(M+=T.points[C].partialLength,0==_||0===P||C===T.points.length-1){for(x=T.points[C].point.length,A=0;A<x;A+=1)i[A]=T.points[C].point[A];break}if(M<=_&&_<M+T.points[C+1].partialLength){for($=(_-M)/T.points[C+1].partialLength,x=T.points[C].point.length,A=0;A<x;A+=1)i[A]=T.points[C].point[A]+(T.points[C+1].point[A]-T.points[C].point[A])*$;break}C<N-1?C+=1:h=!1}e._lastPoint=C,e._lastAddedLength=M-T.points[C].partialLength,e._lastKeyframeIndex=l}}else{var D,I,z,G,B,F,L,R=r.s.length,V=a.s||r.e;if(this.sh&&1!==r.h)k<=t?(i[0]=V[0],i[1]=V[1],i[2]=V[2]):t<=E?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):(F=Cm(r.s),L=Cm(V),p=i,c=(t-E)/(k-E),m=[],g=F[0],y=F[1],v=F[2],F=F[3],b=L[0],S=L[1],w=L[2],L=L[3],(u=g*b+y*S+v*w+F*L)<0&&(u=-u,b=-b,S=-S,w=-w,L=-L),u=1e-6<1-u?(u=Math.acos(u),d=Math.sin(u),f=Math.sin((1-c)*u)/d,Math.sin(c*u)/d):(f=1-c,c),m[0]=f*g+u*b,m[1]=f*y+u*S,m[2]=f*v+u*w,m[3]=f*F+u*L,c=(d=m)[0],g=d[1],b=d[2],y=d[3],S=Math.atan2(2*g*y-2*c*b,1-2*g*g-2*b*b),v=Math.asin(2*c*g+2*b*y),w=Math.atan2(2*c*y-2*g*b,1-2*c*c-2*b*b),p[0]=S/degToRads,p[1]=v/degToRads,p[2]=w/degToRads);else for(l=0;l<R;l+=1)1!==r.h&&(P=k<=t?1:t<E?0:(r.o.x.constructor===Array?(r.__fnct||(r.__fnct=[]),r.__fnct[l]?n=r.__fnct[l]:(D=void 0===r.o.x[l]?r.o.x[0]:r.o.x[l],I=void 0===r.o.y[l]?r.o.y[0]:r.o.y[l],z=void 0===r.i.x[l]?r.i.x[0]:r.i.x[l],G=void 0===r.i.y[l]?r.i.y[0]:r.i.y[l],n=BezierFactory.getBezierEasing(D,I,z,G).get,r.__fnct[l]=n)):r.__fnct?n=r.__fnct:(D=r.o.x,I=r.o.y,z=r.i.x,G=r.i.y,n=BezierFactory.getBezierEasing(D,I,z,G).get,r.__fnct=n),n((t-E)/(k-E)))),V=a.s||r.e,B=1===r.h?r.s[l]:r.s[l]+(V[l]-r.s[l])*P,"multidimensional"===this.propType?i[l]=B:i=B}return e.lastIndex=o,i}function Cm(t){var e=t[0]*degToRads,i=t[1]*degToRads,t=t[2]*degToRads,s=Math.cos(e/2),r=Math.cos(i/2),a=Math.cos(t/2),e=Math.sin(e/2),i=Math.sin(i/2),t=Math.sin(t/2);return[e*i*a+s*r*t,e*r*a+s*i*t,s*i*a-e*r*t,s*r*a-e*i*t]}function Dm(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==xm&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function Em(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<ym(this.v-e)&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,1e-5<ym(this.v[i]-e)&&(this.v[i]=e,this._mdf=!0),i+=1}function Fm(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Gm(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function Hm(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Fm,this.setVValue=Em,this.addEffect=Gm}function Im(t,e,i,s){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),createTypedArray("float32",a),this.vel=createTypedArray("float32",a),r=0;r<a;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Fm,this.setVValue=Em,this.addEffect=Gm}function Jm(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:xm,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=xm,this.pv=xm,this._isFirstFrame=!0,this.getValue=Fm,this.setVValue=Em,this.interpolateValue=zm,this.effectsSequence=[Dm.bind(this)],this.addEffect=Gm}function Km(t,e,i,s){this.propType="multidimensional";for(var r,a,n,o,l=e.k.length,h=0;h<l-1;h+=1)e.k[h].to&&e.k[h].s&&e.k[h+1]&&e.k[h+1].s&&(r=e.k[h].s,a=e.k[h+1].s,n=e.k[h].to,o=e.k[h].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&bez.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+n[0],r[1]+n[1])&&bez.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&bez.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+n[0],r[1]+n[1],r[2]+n[2])&&bez.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[h].to=null,e.k[h].ti=null),r[0]===a[0])&&r[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===r.length||r[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[h].to=null,e.k[h].ti=null);this.effectsSequence=[Dm.bind(this)],this.keyframes=e.k,this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=Fm,this.setVValue=Em,this.interpolateValue=zm,this.frameId=-1;var p=e.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),h=0;h<p;h+=1)this.v[h]=xm,this.pv[h]=xm;this._caching={lastFrame:xm,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=Gm}var TransformPropertyFactory=(Yo=[0,0],cp.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,i,s,r;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&(t=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?i=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/t,0),this.p.getValueAtTime(this.p.keyframes[0].t/t,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],s=this.px,r=this.py,s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(e[0]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),e[1]=r.getValueAtTime((r.keyframes[0].t+.01)/t,0),i[0]=s.getValueAtTime(s.keyframes[0].t/t,0),i[1]=r.getValueAtTime(r.keyframes[0].t/t,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(e[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),e[1]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/t,0),i[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0),i[1]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/t,0)):(e=[s.pv,r.pv],i[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime),i[1]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/t,r.offsetTime))):e=i=Yo,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],cp),cp.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},cp.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new cp(t,e,i)}}),Yo;function cp(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var s=e.or.k.length,r=0;r<s;r+=1)e.or.k[r].to=e.or.k[r].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=point_pool.newElement(),this.o[i]=point_pool.newElement(),this.i[i]=point_pool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,s,r){var a;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}a[s]&&(!a[s]||r)||(a[s]=point_pool.newElement()),a[s][0]=t,a[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,r,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,s,"o",n,o),this.setXYAt(r,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath,e=(t.setPathData(this.c,this._length),this.v),i=this.o,s=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),r=1);for(var a=this._length-1,n=this._length,o=r;o<n;o+=1)t.setTripleAt(e[a][0],e[a][1],s[a][0],s[a][1],i[a][0],i[a][1],o,!1),--a;return t};var ShapePropertyFactory=(()=>{var r=-999999;function t(t,e,i){var s,r,a,n,o,l,h,p=i.lastIndex,c=this.keyframes;if(t<c[0].t-this.offsetTime)s=c[0].s[0],r=!0,p=0;else if(t>=c[c.length-1].t-this.offsetTime)s=(c[c.length-1].s?c[c.length-1].s:c[c.length-2].e)[0],r=!0;else{for(var d,f,u,m,g,y=p,v=c.length-1,b=!0;b&&(d=c[y],!((f=c[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;p=y,(r=1===d.h)||(m=t>=f.t-this.offsetTime?1:t<d.t-this.offsetTime?0:(d.__fnct?u=d.__fnct:(u=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=u),u((t-(d.t-this.offsetTime))/(f.t-this.offsetTime-(d.t-this.offsetTime)))),g=(f.s||d.e)[0]),s=d.s[0]}for(o=e._length,l=s.i[0].length,i.lastIndex=p,a=0;a<o;a+=1)for(n=0;n<l;n+=1)h=r?s.i[a][n]:s.i[a][n]+(g.i[a][n]-s.i[a][n])*m,e.i[a][n]=h,h=r?s.o[a][n]:s.o[a][n]+(g.o[a][n]-s.o[a][n])*m,e.o[a][n]=h,h=r?s.v[a][n]:s.v[a][n]+(g.v[a][n]-s.v[a][n])*m,e.v[a][n]=h}function s(){this.paths=this.localShapeCollection}function e(t){((t,e)=>{if(t._length===e._length&&t.c===e.c){for(var i=t._length,s=0;s<i;s+=1)if(t.v[s][0]!==e.v[s][0]||t.v[s][1]!==e.v[s][1]||t.o[s][0]!==e.o[s][0]||t.o[s][1]!==e.o[s][1]||t.i[s][0]!==e.i[s][0]||t.i[s][1]!==e.i[s][1])return;return 1}})(this.v,t)||(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;for(var t=this.kf?this.pv:(this.data.ks||this.data.pt).k,e=this.effectsSequence.length,i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;t=(3===i?e.pt:e.ks).k;this.v=shape_pool.clone(t),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===i?e.pt:e.ks).k,this.k=!0,this.kf=!0;t=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length,this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,t),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=s,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;return s!==r&&(s<e&&t<e||i<s&&i<t)||(this._caching.lastIndex=s<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=e,a.prototype.addEffect=n,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=n,l=roundCorner,p.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertEllToPath()},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-s,a.v[1][0]=r?t+i:t-i,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+s,a.v[3][0]=r?t-i:t+i,a.v[3][1]=e,a.i[0][0]=r?t-i*l:t+i*l,a.i[0][1]=e-s,a.i[1][0]=r?t+i:t-i,a.i[1][1]=e-s*l,a.i[2][0]=r?t+i*l:t-i*l,a.i[2][1]=e+s,a.i[3][0]=r?t-i:t+i,a.i[3][1]=e+s*l,a.o[0][0]=r?t+i*l:t-i*l,a.o[0][1]=e-s,a.o[1][0]=r?t+i:t-i,a.o[1][1]=e+s*l,a.o[2][0]=r?t-i*l:t+i*l,a.o[2][1]=e+s,a.o[3][0]=r?t-i:t+i,a.o[3][1]=e-s*l}},extendPrototype([DynamicPropertyContainer],p);var l,h=p;function p(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}d.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertToPath()},convertStarToPath:function(){var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,s=this.or.v,r=this.ir.v,a=this.os.v,n=this.is.v,o=2*Math.PI*s/(2*t),l=2*Math.PI*r/(2*t),h=-Math.PI/2;h+=this.r.v;for(var p=3===this.data.d?-1:1,c=this.v._length=0;c<t;c+=1){var d=i?a:n,f=i?o:l,u=(m=i?s:r)*Math.cos(h),m=m*Math.sin(h),g=0==u&&0==m?0:m/Math.sqrt(u*u+m*m),y=0==u&&0==m?0:-u/Math.sqrt(u*u+m*m);u+=+this.p.v[0],m+=+this.p.v[1],this.v.setTripleAt(u,m,u-g*f*d*p,m-y*f*d*p,u+g*f*d*p,m+y*f*d*p,c,!0),i=!i,h+=e*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,r=this.os.v,a=2*Math.PI*s/(4*e),n=-Math.PI/2,o=3===this.data.d?-1:1;for(n+=this.r.v,t=this.v._length=0;t<e;t+=1){var l=s*Math.cos(n),h=s*Math.sin(n),p=0==l&&0==h?0:h/Math.sqrt(l*l+h*h),c=0==l&&0==h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-p*a*r*o,h-c*a*r*o,l+p*a*r*o,h+c*a*r*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],d);var c=d;function d(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}u.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=bm_min(i,s,this.r.v),a=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+r,t+i,e-s+a,0,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-a,t+i,e+s-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+s,t+i-r,e+s,t+i-a,e+s,2,!0),this.v.setTripleAt(t-i+r,e+s,t-i+a,e+s,t-i+r,e+s,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-r,t-i,e+s-a,4,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+a,t-i,e-s+r,5,!0),this.v.setTripleAt(t-i+r,e-s,t-i+r,e-s,t-i+a,e-s,6,!0),this.v.setTripleAt(t+i-r,e-s,t+i-a,e-s,t+i-r,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+a,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+a,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+a,t+i,e-s+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-s,t+i-r,e-s,t+i-a,e-s,1,!0),this.v.setTripleAt(t-i+r,e-s,t-i+a,e-s,t-i+r,e-s,2,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+r,t-i,e-s+a,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-a,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i+r,e+s,t-i+r,e+s,t-i+a,e+s,5,!0),this.v.setTripleAt(t+i-r,e+s,t+i-a,e+s,t+i-r,e+s,6,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-r,t+i,e+s-a,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+a,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-a,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-a,e+s,t+i,e+s,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertRectToPath()},reset:s},extendPrototype([DynamicPropertyContainer],u);var f=u;function u(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return{getShapeProp:function(t,e,i){var s;return 3===i||4===i?s=new((3===i?e.pt:e.ks).k.length?o:a)(t,e,i):5===i?s=new f(t,e):6===i?s=new h(t,e):7===i&&(s=new c(t,e)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}}})(),ShapeModifiers=(fs={},gs={},fs.registerModifier=function(t,e){gs[t]||(gs[t]=e)},fs.getModifier=function(t,e,i){return new gs[t](e,i)},fs),fs,gs;function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);for(var r,a=e.length||0,n=0;n<a;n+=1)r=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=r.k||this.k,this.dataProps[n]={n:e[n].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){var e;this.closed||(t.sh.container.addDynamicProperty(t.sh),e={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()},this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated())},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,s,r){var a=[];e<=1?a.push({s:t,e:e}):1<=t?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));for(var n,o,l=[],h=a.length,p=0;p<h;p+=1)(o=a[p]).e*r<s||o.s*r>s+i||(n=o.s*r<=s?0:(o.s*r-s)/i,o=o.e*r>=s+i?1:(o.e*r-s)/i,l.push([n,o]));return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)segments_length_pool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,s,r;this._mdf||t?((e=this.o.v%360/360)<0&&(e+=1),i=(1<this.s.v?1:this.s.v<0?0:this.s.v)+e,(s=(1<this.e.v?1:this.e.v<0?0:this.e.v)+e)<i&&(e=i,i=s,s=e),i=1e-4*Math.round(1e4*i),s=1e-4*Math.round(1e4*s),this.sValue=i,this.eValue=s):(i=this.sValue,s=this.eValue);var a,n,o,l,h,p=this.shapes.length,c=0;if(s===i)for(m=0;m<p;m+=1)this.shapes[m].localShapeCollection.releaseShapes(),this.shapes[m].shape._mdf=!0,this.shapes[m].shape.paths=this.shapes[m].localShapeCollection;else if(1===s&&0===i||0===s&&1===i){if(this._mdf)for(m=0;m<p;m+=1)this.shapes[m].pathsData.length=0,this.shapes[m].shape._mdf=!0}else{for(var d,f,u=[],m=0;m<p;m+=1)if((d=this.shapes[m]).shape._mdf||this._mdf||t||2===this.m){if(n=(r=d.shape.paths)._length,h=0,!d.shape._mdf&&d.pathsData.length)h=d.totalShapeLength;else{for(o=this.releasePathsData(d.pathsData),a=0;a<n;a+=1)l=bez.getSegmentsLength(r.shapes[a]),o.push(l),h+=l.totalLength;d.totalShapeLength=h,d.pathsData=o}c+=h,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;for(var g,y=i,v=s,b=0,m=p-1;0<=m;--m)if((d=this.shapes[m]).shape._mdf){for((f=d.localShapeCollection).releaseShapes(),2===this.m&&1<p?(g=this.calculateShapeEdges(i,s,d.totalShapeLength,b,c),b+=d.totalShapeLength):g=[[y,v]],n=g.length,a=0;a<n;a+=1){y=g[a][0],v=g[a][1],u.length=0,v<=1?u.push({s:d.totalShapeLength*y,e:d.totalShapeLength*v}):1<=y?u.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(v-1)}):(u.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),u.push({s:0,e:d.totalShapeLength*(v-1)}));var S,w=this.addShapes(d,u[0]);u[0].s!==u[0].e&&(1<u.length&&(w=d.shape.paths.shapes[d.shape.paths._length-1].c?(S=w.pop(),this.addPaths(w,f),this.addShapes(d,u[1],S)):(this.addPaths(w,f),this.addShapes(d,u[1]))),this.addPaths(w,f))}d.shape.paths=f}}},TrimModifier.prototype.addPaths=function(t,e){for(var i=t.length,s=0;s<i;s+=1)e.addShape(t[s])},TrimModifier.prototype.addSegment=function(t,e,i,s,r,a,n){r.setXYAt(e[0],e[1],"o",a),r.setXYAt(i[0],i[1],"i",a+1),n&&r.setXYAt(t[0],t[1],"v",a),r.setXYAt(s[0],s[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var s,r,a,n,o,l,h,p,c=t.pathsData,d=t.shape.paths.shapes,f=t.shape.paths._length,u=0,m=[],g=!0,y=i?(n=i._length,i._length):(i=shape_pool.newElement(),n=0);for(m.push(i),s=0;s<f;s+=1){for(o=c[s].lengths,i.c=d[s].c,a=d[s].c?o.length:o.length+1,r=1;r<a;r+=1)if(u+(p=o[r-1]).addedLength<e.s)u+=p.addedLength,i.c=!1;else{if(u>e.e){i.c=!1;break}e.s<=u&&e.e>=u+p.addedLength?(this.addSegment(d[s].v[r-1],d[s].o[r-1],d[s].i[r],d[s].v[r],i,n,g),g=!1):(l=bez.getNewSegment(d[s].v[r-1],d[s].v[r],d[s].o[r-1],d[s].i[r],(e.s-u)/p.addedLength,(e.e-u)/p.addedLength,o[r-1]),this.addSegmentFromArray(l,i,n,g),i.c=g=!1),u+=p.addedLength,n+=1}if(d[s].c&&o.length&&(p=o[r-1],u<=e.e?(h=o[r-1].addedLength,e.s<=u&&e.e>=u+h?(this.addSegment(d[s].v[r-1],d[s].o[r-1],d[s].i[0],d[s].v[0],i,n,g),g=!1):(l=bez.getNewSegment(d[s].v[r-1],d[s].v[0],d[s].o[r-1],d[s].i[0],(e.s-u)/h,(e.e-u)/h,o[r-1]),this.addSegmentFromArray(l,i,n,g),i.c=g=!1)):i.c=!1,u+=p.addedLength,n+=1),i._length&&(i.setXYAt(i.v[y][0],i.v[y][1],"i",y),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),u>e.e)break;s<f-1&&(i=shape_pool.newElement(),g=!0,m.push(i),n=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i=shape_pool.newElement();i.c=t.c;for(var s,r,a,n,o,l,h,p,c,d,f=t._length,u=0,m=0;m<f;m+=1)s=t.v[m],a=t.o[m],r=t.i[m],s[0]===a[0]&&s[1]===a[1]&&s[0]===r[0]&&s[1]===r[1]?0!==m&&m!==f-1||t.c?(n=0===m?t.v[f-1]:t.v[m-1],l=(o=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(o/2,e)/o:0,c=s[0]+(n[0]-s[0])*l,d=s[1]-(s[1]-n[1])*l,h=c-(c-s[0])*roundCorner,p=d-(d-s[1])*roundCorner,i.setTripleAt(c,d,h,p,c,d,u),u+=1,n=m===f-1?t.v[0]:t.v[m+1],l=(o=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(o/2,e)/o:0,h=s[0]+(n[0]-s[0])*l,p=s[1]+(n[1]-s[1])*l,c=h-(h-s[0])*roundCorner,d=p-(p-s[1])*roundCorner,i.setTripleAt(h,p,h,p,c,d,u)):i.setTripleAt(s[0],s[1],a[0],a[1],r[0],r[1],u):i.setTripleAt(t.v[m][0],t.v[m][1],t.o[m][0],t.o[m][1],t.i[m][0],t.i[m][1],u),u+=1;return i},RoundCornersModifier.prototype.processShapes=function(t){var e,i,s,r=this.shapes.length,a=this.rd.v;if(0!==a)for(var n,o,l=0;l<r;l+=1){if((n=this.shapes[l]).shape.paths,o=n.localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,s=n.shape.paths._length,i=0;i<s;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,s,r,a){var n=a?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),l=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*n*r,s.p.v[1]*n*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*n*r),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(a?1/o:o,a?1/l:l),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);0<i;)this._elements.unshift(e[--i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){t.length;t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(t,e){for(var i=t.length,s=0;s<i;s+=1)t[s]._render=e,"gr"===t[s].ty&&this.changeGroupRender(t[s].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,s,r,a;if(this._mdf||t){var n,o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.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,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes()}for(s=a=0;s<=this._groups.length-1;s+=1)this._groups[s]._render=n=a<o,this.changeGroupRender(this._groups[s].it,n),a+=1;this._currentCopies=o;var t=this.o.v,h=t%1,p=0<t?Math.floor(t):Math.ceil(t),c=(this.tr.v.props,this.pMatrix.props),d=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u,m,g=0;if(0<t){for(;g<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),g+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),g+=h)}else if(t<0){for(;p<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--g;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),g-=h)}for(s=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,a=this._currentCopies;a;){if(m=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==g){for((0!==s&&1===r||s!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(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(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[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<m;u+=1)i[u]=this.matrix.props[u];this.matrix.reset()}else for(this.matrix.reset(),u=0;u<m;u+=1)i[u]=this.matrix.props[u];g+=1,--a,s+=r}}else for(a=this._currentCopies,s=0,r=1;a;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,--a,s+=r},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){for(var e,i,s=4*this.data.p,r=0;r<s;r+=1)e=r%4==0?100:255,i=Math.round(this.prop.v[r]*e),this.c[r]!==i&&(this.c[r]=i,this._cmdf=!t);if(this.o.length)for(s=this.prop.v.length,r=4*this.data.p;r<s;r+=1)e=r%2==0?100:1,i=r%2==0?Math.round(100*this.prop.v[r]):this.prop.v[r],this.o[r-4*this.data.p]!==i&&(this.o[r-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);
1var buildShapeString=function(t,e,i,s){if(0===e)return"";for(var r=t.o,a=t.i,n=t.v,o=" M"+s.applyToPointStringified(n[0][0],n[0][1]),l=1;l<e;l+=1)o+=" C"+s.applyToPointStringified(r[l-1][0],r[l-1][1])+" "+s.applyToPointStringified(a[l][0],a[l][1])+" "+s.applyToPointStringified(n[l][0],n[l][1]);return o=i&&e?o+(" C"+s.applyToPointStringified(r[l-1][0],r[l-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(n[0][0],n[0][1]))+"z":o},ImagePreloader=(Wv=(()=>{var t=createTag("canvas"),e=(t.width=1,t.height=1,t.getContext("2d"));return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t})(),gw.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;for(var i=t.length,s=0;s<i;s+=1)t[s].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[s])))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loaded:function(){return this.totalImages===this.loadedAssets},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getImage:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}},createImgData:function(t){var e=Yv(t,this.assetsPath,this.path),i=createTag("img"),s=(i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=Wv,this._imageLoaded()}.bind(this),!1),i.src=e,{img:i,assetData:t});return s},createImageData:function(t){var e=Yv(t,this.assetsPath,this.path),i=createNS("image"),s=(i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=Wv,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),{img:i,assetData:t});return s},imageLoaded:Xv,setCacheType:function(t){this._createImageData=("svg"===t?this.createImageData:this.createImgData).bind(this)}},gw),Wv;function Xv(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function Yv(t,e,i){var s="";return t.e?s=t.p:e?s=e+(e=-1!==(e=t.p).indexOf("images/")?e.split("/")[1]:e):(s=i,s=(s+=t.u||"")+t.p),s}function gw(t){this._imageLoaded=Xv.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}var featureSupport=(Hw={maskType:!0},(/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))&&(Hw.maskType=!1),Hw),Hw,filtersFactory=(Iw={},Iw.createFilter=function(t){var e=createNS("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},Iw.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},Iw),Iw,assetLoader={load:function(t,e,i){var s,r=new XMLHttpRequest;r.open("GET",t,!0);try{r.responseType="json"}catch(t){}r.send(),r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status)s=Ow(r),e(s);else try{s=Ow(r),e(s)}catch(t){i&&i(t)}}}};function Ow(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function TextAnimatorDataProperty(t,e,i){var s={propType:!1},r=PropertyFactory.getProp,a=e.a;this.a={r:a.r?r(t,a.r,0,degToRads,i):s,rx:a.rx?r(t,a.rx,0,degToRads,i):s,ry:a.ry?r(t,a.ry,0,degToRads,i):s,sk:a.sk?r(t,a.sk,0,degToRads,i):s,sa:a.sa?r(t,a.sa,0,degToRads,i):s,s:a.s?r(t,a.s,1,.01,i):s,a:a.a?r(t,a.a,1,0,i):s,o:a.o?r(t,a.o,0,.01,i):s,p:a.p?r(t,a.p,1,0,i):s,sw:a.sw?r(t,a.sw,0,0,i):s,sc:a.sc?r(t,a.sc,1,0,i):s,fc:a.fc?r(t,a.fc,1,0,i):s,fh:a.fh?r(t,a.fh,0,0,i):s,fs:a.fs?r(t,a.fs,0,.01,i):s,fb:a.fb?r(t,a.fb,0,.01,i):s,t:a.t?r(t,a.t,0,0,i):s},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}
vendor: 15,227 bytes, line 1
1function LetterProps(t,e,i,s,r,a){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=r,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){for(var t,e=this._textData.a.length,i=PropertyFactory.getProp,s=0;s<e;s+=1)t=this._textData.a[s],this._animatorsData[s]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,R){if(this.lettersChangedFlag=R,this._mdf||this._isFirstFrame||R||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,i,s,r,O,a,n,o,l,h,$,p,N,c,d=this._moreOptions.alignment.v,f=this._animatorsData,u=this._textData,m=this.mHelper,z=this._renderType,G=this.renderedLetters.length,g=(this.data,t.l);if(this._hasMaskedPath){if(c=this._pathData.m,!this._pathData.n||this._pathData._mdf){for(var y,v=c.v,b={tLength:0,segments:[]},S=(v=this._pathData.r?v.reverse():v)._length-1,w=p=0;w<S;w+=1)y=bez.buildBezierData(v.v[w],v.v[w+1],[v.o[w][0]-v.v[w][0],v.o[w][1]-v.v[w][1]],[v.i[w+1][0]-v.v[w+1][0],v.i[w+1][1]-v.v[w+1][1]]),b.tLength+=y.segmentLength,b.segments.push(y),p+=y.segmentLength;w=S,c.v.c&&(y=bez.buildBezierData(v.v[w],v.v[0],[v.o[w][0]-v.v[w][0],v.o[w][1]-v.v[w][1]],[v.i[0][0]-v.v[0][0],v.i[0][1]-v.v[0][1]]),b.tLength+=y.segmentLength,b.segments.push(y),p+=y.segmentLength),this._pathData.pi=b}if(b=this._pathData.pi,i=this._pathData.f.v,a=1,O=!(r=n=0),h=b.segments,i<0&&c.v.c)for(b.tLength<Math.abs(i)&&(i=-Math.abs(i)%b.tLength),a=(l=h[n=h.length-1].points).length-1;i<0;)i+=l[a].partialLength,--a<0&&(a=(l=h[--n].points).length-1);o=(l=h[n].points)[a-1],$=(s=l[a]).partialLength}S=g.length;var k,B,E,T,q,H,x,A,P,_,M,j,W,U,X,C,Y=e=0,Z=1.2*t.finalSize*.714,K=!0,D=f.length,J=-1,Q=i,tt=n,et=a,it=-1,st="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){for(var I=0,at=0,nt=2===t.j?-.5:-1,F=0,ot=!0,w=0;w<S;w+=1)if(g[w].n){for(I&&(I+=at);F<w;)g[F].animatorJustifyOffset=I,F+=1;ot=!(I=0)}else{for(V=0;V<D;V+=1)(k=f[V].a).t.propType&&(ot&&2===t.j&&(at+=k.t.v*nt),(E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars)).length?I+=k.t.v*E[0]*nt:I+=k.t.v*E*nt);ot=!1}for(I&&(I+=at);F<w;)g[F].animatorJustifyOffset=I,F+=1}for(w=0;w<S;w+=1){if(m.reset(),x=1,g[w].n)e=0,Y=Y+t.yOffset+(K?1:0),i=Q,K=!1,this._hasMaskedPath&&(o=(l=h[n=tt].points)[(a=et)-1],$=(s=l[a]).partialLength,r=0),X=j=U=st="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==g[w].line){switch(t.j){case 1:i+=p-t.lineWidths[g[w].line];break;case 2:i+=(p-t.lineWidths[g[w].line])/2}it=g[w].line}J!==g[w].ind&&(g[J]&&(i+=g[J].extra),i+=g[w].an/2,J=g[w].ind),i+=d[0]*g[w].an/200;for(var L=0,V=0;V<D;V+=1)(k=f[V].a).p.propType&&((E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars)).length?L+=k.p.v[0]*E[0]:L+=k.p.v[0]*E),k.a.propType&&((E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars)).length?L+=k.a.v[0]*E[0]:L+=k.a.v[0]*E);for(O=!0;O;)i+L<=r+$||!l?(N=(i+L-r)/s.partialLength,q=o.point[0]+(s.point[0]-o.point[0])*N,H=o.point[1]+(s.point[1]-o.point[1])*N,m.translate(-d[0]*g[w].an/200,-d[1]*Z/100),O=!1):l&&(r+=s.partialLength,(a+=1)>=l.length&&(a=0,l=h[n+=1]?h[n].points:c.v.c?h[n=a=0].points:(r-=s.partialLength,null)),l)&&(o=s,$=(s=l[a]).partialLength);T=g[w].an/2-g[w].add,m.translate(-T,0,0)}else T=g[w].an/2-g[w].add,m.translate(-T,0,0),m.translate(-d[0]*g[w].an/200,-d[1]*Z/100,0);for(g[w].l,V=0;V<D;V+=1)(k=f[V].a).t.propType&&(E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars),0===e&&0===t.j||(this._hasMaskedPath?E.length?i+=k.t.v*E[0]:i+=k.t.v*E:E.length?e+=k.t.v*E[0]:e+=k.t.v*E));for(g[w].l,t.strokeWidthAnim&&(P=t.sw||0),t.strokeColorAnim&&(A=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(_=[t.fc[0],t.fc[1],t.fc[2]]),V=0;V<D;V+=1)(k=f[V].a).a.propType&&((E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars)).length?m.translate(-k.a.v[0]*E[0],-k.a.v[1]*E[1],k.a.v[2]*E[2]):m.translate(-k.a.v[0]*E,-k.a.v[1]*E,k.a.v[2]*E));for(V=0;V<D;V+=1)(k=f[V].a).s.propType&&((E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars)).length?m.scale(1+(k.s.v[0]-1)*E[0],1+(k.s.v[1]-1)*E[1],1):m.scale(1+(k.s.v[0]-1)*E,1+(k.s.v[1]-1)*E,1));for(V=0;V<D;V+=1){if(k=f[V].a,E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars),k.sk.propType&&(E.length?m.skewFromAxis(-k.sk.v*E[0],k.sa.v*E[1]):m.skewFromAxis(-k.sk.v*E,k.sa.v*E)),k.r.propType&&(E.length?m.rotateZ(-k.r.v*E[2]):m.rotateZ(-k.r.v*E)),k.ry.propType&&(E.length?m.rotateY(k.ry.v*E[1]):m.rotateY(k.ry.v*E)),k.rx.propType&&(E.length?m.rotateX(k.rx.v*E[0]):m.rotateX(k.rx.v*E)),k.o.propType&&(E.length?x+=(k.o.v*E[0]-x)*E[0]:x+=(k.o.v*E-x)*E),t.strokeWidthAnim&&k.sw.propType&&(E.length?P+=k.sw.v*E[0]:P+=k.sw.v*E),t.strokeColorAnim&&k.sc.propType)for(M=0;M<3;M+=1)E.length?A[M]=A[M]+(k.sc.v[M]-A[M])*E[0]:A[M]=A[M]+(k.sc.v[M]-A[M])*E;if(t.fillColorAnim&&t.fc){if(k.fc.propType)for(M=0;M<3;M+=1)E.length?_[M]=_[M]+(k.fc.v[M]-_[M])*E[0]:_[M]=_[M]+(k.fc.v[M]-_[M])*E;k.fh.propType&&(_=E.length?addHueToRGB(_,k.fh.v*E[0]):addHueToRGB(_,k.fh.v*E)),k.fs.propType&&(_=E.length?addSaturationToRGB(_,k.fs.v*E[0]):addSaturationToRGB(_,k.fs.v*E)),k.fb.propType&&(_=E.length?addBrightnessToRGB(_,k.fb.v*E[0]):addBrightnessToRGB(_,k.fb.v*E))}}for(V=0;V<D;V+=1)(k=f[V].a).p.propType&&(E=f[V].s.getMult(g[w].anIndexes[V],u.a[V].s.totalChars),this._hasMaskedPath?E.length?m.translate(0,k.p.v[1]*E[0],-k.p.v[2]*E[1]):m.translate(0,k.p.v[1]*E,-k.p.v[2]*E):E.length?m.translate(k.p.v[0]*E[0],k.p.v[1]*E[1],-k.p.v[2]*E[2]):m.translate(k.p.v[0]*E,k.p.v[1]*E,-k.p.v[2]*E));if(t.strokeWidthAnim&&(j=P<0?0:P),t.strokeColorAnim&&(W="rgb("+Math.round(255*A[0])+","+Math.round(255*A[1])+","+Math.round(255*A[2])+")"),t.fillColorAnim&&t.fc&&(U="rgb("+Math.round(255*_[0])+","+Math.round(255*_[1])+","+Math.round(255*_[2])+")"),this._hasMaskedPath)m.translate(0,-t.ls),m.translate(0,d[1]*Z/100+Y,0),u.p.p&&(C=(s.point[1]-o.point[1])/(s.point[0]-o.point[0]),C=180*Math.atan(C)/Math.PI,s.point[0]<o.point[0]&&(C+=180),m.rotate(-C*Math.PI/180)),m.translate(q,H,0),i-=d[0]*g[w].an/200,g[w+1]&&J!==g[w+1].ind&&(i=(i+=g[w].an/2)+t.tr/1e3*t.finalSize);else{switch(m.translate(e,Y,0),t.ps&&m.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:m.translate(g[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[g[w].line]),0,0);break;case 2:m.translate(g[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[g[w].line])/2,0,0)}m.translate(0,-t.ls),m.translate(T,0,0),m.translate(d[0]*g[w].an/200,d[1]*Z/100,0),e+=g[w].l+t.tr/1e3*t.finalSize}"html"===z?st=m.toCSS():"svg"===z?st=m.to2dCSS():rt=[m.props[0],m.props[1],m.props[2],m.props[3],m.props[4],m.props[5],m.props[6],m.props[7],m.props[8],m.props[9],m.props[10],m.props[11],m.props[12],m.props[13],m.props[14],m.props[15]],X=x}G<=w?(B=new LetterProps(X,j,W,U,st,rt),this.renderedLetters.push(B),G+=1,this.lettersChangedFlag=!0):(B=this.renderedLetters[w],this.lettersChangedFlag=B.update(X,j,W,U,st,rt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,i,s,r,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var n=this._mdf.p=!1;return this.o!==t&&(this.o=t,n=this._mdf.o=!0),this.sw!==e&&(this.sw=e,n=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,n=this._mdf.sc=!0),this.fc!==s&&(this.fc=s,n=this._mdf.fc=!0),this.m!==r&&(this.m=r,n=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,n=this._mdf.p=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;for(var s=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s,a=0;a<s;a+=1)r=i!==this.keysIndex?this.effectsSequence[a](r,r.t):this.effectsSequence[a](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&(t[i].s,!(i===s-1||t[i+1].t>e));)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i=FontManager.getCombinedCharacterCodes(),s=[],r=0,a=t.length;r<a;)e=t.charCodeAt(r),-1!==i.indexOf(e)?s[s.length-1]+=t.charAt(r):55296<=e&&e<=56319&&56320<=(e=t.charCodeAt(r+1))&&e<=57343?(s.push(t.substr(r,2)),++r):s.push(t.charAt(r)),r+=1;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;for(var e,i,s,r=this.elem.globalData.fontManager,a=this.data,n=[],o=0,l=a.m.g,h=0,p=0,c=0,d=[],f=0,u=0,m=r.getFontByName(t.f),g=0,y=m.fStyle?m.fStyle.split(" "):[],v="normal",b="normal",S=y.length,w=0;w<S;w+=1)switch(y[w].toLowerCase()){case"italic":b="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200"}t.fWeight=m.fWeight||v,t.fStyle=b,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),S=t.finalText.length,t.finalLineHeight=t.lh;var k,E=t.tr/1e3*t.finalSize;if(t.sz)for(var T,x,A=!0,R=t.sz[0],O=t.sz[1];A;){for(var f=T=0,S=(x=this.buildFinalText(t.t)).length,E=t.tr/1e3*t.finalSize,P=-1,w=0;w<S;w+=1)k=x[w].charCodeAt(0),e=!1," "===x[w]?P=w:13!==k&&3!==k||(e=!(f=0),T+=t.finalLineHeight||1.2*t.finalSize),R<f+(g=r.chars?(s=r.getCharData(x[w],m.fStyle,m.fFamily),e?0:s.w*t.finalSize/100):r.measureText(x[w],t.f,t.finalSize))&&" "!==x[w]?(-1===P?S+=1:w=P,T+=t.finalLineHeight||1.2*t.finalSize,x.splice(w,P===w?1:0,"\r"),P=-1,f=0):f=f+g+E;T+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&O<T?(--t.finalSize,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=x,S=t.finalText.length,A=!1)}f=-E;var _,M=g=0;for(w=0;w<S;w+=1)if(e=!1,13===(k=(_=t.finalText[w]).charCodeAt(0))||3===k?(M=0,d.push(f),u=u<f?f:u,f=-2*E,e=!(i=""),c+=1):i=_,g=r.chars?(s=r.getCharData(_,m.fStyle,r.getFontByName(t.f).fFamily),e?0:s.w*t.finalSize/100):r.measureText(i,t.f,t.finalSize)," "===_?M+=g+E:(f+=g+E+M,M=0),n.push({l:g,an:g,add:h,n:e,anIndexes:[],val:i,line:c,animatorJustifyOffset:0}),2==l){if(h+=g,""===i||" "===i||w===S-1){for(""!==i&&" "!==i||(h-=g);p<=w;)n[p].an=h,n[p].ind=o,n[p].extra=g,p+=1;o+=1,h=0}}else if(3==l){if(h+=g,""===i||w===S-1){for(""===i&&(h-=g);p<=w;)n[p].an=h,n[p].ind=o,n[p].extra=g,p+=1;h=0,o+=1}}else n[o].ind=o,n[o].extra=0,o+=1;if(t.l=n,u=u<f?f:u,d.push(f),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=u,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=d;for(var C,D,I,F,$=a.a,N=$.length,L=[],V=0;V<N;V+=1){for((C=$[V]).a.sc&&(t.strokeColorAnim=!0),C.a.sw&&(t.strokeWidthAnim=!0),(C.a.fc||C.a.fh||C.a.fs||C.a.fb)&&(t.fillColorAnim=!0),I=C.s.b,w=F=0;w<S;w+=1)(D=n[w]).anIndexes[V]=F,(1==I&&""!==D.val||2==I&&""!==D.val&&" "!==D.val||3==I&&(D.n||" "==D.val||w==S-1)||4==I&&(D.n||w==S-1))&&(1===C.s.rn&&L.push(F),F+=1);a.a[V].s.totalChars=F;var z,G=-1;if(1===C.s.rn)for(w=0;w<S;w+=1)G!=(D=n[w]).anIndexes[V]&&(G=D.anIndexes[V],z=L.splice(Math.floor(Math.random()*L.length),1)[0]),D.anIndexes[V]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=m.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s),i=this.copyData(i,t);this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){t=this.data.d.k[t].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(cA=Math.max,dA=Math.min,eA=Math.floor,fA.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e=0,i=0,s=1,r=1;0<this.ne.v?e=this.ne.v/100:i=-this.ne.v/100,0<this.xe.v?s=1-this.xe.v/100:r=1+this.xe.v/100;var a,n,e=BezierFactory.getBezierEasing(e,i,s,r).get,i=0,s=this.finalS,r=this.finalE,o=this.data.sh;return(i=2===o?e(i=r===s?r<=t?1:0:cA(0,dA(.5/(r-s)+(t-s)/(r-s),1))):3===o?e(i=r===s?r<=t?0:1:1-cA(0,dA(.5/(r-s)+(t-s)/(r-s),1))):4===o?(r===s?i=0:(i=cA(0,dA(.5/(r-s)+(t-s)/(r-s),1)))<.5?i*=2:i=1-2*(i-.5),e(i)):5===o?e(i=r===s?0:(a=-(n=r-s)/2+(t=dA(cA(0,t+.5-s),r-s)),n=n/2,Math.sqrt(1-a*a/(n*n)))):6===o?e(i=r===s?0:(t=dA(cA(0,t+.5-s),r-s),(1+Math.cos(Math.PI+2*Math.PI*t/(r-s)))/2)):e(i=t>=eA(s)?cA(0,dA(t-s<0?dA(r,1)-(s-t):r-t,1)):i))*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t
1=this.e.v/t+e;t<i&&(e=i,i=t,t=e),this.finalS=i,this.finalE=t}},extendPrototype([DynamicPropertyContainer],fA),{getTextSelectorProp:function(t,e,i){return new fA(t,e)}}),cA,dA,eA;function fA(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}var pool_factory=function(t,e,i,s){var r=0,a=t,n=createSizedArray(a);return{newElement:function(){return r?n[--r]:e()},release:function(t){r===a&&(n=pooling.double(n),a*=2),i&&i(t),n[r]=t,r+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},point_pool=pool_factory(8,function(){return createTypedArray("float32",2)}),shape_pool=(ZA=pool_factory(4,function(){return new ShapePath},function(t){for(var e=t._length,i=0;i<e;i+=1)point_pool.release(t.v[i]),point_pool.release(t.i[i]),point_pool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1}),ZA.clone=function(t){var e,i=ZA.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},ZA),ZA,shapeCollection_pool=(gB={newShapeCollection:function(){return hB?jB[--hB]:new ShapeCollection},release:function(t){for(var e=t._length,i=0;i<e;i+=1)shape_pool.release(t.shapes[i]);t._length=0,hB===iB&&(jB=pooling.double(jB),iB*=2),jB[hB]=t,hB+=1}},hB=0,iB=4,jB=createSizedArray(iB),gB),gB,hB,iB,jB,segments_length_pool=pool_factory(8,function(){return{lengths:[],totalLength:0}},function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)bezier_length_pool.release(t.lengths[i]);t.lengths.length=0}),bezier_length_pool=pool_factory(8,function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}});function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var t="",i=(e&&e.title&&(i=createNS("title"),s=createElementID(),i.setAttribute("id",s),i.textContent=e.title,this.svgElement.appendChild(i),t+=s),e&&e.description&&(i=createNS("desc"),s=createElementID(),i.setAttribute("id",s),i.textContent=e.description,this.svgElement.appendChild(i),t+=" "+s),t&&this.svgElement.setAttribute("aria-labelledby",t),createNS("defs")),s=(this.svgElement.appendChild(i),createNS("g"));this.svgElement.appendChild(s),this.layerElement=s,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:i,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath="";for(var a,n,o,l,h,p=this.masksProperties,c=0,d=[],f=createElementID(),u="clipPath",m="clip-path",g=0;g<r;g++)if(("a"!==p[g].mode&&"n"!==p[g].mode||p[g].inv||100!==p[g].o.k||p[g].o.x)&&(m=u="mask"),"s"!=p[g].mode&&"i"!=p[g].mode||0!==c?n=null:((n=createNS("rect")).setAttribute("fill","#ffffff"),n.setAttribute("width",this.element.comp.data.w||0),n.setAttribute("height",this.element.comp.data.h||0),d.push(n)),a=createNS("path"),"n"!=p[g].mode){if(c+=1,a.setAttribute("fill","s"===p[g].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==p[g].x.k?(m=u="mask",l=PropertyFactory.getProp(this.element,p[g].x,0,null,this.element),h=createElementID(),(S=createNS("filter")).setAttribute("id",h),(o=createNS("feMorphology")).setAttribute("operator","erode"),o.setAttribute("in","SourceGraphic"),o.setAttribute("radius","0"),S.appendChild(o),s.appendChild(S),a.setAttribute("stroke","s"===p[g].mode?"#000000":"#ffffff")):l=o=null,this.storedData[g]={elem:a,x:l,expan:o,lastPath:"",lastOperator:"",filterId:h,lastRadius:0},"i"==p[g].mode){for(var y=d.length,v=createNS("g"),b=0;b<y;b+=1)v.appendChild(d[b]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",f+"_"+c),S.appendChild(a),s.appendChild(S),v.setAttribute("mask","url("+locationHref+"#"+f+"_"+c+")"),d.length=0,d.push(v)}else d.push(a);p[g].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[g]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,p[g].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[g],3),invRect:n},this.viewData[g].prop.k||this.drawPath(p[g],this.viewData[g].prop.v,this.viewData[g])}else this.viewData[g]={op:PropertyFactory.getProp(this.element,p[g].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[g],3),elem:a,lastPath:""},s.appendChild(a);for(this.maskElement=createNS(u),r=d.length,g=0;g<r;g+=1)this.maskElement.appendChild(d[g]);0<c&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(m,"url("+locationHref+"#"+f+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}
vendor: 5,388 bytes, line 1
1function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,r=t.length;s<r;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;0<=e;e--)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,s=this.layers.length,r=0;r<i;r+=1)for(e=0;e<s;){if(this.layers[e].id==t[r].id){this.layers[e]=t[r];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,r=this.layers,a=0,n=r.length;a<n;)r[a].ind==e&&(s[a]&&!0!==s[a]?(i.push(s[a]),s[a].setAsParent(),void 0!==r[a].parent?this.buildElementParenting(t,r[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s])).initExpressions(),this.globalData.projectInterface.registerComposition(e))},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
10,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs,i=(this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t,createNS("clipPath")),s=createNS("rect"),r=(s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0),createElementID());i.setAttribute("id",r),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e++)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99==this.layers[t].ty||(i[t]=!0,e=this.createItem(this.layers[t]),i[t]=e,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e))))},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement()&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){for(var e,i=this.element.finalTransform.mat,s=this.masksProperties.length,r=0;r<s;r++)(this.viewData[r].prop._mdf||t)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||t)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),"n"!==this.masksProperties[r].mode&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[r].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[r].x)&&(this.storedData[r].x._mdf||t)&&(e=this.storedData[r].expan,this.storedData[r].x.v<0?("erode"!==this.storedData[r].lastOperator&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[r].filterId+")")),e.setAttribute("radius",-this.storedData[r].x.v)):("dilate"!==this.storedData[r].lastOperator&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",2*this.storedData[r].x.v)))},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return(t=(t=(t+=" h"+this.globalData.compSize.w)+(" v"+this.globalData.compSize.h))+(" h-"+this.globalData.compSize.w))+(" v-"+this.globalData.compSize.h)+" "}
vendor: 5,293 bytes, line 1
1,MaskElement.prototype.drawPath=function(t,e,i){for(var s,r=" M"+e.v[0][0]+","+e.v[0][1],a=e._length,n=1;n<a;n+=1)r+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];e.c&&1<a&&(r+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r&&(s="",i.elem&&(e.c&&(s=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",s)),i.lastPath=r)},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){for(var i=this.dynamicProperties.length,s=0;s<i;s+=1)(e||this._isParent&&"transform"===this.dynamicProperties[s].propType)&&(this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf)&&(this.globalData._mdf=!0,this._mdf=!0)},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),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,e=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,e.cloneFromProps(t),i=0;i<s;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.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])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):i=!1;for(var r,a=e.length,n=0;n<a;n+=1)r=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,
1i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),s=createNS(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");for(var r,a=[],n=4*e.g.p,o=0;o<n;o+=4)r=createNS("stop"),s.appendChild(r),a.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+i+")"),this.gf=s,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s=createNS("mask"),r=createNS("path"),a=(s.appendChild(r),createElementID()),n=createElementID(),o=(s.setAttribute("id",n),createNS(1===t.t?"linearGradient":"radialGradient"));o.setAttribute("id",a),o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");for(var l=(t.g.k.k[0].s||t.g.k.k).length,h=this.stops,p=4*t.g.p;p<l;p+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),o.appendChild(i),h.push(i);r.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+a+")"),this.of=o,this.ms=s,this.ost=h,this.maskId=n,e.msElem=r}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=(JE=new Matrix,KE=new Matrix,{createRenderFunction:function(t){switch(t.ty,t.ty){case"fl":return PE;case"gf":return RE;case"gs":return QE;case"st":return SE;case"sh":case"el":case"rc":case"sr":return OE;case"tr":return NE}}}),JE,KE;function NE(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function OE(t,e,i){for(var s,r,a,n,o,l,h,p,c,d,f=e.styles.length,u=e.lvl,m=0;m<f;m+=1){if(n=e.sh._mdf||i,e.styles[m].lvl<u){for(h=KE.reset(),c=u-e.styles[m].lvl,d=e.transformers.length-1;!n&&0<c;)n=e.transformers[d].mProps._mdf||n,c--,d--;if(n)for(c=u-e.styles[m].lvl,d=e.transformers.length-1;0<c;)p=e.transformers[d].mProps.v.props,h.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),c--,d--}else h=JE;if(r=(l=e.sh.paths)._length,n){for(a="",s=0;s<r;s+=1)(o=l.shapes[s])&&o._length&&(a+=buildShapeString(o,o._length,o.c,h));e.caches[m]=a}else a=e.caches[m];e.styles[m].d+=!0===t.hd?"":a,e.styles[m]._mdf=n||e.styles[m]._mdf}}function PE(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function QE(t,e,i){RE(t,e,i),SE(0,e,i)}function RE(t,e,i){var s,r,a,n,o=e.gf,l=e.g._hasOpacity,h=e.s.v,p=e.e.v;if((e.o._mdf||i)&&(a="gf"===t.ty?"fill-opacity":"stroke-opacity",e.style.pElem.setAttribute(a,e.o.v)),(e.s._mdf||i)&&(n="x1"==(a=1===t.t?"x1":"cx")?"y1":"cy",o.setAttribute(a,h[0]),o.setAttribute(n,h[1]),l)&&!e.g._collapsable&&(e.of.setAttribute(a,h[0]),e.of.setAttribute(n,h[1])),e.g._cmdf||i)for(var c=e.cst,d=e.g.c,f=c.length,u=0;u<f;u+=1)(s=c[u]).setAttribute("offset",d[4*u]+"%"),s.setAttribute("stop-color","rgb("+d[4*u+1]+","+d[4*u+2]+","+d[4*u+3]+")");if(l&&(e.g._omdf||i))for(var c,m=e.g.o,f=(c=e.g._collapsable?e.cst:e.ost).length,u=0;u<f;u+=1)s=c[u],e.g._collapsable||s.setAttribute("offset",m[2*u]+"%"),s.setAttribute("stop-opacity",m[2*u+1]);1===t.t?(e.e._mdf||i)&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1]),l)&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])):((e.s._mdf||e.e._mdf||i)&&(r=Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)),o.setAttribute("r",r),l)&&!e.g._collapsable&&e.of.setAttribute("r",r),
vendor: 6,090 bytes, line 1
1(e.e._mdf||e.h._mdf||e.a._mdf||i)&&(r=r||Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)),a=Math.atan2(p[1]-h[1],p[0]-h[0]),n=r*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),t=Math.cos(a+e.a.v)*n+h[0],i=Math.sin(a+e.a.v)*n+h[1],o.setAttribute("fx",t),o.setAttribute("fy",i),l)&&!e.g._collapsable&&(e.of.setAttribute("fx",t),e.of.setAttribute("fy",i)))}function SE(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(s.pElem.setAttribute("stroke-dasharray",r.dashStr),s.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem)&&s.msElem.setAttribute("stroke-width",e.w.v)}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function BaseElement(){}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,i){this.initElement(t,e,i)}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.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"),i.setAttribute("result","f1"),t.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result","f2"),t.appendChild(i),this.matrixFilter=i,100===e.effectElements[2].p.v&&!e.effectElements[2].p.k||(i=createNS("feMerge"),t.appendChild(i),(e=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),i.appendChild(e),(e=createNS("feMergeNode")).setAttribute("in","f2"),i.appendChild(e))}function SVGFillFilter(t,e){this.filterManager=e;e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(e),this.matrixFilter=e}function SVGGaussianBlurEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;e=createNS("feGaussianBlur");t.appendChild(e),this.feGaussianBlur=e}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e),e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(e),this.matrixFilter=e,t=createNS("feFuncR"),t.setAttribute("type","table"),e.appendChild(t),this.feFuncR=t,t=createNS("feFuncG"),t.setAttribute("type","table"),e.appendChild(t),this.feFuncG=t,t=createNS("feFuncB");t.setAttribute("type","table"),e.appendChild(t),this.feFuncB=t}function SVGProLevelsFilter(t,e){this.filterManager=e;var e=this.filterManager.effectElements,i=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),i=createNS("feComponentTransfer")),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e){var i=e.container.globalData.renderConfig.filterSize,i=(t.setAttribute("x",i.x),t.setAttribute("y",i.y),t.setAttribute("width",i.width),t.setAttribute("height",i.height),this.filterManager=e,createNS("feGaussianBlur")),e=(i.setAttribute("in","SourceAlpha"),i.setAttribute("result","drop_shadow_1"),i.setAttribute("stdDeviation","0"),this.feGaussianBlur=i,t.appendChild(i),createNS("feOffset")),i=(e.setAttribute("dx","25"),e.setAttribute("dy","0"),e.setAttribute("in","drop_shadow_1"),e.setAttribute("result","drop_shadow_2"),this.feOff
1set=e,t.appendChild(e),createNS("feFlood")),e=(i.setAttribute("flood-color","#00ff00"),i.setAttribute("flood-opacity","1"),i.setAttribute("result","drop_shadow_3"),this.feFlood=i,t.appendChild(i),createNS("feComposite"));e.setAttribute("in","drop_shadow_3"),e.setAttribute("in2","drop_shadow_2"),e.setAttribute("operator","in"),e.setAttribute("result","drop_shadow_4"),t.appendChild(e);i=createNS("feMerge");t.appendChild(i),e=createNS("feMergeNode"),i.appendChild(e),(e=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=e,this.feMerge=i,this.originalNodeAdded=!1,i.appendChild(e)}ShapeTransformManager.prototype={addTransformSequence:function(t){for(var e=t.length,i="_",s=0;s<e;s+=1)i+=t[s].transform.key+"_";var r=this.sequences[i];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i,s=0,r=t.transforms.length,a=e;s<r&&!e;){if(t.transforms[s].transform.mProps._mdf){a=!0;break}s+=1}if(a)for(t.finalTransform.reset(),s=r-1;0<=s;--s)i=t.transforms[s].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=a},processSequences:function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return"_"+this.transform_key_count++}},BaseElement.prototype={checkMasks:function(){if(this.data.hasMask)for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,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(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,s,r,a,n,o=null;this.data.td?3==this.data.td||1==this.data.td?((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),e.appendChild(this.layerElement),o=e,this.globalData.defs.appendChild(e),featureSupport.maskType||1!=this.data.td||(e.setAttribute("mask-type","luminance"),r=createElementID(),a=filtersFactory.createFilter(r),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(t=createNS("g")).appendChild(this.layerElement),o=t,e.appendChild(t),t.setAttribute("filter","url("+locationHref+"#"+r+")"))):2==this.data.td&&((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type","alpha"),i=createNS("g"),e.appendChild(i),r=createElementID(),a=filtersFactory.createFilter(r),(n=createNS("feComponentTransfer")).setAttribute("in","SourceGraphic"),a.appendChild(n),(s=createNS("feFuncA")).setAttribute("type","table"),s.setAttribute("tableValues","1.0 0.0"),n.appendChild(s),this.globalData.defs.appendChild(a),(n=createNS("rect")).setAttribute("width",this.comp.data.w),n.setAttribute("height",this.comp.data.h),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("fill","#ffffff"),n.setAttribute("op
1acity","0"),i.setAttribute("filter","url("+locationHref+"#"+r+")"),i.appendChild(n),i.appendChild(this.layerElement),o=i,featureSupport.maskType||(e.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),t=createNS("g"),i.appendChild(n),t.appendChild(this.layerElement),o=t,i.appendChild(t)),this.globalData.defs.appendChild(e)):this.data.tt?(this.matteElement.appendChild(this.layerElement),o=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.ty||this.data.hd||(s=createNS("clipPath"),(r=createNS("path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),a=createElementID(),s.setAttribute("id",a),s.appendChild(r),this.globalData.defs.appendChild(s),this.checkMasks()?((n=createNS("g")).setAttribute("clip-path","url("+locationHref+"#"+a+")"),n.appendChild(this.layerElement),this.transformedElement=n,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+a+")")),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;0<=e;--e)this.shapeModifiers[e].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[--s].elem===t)return void(i[s].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){for(var i,s=e.length,r="",a=0;a<s;a+=1)i=e[a].ks.k,r+=buildShapeString(i,i.i.length,!0,t);return r},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,
vendor: 6,226 bytes, line 1
1i,s,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){this.tm._placeholder?this.renderedFrame=t/this.data.sr:((t=this.tm.v)===this.data.op&&(t=this.data.op-1),this.renderedFrame=t);var e,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=t-1;0<=e;--e)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf)&&(this._mdf=!0)}},ICompElement.prototype.renderInnerContent=function(){for(var t=this.layers.length,e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(r),r=""):r+=t[e],e+=1;return s.push(r),s},SVGTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t?t.l.length:0),t.fc?this.layerElement.setAttribute("fill",this.buildColor(t.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),t.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(t.sc)),this.layerElement.setAttribute("stroke-width",t.sw)),this.layerElement.setAttribute("font-size",t.finalSize);var e,i,s=this.globalData.fontManager.getFontByName(t.f);s.fClass?this.layerElement.setAttribute("class",s.fClass):(this.layerElement.setAttribute("font-family",s.fFamily),e=t.fWeight,i=t.fStyle,this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",e)),this.layerElement.setAttribute("aria-label",t.t);var r,a=t.l||[],n=!!this.globalData.fontManager.chars,o=a.length,l=this.mHelper,h="",p=this.data.singleShape,c=0,d=0,f=!0,u=t.tr/1e3*t.finalSize;if(!p||n||t.sz){for(var m,g=this.textSpans.length,y=0;y<o;y+=1)n&&p&&0!==y||(r=y<g?this.textSpans[y]:createNS(n?"path":"text"),g<=y&&(r.setAttribute("stroke-linecap","butt"),r.setAttribute("stroke-linejoin","round"),r.setAttribute("stroke-miterlimit","4"),this.textSpans[y]=r,this.layerElement.appendChild(r)),r.style.display="inherit"),l.reset(),l.scale(t.finalSize/100,t.finalSize/100),p&&(a[y].n&&(c=-u,d=d+t.yOffset+(f?1:0),f=!1),this.applyTextPropertiesToMatrix(t,l,a[y].line,c,d),c=c+(a[y].l||0)+u),n?(m=(m=(m=this.globalData.fontManager.getCharData(t.finalText[y],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&m.data||{}).shapes?m.shapes[0].it:[],p?h+=this.createPathShape(l,m):r.setAttribute("d",this.createPathShape(l,m))):(p&&r.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),r.textContent=a[y].val,r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));p&&r&&r.setAttribute("d",h)}else{var v=this.textContainer,b="start";switch(t.j){case 1:b="end";break;case 2:b="middle"}v.setAttribute("text-anchor",b),v.setAttribute("letter-spacing",u);for(var S=this.buildTextContents(t.finalText),o=S.length,d=t.ps?t.ps[1]+t.ascent:0,y=0;y<o;y+=1)(r=this.textSpans[y]||createNS("tspan")).textContent=S[y],r.setAttribute("x",0),r.setAttribute("y",d),r.style.display="inherit",v.appendChild(r),this.textSpans[y]=r,d+=t.finalLineHeight;this.layerElement.appendChild(v)}for(;y<this.textSpans.length;)this.textSpans[y].style.display="none",y+=1;this._sizeChanged=!0},SVGTextElement.prototype.sourceRectAtTime=function(t){var e;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged&&(this._sizeChanged=!1,e=this.layerElement.getBBox(),this.bbox={top:e.y,left
1:e.x,width:e.width,height:e.height}),this.bbox},SVGTextElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l,r=s.length,a=0;a<r;a+=1)s[a].n||(t=i[a],e=this.textSpans[a],t._mdf.m&&e.setAttribute("transform",t.m),t._mdf.o&&e.setAttribute("opacity",t.o),t._mdf.sw&&e.setAttribute("stroke-width",t.sw),t._mdf.sc&&e.setAttribute("stroke",t.sc),t._mdf.fc&&e.setAttribute("fill",t.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){for(var t,e,i,s=this.shapes.length,r=this.stylesList.length,a=[],n=!1,o=0;o<r;o+=1){for(i=this.stylesList[o],n=!1,t=a.length=0;t<s;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(a.push(e),n=e._isAnimated||n);1<a.length&&n&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,e=new SVGStyleData(t,e),s=e.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,e):"fl"===t.ty?i=new SVGFillStyleData(this,t,e):"gf"!==t.ty&&"gs"!==t.ty||(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,e),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+locationHref+"#"+i.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(s.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),s.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),s.setAttribute("fill-opacity","0"),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&s.setAttribute("fill-rule","evenodd"),t.ln&&s.setAttribute("id",t.ln),t.cl&&s.setAttribute("class",t.cl),t.bm&&(s.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(e),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var s=4,e=("rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7),new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,s,this)));return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){for(var e=t.styles,i=this.stylesList.length,s=0;s<i;s+=1)this.stylesList[s].closed||e.push(this.stylesList[s])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,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()}
vendor: 9,125 bytes, line 1
1,SVGShapeElement.prototype.searchShapes=function(t,e,i,s,r,a,n){for(var o,l,h,p,c,d=[].concat(a),f=t.length-1,u=[],m=[],g=f;0<=g;--g){if((c=this.searchProcessedElement(t[g]))?e[g]=i[c-1]:t[g]._render=n,"fl"==t[g].ty||"st"==t[g].ty||"gf"==t[g].ty||"gs"==t[g].ty)c?e[g].style.closed=!1:e[g]=this.createStyleElement(t[g],r),t[g]._render&&s.appendChild(e[g].style.pElem),u.push(e[g].style);else if("gr"==t[g].ty){if(c)for(l=e[g].it.length,o=0;o<l;o+=1)e[g].prevViewData[o]=e[g].it[o];else e[g]=this.createGroupElement(t[g]);this.searchShapes(t[g].it,e[g].it,e[g].prevViewData,e[g].gr,r+1,d,n),t[g]._render&&s.appendChild(e[g].gr)}else"tr"==t[g].ty?(c||(e[g]=this.createTransformElement(t[g],s)),h=e[g].transform,d.push(h)):"sh"==t[g].ty||"rc"==t[g].ty||"el"==t[g].ty||"sr"==t[g].ty?(c||(e[g]=this.createShapeElement(t[g],d,r)),this.setElementStyles(e[g])):"tm"==t[g].ty||"rd"==t[g].ty||"ms"==t[g].ty?(c?(p=e[g]).closed=!1:((p=ShapeModifiers.getModifier(t[g].ty)).init(this,t[g]),e[g]=p,this.shapeModifiers.push(p)),m.push(p)):"rp"==t[g].ty&&(c?(p=e[g]).closed=!0:(p=ShapeModifiers.getModifier(t[g].ty),(e[g]=p).init(this,t,g,e),this.shapeModifiers.push(p),n=!1),m.push(p));this.addProcessedElement(t[g],g+1)}for(f=u.length,g=0;g<f;g+=1)u[g].closed=!0;for(f=m.length,g=0;g<f;g+=1)m[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();for(var t=this.stylesList.length,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(){for(var t,e=this.animatedContents.length,i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100,this.matrixFilter.setAttribute("values",e[0]-t[0]+" 0 0 0 "+t[0]+" "+(e[1]-t[1])+" 0 0 0 "+t[1]+" "+(e[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+i+" 0"))},SVGFillFilter.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[2].p.v,e=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 "+e+" 0"))},SVGGaussianBlurEffect.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=.3*this.filterManager.effectElements[0].p.v,i=3==(e=this.filterManager.effectElements[1].p.v)?0:t,this.feGaussianBlur.setAttribute("stdDeviation",i+" "+(2==e?0:t)),i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate",this.feGaussianBlur.setAttribute("edgeMode",i))},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<s;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID(),o=(a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a),createNS("g"));for(o.setAttribute("mask","url("+locationHref+"#"+n+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,s=this.paths.length,r=0;r<s;r+=1)if(-1!==this.paths[r].m&&(a=this.elem.maskManager.viewData[this.paths[r].m],e=this.paths[r].p,(t||this.filterManager._mdf||a.prop._mdf)&&e.setAttribute("d",a.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,n=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,o=e.getTotalLength(),l="0 0 0 "+o*a+" ",h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,p=Math.floor(o*(n-a)/h),c=0;c<p;c+=1)l+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";l+="0 "+10*o+" 0 0"}else l="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;e.setAttribute("stroke-dasharray",l)}(t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||(t||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+bm_floor(255*i[0])+","+bm_floor(255*i[1])+","+bm_floor(255*i[2])+")"))},SVGTritoneFilter.prototype.renderFrame=function(t){var e,i,s,r;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=(r=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+t[0],s=r[1]+" "+e[1]+" "+t[1],r=r[2]+" "+e[2]+" "+t[2],this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",r))},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){t=createNS(t);return t.setAttribute("type","table"),e.appendChild(t),t},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,s,r){for(var a,n=0,o=Math.min(t,e),l=Math.max(t,e),h=Array.call(null,{length:256}),p=0,c=r-s,d=e-t;n<=256;)a=(a=n/256)<=o?d<0?r:s:l<=a?d<0?s:r:s+c*Math.pow((a-t)/d,1/i),h[p++]=a,n+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(i=this.filterManager.effectElements,this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA)&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))},SVGDropShadowEffect.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),(t||this.filterManager.effectElements[0].p._mdf)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=i*Math.cos(t),i=i*Math.sin(t),this.feOff
1set.setAttribute("dx",e),this.feOffset.setAttribute("dy",i))};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,s=t.data.ef?t.data.ef.length:0,r=createElementID(),a=filtersFactory.createFilter(r),n=0;for(this.filters=[],e=0;e<s;e+=1)i=null,20===t.data.ef[e].ty?(n+=1,i=new SVGTintFilter(a,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(n+=1,i=new SVGFillFilter(a,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?i=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(n+=1,i=new SVGTritoneFilter(a,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(n+=1,i=new SVGProLevelsFilter(a,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(n+=1,i=new SVGDropShadowEffect(a,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?i=new SVGMatte3Effect(a,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(n+=1,i=new SVGGaussianBlurEffect(a,t.effectsManager.effectElements[e])),i&&this.filters.push(i);n&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+locationHref+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var s,r=i.children,a=0,n=r.length;a<n&&r[a]!==t.layerElement;)a+=1;a<=n-2&&(s=r[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),s?i.insertBefore(o,s):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){var i,s,r,a;this.findSymbol(e)||(i=createElementID(),(s=createNS("mask")).setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e),(a=t.globalData.defs).appendChild(s),(r=createNS("symbol")).setAttribute("id",i),this.replaceInParent(e,i),r.appendChild(e.layerElement),a.appendChild(r),(a=createNS("use")).setAttribute("href","#"+i),s.appendChild(a),e.data.hd=!1,e.show()),t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,s=e.length;i<s;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)};var animationManager=(uM={},vM=[],wM=0,xM=0,yM=0,zM=!0,AM=!1,uM.registerAnimation=CM,uM.loadAnimation=function(t){var e=new AnimationItem;return GM(e,null),e.setParams(t),e},uM.setSpeed=function(t,e){for(var i=0;i<xM;i+=1)vM[i].animation.setSpeed(t,e)},uM.setDirection=function(t,e){for(var i=0;i<xM;i+=1)vM[i].animation.setDirection(t,e)},uM.play=function(t){for(var e=0;e<xM;e+=1)vM[e].animation.play(t)},uM.pause=function(t){for(var e=0;e<xM;e+=1)vM[e].animation.pause(t)},uM.stop=function(t){for(var e=0;e<xM;e+=1)vM[e].animation.stop(t)},uM.togglePause=function(t){for(var e=0;e<xM;e+=1)vM[e].animation.togglePause(t)},uM.searchAnimations=function(t,e,i){for(var s,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=r.length,n=0;n<a;n+=1)i&&r[n].setAttribute("data-bm-type",i),CM(r[n],t);e&&0===a&&(i=i||"svg",(e=document.getElementsByTagName("body")[0]).innerHTML="",(s=createTag("div")).style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",i),e.appendChild(s),CM(s,t))},uM.resize=function(){for(var t=0;t<xM;t+=1)vM[t].animation.resize()},uM.goToAndStop=function(t,e,i){for(var s=0;s<xM;s+=1)vM[s].animation.goToAndStop(t,e,i)},uM.destroy=function(t){for(var e=xM-1;0<=e;--e)vM[e].animation.destroy(t)},uM.freeze=function(){AM=!0},uM.unfreeze=function(){AM=!1,UM()},uM.getRegisteredAnimations=function(){for(var t=vM.length,e=[],i=0;i<t;
1i+=1)e.push(vM[i].animation);return e},uM),uM,vM,wM,xM,yM,zM,AM;function BM(t){for(var e=0,i=t.target;e<xM;)vM[e].animation===i&&(vM.splice(e,1),--e,--xM,i.isPaused||FM()),e+=1}function CM(t,e){if(!t)return null;for(var i=0;i<xM;){if(vM[i].elem==t&&null!==vM[i].elem)return vM[i].animation;i+=1}var s=new AnimationItem;return GM(s,t),s.setData(t,e),s}function EM(){yM+=1,UM()}function FM(){--yM}function GM(t,e){t.addEventListener("destroy",BM),t.addEventListener("_active",EM),t.addEventListener("_idle",FM),vM.push({elem:e,animation:t}),xM+=1}function LM(t){for(var e=t-wM,i=0;i<xM;i+=1)vM[i].animation.advanceTime(e);wM=t,yM&&!AM?window.requestAnimationFrame(LM):zM=!0}function MM(t){wM=t,window.requestAnimationFrame(LM)}function UM(){!AM&&yM&&zM&&(window.requestAnimationFrame(MM),zM=!1)}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=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader},Expressions=(extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType||t.renderer||"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(e),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null==t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.animationData?this.configAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,e){var e={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},t=t.attributes,i=(e.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",e.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:"canvas",t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:""),i=(""!==i&&(e.loop="false"!==i&&("true"===i||parseInt(i))),t.getNamedItem("data-anim-
1autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value);e.autoplay="false"!==i,e.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),this.setParams(e)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,s=i.length,r=t.layers,a=r.length,n=0;n<a;n+=1)for(e=0;e<s;){if(i[e].id==r[n].id){i[e]=r[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(s=t.assets.length,e=0;e<s;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;t&&0!==t.length&&this.autoloadSegments?(t=t.shift(),this.timeCompleted=t.time*this.frameRate,t=this.path+this.fileName+"_"+this.segmentPos+".json",this.segmentPos+=1,assetLoader.load(t,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))):(this.trigger("data_ready"),this.timeCompleted=this.totalFrames)},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.isLoaded||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}
1catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle)&&(this._idle=!1,this.trigger("_active"))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},AnimationItem.prototype.advanceTime=function(t){var e;!0!==this.isPaused&&!1!==this.isLoaded&&(e=!1,(t=this.currentRawFrame+t*this.frameModifier)>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?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):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e)&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0])for(var i=t.length,s=0;s<i;s+=1)this.segments.push(t[s]);else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e,i="";return t.e?i=t.p:this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),i=this.assetsPath+e):(i=this.path,i=(i+=t.u||"")+t.p),i},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;
1){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){t=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(t){t=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},$O={},$O.initExpressions=function(t){var i=0,s=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){if(0==--i){for(var t=s.length,e=0;e<t;e+=1)s[e].release();s.length=0}},t.renderer.globalData.registerExpressionProperty=function(t){-1===s.indexOf(t)&&s.push(t)}},$O),$O,expressionsPlugin=Expressions,ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=typeof t;if(!("number"==e||"boolean"==e||t instanceof Number))if($bm_isInstanceOfArray(t))for(var i=t.length,s=0;s<i;s+=1)s,t[s];else t.propType&&t.v}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(t,e){var i=typeof t,s=typeof e;if("string"==i||"string"==s)return t+e;if(isNumerable(i,t)&&isNumerable(s,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return(t=t.slice(0))[0]=t[0]+e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,a=t.length,n=e.length,o=[];r<a||r<n;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]+e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}var add=sum;function sub(t,e){var i=typeof t,s=typeof e;if(isNumerable(i,t)&&isNumerable(s,e))return(t="string"==i?parseInt(t):t)-(e="string"==s?parseInt(e):e);if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return(t=t.slice(0))[0]=t[0]-e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,a=t.length,n=e.length,o=[];r<a||r<n;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]-e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i,s,r,a=typeof t,n=typeof e;if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(r=t.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=t[s]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=t*e[s];return i}return 0}function div(t,e){var i,s,r,a=typeof t,n=typeof e;if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(r=t.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=t[s]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return(t="string"==typeof t?parseInt(t):t)%(e="string"==typeof e?parseInt(e):e)}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;
1function clamp(t,e,i){var s;i<e&&(s=i,i=e,e=s),Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return Math.abs(t-(e=e||0));for(var i=Math.min(t.length,(e=e||helperLengthArray).length),s=0,r=0;r<i;r+=1)s+=Math.pow(e[r]-t[r],2);return Math.sqrt(s)}function normalize(t){div(t,length(t))}function rgbToHsl(t){var e=t[0],i=t[1],s=t[2];Math.max(e,i,s),Math.min(e,i,s);t[3]}function hue2rgb(t,e,i){i<0&&(i+=1),1<i&&--i}function hslToRgb(t){var e=t[0],i=t[1],t=t[2];0!==i&&(hue2rgb(i=2*t-(t=t<.5?t*(1+i):t+i-t*i),t,e+1/3),hue2rgb(i,t,e),hue2rgb(i,t,e-1/3))}function linear(t,e,i,s,r){var a;if(void 0!==s&&void 0!==r||(s=e,r=i,e=0,i=1),i<e&&(a=i,i=e,e=a),!(t<=e||i<=t)){var n=i===e?0:(t-e)/(i-e);if(s.length)for(var o=s.length,l=createTypedArray("float32",o),h=0;h<o;h+=1)l[h]=s[h]+(r[h]-s[h])*n}}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i=e.length;t=t||createTypedArray("float32",i);for(var s=createTypedArray("float32",i),r=BMMath.random(),a=0;a<i;a+=1)s[a]=t[a]+r*(e[a]-t[a])}else void 0===t&&(t=0),BMMath.random()}function createPath(t,e,i,s){var r=t.length,a=shape_pool.newElement();a.setPathData(!!s,r);for(var n,o,l=[0,0],h=0;h<r;h+=1)n=e&&e[h]?e[h]:l,o=i&&i[h]?i[h]:l,a.setTripleAt(t[h][0],t[h][1],o[0]+t[h][0],o[1]+t[h][1],n[0]+t[h][0],n[1]+t[h][1],h,!0)}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property,inPoint=(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,elem.data.ip/elem.comp.globalData.frameRate),outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw||0,height=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,__expression_functions=[],scoped_bm_rt;if(data.xf)for(var i,len=data.xf.length,i=0;i<len;i+=1)__expression_functions[i]=eval("(function(){ return "+data.xf[i]+"}())");var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){for(var i=this.pv.length||1,s=createTypedArray("float32",i),r=Math.floor(5*time),a=0,n=0;a<r;){for(n=0;n<i;n+=1)s[n]+=-e+2*e*BMMath.random();a+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",i);if(1<i){for(n=0;n<i;n+=1)h[n]=this.pv[n]+s[n]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){loopIn(t,e,!0)}function loopOutDuration(t,e){loopOut(t,e,!0)}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)),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),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){e=[e[0]-t[0],e[1]-t[1],e[2]-t[2]];Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2])),Math.atan2(e[1],e[2])}function easeOut(t,e,i,s,r){applyEase(easeOutBez,t,e,i,s,r)}function easeIn(t,e,i,s,r){applyEase(easeInBez,t,e,i,s,r)}function ease(t,e,i,s,r){applyEase(easeInOutBez,t,e,i,s,r)}function applyEase(t,e,i,s,r,a){void 0===r?(r=i,a=s):e=(e-i)/(s-i);var n=t(e=1<e?1:e<0?0:e);if($bm_isInstanceOfArray(r)){for(var o=r.length,l=createTypedArray("float32",o),h=0;h<o;h+=1)l[h]=(a[h]-r[h])*n+r[h];return l}return(a-r)*n+r}function nearestKey(t){var e,i,s,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,s=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,s=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){s=(t-data.k[e].t>data.k[e+1].t-t?(i=e+2,data.k[e+1]):(i=e+1,data.k[e])).t;break}}-1===i&&(i=e+1,s=data.k[e].t)}else s=i=0;elem.comp.globalData.frameRate}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:data.k[--t].t/elem.comp.globalData.frameRate,value:[]},i=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e,s=i.length,r=0;r<s;r+=1)e[r]=i[r],e.value[r]=i[r]}function framesToTime(t,e){e||elem.comp.globalData.frameRate}function timeToFrames(t,e){t||0===t||(t=time),e||elem.comp.globalData.frameRate}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){elem.sourceRectAtTime()}function substring(t,e){"string"==typeof value&&(void 0===e?value.substring(t):value.substring(t,e))}function substr(t,e){"string"==typeof value&&(void 0===e?value.substr(t):value.substr(t,e))}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(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)&&(anchorPoint=transform.anchorPoint),4===elemType&&(content=content||thisLayer("ADBE Root Vectors Group")),effect=effect||thisLayer(4),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt="shape"===scoped_bm_rt.propType?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}
vendor: 4,017 bytes, line 1
1(),expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),s=0;if(e.length){for(var r=0;r<e.length;r+=1)s+=Math.pow(i[r]-e[r],2);s=100*Math.sqrt(s)}else s=0;return s},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(e.length)for(var s=createTypedArray("float32",e.length),r=0;r<e.length;r+=1)s[r]=(i[r]-e[r])/-.001;else s=(i-e)/-.001;return s},getValueAtTime:function(t){return(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}},ShapeExpressionInterface=((()=>{function n(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var s,r,a,n,o,l=this.comp.renderedFrame,h=this.keyframes,p=h[h.length-1].t;if(l<=p)return this.pv;if(i?r=p-(s=e?Math.abs(p-elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),s=p-(r=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-r)/s)%2!=0)return this.getValueAtTime((s-(l-r)%s+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(r/this.comp.globalData.frameRate,0),d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%s+r)/this.comp.globalData.frameRate,0),u=Math.floor((l-r)/s);if(this.pv.length){for(n=(o=new Array(c.length)).length,a=0;a<n;a+=1)o[a]=(d[a]-c[a])*u+f[a];return o}return(d-c)*u+f}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=m[a]+(m[a]-g[a])*((l-p)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-p)/.001*(m-g)}}return this.getValueAtTime(((l-r)%s+r)/this.comp.globalData.frameRate,0)}function o(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var s,r,a,n,o,l=this.comp.renderedFrame,h=this.keyframes,p=h[0].t;if(p<=l)return this.pv;if(i?r=p+(s=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):s=(r=h[e=!e||e>h.length-1?h.length-1:e].t)-p,"pingpong"===t){if(Math.floor((p-l)/s)%2==0)return this.getValueAtTime(((p-l)%s+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((s-(p-l)%s+p)/this.comp.globalData.frameRate,0),u=Math.floor((p-l)/s)+1;if(this.pv.length){for(n=(o=new Array(c.length)).length,a=0;a<n;a+=1)o[a]=f[a]-(d[a]-c[a])*u;return o}return f-(d-c)*u}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=m[a]+(m[a]-g[a])*(p-l)/.001;return o}return m+(m-g)*(p-l)/.001}}return this.getValueAtTime((s-(p-l)%s+p)/this.comp.globalData.frameRate,0)}function l(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;for(var i,s=this.comp.renderedFrame/this.comp.globalData.frameRate,r=s-t,a=1<e?(s+t-r)/(e-1):1,n=0,o=0,l=this.pv.length?createTypedArray("float32",this.pv.length):0;n<e;){if(i=this.getValueAtTime(r+n*a),this.pv.length)for(o=0;o<this.pv.length;o+=1)l[o]+=i[o];else l+=i;n+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)l[o]/=e;else l/=e;return l}var s=TransformPropertyFactory.getTransformProperty,h=(TransformPropertyFactory.getTransformProperty=function(t,e,i){t=s(t,e,
1i);return t.dynamicProperties.length?t.getValueAtTime=function(t){}.bind(t):t.getValueAtTime=function(t){}.bind(t),t.setGroupProperty=expressionHelpers.setGroupProperty,t},PropertyFactory.getProp),t=(PropertyFactory.getProp=function(t,e,i,s,r){var s=h(t,e,i,s,r),a=(s.kf?s.getValueAtTime=expressionHelpers.getValueAtTime.bind(s):s.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s.loopOut=n,s.loopIn=o,s.smooth=l,s.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(s),s.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(s),s.numKeys=1===e.a?e.k.length:0,s.propertyIndex=e.ix,0);return 0!==i&&(a=createTypedArray("float32",(1===e.a?e.k[0].s:e.k).length)),s._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:a},expressionHelpers.searchExpressions(t,e,s),s.k&&r.addDynamicProperty(s),s},ShapePropertyFactory.getConstructorFunction()),e=ShapePropertyFactory.getKeyframedConstructorFunction();function i(){}i.prototype={vertices:function(t,e){this.k&&this.getValue();for(var i=this.v,s=(i=void 0!==e?this.getValueAtTime(e,0):i)._length,r=i[t],a=i.v,n=createSizedArray(s),o=0;o<s;o+=1)n[o]="i"===t||"o"===t?[r[o][0]-a[o][0],r[o][1]-a[o][1]]:[r[o][0],r[o][1]];return n},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var e=this._segmentsLength,s=e.lengths,r=e.totalLength*t,a=0,n=s.length,o=0;a<n;){if(o+s[a].addedLength>r){var l=i.c&&a===n-1?0:a+1,h=(r-o)/s[a].addedLength,p=bez.getPointInSegment(i.v[a],i.v[l],i.o[a],i.i[l],h,s[a]);break}o+=s[a].addedLength,a+=1}return p||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){t=1==t?this.v.c?0:.999:t;var s=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-s[0],t=t[1]-s[1],s=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===s?[0,0]:"tangent"===i?[e/s,t/s]:[-t/s,e/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([i],t),extendPrototype([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var a=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,s,r){s=a(t,e,i,s,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}})(),TextProperty.prototype.getExpressionValue=function(t,e){var i,e=this.calculateExpression(e);return t.t===e?t:(this.copyData(i={},t),i.t=e.toString(),i.__complete=!1,i)},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0},function(t,e,i){var s;function r(t){if("number"==typeof t)return s[t-1];for(var e=0,i=s.length;e<i;){if(s[e]._name===t)return s[e];e+=1}}return r.propertyGroup=i,s=fV(t,e,r),r.numProperties=s.length,r});function fV(t,e,i){for(var s,r,a,n=[],o=t?t.length:0,l=0;l<o;l+=1)"gr"==t[l].ty?n.push(((t,e,i)=>{var s,r,a,n,o=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}},l=(o.propertyGroup=function(t){return 1===t?o:i(t-1)},a=o.propertyGroup,n=fV((l=t).it,e.it,c.propertyGroup=function(t){return 1===t?c:a(t-1)}),c.numProperties=n.length,c.propertyIndex=l.cix,c._name=l.nm,c),e=(s=t.it[t.it.length-1],e=e.it[e.it.length-1],r=o.propertyGroup,e.transform.mProps.o.setGroupProperty(h),e.transform.mProps.p.setGroupProperty(h),e.transform.mProps.a.setGroupProperty(h),e.transform.mProps.s.setGroupProperty(h),e.transform.mProps.r.setGroupProperty(h),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(h),e.transform.mProps.sa.setGroupProperty(h)),e.transform.op.setGroupProperty(h),Object.defineProperties(p,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:s.nm}}),p.ty="tr",p.mn=s.mn,p.propertyGroup=r,p);function h(t){return 1==t?p:r(--t)}function p(t){return s.a.ix===t||"Anchor Point"===t?p.anchorPoint:s.o.ix===t||"Opacity"===t?p.opacity:s.p.ix===t||"Position"===t?p.position:s.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?p.rotation:s.s.ix===t||"Scale"===t?p.scale:s.sk&&s.sk.ix===t||"Skew"===t?p.skew:s.sa&&s.sa.ix===t||"Skew Axis"===t?p.skewAxis:void 0}function c(t){for(var e=0,i=n.length;e<i;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}if("number"==typeof t)return n[t-1]}return o.content=l,o.transform=e,Object.defineProperty(o,"_name",{get:function(){return t.nm}}),o.numProperties=t.np,o.propertyIndex=t.ix,o.nm=t.nm,o.mn=t.mn,o})(t[l],e[l],i)):"fl"==t[l].ty?n.push((s=t[l],r=e[l],a=i,Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(r.c)},opacity:{get:ExpressionPropertyInterface(r.o)},_name:{value:s.nm},mn:{value:s.mn}}),r.c.setGroupProperty(a),r.o.setGroupProperty(a),h)):"st"==t[l].ty?n.push(((t,e,i)=>{function s(t){return 1===t?ob:i(t-1)}function r(t){return 1===t?o:s(t-1)}for(var a,n=t.d?t.d.length:0,o={},l=0;l<n;l+=1)a=l,Object.defineProperty(o,t.d[a].nm,{get:ExpressionPropertyInterface(e.d.dataProps[a].p)}),e.d.dataProps[l].p.setGroupProperty(r);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:void 0}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return o}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(s),e.o.setGroupProperty(s),e.w.setGroupProperty(s),h})(t[l],e[l],i)):"tm"==t[l].ty?n.push(((e,t,i)=>{function s(t){return 1==t?r:i(--t)}function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:void 0}return r.propertyIndex=e.ix,t.s.setGroupProperty(s),t.e.setGroupProperty(s),t.o.setGroupProperty(s),r.propertyIndex=e.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r})(t[l],e[l],i)):"tr"!=t[l].ty&&("el"==t[l].ty?n.push(((e,t,i)=>{function s(t){return 1==t?r:i(--t)}function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:void 0}return r.propertyIndex=e.ix,(t="tm"===t.sh.ty?t.sh.prop:t.sh).s.setGroupProperty(s),t.p.setGroupProperty(s),Ob
1ject.defineProperties(r,{size:{get:ExpressionPropertyInterface(t.s)},position:{get:ExpressionPropertyInterface(t.p)},_name:{value:e.nm}}),r.mn=e.mn,r})(t[l],e[l],i)):"sr"==t[l].ty?n.push(((e,t,i)=>{function s(t){return 1==t?r:i(--t)}function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:void 0:r.innerRadius}return t="tm"===t.sh.ty?t.sh.prop:t.sh,r.propertyIndex=e.ix,t.or.setGroupProperty(s),t.os.setGroupProperty(s),t.pt.setGroupProperty(s),t.p.setGroupProperty(s),t.r.setGroupProperty(s),e.ir&&(t.ir.setGroupProperty(s),t.is.setGroupProperty(s)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},rotation:{get:ExpressionPropertyInterface(t.r)},points:{get:ExpressionPropertyInterface(t.pt)},outerRadius:{get:ExpressionPropertyInterface(t.or)},outerRoundness:{get:ExpressionPropertyInterface(t.os)},innerRadius:{get:ExpressionPropertyInterface(t.ir)},innerRoundness:{get:ExpressionPropertyInterface(t.is)},_name:{value:e.nm}}),r.mn=e.mn,r})(t[l],e[l],i)):"sh"==t[l].ty?n.push(((t,e,i)=>{var s=e.sh;function r(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return r.path}return s.setGroupProperty(function(t){return 1==t?r:i(--t)}),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn}}),r})(t[l],e[l],i)):"rc"==t[l].ty?n.push(((e,t,i)=>{function s(t){return 1==t?r:i(--t)}function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:void 0}return t="tm"===t.sh.ty?t.sh.prop:t.sh,r.propertyIndex=e.ix,t.p.setGroupProperty(s),t.s.setGroupProperty(s),t.r.setGroupProperty(s),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},roundness:{get:ExpressionPropertyInterface(t.r)},size:{get:ExpressionPropertyInterface(t.s)},_name:{value:e.nm}}),r.mn=e.mn,r})(t[l],e[l],i)):"rd"==t[l].ty?n.push(((e,t,i)=>{function s(t){if(e.r.ix===t||"Round Corners 1"===t)return s.radius}return s.propertyIndex=e.ix,t.rd.setGroupProperty(function(t){return 1==t?s:i(--t)}),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(t.rd)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[l],e[l],i)):"rp"==t[l].ty&&n.push(((e,t,i)=>{function s(t){return 1==t?r:i(--t)}function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:void 0}return r.propertyIndex=e.ix,t.c.setGroupProperty(s),t.o.setGroupProperty(s),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(t.c)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r})(t[l],e[l],i)));function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:void 0}return n}var TextExpressionInterface=function(e){var i;function t(){}return Object.defineProperty(t,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return void 0!==t&&(e.textProperty.currentData.t=void 0,(i=new String(t)).value=t||new String(t)),i}}),t},LayerExpressionInterface=function(e){var i;function s(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return s.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return i;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return s.effect}}s.toWorld=DX,s.fromWorld=EX,s.toComp=DX,s.fromComp=FX,s.sampleImage=GX,s.sourceRectAtTime=e.sourceRectAtTime.bind(e);var t=getDescriptor(i=TransformExpressionInterface((s._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(s,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(i,"rotation"),scale:getDescriptor(i,"scale"),position:getDescriptor(i,"position"),opacity:getDescriptor(i,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return i}},active:{get:function(){return e.isInRange}}}),s.startTime=e.data.st,s.index=e.data.ind,s.source=e.data.refId,s.height=0===e.data.ty?e.data.h:100,s.width=0===e.data.ty?e.data.w:100,s.inPoint=e.data.ip/e.comp.globalData.frameRate,s.outPoint=e.data.op/e.comp.globalData.frameRate,s._name=e.data.nm,s.registerMaskInterface=function(t){s.mask=new MaskManagerInterface(t,e)},s.registerEffectsInterface=function(t){s.effect=t},s};function DX(t,e){var i=new Matrix;if(i.reset(),this._elem.finalTransform.mProp.applyToMatrix(i),this._elem.hierarchy&&this._elem.hierarchy.length)for(var s=this._elem.hierarchy.length,r=0;r<s;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(i);return i.applyToPointArray(t[0],t[1],t[2]||0)}function EX(t,e){var i=new Matrix;if(i.reset(),this._elem.finalTransform.mProp.applyToMatrix(i),this._elem.hierarchy&&this._elem.hierarchy.length)for(var s=this._elem.hierarchy.length,r=0;r<s;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(i);return i.inversePoint(t)}function FX(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,s=0;s<i;s+=1)this._elem.hierarchy[s].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}function GX(){return[1,1,1,1]}var CompExpressionInterface=function(s){function t(t){for(var e=0,i=s.layers.length;e<i;){if(s.layers[e].nm===t||s.layers[e].ind===t)return s.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:s.data.nm}),(t.layer=t).pixelAspect=1,t.height=s.data.h||s.globalData.compSize.h,t.width=s.data.w||s.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/s.globalData.frameRate,t.displayStartTime=0,t.numLayers=s.layers.length,t},TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}var i;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p&&(i=ExpressionPropertyInterface(t.p)),Object.defineProperty(e,"position",{get:function(){return t.p?i():[t.px.v,t.py.v,t.pz?t.pz.v:0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},ProjectInterface=function(){function t(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}}return t.compositions=[],t.currentFrame=0,t.registerComposition=nY,t};function nY(t){this.compositions.push(t)}
1var EffectsExpressionInterface={createEffectsInterface:function(r,t){if(r.effectsManager){for(var a=[],e=r.data.ef,i=r.effectsManager.effectElements.length,s=0;s<i;s+=1)a.push(function t(r,e,i,s){for(var a=[],n=r.ef.length,o=0;o<n;o+=1)5===r.ef[o].ty?a.push(t(r.ef[o],e.effectElements[o],e.effectElements[o].propertyGroup,s)):a.push(wY(e.effectElements[o],r.ef[o].ty,s,l));function l(t){return 1===t?h:i(t-1)}var h=function(t){for(var e=r.ef,i=0,s=e.length;i<s;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?a[i]:a[i]();i+=1}return a[0]()};return h.propertyGroup=l,"ADBE Color Control"===r.mn&&Object.defineProperty(h,"color",{get:function(){return a[0]()}}),Object.defineProperty(h,"numProperties",{get:function(){return r.np}}),h.active=h.enabled=0!==r.en,h}(e[s],r.effectsManager.effectElements[s],t,r));return function(t){for(var e=r.data.ef||[],i=0,s=e.length;i<s;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return a[i];i+=1}}}}};function wY(t,e,i,s){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(s),function(){return 10===e?i.comp.compInterface(t.p.v):r()}}var MaskManagerInterface=(()=>{function a(t,e){this._mask=t,this._data=e}return Object.defineProperty(a.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(a.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e,t){for(var i=createSizedArray(e.viewData.length),s=e.viewData.length,r=0;r<s;r+=1)i[r]=new a(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<s;){if(e.masksProperties[r].nm===t)return i[r];r+=1}}}})(),ExpressionPropertyInterface=(mZ={pv:0,v:0,mult:1},nZ={pv:[0,0,0],v:[0,0,0],mult:1},function(t){return t?("unidimensional"===t.propType?function(t){var e=1/(t=t&&"pv"in t?t:mZ).mult,i=t.pv*e,s=new Number(i);return s.value=i,oZ(s,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*e,s.value!==i&&((s=new Number(i)).value=i,oZ(s,t,"unidimensional")),s}}:function(e){var i=1/(e=e&&"pv"in e?e:nZ).mult,s=e.pv.length,r=createTypedArray("float32",s),a=createTypedArray("float32",s);return r.value=a,oZ(r,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<s;t+=1)r[t]=a[t]=e.v[t]*i;return r}})(t):rZ}),mZ,nZ,JZ,KZ;function oZ(i,s,r){Object.defineProperty(i,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),i.numKeys=s.keyframes?s.keyframes.length:0,i.key=function(t){var e;return i.numKeys?(e="",e="s"in s.keyframes[t-1]?s.keyframes[t-1].s:"e"in s.keyframes[t-2]?s.keyframes[t-2].e:s.keyframes[t-2].s,(e="unidimensional"===r?new Number(e):Object.assign({},e)).time=s.keyframes[t-1].t/s.elem.comp.globalData.frameRate,e):0},i.valueAtTime=s.getValueAtTime,i.speedAtTime=s.getSpeedAtTime,i.velocityAtTime=s.getVelocityAtTime,i.propertyGroup=s.propertyGroup}function rZ(){return mZ}function LZ(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(){}function EffectsManager(t,e){var i=t.ef||[];this.effectElements=[];for(var s,r=i.length,a=0;a<r;a++)s=new GroupEffect(i[a],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}JZ=function(t,e){this.pv=1,this.comp=t.comp,this.elem=t,this.mult=.01,this.propType="textSelector",this.textTotal=e.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(t,e,this),this.getMult=LZ,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty},KZ=TextSelectorProp.getTextSelectorProp,TextSelectorProp.getTextSelectorProp=function(t,e,
1i){return 1===e.t?new JZ(t,e,i):KZ(t,e,i)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);for(var i,s=this.data.ef.length,r=this.data.ef,a=0;a<s;a+=1){switch(i=null,r[a].ty){case 0:i=new SliderEffect(r[a],e,this);break;case 1:i=new AngleEffect(r[a],e,this);break;case 2:i=new ColorEffect(r[a],e,this);break;case 3:i=new PointEffect(r[a],e,this);break;case 4:case 7:i=new CheckboxEffect(r[a],e,this);break;case 10:i=new LayerIndexEffect(r[a],e,this);break;case 11:i=new MaskIndexEffect(r[a],e,this);break;case 5:i=new EffectsManager(r[a],e,this);break;default:i=new NoValueEffect(r[a],e,this)}i&&this.effectElements.push(i)}};var lottie={},_isFrozen=!1;function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&1<t&&(defaultCurveSegments=t);roundValues(!(50<=defaultCurveSegments))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i++){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.__getFactory=getFactory,lottie.version="5.6.10";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="",scripts,index,myScript,queryString,renderer,readyStateCheckInterval=(standalone&&(scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,""),renderer=getQueryVariable("renderer")),setInterval(checkReady,100));return lottie}),(()=>{let s={};if(document.querySelectorAll('link[rel="alternate"][hreflang]').forEach(t=>{let e=t.getAttribute("hreflang");"x-default"===e&&(e="en"),t.href=t.href.replace(/https?:\/\/[^/]+/,""),s[e]=t.href}),document.querySelectorAll("div.lg-menu a").forEach(t=>{var e=t.getAttribute("data-lg");e in s&&(t.href=s[e])}),"true"!==localStorage.getItem("i18n_redirect_asked")){var t=(navigator.language||navigator.userLanguage).toLowerCase().substring(0,2);if(document.documentElement.lang!==t&&t in s){var r=new XMLHttpRequest,r=(r.open("GET","/assets/data/i18n.json",!1),r.send(null),window.i18n_json=JSON.parse(r.responseText),window.i18n_json[t]["javascript.i18n-confirm"].replace("{user_lang}",t)),a=window.i18n_json[t]["javascript.i18n-yes"],n=window.i18n_json[t]["javascript.i18n-no"],t=s[t];let e=document.createElement("div"),i=(e.className="modal-mask hide",e.innerHTML=` 2 <div class="modal-block i18n-modal"> 3 <div class="modal-content"> 4 <picture> 5 <img src="/assets/img/logos/logo-vates.png" class="w200" /> 6 </picture> 7 <p>${r}</p> 8 <p class="mt-xs"> 9 <a href="${t}" class="btn btn-primary">${a}</a> 10 <button class="btn btn-secondary i18n-modal-decline">${n}</button> 11 </p> 12 </div> 13 </div>`,document.body.appendChild(e),()=>{e.classList.replace("show","hide")});e.addEventListener("click",t=>{t.target===e&&i()}),e.querySelector(".i18n-modal-decline").addEventListener("click",i),requestAnimationFrame(()=>{e.classList.replace("hide","show"),localStorage.setItem("i18n_redirect_asked","true")})}}})(),(async()=>{let r=document.getElementById("book-a-demo-form");if(r){let i=r.querySelector(".book-form-error");document.getElementById("book-lg").addEventListener("change",function(t){var e={en:"/en/book-a-demo",fr:"/fr/reserver-une-demo",it:"/it/prenota-una-demo",de:"/de/demo-anfordern"};parent in window&&"function"==typeof parent.SetIframeSrc?parent.SetIframeSrc(window.location.origin+e[t.target.value]):window.location.href=window.location.origin+e[t.target.value]}),r.addEventListener("submit",function(t){let e=[];r.querySelectorAll("[required]").forEach(t=>{"SELECT"==t.tagName?0==t.selectedIndex&&e.push(t.options[0].textContent):""==t.value&&e.push(t.placeholder)}),0<e.length?(t.preventDefault(),i.classList.remove("display-none"),1==e.length?
13i.classList.remove("plural"):i.classList.add("plural"),i.querySelector("span.required").innerHTML=e.join(", ")+"."):i.classList.add("display-none")}),r.setAttribute("target","iframebookform");let t=document.createElement("iframe");t.name="iframebookform",t.id="iframebookform",t.sandbox="allow-same-origin allow-scripts allow-modals allow-popups allow-forms",t.style="width:0; height:0; border:0; border:none; opacity:0; visibility:hidden; position:absolute;",document.body.appendChild(t),t.addEventListener("load",()=>{if(t.contentWindow&&t.contentWindow.location&&/\?messageSent/.test(t.contentWindow.location.href)){r.classList.add("display-none"),document.querySelector(".book-form-success").classList.remove("display-none");let i={type:"FORM_SUBMIT_TRACKING",event:"register_for_a_demo",tags:"demo",page_url:"register_for_a_demo",page_title:"Register for a demo"},s={email:"input[name='email']",hostcount:"input[name='infrastructure']",project_timeline:"select[name='project-timeline']",project_type:"select[name='project-type']"};Object.keys(s).forEach(t=>{var e=r.querySelector(s[t]);e&&e.value&&(i[t]=e.value)}),"function"==typeof window.TrackFormageData?window.TrackFormageData(i):window.top&&"function"==typeof window.top.TrackFormageData&&window.top.TrackFormageData(i)}})}})(),(async()=>{let e=["AT","BE","CY","EE","FI","FR","DE","GR","IE","IT","LV","LT","LU","MT","NL","PT","SK","SI","ES"];$.get("https://ipinfo.io",function(t){-1!==e.indexOf(t.country)&&($(".icon.icon-dollar").removeClass("icon-dollar").addClass("icon-euro"),$("body").addClass("is_eurozone"))},"json")})();let VATES={},Helpers=(window.Vates={},document.querySelectorAll(".zoomable").forEach(e=>{e.addEventListener("click",()=>{let t=document.createElement("div");t.classList.add("zoomed-image"),t.style.backgroundImage=`url(${e.src})`,document.body.appendChild(t),t.addEventListener("click",()=>{document.body.removeChild(t)})})}),(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)})(function(h){var s,n=window.Slick||{};s=0,(n=function(t,e){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:h(t),appendDots:h(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return h('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},h.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=h(t),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,t=h(t).data("slick")||{},i.options=h.extend({},i.defaults,e,t),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=h.proxy(i.autoPlay,i),i.autoPlayClear=h.proxy(i.autoPlayClear,i),i.autoPlayIterator=h.proxy(i.autoPlayIterator,i),i.changeSlide=h.proxy(i.changeSlide,i),i.clickHandler=h.proxy(i.clickHandler,i),i.selectHandler=h.proxy(i.selectHandler,i),i.setPosition=h.proxy(i.setPosition,i),i.swipeHandler=h.proxy(i.swipeHandler,i),i.dragHandler=h.proxy(i.dragHandler,i),i.keyHandler=h.proxy(i.keyHandler,i),i.instanceUid=s++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})}
vendor: 8,291 bytes, line 13
13,n.prototype.addSlide=n.prototype.slickAdd=function(t,e,i){var s=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=s.slideCount)return!1;s.unload(),"number"==typeof e?0===e&&0===s.$slides.length?h(t).appendTo(s.$slideTrack):i?h(t).insertBefore(s.$slides.eq(e)):h(t).insertAfter(s.$slides.eq(e)):!0===i?h(t).prependTo(s.$slideTrack):h(t).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(t,e){h(e).attr("data-slick-index",t)}),s.$slidesCache=s.$slides,s.reinit()},n.prototype.animateHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:t},e.options.speed))},n.prototype.animateSlide=function(t,e){var i={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(t=-t),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,e):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,e):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),h({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate("+t+"px, 0px)":i[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(s.applyTransition(),t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate3d("+t+"px, 0px, 0px)":i[s.animType]="translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(i),e&&setTimeout(function(){s.disableTransition(),e.call()},s.options.speed))},n.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t=t&&null!==t?h(t).not(this.$slider):t},n.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=h(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},n.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},n.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},n.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},n.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0)&&(t.direction=1)),t.slideHandler(e))},n.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=h(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=h(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},n.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=h("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(h("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},n.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){h(e).attr("data-slick-index",t).data("originalStyling",h(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?h('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),h("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},n.prototype.buildRows=function(){var t,e,i,s=this,r=document.createDocumentFragment(),a=s.$slider.children();if(0<s.options.rows){for(i=s.options.slidesPerRow*s.options.rows,e=Math.ceil(a.length/i),t=0;t<e;t++){for(var n=document.createElement("div"),o=0;o<s.options.rows;o++){for(var l=document.createElement("div"),h=0;h<s.options.slidesPerRow;h++){var p=t*i+(o*s.options.slidesPerRow+h);a.get(p)&&l.appendChild(a.get(p))}n.appendChild(l)}r.appendChild(n)}s.$slider.empty().append(r),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},n.prototype.checkResponsive=function(t,e){var i,s,r,a=this,n=!1,o=a.$slider.width(),l=window.innerWidth||h(window).width();if("window"===a.respondTo?r=l:"slider"===a.respondTo?r=o:"min"===a.respondTo&&(r=Math.min(l,o)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(i in s=null,a.breakpoints)a.breakpoints.hasOwnProperty(i)&&(!1===a.originalSettings.mobileFirst?r<a.breakpoints[i]&&(s=a.breakpoints[i]):r>a.breakpoints[i]&&(s=a.breakpoints[i]));null!==s?null!==a.activeBreakpoint&&s===a.activeBreakpoint&&!e||(a.activeBreakpoint=s,"unslick"===a.breakpointSettings[s]?a.unslick(s):(a.options=h.extend({},a.originalSettings,a.breakpointSettings[s]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),n=s):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t),n=s),t||!1===n||a.$slider.trigger("breakpoint",[a,n])}},n.prototype.changeSlide=function(t,e){var i,s=this,r=h(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),i=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":a=0==i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-a,!1,e);break;case"next":a=0==i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+a,!1,e);break;case"index":var a=0===t.data.index?0:t.data.index||r.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(a),!1,e),r.children().trigger("focus");break;default:return}},n.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var s in e){if(t<e[s]){t=i;break}i=e[s]}return t},n.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(h("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",h.proxy(t.interrupt,t,!0)).off("mouseleave.slick",h.proxy(t.interrupt,t,!1)),!0===t.options.accessibility)&&t.$dots.off("keydown.slick",t.keyHandler),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility)&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow)&&t.$nextArrow.off("keydown.slick",t.keyHandler),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.
13slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),h(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().off("click.slick",t.selectHandler),h(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),h(window).off("resize.slick.slick-"+t.instanceUid,t.resize),h("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),h(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},n.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",h.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",h.proxy(t.interrupt,t,!1))},n.prototype.cleanUpRows=function(){var t;0<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},n.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},n.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),h(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow))&&e.$prevArrow.remove(),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow))&&e.$nextArrow.remove(),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){h(this).attr("style",h(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},n.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},n.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},n.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},n.prototype.filterSlides=n.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},n.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=h(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},n.prototype.getCurrent=n.prototype.slickCurrentSlide=function(){return this.currentSlide},n.prototype.getDotCount=function(){var t=this,e=0,i=0,s=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++s;else for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)s=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else s=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return s-1},n.prototype.getLeft=function(t){var e,i,s=this,r=0;return s.slideOffset=0,e=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,i=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?i=-1.5:1===s.options.slidesToShow&&(i=-2)),r=e*s.options.slidesToShow*i),s.slideCount%s.options.slidesToScroll!=0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(r=t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,(s.options.slidesToShow-(t-s.slideCount))*e*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,s.slideCount%s.options.slidesToScroll*e*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(t+s.options.slidesToShow-s.slideCount)*e),s.slideCount<=s.options.slidesToShow&&(r=s.slideOffset=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),i=!1===s.options.vertical?t*s.slideWidth*-1+s.slideOffset:t*e*-1+r,!0===s.options.variableWidth&&(e=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),i=!0===s.options.rtl?e[0]?-1*(s.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===s.options.centerMode)&&(e=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),i=!0===s.options.rtl?e[0]?-1*(s.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,i+=(s.$list.width()-e.outerWidth())/2),i},n.prototype.getOption=n.prototype.slickGetOption=function(t){return this.options[t]},n.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,s=[],r=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<r;)s.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return s},n.prototype.getSlick=function(){return this},n.prototype.getSlideCount=function(){var i,s=this,r=!0===s.options.centerMode?s.slideWidth*Math.floor(s.options.slidesToShow/2):0;return!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-r+h(e).outerWidth()/2>-1*s.swipeLeft)return i=e,!1}),Math.abs(h(i).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},n.prototype.goTo=n.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
13parseInt(t)}},e)},n.prototype.init=function(t){var e=this;h(e.$slider).hasClass("slick-initialized")||(h(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},n.prototype.initADA=function(){var i=this,s=Math.ceil(i.slideCount/i.options.slidesToShow),r=i.getNavigableIndexes().filter(function(t){return 0<=t&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=r.indexOf(t);h(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&(t="slick-slide-control"+i.instanceUid+e,h("#"+t).length)&&h(this).attr({"aria-describedby":t})}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=r[t];h(this).attr({role:"presentation"}),h(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+s,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.options.focusOnChange?i.$slides.eq(t).attr({tabindex:"0"}):i.$slides.eq(t).removeAttr("tabindex");i.activateADA()},n.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility)&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler))},n.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(h("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility)&&t.$dots.on("keydown.slick",t.keyHandler),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&h("li",t.$dots).on("mouseenter.slick",h.proxy(t.interrupt,t,!0)).on("mouseleave.slick",h.proxy(t.interrupt,t,!1))},n.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",h.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",h.proxy(t.interrupt,t,!1)))},n.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
13,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),h(document).on(t.visibilityChange,h.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),h(window).on("orientationchange.slick.slick-"+t.instanceUid,h.proxy(t.orientationChange,t)),h(window).on("resize.slick.slick-"+t.instanceUid,h.proxy(t.resize,t)),h("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),h(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),h(t.setPosition)},n.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},n.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},n.prototype.lazyLoad=function(){var t,e,i,a=this;function s(t){h("img[data-lazy]",t).each(function(){var t=h(this),e=h(this).attr("data-lazy"),i=h(this).attr("data-srcset"),s=h(this).attr("data-sizes")||a.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0}
vendor: 7,023 bytes, line 13
13,100,function(){i&&(t.attr("srcset",i),s)&&t.attr("sizes",s),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),a.$slider.trigger("lazyLoaded",[a,t,e])})},r.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,t,e])},r.src=e})}if(!0===a.options.centerMode?i=!0===a.options.infinite?(e=a.currentSlide+(a.options.slidesToShow/2+1))+a.options.slidesToShow+2:(e=Math.max(0,a.currentSlide-(a.options.slidesToShow/2+1)),a.options.slidesToShow/2+1+2+a.currentSlide):(e=a.options.infinite?a.options.slidesToShow+a.currentSlide:a.currentSlide,i=Math.ceil(e+a.options.slidesToShow),!0===a.options.fade&&(0<e&&e--,i<=a.slideCount)&&i++),t=a.$slider.find(".slick-slide").slice(e,i),"anticipated"===a.options.lazyLoad)for(var r=e-1,n=i,o=a.$slider.find(".slick-slide"),l=0;l<a.options.slidesToScroll;l++)r<0&&(r=a.slideCount-1),t=(t=t.add(o.eq(r))).add(o.eq(n)),r--,n++;s(t),a.slideCount<=a.options.slidesToShow?s(a.$slider.find(".slick-slide")):a.currentSlide>=a.slideCount-a.options.slidesToShow?s(a.$slider.find(".slick-cloned").slice(0,a.options.slidesToShow)):0===a.currentSlide&&s(a.$slider.find(".slick-cloned").slice(-1*a.options.slidesToShow))},n.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},n.prototype.next=n.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},n.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},n.prototype.pause=n.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},n.prototype.play=n.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},n.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange)&&h(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus())},n.prototype.prev=n.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},n.prototype.preventDefault=function(t){t.preventDefault()},n.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,s,r,a=this,n=h("img[data-lazy]",a.$slider);n.length?(e=n.first(),i=e.attr("data-lazy"),s=e.attr("data-srcset"),r=e.attr("data-sizes")||a.$slider.attr("data-sizes"),(n=document.createElement("img")).onload=function(){s&&(e.attr("srcset",s),r)&&e.attr("sizes",r),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,e,i]),a.progressiveLazyLoad()},n.onerror=function(){t<3?setTimeout(function(){a.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,e,i]),a.progressiveLazyLoad())},n.src=i):a.$slider.trigger("allImagesLoaded",[a])},n.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>i&&(e.currentSlide=i),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),i=e.currentSlide,e.destroy(!0),h.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},n.prototype.registerBreakpoints=function(){var t,e,i,s=this,r=s.options.responsive||null;if("array"===h.type(r)&&r.length){for(t in s.respondTo=s.options.respondTo||"window",r)if(i=s.breakpoints.length-1,r.hasOwnProperty(t)){for(e=r[t].breakpoint;0<=i;)s.breakpoints[i]&&s.breakpoints[i]===e&&s.breakpoints.splice(i,1),i--;s.breakpoints.push(e),s.breakpointSettings[e]=r[t].settings}s.breakpoints.sort(function(t,e){return s.options.mobileFirst?t-e:e-t})}},n.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},n.prototype.resize=function(){var t=this;h(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=h(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},n.prototype.removeSlide=n.prototype.slickRemove=function(t,e,i){var s=this;if(t="boolean"==typeof t?!0===(e=t)?0:s.slideCount-1:!0===e?--t:t,s.slideCount<1||t<0||t>s.slideCount-1)return!1;s.unload(),(!0===i?s.$slideTrack.children():s.$slideTrack.children(this.options.slide).eq(t)).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,s.reinit()},n.prototype.setCSS=function(t){var e,i,s=this,r={};!0===s.options.rtl&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",r[s.positionProp]=t,!1!==s.transformsEnabled&&(!(r={})===s.cssTransitions?r[s.animType]="translate("+e+", "+i+")":r[s.animType]="translate3d("+e+", "+i+", 0px)"),s.$slideTrack.css(r)},n.prototype.setDimensions=function(){var t=this,e=(!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length))),t.$slides.first().outerWidth(!0)-t.$slides.first().width());!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},n.prototype.setFade=function(){var i,s=this;s.$slides.each(function(t,e){i=s.slideWidth*t*-1,!0===s.options.rtl?h(e).css({position:"relative",right:i,top:0,zIndex:s.options.zIndex-2,opacity:0}
13):h(e).css({position:"relative",left:i,top:0,zIndex:s.options.zIndex-2,opacity:0})}),s.$slides.eq(s.currentSlide).css({zIndex:s.options.zIndex-1,opacity:1})},n.prototype.setHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",t))},n.prototype.setOption=n.prototype.slickSetOption=function(){var t,e,i,s,r,a=this,n=!1;if("object"===h.type(arguments[0])?(i=arguments[0],n=arguments[1],r="multiple"):"string"===h.type(arguments[0])&&(i=arguments[0],s=arguments[1],n=arguments[2],"responsive"===arguments[0]&&"array"===h.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)a.options[i]=s;else if("multiple"===r)h.each(i,function(t,e){a.options[t]=e});else if("responsive"===r)for(e in s)if("array"!==h.type(a.options.responsive))a.options.responsive=[s[e]];else{for(t=a.options.responsive.length-1;0<=t;)a.options.responsive[t].breakpoint===s[e].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(s[e])}n&&(a.unload(),a.reinit())},n.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},n.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty)&&void 0===e.MozPerspective&&(t.animType=!1),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform)&&(t.animType=!1),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},n.prototype.setSlideClasses=function(t){var e,i,s,r=this,a=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode?(i=r.options.slidesToShow%2==0?1:0,s=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&((s<=t&&t<=r.slideCount-1-s?r.$slides.slice(t-s+i,t+s+1):(e=r.options.slidesToShow+t,a.slice(e-s+1+i,e+s+2))).addClass("slick-active").attr("aria-hidden","false"),0===t?a.eq(a.length-1-r.options.slidesToShow).addClass("slick-center"):t===r.slideCount-1&&a.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")):(0<=t&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow):a.length<=r.options.slidesToShow?a:(i=r.slideCount%r.options.slidesToShow,e=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?a.slice(e-(r.options.slidesToShow-i),e+i):a.slice(e,e+r.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},n.prototype.setupInfinite=function(){var t,e,i,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(e=null,s.slideCount>s.options.slidesToShow)){for(i=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,t=s.slideCount;t>s.slideCount-i;--t)h(s.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(t=0;t<i+s.slideCount;t+=1)e=t,h(s.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){h(this).attr("id","")})}},n.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},n.prototype.selectHandler=function(t){t=h(t.target).is(".slick-slide")?h(t.target):h(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(t,!1,!0):this.slideHandler(t)}
vendor: 5,811 bytes, line 13
13,n.prototype.slideHandler=function(t,e,i){var s,r,a,n=this;e=e||!1,!0===n.animating&&!0===n.options.waitForAnimate||!0===n.options.fade&&n.currentSlide===t||(!1===e&&n.asNavFor(t),s=t,e=n.getLeft(s),a=n.getLeft(n.currentSlide),n.currentLeft=null===n.swipeLeft?a:n.swipeLeft,!1===n.options.infinite&&!1===n.options.centerMode&&(t<0||t>n.getDotCount()*n.options.slidesToScroll)||!1===n.options.infinite&&!0===n.options.centerMode&&(t<0||t>n.slideCount-n.options.slidesToScroll)?!1===n.options.fade&&(s=n.currentSlide,!0!==i&&n.slideCount>n.options.slidesToShow?n.animateSlide(a,function(){n.postSlide(s)}):n.postSlide(s)):(n.options.autoplay&&clearInterval(n.autoPlayTimer),r=s<0?n.slideCount%n.options.slidesToScroll!=0?n.slideCount-n.slideCount%n.options.slidesToScroll:n.slideCount+s:s>=n.slideCount?n.slideCount%n.options.slidesToScroll!=0?0:s-n.slideCount:s,n.animating=!0,n.$slider.trigger("beforeChange",[n,n.currentSlide,r]),t=n.currentSlide,n.currentSlide=r,n.setSlideClasses(n.currentSlide),n.options.asNavFor&&(a=(a=n.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(n.currentSlide),n.updateDots(),n.updateArrows(),!0===n.options.fade?(!0!==i?(n.fadeSlideOut(t),n.fadeSlide(r,function(){n.postSlide(r)})):n.postSlide(r),n.animateHeight()):!0!==i&&n.slideCount>n.options.slidesToShow?n.animateSlide(e,function(){n.postSlide(r)}):n.postSlide(r)))},n.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},n.prototype.swipeDirection=function(){var t=this,e=t.touchObject.startX-t.touchObject.curX,i=t.touchObject.startY-t.touchObject.curY,i=Math.atan2(i,e),e=Math.round(180*i/Math.PI);return(e=e<0?360-Math.abs(e):e)<=45&&0<=e||e<=360&&315<=e?!1===t.options.rtl?"left":"right":135<=e&&e<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},n.prototype.swipeEnd=function(t){var e,i,s=this;if(s.dragging=!1,s.swiping=!1,s.scrolling)return s.scrolling=!1;if(s.interrupted=!1,s.shouldClick=!(10<s.touchObject.swipeLength),void 0===s.touchObject.curX)return!1;if(!0===s.touchObject.edgeHit&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(i=s.swipeDirection()){case"left":case"down":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=i&&(s.slideHandler(e),s.touchObject={},s.$slider.trigger("swipe",[s,i]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.touchObject={})},n.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},n.prototype.swipeMove=function(t){var e,i,s=this,r=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!s.dragging||s.scrolling||r&&1!==r.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==r?r[0].pageX:t.clientX,s.touchObject.curY=void 0!==r?r[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&4<r?!(s.scrolling=!0):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=r),r=s.swipeDirection(),void 0!==t.originalEvent&&4<s.touchObject.swipeLength&&(s.swiping=!0,t.preventDefault()),t=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(t=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,(s.touchObject.edgeHit=!1)===s.options.infinite&&(0===s.currentSlide&&"right"===r||s.currentSlide>=s.getDotCount()&&"left"===r)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+i*t:s.swipeLeft=e+i*(s.$list.height()/s.listWidth)*t,!0===s.options.verticalSwiping&&(s.swipeLeft=e+i*t),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},n.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},n.prototype.unfilterSlides=n.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},n.prototype.unload=function(){var t=this;h(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
13,n.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},n.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2);!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},n.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},n.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},h.fn.slick=function(){for(var t,e=this,i=arguments[0],s=Array.prototype.slice.call(arguments,1),r=e.length,a=0;a<r;a++)if("object"==typeof i||void 0===i?e[a].slick=new n(e[a],i):t=e[a].slick[i].apply(e[a].slick,s),void 0!==t)return t;return e}}),{onViewport:({callback:i,el:s,executeOnce:r,delta:a=0}={executeOnce:!1})=>{let n=t=>{var e=s.getBoundingClientRect();0<=e.top&&e.top<=window.innerHeight-a&&(i(),r)&&window.removeEventListener("scroll",n)};window.addEventListener("scroll",n),n()},getTemplate:(t,e)=>{e=(e=e||document).querySelector(t);if(e)return t=e.innerHTML.trim().replace(/"/g,'\\"').replace(/>/g,">").replace(/</g,"<").replace(/'/g,"'").replace(/"/g,'"'),new Function("_","return `"+t.trim()+"`");throw"template not found, template must be inside the html node"},getAttributes:(t,e={})=>{let i={...e};return Array.from(t.attributes).forEach(t=>{var e;t.name.startsWith("data-")&&(e=t.name.replace("data-","").replace(/-([a-z])/g,t=>t[1].toUpperCase()),i[e]=/^(true|false)$/.test(t.value)?"true"===t.value:/^\d+(.\d+)?$/.test(t.value)?+t.value:t.value)}),i},stringToDate:t=>{var[t,e,i]=t.split("/");return new Date(t,e-1,i)},removeDiacritics:t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")});function QuickDeploy(t){this.element=t,this.currentStep=null,this.config={host:{login:"",password:"",address:""},storage:{},resources:{},network:{dnsCount:1,ip:"",netmask:"",dns:"",gateway:""},secure:{}},this.datas={SR:null,pools:null,networks:null,PIF:null},this.error=null,this.init()}function evaluateString(t,e){if(/\{_\.([a-zA-Z0-9_]+)\}/.test(t))return new Function("_","return "+t)(e);t=new Function("obj",`with(obj){ return ${t}}`);try{return t(e)}catch(t){return!1}}function getParentByTagName(t,e){return t?t.nodeName===e?t:getParentByTagName(t.parentElement,e):null}function getFormData(t){return Object.fromEntries(new FormData(t).entries())}function debounce(i,s,r){var a;return function(){var t=this,e=arguments;clearTimeout(a),a=setTimeout(function(){a=null,r||i.apply(t,e)},s),r&&!a&&i.apply(t,e)}}function updateView(t,e){[...t.querySelectorAll("[data-value]")].forEach(t=>{t.value=evaluateString(t.dataset.value,e)}),[...t.querySelectorAll("[data-text]")].forEach(t=>{t.innerText=evaluateString(t.dataset.text,e)}),[...t.querySelectorAll("[data-href]")].forEach(t=>{t.setAttribute("href",evaluateString(t.dataset.href,e))})}(async()=>{let d=[{id:"vates",name:"Vates blog",url:"https://vates.tech/blog",API_KEY:"e2c41b895724629a25fe30a54c"},{id:"xo",name:"Xen Orchestra blog",url:"https://xen-orchestra.com/blog",API_KEY:"5449cf9e7b630404bafe98d725"},{id:"XCPng",name:"XCP-ng blog",url:"https://xcp-ng.org/blog",API_KEY:"7e284536043257383006fe39c6"}];let o=document.documentElement.lang||"en";function p(t){t=new Date(t);var e=new Intl.RelativeTimeFormat(o,{numeric:"auto"}),i=new Date,t=Math.round((t-i)/1e3),i=Math.round(t/60),s=Math.round(i/60),r=Math.round(s/24),a=Math.round(r/30),n=Math.round(r/365);return 1<=Math.abs(n)?e.format(n,"year"):1<=Math.abs(a)?e.format(a,"month"):1<=Math.abs(r)?e.format(r,"day"):1<=Math.abs(s)?e.format(s,"hour"):1<=Math.abs(i)?e.format(i,"minute"):e.format(t,"second")}let c=async({maxCards:r,blogFilter:e,tagFilter:a,blogSlug:n,blogIsPage:t})=>{let o=[];for(var l=d.filter(t=>e.includes(t.id)),h=t?"pages":"posts",p=0;p<l.length;p++){let{url:e,API_KEY:t,name:i}=l[p],s;try{s=n?await fetch(e+`/ghost/api/content/${h}/?key=${t}&filter=slug:${n}&include=authors,tags`):0<a.length?await fetch(e+`/ghost/api/content/${h}/?key=${t}&limit=100&include=authors,tags&filter=tags:`+a):await fetch(e+`/ghost/api/content/${h}/?key=${t}&limit=${r}&include=authors,tags`)}catch(t){continue}var c=await s.json();
13("posts"==h?c.posts:c.pages).forEach(t=>{t={...t,blogName:i,blogUrl:e};o.push(t)})}return o.sort((t,e)=>new Date(e.published_at)-new Date(t.published_at)).slice(0,r)};[...document.querySelectorAll(".blog-cards")].forEach(t=>{Helpers.onViewport({el:t,callback:async()=>(async t=>{let e=t.dataset.maxCards*1||4,i=t.dataset.blogFilter.split(",");if(i.length===0||i.toString()==="")i=d.map(t=>t.id);let s=(t.dataset.tagFilter.split(",")||[]).filter(t=>t!=="");if(s.toString()==="")s=[];const r=Helpers.getTemplate(".blog-card-template",t),a=t.querySelector(".blog-cards-content"),n=t.dataset.blogSlug||null,o=t.dataset.ispage==="1",l=await c({maxCards:e,blogFilter:i,tagFilter:s,blogSlug:n,blogIsPage:o}),h=(t.classList.add("loaded"),l.map((t,e)=>{t.index=e;t.published_at=p(t.published_at);return r(t)}));a.innerHTML=h.join("")})(t),executeOnce:!0})});let l=async(t,e)=>{var i=await(await fetch(t+"/ghost/api/content/search-index/posts/?key="+e)).json(),s=await(await fetch(t+"/ghost/api/content/search-index/authors/?key="+e)).json(),t=await(await fetch(t+"/ghost/api/content/search-index/tags/?key="+e)).json();return{post:i.posts,authors:s.authors,tags:t.tags}};[...document.querySelectorAll("form.blog-search")].forEach(t=>{var e=t.querySelector('input[type="search"]');let s=t.querySelector("ul.blog-search-results"),r=t.querySelector("p.blog-search-no-results");e.addEventListener("input",((e,i)=>{let s;return(...t)=>{clearTimeout(s),s=setTimeout(()=>e.apply(this,t),i)}})(async e=>{var i=e.target.value.trim().toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu,"");if(i.length<3)s.innerHTML="",r.classList.remove("display-none");else{let t=[];try{t=await(async r=>{const a=[];for(var n=0;n<d.length;n++){let{url:t,API_KEY:e,name:i}=d[n];if(!d[n].searchIndex)d[n].searchIndex=await l(t,e);let s=d[n].searchIndex.post.filter(t=>{const e=t.title.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu,"");const i=t.excerpt.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu,"");return e.includes(r)||i.includes(r)});a.push(...s.map(t=>{return` 14 <li class="blog-search-result-item posts"><a target="_blank" href="${t.url}">${i}: ${t.title}</a></li> 15 `}));s=d[n].searchIndex.authors.filter(t=>{const e=t.name.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu,"");return e.includes(r)});a.push(...s.map(t=>{return` 16 <li class="blog-search-result-item authors"><a target="_blank" href="${t.url}">${i}: ${t.name}</a></li> 17 `}));s=d[n].searchIndex.tags.filter(t=>{const e=t.name.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu,"");return e.includes(r)});a.push(...s.map(t=>{return` 18 <li class="blog-search-result-item tags"><a target="_blank" href="${t.url}">${i}: ${t.name}</a></li> 19 `}))}return a})(i)}catch(e){}0<t.length?(s.innerHTML=t.join(""),r.classList.add("display-none")):(s.innerHTML="",r.classList.remove("display-none"))}},300))})})(),(async()=>{var t=t=>{t.forEach(t=>{Helpers.onViewport({el:t,callback:async()=>(async t=>{let e=t.dataset.maxCards*1||4,i=(t.dataset.tagFilter.split(",")||[]).filter(t=>t!=="");if(i.toString()==="")i=[];const s=Helpers.getTemplate(".press-card-template",t),r=t.querySelector(".press-container"),a=await o({maxCards:e,tagFilter:i}),n=(t.classList.add("loaded"),a.map((t,e)=>{return s(t)}));r.innerHTML=n.join("")})(t),executeOnce:!0})})};let o=async({maxCards:t,tagFilter:s})=>{let e=[],r=0;return window.press_list.forEach(i=>{if(!(r>=t)){if(0<s.length){let e=!1;if(s.forEach(t=>{-1!==i.class.indexOf(t)&&(e=!0)}),!e)return}e.push(i),r++}}),e};var e,i=[...document.querySelectorAll(".press-cards")];0<i.length&&((e=new XMLHttpRequest).open("GET","/assets/data/press.json",!1),e.send(null),window.press_list=JSON.parse(e.responseText),t(i))})(),(async()=>{function e(t){this._constructor(t)}(e.prototype.constructor=e).prototype.selector=".carousel",e.prototype.defaultOptions={animation:!0,animationDelay:5e3,preview:!0,navigationButtons:!0},e.prototype.optioins={},e.prototype._constructor=function(t){let e=this;this.init(t),this.createDots(),this.addNavigationButtons(),this.addImagePreview(),this.addTouch(),Helpers.onViewport({el:t,callback:async()=>{e.moveTo(0)},executeOnce:!0,delta:100})},e.prototype.init=function(t){this.elm=t,this.options=Helpers.getAttributes(t,this.defaultOptions),this.currentIndex=0,this.isPreviewOpen=!1,this.content=t.querySelector(this.selector+"__content"),this.items=this.content.querySelectorAll("li"),this.content.style.width=100*this.items.length+"vw",this.elm.classList.add("initialized")},e.prototype.createDots=function(){this.dotsContainer=this.elm.querySelector(this.selector+"__dots"),this.dots=[];let a=this;
19Array.from(this.items).forEach((t,e)=>{var i=document.createElement("li"),s=document.createElement("button"),r=document.createElement("span");r.innerText=e+1,s.appendChild(r),s.setAttribute("index",e),i.appendChild(s),a.dotsContainer.appendChild(i),this.dots.push(i)}),this.dotsContainer.addEventListener("click",t=>{t.preventDefault();t=t.target;"BUTTON"===t.tagName&&a.moveTo(t.getAttribute("index"))})},e.prototype.addImagePreview=function(){let r=this;if(this.options.preview){this.elm.classList.add("has-preview");let i,s;window.addEventListener("keydown",t=>{r.isPreviewOpen&&"Escape"===t.key&&r.closePreview()}),this.elm.addEventListener("click",t=>{t.preventDefault();var e,t=t.target;"IMG"===t.tagName&&/LI|PICTURE/.test(t.parentNode.tagName)&&(isPreviewOpen=!0,i||((i=document.createElement("div")).classList.add("component__preview"),(e=document.createElement("img")).classList.add("component__preview-image"),(s=document.createElement("button")).classList.add("component__preview-close"),i.appendChild(e),i.appendChild(s),s.addEventListener("click",t=>{t.preventDefault(),i.querySelector("img").src="",i.classList.remove("component__preview--open"),r.isPreviewOpen=!1}),r.elm.appendChild(i)),i.querySelector("img").src=t.src,i.classList.add("component__preview--open"))})}},e.prototype.addTouch=function(){let i=this;if("ontouchstart"in window){let e=null;this.elm.addEventListener("touchstart",t=>{e=t.touches[0].clientX}),this.elm.addEventListener("touchmove",t=>{null!==e&&(t=t.changedTouches[0].clientX,0<e-t?i.next():i.prev(),e=null)})}},e.prototype.next=function(){this.moveTo((this.currentIndex+1)%this.items.length)},e.prototype.prev=function(){this.moveTo((this.currentIndex-1+this.items.length)%this.items.length)},e.prototype.moveTo=function(t){let i=this;this.isPreviewOpen||(this.currentIndex=+t,this.content.style.transform="translateX(-"+100*t+"vw)",t=this.dotsContainer.querySelectorAll("li"),Array.from(t).forEach((t,e)=>{t.classList.remove("active"),e===i.currentIndex&&t.classList.add("active")}),this.options.animation&&(this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{i.moveTo((i.currentIndex+1)%i.items.length)},this.options.animationDelay)))},e.prototype.addNavigationButtons=function(){if(this.options.navigationButtons){let e=this;var t=document.createElement("button"),t=(t.classList.add("component__prev"),t.setAttribute("title","Prev"),t.addEventListener("click",t=>{e.prev()}),this.elm.appendChild(t),document.createElement("button"));t.classList.add("component__next"),t.setAttribute("title","Next"),t.addEventListener("click",t=>{e.next()}),this.elm.appendChild(t)}},[...document.querySelectorAll(e.prototype.selector)].forEach(t=>{new e(t)}),window.Vates.Carousel=e})(),(async()=>{let e=$(".timeline .slides");var t;0<e.length&&(t=e.find(".timeline-item"),lis_string="",t.each(function(t){lis_string+='<li data-index="'+t+'" data-date="'+$(this).data("date")+'"></li>'}),e.after($('<ul class="dots">'+lis_string+"</ul>")),$('.timeline .dots li[data-index="0"]').addClass("active"),e.slick({infinite:!0,fade:!0}),$(".timeline .dots li").on("click",function(t){t.preventDefault(),e.slick("slickGoTo",$(this).data("index"))}),e.on("beforeChange",function(t,e,i,s){$(".timeline .dots li.active").removeClass("active"),$('.timeline .dots li[data-index="'+s+'"]').addClass("active")}))})(),Date.prototype.toRelativeTime||(Date.prototype.toRelativeTime=function(){var t=Math.round((+new Date-this)/1e3),e=86400;return month=30*e,year=365*e,t<30?"just now":t<60?t+" seconds ago":t<120?"a minute ago":t<3600?Math.floor(t/60)+" minutes ago":1==Math.floor(t/3600)?"1 hour ago":t<e?Math.floor(t/3600)+" hours ago":t<2*e?"yesterday":t<month?Math.floor(t/e)+" days ago":t<year?Math.floor(t/(12*e))+" months ago":this.toLocaleDateString()}),(async()=>{[...document.querySelectorAll(".use-animation")].forEach(t=>{var e=t.dataset.animationDelta||"halfheight";let i;switch(e){case"height":i=t.offsetHeight;break;case"halfheight":i=t.offsetHeight/2;break;default:i=e?parseInt(e):0,isNaN(i)&&(i=0)}Helpers.onViewport({el:t,callback:async()=>{t.classList.add("animate")},executeOnce:!0,delta:i})})})(),(async()=>
19{[...document.querySelectorAll("[data-animated-image]")].forEach(t=>{Helpers.onViewport({el:t,executeOnce:!0,callback:()=>{lottie.loadAnimation({container:t,renderer:"svg",loop:"false"!==t.dataset.animatedLoop,autoplay:!0,path:t.dataset.animatedImage}).setSpeed(t.dataset.animatedSpeed?parseFloat(t.dataset.animatedSpeed):1)}})})})(),(async()=>{let i=(a,n)=>{[...document.querySelectorAll("form.form-pricing .pricing-block")].forEach(t=>{var e=t.querySelector(".price");let i=t.querySelector(".saving-item"),s=(clearTimeout(i.dataset.timeout),e.dataset.price),r=s;0<n?(i.innerHTML=i.dataset.template.replace("{saving}",n).replace("{years}",a),i.classList.add("visible"),s-=s*n/100):(i.classList.remove("visible"),i.dataset.timeout=setTimeout(()=>i.innerHTML=" ",600)),[...t.querySelectorAll(".price-amount")].forEach(t=>{r=(t.classList.contains("dollar")?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",trailingZeroDisplay:"stripIfInteger"}):new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"})).format(s),t.innerHTML=r})})};var t;i(1,0),[...document.querySelectorAll(".pricing-support-choice")].forEach(t=>{t.addEventListener("change",t=>{var e;t.preventDefault(),t.target.matches("input[type='radio']")&&(e=t.target.value,t=t.target.dataset.saving?+t.target.dataset.saving:0,i(e,t))})}),[...document.querySelectorAll(".pricing-table")].forEach(t=>{var e=(e=getComputedStyle(t).getPropertyValue("--animation-duration")).includes("ms")?parseFloat(e,10):1e3*parseFloat(e,10);[...t.querySelectorAll("tr.title-row")].forEach(e=>{e.addEventListener("click",function(t){t.preventDefault(),e.parentNode.classList.toggle("closed")})}),[...t.querySelectorAll("tr.has-description")].forEach(e=>{e.addEventListener("click",function(t){t.preventDefault(),e.classList.toggle("description-closed")})})}),[...document.querySelectorAll(".btn-show-hide-pricing-table")].forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),document.querySelector(".pricing-table").classList.toggle("closed"),e.classList.toggle("closed")})});0!=(t=document.querySelectorAll(".show-hide-details")).length&&t.forEach(e=>{let i=e.previousElementSibling;i.classList.add("closed"),e.addEventListener("click",t=>{t.preventDefault(),i.classList.toggle("closed"),e.textContent=i.classList.contains("closed")?"+":"-"})})})(),(async()=>{if([...document.querySelectorAll(".block-toggle")].forEach(t=>{{var i=t;let e=i.querySelector(".block-toggle__content");e.addEventListener("transitionend",t=>{0<e.offsetHeight&&(e.style.height="auto")}),i.querySelector(".block-toggle__title").addEventListener("click",()=>{i.classList.toggle("block-toggle--open"),e.style.height=e.querySelector("*").offsetHeight+"px",setTimeout(()=>{i.classList.contains("block-toggle--open")||(e.style.height=0)},1)})}}),window.location.hash){let t=document.querySelector(window.location.hash);t&&t.classList.contains("block-toggle__title")&&(t.click(),window.setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"center"})},100))}})(),(async()=>{let r="1.0.2";let u=t=>t.name.replace("filter-",""),m=async({el:t,map:e,templates:a,filters:i})=>{let s=(await g()).filter(e=>0===i.length||i.every(t=>t.filter(e))).map(t=>t);var r,n=t.querySelector(".block-simple-wave__subtitle");n&&(r=document.documentElement.lang||"en",n.innerText=s.length+" "+({en:"Partners",fr:"Partenaires",it:"Partner"}[r]||"Partners"));let o=[...new Set(s.map(t=>t.tier))].sort().reverse();let l="";["Distributor",["CSP","MSP","Reseller"],"OrderTaker"].forEach(r=>{let t=s.filter(t=>Array.isArray(r)?r.includes(t.tier_type_name):t.tier_type_name===r);0!==t.length&&(l+='<table class="store-locator__partners-list">',o.forEach(i=>{var s=t.filter(t=>t.tier===i).sort((t,e)=>{var i,s;return t.is_vip&&!e.is_vip?-1:!t.is_vip&&e.is_vip?1:(i=0<t.certifications.length,s=0<e.certifications.length,i&&!s?-1:!i&&s?1:t.name.localeCompare(e.name))}).map((t,e)=>a.partner({bgClass:`tier-${i} tier-`+(e%2==0?"even":"odd"),...t})).join("");if(""!==s){let t="",e="";"Distributor"===r?t="Distributors":"OrderTaker"===r?(t="Order Takers",e=" display-none"):t="MSPs, Resellers, CSPs",l=(l+=a.tier({tier:i,tier_label:t}))+`<tbody class="tier-${r}${e}">${s}</tbody>`}}),l+="</table>")}),t.querySelector(".store-locator-table-wrapper").innerHTML=l,h(s,e),document.dispatchEvent(new CustomEvent("store-locator:redraw",{detail:{el:t,map:e}}))};let h=(t,o)=>{o.eachLayer(t=>{t instanceof L.Marker&&o.removeLayer(t)}),t.forEach(({id:t,lat:e,lng:i,name:s,city:r,country:a,representative_email:n})=>{e&&i&&L.marker([e,i],{id:t}).addTo(o).bindPopup(`<a href="#partner-${t}" class="icon icon-link" style="color:inherit; text-decoration:none;"> 20 <b>${s}</b><br>
20${[r,a].filter(Boolean).join(", ")}${n?"<br>"+n:""} 21 </a>`)})},e=()=>{var t,e,i=localStorage.getItem("partners");return i?({data:i,expiry:t,version:e}=JSON.parse(i),Date.now()>t||e!==r?(localStorage.removeItem("partners"),null):i):null},i=null,g=async()=>{var t=e();return t?Promise.resolve(a(t)):i=i||new Promise(async(t,e)=>{var i=await(await fetch("https://partners.vates.tech/api/public-partners",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"}})).json(),s=i.data;i?.data&&localStorage.setItem("partners",JSON.stringify({data:s,expiry:Date.now()+36e5,version:r})),t(a(s))})},a=t=>t.map(t=>{let e=t.tier||0;return"Distributor"===t.tier_type_name?e+=70:"OrderTaker"===t.tier_type_name?e+=30:e+=50,{...t,certificationsShort:t.certifications.map(t=>t.replace("Certified - Level ","")),tier:e,id:t.domain_name}});showOrderTakers=()=>{var t=document.querySelector("tbody.tier-OrderTaker"),t=(t&&t.classList.remove("display-none"),document.querySelector("a[href='#show-order-takers']"));t&&t.classList.add("display-none")},document.querySelector(".store-locator")&&(async()=>{let t=window.location.hash;if(t.startsWith("#partner-")){let e=t.slice("#partner-".length).toLowerCase();var s=new Promise(t=>document.addEventListener("store-locator:redraw",t,{once:!0})),r=new Promise(t=>"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0}));let i=(await g()).find(t=>t.id.toLowerCase()===e);i&&(await Promise.all([s,r]),"OrderTaker"===i.tier_type_name&&showOrderTakers(),requestAnimationFrame(()=>{var t=document.getElementById("partner-"+i.id);t&&(t=t.getBoundingClientRect().top+window.pageYOffset-100,window.scrollTo({top:t,behavior:"smooth"}))}))}})(),[...document.querySelectorAll(".store-locator")].forEach(async t=>{var e;await new Promise((e,t)=>{var i=document.createElement("link"),i=(i.href="https://unpkg.com/[email protected]/dist/leaflet.css",i.type="text/css",i.rel="stylesheet",i.crossorigin=!0,document.head.appendChild(i),document.createElement("script"));i.src="https://unpkg.com/[email protected]/dist/leaflet.js",i.crossorigin=!0,i.addEventListener("load",t=>{e(!0)}),document.head.appendChild(i)})&&(e=t.querySelector(".store-locator__map-content"),e=L.map(e,{minZoom:2}).setView([38.834724,-1.346072],2),L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(e),(async({el:t,...e})=>{let a=Helpers.removeDiacritics,n=[],i=t.querySelector(".store-locator__filters");i.addEventListener("reset",function(t){n=[];o()});const o=()=>{m({el:t,filters:n,...e})},l=e=>{n=n.filter(t=>t.name!==e);o()},r=(i.querySelectorAll("input[type=checkbox]").forEach(t=>{t.addEventListener("change",t=>{const e=t.target.checked;const i=u(t.target);const s=t.target.value.toString();l(i);if(e)n.push({type:"checkbox",name:i,filter:t=>{const e=t[i]!==null?t[i]:"";return e.toString().includes(s.toString())}});o()})}),i.querySelectorAll("input[type=search]").forEach(t=>{const e=t.name.replace("filter-","");const i=t.value||"";const s=t=>{const e=u(t.target);const s=t.target.value||"";const r=t.target.dataset.propList?.split(",");l(e);if(t.target.value!=="")n.push({name:e,filter:i=>{if(r)return r.some(t=>{const e=i[t];if(e===null||e===undefined)return false;return a(e.toLowerCase()||"").includes(a(s.toLowerCase()))});return a(i[e].toLowerCase()||"").includes(a(s.toLowerCase()))}});o()};t.addEventListener("keyup",s);t.addEventListener("search",s)}),i.querySelectorAll("select").forEach(t=>{t.addEventListener("change",e=>{const i=u(e.target);l(i);if(e.target.value!=="")n.push({name:i,filter:t=>(t[i]!==null?t[i]:"").toString().includes(e.target.value.toString())});o()})}),t.querySelector("#filter-tier")),s=t.querySelector("#filter-certifications"),h=t.querySelector("#filter-business_activities"),p=await g(),c=[...new Set(p.map(t=>t.tier))].sort().reverse(),d=(c.forEach(t=>{const e=document.createElement("option");e.value=t;const i=Math.floor(t/10);const s=t%10;if(i===7)e.innerText="Distributors - Tier "+s;else if(i===3)e.innerText="Order Takers";else e.innerText="CSP, MSP & Resellers - Tier "+s;r.appendChild(e)}),p.map(t=>t.certifications).flat()),f=[...new Set(d)].sort();f.forEach(t=>{const e=document.createElement("option");e.value=t;e.innerText=t;s.appendChild(e)})})(e={el:t,map:e,templates:{partner:Helpers.getTemplate(".store-locator__partner-template",t),tier:Helpers.getTemplate(".store-locator__partner-tier",t)}}),(({el:t,map:a})=>{const e=t.querySelector(".store-locator-table-wrapper");e.addEventListener("click",t=>{const e=t.target;if(e.classList.contains("store-locator__link-to-map")){const s=e.dataset.partnerId;if(s){var i=[];a.eachLayer(function(t){if(t instanceof L.Marker)i.push(t)});const r=i.find(t=>t.options.id===s);if(r){window.location.href="#map";r.openPopup();a.panTo(r.getLatLng())}}}})})(e),m({...e,filters:[]}))})})(),(async()=>{function s(t){t=t.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:t,behavior:"smooth"})}if(window.location.hash){let t=document.getElementById(window.location.hash.slice(1));t&&setTimeout(function(){s(t)},1e3)}document.querySelectorAll('a[href^="#"]').forEach(t=>{let i=t.getAttribute("href");if("#"!==i){let e=document.getElementById(i.slice(1));e&&t.addEventListener("click",function(t){t.preventDefault(),s(e),i&&window.location.hash!==i&&history.replaceState(null,"",i)})}});let t=document.querySelectorAll(".anchor-menu a");t.length&&window.addEventListener("scroll",()=>{let i="";t.forEach(t=>{var e=document.querySelector(t.getAttribute("href"));e&&e.getBoundingClientRect().top<=window.innerHeight/2&&(i=t.getAttribute("href"))}),t.forEach(t=>{t.classList.remove("active"),t.getAttribute("href")===i&&t.classList.add("active")}),i&&window.location.hash!==i&&history.replaceState(null,"",i)})})(),QuickDeploy.MAX_ATTEMPTS=120,QuickDeploy.CONNECT_TIMEOUT=1e4,QuickDeploy.UNKNOWN_ERROR="UnknownError",QuickDeploy.RESOURCE_PRESETS={small:{memory:4,vcpus:2},medium:{memory:8,vcpus:4},large:{memory:16,vcpus:8}},QuickDeploy.prototype={constructor:QuickDeploy.prototype,steps:[{id:"start",init:function(){},action:function(){this.nextStep()}},{id:"connect",init:function(){},action:function(t){if(!this.loading){this.loading=!0,this.updateView();let n=this;Object.assign(this.config.host,t),this.call("session.login_with_password",[n.config.host.login,n.config.host.password],{timeout:QuickDeploy.CONNECT_TIMEOUT}).then(t=>t instanceof Error?Promise.reject(t):(n.sessionRef=t,Promise.all([n.call("SR.get_all_records"),n.call("pool.get_all_records"),n.call("network.get_all_records"),n.call("PIF.get_all_records"),n.call("host.get_all_records"),n.call("host_metrics.get_all_records")]).then(([t,e,i,s,r,a])=>{Object.assign(n.datas,{...n.datas,SRs:t,pools:e,networks:i,PIF:s,hosts:r,host_metrics:a}),n.loading=!1,n.nextStep()}))).catch(t=>{n.error="AbortError"===t?.name?t?.name:"SESSION_AUTHENTICATION_FAILED"===t.message?t.message:QuickDeploy.UNKNOWN_ERROR,n.loading=!1,n.updateView()})}},cancel:function(){this.runAllAbortControllers(),this.previousStep()}},{id:"configure",init:function(){},action:function(t){"dhcp"===t.networkType?(t.ip="",t.netmask="",t.gateway="",t.dns=""):t.networkType="ip";let{sr:e,preset:i,memory:s,vcpus:r,...a}=t;var t={memory:Math.max(0,Math.floor(Number(s))||0),vcpus:Math.max(0,Math.floor(Number(r))||0)},n=this.getMaxFreeHostMemory();null!==n&&n<1024*t.memory*1024*1024?(this.maxFreeMemoryGiB=Math.floor(n/1073741824),this.error="NOT_ENOUGH_MEMORY",this.updateView()):(Object.assign(this.config.resources,t),Object.assign(this.config.network,{...a}),Object.assign(this.config.sr=e),this.nextStep())}},{id:"secure",init:function(){},action:function(t){Object.assign(this.config.secure,t),this.nextStep()}},{id:"deploy",init:function(){},action:function(){let r=this,i=this.config,s=this.datas,{network:a,secure:n,host:o,resources:l}=i,h=t=>{if(t instanceof Error)throw t;return t};this.status=" Deploying XOAâ¦",this.progress=20,this.updateView(),this.call("VM.import",["http://xoa.io/xva",i.sr,!1,!1]).then(t=>{var[t]=t,t=(vmRef=t,r.vmRef=vmRef,r.progress=60,r.status="Configuring XOAâ¦",r.updateView(),(t,e)=>r.call("VM.add_to_xenstore_data",[vmRef,"vm-data/"+t,"object"==typeof e?JSON.stringify(e):e])),e=[];0<l.memory&&e.push(r.call("VM.set_memory",[vmRef,1024*l.memory*1024*1024]).then(h)),0<l.vcpus&&e.push(r.call("VM.set_VCPUs_at_startup",[vmRef,1]).then(h).then(()=>r.call("VM.set_VCPUs_max",[vmRef,l.vcpus])).then(h).then(()=>r.call("VM.set_VCPUs_at_startup",[vmRef,l.vcpus])).then(h)),a.ip&&e.push(t("ip",a.ip),t("netmask",a.netmask||"255.255.255.0"),t("gateway",a.gateway||""),t("dns",a.dns||"8.8.8.8")),n.xoaLogin&&n.xoaPassword&&e.push(t("admin-account",{email:n.xoaLogin,password:n.xoaPassword})),n.sshLogin&&n.sshPassword&&e.push(t("system-account-xoa-password",n.sshPassword)),e.push(t("xen-servers",[{allowUnauthorized:!0,host:o.address,password:o.password,username:o.login}]));let i=s.networks[a.network].MTU;return e.push(r.call("VM.get_VIFs",[vmRef]).then(([t])=>this.call("VIF.destroy",[t])).then(()=>this.call("VM.get_allowed_VIF_devices",[vmRef])).then(t=>(this.progress=45,this.call("VIF.create",[{device:t[0],MAC:"",MTU:i,network:a.network,other_config:{},qos_algorithm_params:{},qos_algorithm_type:"",VM:vmRef}])))),Promise.all(e)}).then(()=>(r.progress=70,r.status="Starting XOAâ¦",r.updateView(),this.call("VM.start",[vmRef,!1,!1]))).then(()=>this.call("VM.get_guest_metrics",[vmRef])).then(t=>{r.progress=80,this.status="Waiting for XOA to respondâ¦",this.updateView();let i=QuickDeploy.MAX_ATTEMPTS,s=()=>this.call("VM_guest_metrics.get_networks",[t]).then(t=>{var e=void 0===t?void 0:t["0/ip"],[,t]=void 0===t?void 0:Object.entries(t).find(([t,e])=>/^0\/ipv6\/\d+$/.test(t)&&!e.startsWith("fe80:"))||[];
21if((void 0!==e||void 0!==t)&&(0===(i=30<i?30:i)||void 0!==e&&void 0!==t))return{ipv4:e,ipv6:t};if(0==i--)throw new Error("XOA not responding");return new Promise((t,e)=>setTimeout(()=>s().then(t,e),1e3))});return s()}).then(({ipv4:t,ipv6:e})=>(r.progress=95,r.updateView(),r.ipv4=i.network.ip||t||e,r.ipv4!==e&&(r.ipv6=e),Promise.all(["admin-account","dns","gateway","ip","netmask","system-account-xoa-password","xen-servers","xoa-updater-credentials"].map(t=>this.call("VM.remove_from_xenstore_data",[vmRef,"vm-data/"+t]).catch(t=>{}))))).then(()=>(r.statusDeploy="success",r.nextStep(),!0)).catch(t=>{if(!r.canceledByUser){if("AbortError"===t?.name)return t;this.nextStep(),r.handleError(t)}})},cancel:function(){this.runAllAbortControllers(),this.vmRef&&this.call("VM.destroy",[this.vmRef]).then(t=>{}).catch(t=>{}),this.vmRef=null,this.loading=!1,setTimeout(()=>this.previousStep(),100)}},{id:"final",init:function(){},action:function(){}}],init:function(){this._initSteps(),this._initEvents(),this._initStepper();var t=this.element.querySelector("[data-action=applyPreset]");t&&this.applyResourcePreset(t.value),this.showStep(this.steps[0])},_initEvents:function(){let r=this;this.element.addEventListener("click",debounce(t=>{var i=getParentByTagName(t.target,"BUTTON");if(i){let[t,e]=i.dataset.action.split(":");switch(t){case"action":return this.currentStep.action?void this.currentStep.action.call(this):void 0;case"back":return void this.previousStep();case"resetStep":return r.error=null,r.loading=!1,void r.updateView();case"cancel":return(r.canceledByUser=!0,this.currentStep.cancel)?void this.currentStep.cancel.call(this):void 0;case"duplicate":var s=i.dataset.actionParams.split(",")[0],s=this.currentStep.element.querySelector(s);return s.parentNode.appendChild(s.cloneNode(!0)),new Function("obj","obj."+i.dataset.actionPost)(this),void this.showHideRefresh();case"back-to-step":s=this.steps.find(t=>t.id===e);return void(s&&this.showStep(s));case"openWebHostInterface":return window.open("https://"+r.config.host.address,"_blank"),r.error=!1,void r.updateView();case"submit":return}}t=getParentByTagName(t.target,"INPUT");if(t&&"showHideRefresh"===t.dataset.action)this.updateConfigFromInput(t),this.showHideRefresh()}),100),this.element.addEventListener("submit",t=>{t.preventDefault();t=getParentByTagName(t.target,"FORM");this.currentStep.action&&this.currentStep.action.call(this,getFormData(t))}),this.element.addEventListener("change",t=>{"applyPreset"===t.target.dataset.action&&this.applyResourcePreset(t.target.value)}),this.element.addEventListener("input",t=>{void 0!==t.target.dataset.resourceField&&((t=this.element.querySelector("[data-action=applyPreset]"))&&(t.value="custom"),"NOT_ENOUGH_MEMORY"===this.error)&&(this.error=null,this.updateView())})},applyResourcePreset:function(t){var e,i,t=QuickDeploy.RESOURCE_PRESETS[t];t&&(e=this.element.querySelector("[name=memory]"),i=this.element.querySelector("[name=vcpus]"),e&&(e.value=t.memory),i)&&(i.value=t.vcpus)},getMaxFreeHostMemory:function(){let{hosts:t,host_metrics:e}=this.datas;if(!t||!e)return null;let i=null;return Object.values(t).forEach(t=>{t.enabled&&0<(t=(t=e[t.metrics])&&Number(t.memory_free))&&(null===i||t>i)&&(i=t)}),i},_initSteps:function(){this.stepsElements=[...this.element.querySelectorAll(".quick-deploy__step")],this.stepsElements.forEach((e,t)=>{var i=this.steps.find(t=>e.dataset.stepId===t.id);i&&Object.assign(i,{element:e,title:e.dataset.stepTitle,position:t})}),this.steps.sort((t,e)=>t.position-e.position)},_initStepper:function(){this.stepperElement=this.element.querySelector(".quick-deploy__stepper");let i=document.createElement("ul");this.stepperElement.appendChild(i),this.steps.forEach(t=>{var e;t.title&&((e=document.createElement("li")).innerHTML=""+t.title,i.appendChild(e),t.stepperElement=e)})},showStep:function(t){let i=this;this.canceledByUser=!1,this.error=null,this.loading=!1,this.steps.forEach(({element:t})=>t.classList.add("hidden")),t.element.classList.remove("hidden"),this.currentStep=t,this.steps.forEach(({position:t,stepperElement:e})=>{e&&(e.classList.toggle("active",t<=i.currentStep.position),e.classList.toggle("done",t<i.currentStep.position))}),this.showHideRefresh(),this.initCurrentStep(),this.currentStep.init.call(this)},initCurrentStep:function(){let e=this;this.error=null,this.loading=!1,this.currentStep.element.querySelectorAll("[data-action=showHideRefresh]").forEach(t=>{e.updateConfigFromInput(t)}),this.initStep(this.currentStep),this.updateView();var t=this.currentStep.element.dataset.autoTrigger;t&&this.currentStep[t]&&this.currentStep[t].call(this)},updateConfigFromInput:function(t){let e;e="checkbox"===t.type?{[t.name]:t.checked?t.value:t.dataset.valueNotchecked||null}:{[t.name]:t.value},Object.assign(this.config,e)},updateView:function(){updateView(this.currentStep.element,this),this.showHideRefresh()},showHideRefresh:function(){this.element.querySelectorAll("[data-show]").forEach(t=>{evaluateString(t.dataset.show,this)?t.classList.remove("hidden"):t.classList.add("hidden")})},nextStep:function(){var t=this.steps[this.currentStep.position+1];t&&this.showStep(t)},previousStep:function(){var t=this.steps[this.currentStep.position-1];t&&this.showStep(t)},initStep:function(t){t.element.querySelectorAll("select").forEach(n=>{switch(n.dataset.configRef){case"SR":let r=this.datas.SRs;return void Object.keys(r).forEach((t,e)=>{var i,s=r[t];"iso"!==s.content_type&&0<s.physical_size&&((i=document.createElement("option")).value=t,i.textContent=`${s.name_label} - ${Math.round((s.physical_size-s.physical_utilisation)/Math.pow(1024,3))} GiB left`,n.append(i),s=(t=this.datas.pools)[Object.keys(t)[0]].default_SR,void 0!==s)&&(n.value=s)});case"network":let a=this.datas.networks;
21return void Object.keys(a).forEach((t,e)=>{var i=a[t],s=document.createElement("option");s.value=t,s.textContent=""+i.name_label,n.append(s),0===e&&(n.value=t),this.datas.PIF&&void 0!==(i=Object.values(this.datas.PIF).find(t=>t.management))?.network&&(n.value=i.network)})}})},call:function(e,i,s={}){i=i||[];var t=this.sessionRef?[this.sessionRef].concat(i):i;return this.jsonRPC(e,t,s).then(t=>{if(t instanceof Error)throw t;return t}).catch(t=>t&&"HOST_IS_SLAVE"===t.message?(this.config.host.address=t.data[0],this.call(e,i,s)):t)},handleError:function(t,e){"https unavailable"!==t.message&&(this.status="An error has occurred",this.statusDeploy="fail",JSON.stringify(t,null,2),void 0!==t.config&&null!=t.config.data&&delete t.config.data,this.logText=JSON.stringify(t,null,2),"INTERNAL_ERROR"===t.message&&(this.logText="Hint: this may be a DNS issue. Please check that the host is able to download the appliance by runningthis command on the host: curl - I http://xoa.io/xva"),this.updateView())},abortControllers:[],removeAbortControllers:function(e){this.abortControllers=this.abortControllers.filter(t=>!e.includes(t))},runAllAbortControllers:function(){this.abortControllers.forEach(t=>t.abort()),this.abortControllers=[]},jsonRPC:async function(t,e,i={}){let s=new AbortController;var r=this.config.host.address,i=i.timeout;let a=this;this.abortControllers.push(s);let n;return i&&(n=setTimeout(()=>{s.abort("Timeout")},i)),fetch(`https://${r}/jsonrpc`,{method:"POST",signal:s.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:t,params:e,id:1})}).then(t=>t.json().then(t=>{if(void 0!==t.result)return t.result;throw new Error(t.error.message)})).catch(t=>t).finally(()=>{clearTimeout(n),a.removeAbortControllers([s])})}},document.querySelectorAll(".quick-deploy").forEach(t=>{new QuickDeploy(t)}),(async()=>{let p=document.querySelector(".contact-form");if(p){let a=p.querySelector(".contact-form-error"),n=document.getElementById("contact-participant-nb"),o=null,l=null,h="",t=(n&&(o=document.getElementById("available-seats"),l=document.querySelector(".contact-form-error .seat-limit"))&&(h=l.innerHTML),p.addEventListener("submit",function(t){let e=[],i=!1;if(p.querySelectorAll("[required]").forEach(t=>{"SELECT"==t.tagName?0==t.selectedIndex&&e.push(t.options[0].textContent):""==t.value&&e.push(t.placeholder)}),n){var s=document.getElementById("contact-object");if(s&&""!=s.value){var r=parseInt(n.value)||0;r<=0&&e.push(n.placeholder);let t=parseInt(o.value)||0;r>(t=t<=0?0:t)?(l.innerHTML=h.replace("{available}",t).replace("{needed}",r),l.classList.remove("display-none"),0==e.length&&(i=!0)):l&&l.classList.add("display-none")}else l.classList.add("display-none"),0==e.length&&e.push(s.placeholder)}0<e.length||i?(t.preventDefault(),a.classList.remove("display-none"),0==e.length?a.classList.add("hide-required"):(a.classList.remove("hide-required"),1==e.length?a.classList.remove("plural"):a.classList.add("plural"),a.querySelector("span.required").innerHTML=e.join(", ")+".")):a.classList.add("display-none")}),p.setAttribute("target","iframecontactform"),document.createElement("iframe")),e=(t.name="iframecontactform",t.id="iframecontactform",t.sandbox="allow-same-origin allow-scripts allow-modals allow-popups allow-forms",t.style="width:0; height:0; border:0; border:none; opacity:0; visibility:hidden; position:absolute;",document.body.appendChild(t),t.addEventListener("load",()=>{if(t.contentWindow&&t.contentWindow.location&&/\?messageSent/.test(t.contentWindow.location.href)){p.classList.add("display-none"),document.querySelector(".contact-form-success").classList.remove("display-none");let i={type:"FORM_SUBMIT_TRACKING",event:"contact_form_submission",tags:"contact",page_url:"contact_form_submission"},s={page_title:"select[name='object']",email:"input[name='email']"};Object.keys(s).forEach(t=>{var e=p.querySelector(s[t]);e&&e.value&&(i[t]=e.value)}),"function"==typeof window.TrackFormageData?window.TrackFormageData(i):window.top&&"function"==typeof window.top.TrackFormageData&&window.top.TrackFormageData(i)}}),document.getElementById("contact-object")),i=document.getElementById("contact-host-row"),s=document.getElementById("contact-hosts");var r;e.addEventListener("change",()=>{"Commercial Question"==e.options[e.selectedIndex].value?(i.classList.remove("display-none"),s.disabled=!1):(i.classList.add("display-none"),s.disabled=!0)}),window.location.hash&&window.location.hash.includes("team-")&&(r=window.location.hash.replace("#team-",""),r=e.querySelector(`option[data-team="${r}"]`))&&(r.selected=!0,e.dispatchEvent(new Event("change")))}})(),(async()=>{rpcCall=async(t,e)=>(await fetch("https://account.vates.fr/api",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:"store",jsonrpc:"2.0",method:t,params:e})})).json(),[...document.querySelectorAll(".register-form")].forEac
21h(t=>{(async s=>{let n=s.querySelector("form"),o=(n.addEventListener("submit",async t=>{t.preventDefault(),t.stopPropagation();var e=new FormData(n);let i={},{optin:s,...r}=(e.forEach((t,e)=>{i[e]=t}),i.company="",i),a;try{if((a=await rpcCall("createAccount",r)).error)return void o(a.error?.message)}catch(t){return void o(t)}a.result&&(l(),p(),h("Your account has been created successfully, you will receive an activation email")),s||rpcCall("savePreferences",{xwToken:a.result.token,preferences:{nomail:!0}}),rpcCall("saveAccountOrigin",{xwToken:a.result.token,origin:"vates"})}),t=>{e(".error-message","add",'<i class="fail-exclamation"></i> '+t)}),l=()=>{e(".error-message","remove","")},h=t=>{e(".success-message","add",null)};let p=()=>{n.classList.add("hidden")},e=(t,e,i)=>{t=s.querySelector(t);null!=i&&(t.innerHTML=i),t.classList[e]("visible")}})(t)})})(),(async()=>{TrainingRegistration=async()=>{t(),i(),s(p,c),g.querySelector("tr th.nav.next").addEventListener("click",t=>{var e,i;d&&(e=p,i=c,0===(p=(p+1)%12)&&(c+=1),new Date(c,p)>d?(p=e,c=i):(s(p,c),a()))}),g.querySelector("tr th.nav.prev").addEventListener("click",t=>{var e,i;h&&(e=p,i=c,11===(p=0===p?11:p-1)&&--c,new Date(c,p+1,0)<h?(p=e,c=i):(s(p,c),a()))}),a(),y.addEventListener("click",function(e){if(e.target.matches("td a")||e.target.matches("td a span")){e.preventDefault();let t=e.target;e=(t=e.target.matches("td a span")?e.target.parentNode:t).getAttribute("title");e&&(document.getElementById("contact-object").value=e,document.getElementById("available-seats").value=t.getAttribute("seats")||"0")}},!1),o.classList.remove("display-none")};let t=()=>{let i=o.querySelector("div.table_wrap ul");var t=Object.keys(u).filter(t=>["fr","en","it"].includes(t)).sort();let s={fr:"Afficher les formations en français",en:"Display training courses in English",it:"Mostra corsi in italiano"};t.forEach(t=>{var e=document.createElement("li");e.innerHTML=`<input type="checkbox" id="lg-${t}" class="lg-filter" data-lg="${t}" checked><label for="lg-${t}" class="${t}">${s[t]}</label>`,i.appendChild(e)}),i.addEventListener("change",function(t){t.target.matches("input")&&r()},!1)},e=t=>{var e=o.querySelector("div.no-training-message");"show"===t?e.classList.remove("display-none"):e.classList.add("display-none")},r=()=>{e("hide");var t=(()=>{let e=[];return o.querySelectorAll("div.table_wrap ul li input.lg-filter").forEach(t=>{t.checked&&e.push(t.getAttribute("data-lg"))}),e})();if(m={},h=null,d=null,0===t.length)e("show");else if(t.forEach(t=>{u[t]&&u[t].forEach(t=>{var e=t.startDate.getFullYear(),i=t.startDate.getMonth()+1;m[e]||(m[e]={}),m[e][i]||(m[e][i]=[]),m[e][i].push(t),(!h||t.startDate<h)&&(h=t.startDate),(!d||t.endDate>d)&&(d=t.endDate)})}),0===Object.keys(m).length)e("show");else if(!m[c]||!m[c][p+1]){for(let e=c;e<=c+1;e++)for(let t=e===c?p+1:1;t<=12;t++)if(m[e]&&m[e][t+1])return p=t,c=e,s(p,c),void a();c=Object.keys(m).sort()[0],p=Object.keys(m[c]).sort()[0],s(p,c)}a()},s=(t,e)=>{p=parseInt(t),c=parseInt(e);t=new Date(Date.UTC(c,p,15,12,0,0,0));g.querySelector("th.title").innerHTML=t.toLocaleDateString(f,{month:"short",year:"numeric"})},i=()=>{var e=[];for(let t=0;t<7;t++){var i=new Date(Date.UTC(2021,7,t+1,12,0,0,0));e.push(i.toLocaleDateString(f,{weekday:"short"}))}var s=document.createElement("tr");for(let t=0;t<7;t++){var r=document.createElement("th");r.innerHTML=e[t],s.appendChild(r)}g.appendChild(s)},a=()=>{var t=p,e=c,i=m[e]&&m[e][t+1]||[];let r={};i.forEach(e=>{var i=e.startDate.getDate(),s=(r[i]||(r[i]=[]),r[i].push(e),e.endDate.getDate());for(let t=i+1;t<=s;t++)r[t]||(r[t]=[]),r[t].push(e)}),y.innerHTML="";var a=new Date(e,t).getDay(),n=32-new Date(e,t,32).getDate();let o=1;for(let e=0;e<6;e++){var l=document.createElement("tr");for(let t=0;t<7;t++){var h=document.createElement("td");let s="";0===e&&t<a||o>n||(s=o,r[o]&&r[o].forEach(t=>{let e="",i="";t.startDate.getDate()===o?i+=" start":t.endDate.getDate()===o?i+=" end":(e=`<span>${t.short}</span>`,i=t.lg),s+=`<a href="#" class="${i}" title="${t.title}" seats="${t.seatsAvailable}">${e}</a>`}),o++),h.innerHTML=s,l.appendChild(h)}if(y.appendChild(l),o>n)break}},n=null;let o=document.getElementById("training-registration");if(!o)return;var l=new Date;let p=l.getMonth(),c=l.getFullYear(),h=null,d=null,f=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language,u=(f=f||"en_US",await(async()=>{var t;(t=localStorage.getItem("trainings"))&&({data:t,expiry:t}=JSON.parse(t),Date.now()>t)&&localStorage.removeItem("trainings");return n=n||new Promise(async(t,e)=>{var i=new XMLHttpRequest,i=(i.open("GET","https://cdn.vates.tech/data/trainings.json",!1),i.send(null),JSON.parse(i.responseText));let r={};
21i.trainings.forEach(t=>{t.startDate=new Date(t.start),t.endDate=new Date(t.end);var e=t.startDate.getFullYear(),i=t.startDate.getMonth()+1,s=t.title.split("-");s[0]=s[1],s[1]=" "+t.startDate.toISOString().split("T")[0]+" ",t.title=s.join("â¢"),t.short=s[2],r[e]||(r[e]={}),r[e][i]||(r[e][i]=[]),r[e][i].push(t),(!h||t.startDate<h)&&(h=t.startDate),(!d||t.endDate>d)&&(d=t.endDate),r[t.lg]||(r[t.lg]=[]),r[t.lg].push(t)}),r&&localStorage.setItem("trainings",JSON.stringify({data:r,expiry:Date.now()+36e5})),t(r)})})());if(!u)return;let m=u,g=o.querySelector("table thead"),y=o.querySelector("table tbody");TrainingRegistration()})(),(async()=>{document.querySelectorAll(".filterable.past-event").forEach(t=>{t.style.display="none"});let e=[...document.querySelectorAll(".tags-filter a")];if(0<e.length){let i=s=>{var t=e.find(t=>t.getAttribute("href")==="#"+s);t&&(e.forEach(t=>{t.classList.remove("selected")}),t.classList.add("selected"),[...document.querySelectorAll(".filterable")].forEach(t=>{var e=t.classList.contains("past-event");let i;(i="past-event"===s?e:"all"===s||""===s?!e:t.classList.contains(s))?t.style.removeProperty("display"):t.style.display="none"}),history.replaceState(null,null,"#"+s))};e.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();t=e.getAttribute("href").replace("#","");i(t)})});var t=window.location.hash;t&&1<t.length&&(t=t.replace("#",""),i(t))}})(),(async()=>{function e(t){var e=t.dataset.wordsList.split(",").map(t=>`<span class="word-carousel__item">${t}</span>`).join(""),e=(t.innerHTML=e,t.querySelectorAll(".word-carousel__item"));t.prepend(e[e.length-1].cloneNode(!0)),t.appendChild(e[0].cloneNode(!0)),t.classList.add(i+"-initialized"),setTimeout(()=>{setInterval(()=>{t.append(t.children[0])},2200)},500)}let i="words-carousel";
21[...document.querySelectorAll("."+i)].forEach(t=>{e(t)})})(),(async()=>{var t;document.querySelectorAll("a.modal-link").forEach(function(t){let e=document.getElementById(t.getAttribute("modal-dst"));e&&(t.addEventListener("click",function(t){t.preventDefault(),e.classList.add("show"),e.classList.remove("hide")}),e.addEventListener("click",function(t){t.target===e&&(t.preventDefault(),e.classList.add("hide"),e.classList.remove("show"))}))}),location.hash&&(t=document.querySelector(location.hash))&&t.classList.contains("modal-link")&&(t.scrollIntoView({behavior:"smooth",block:"center"}),t.click())})(),(()=>{var i=document.querySelector(".vms-calc");if(i){var t,e,s=document.documentElement.lang||"en",r={};try{var a=i.querySelector("#vc-i18n");a&&(r=JSON.parse((t=a.textContent,(e=document.createElement("textarea")).innerHTML=t,e.value)))}catch(t){r={}}var p=function(t){return i.querySelector("#"+t)},c=function(t,e){var t=p(t);return t&&(t=parseFloat(t.value),isFinite(t))?t:e||0},n={EUR:{VVS:51.25,VVF:192.75,VCF:362.24},USD:{VVS:49.9,VVF:219.9,VCF:399.9}},d={VVS:"pVVS",VVF:"pVVF",VCF:"pVCF"},o=[{id:"ESSENTIAL",name:u("tier-essential-name"),priceId:"vEss",perHost:!1,min:1,max:3,hint:u("tier-essential-hint")},{id:"ESSENTIALP",name:u("tier-essential-plus-name"),priceId:"vEssP",perHost:!1,min:1,max:3,hint:u("tier-essential-plus-hint")},{id:"PRO",name:u("tier-pro-name"),priceId:"vPro",perHost:!0,min:3,max:64,hint:u("tier-pro-hint")},{id:"ENTERPRISE",name:u("tier-enterprise-name"),priceId:"vEnt",perHost:!0,min:4,max:64,hint:u("tier-enterprise-hint")}],l={xostor:{name:"XOSTOR",flat:2400,perHost:{PRO:800,ENTERPRISE:1200}},easyvirt:{name:"EasyVirt",flat:1500,perHost:{PRO:500,ENTERPRISE:700}}},f={term:3,currency:"EUR"},h={EUR:"fr-FR",USD:"en-US"};i.querySelectorAll("[data-term]").forEach(function(e){e.addEventListener("click",function(){f.term=parseInt(e.dataset.term,10),i.querySelectorAll("[data-term]").forEach(function(t){t.setAttribute("aria-pressed",String(t===e))}),A()})}),i.querySelectorAll("[data-cur]").forEach(function(e){e.addEventListener("click",function(){f.currency=e.dataset.cur,i.querySelectorAll("[data-cur]").forEach(function(t){t.setAttribute("aria-pressed",String(t===e))}),g(),A()})}),p("form").addEventListener("input",A),p("form").addEventListener("change",A),p("printBtn").addEventListener("click",function(){window.print()}),window.addEventListener("beforeprint",function(){i.querySelectorAll("details").forEach(function(t){t.dataset.printPrev=t.open?"1":"0",t.open=!0})}),window.addEventListener("afterprint",function(){i.querySelectorAll("details").forEach(function(t){"0"===t.dataset.printPrev&&(t.open=!1),delete t.dataset.printPrev})}),g(),A()}function u(t){return r[t]||t}function m(t,i){return u(t).replace(/\{(\w+)\}/g,function(t,e){return i&&e in i?i[e]:""})}function g(){var i=n[f.currency]||n.EUR;Object.keys(d).forEach(function(t){var e=p(d[t]);e&&(e.value=i[t])})}function y(){return h[f.currency]||s}function v(t){return new Intl.NumberFormat(y(),{style:"currency",currency:f.currency,maximumFractionDigits:0,minimumFractionDigits:0}).format(Math.round(t))}function b(t){return new Intl.NumberFormat(y(),{style:"currency",currency:f.currency,maximumFractionDigits:2}).format(t)}function S(t){return new Intl.NumberFormat(s).format(Math.round(t))}function w(t){return S(t)+" "+u(1===t?"unit-host-singular":"unit-host-plural")}function k(t){return u("edition-name-"+t.toLowerCase())}function E(t){var s=Math.max(1,c("hosts",1)),r=o.filter(function(t){return t.id===p("vatesTier").value})[0]||o[2],e=3===(e=t)?c("d3",10)/100:5===e?c("d5",15)/100:0,a=[],i=c(r.priceId,0),n=r.perHost?i*s:i,i=(a.push({label:"Vates VMS "+r.name,detail:r.perHost?m("row-per-host-detail",{price:b(i),hosts:s}):m("row-flat-detail",{price:b(i),max:r.max}),annual:n}),["xostor","easyvirt"].forEach(function(t){var e,i;p(t).checked&&(t=l[t],i=r.perHost&&t.perHost[r.id]?(e=t.perHost[r.id]*s,m("row-per-host-detail",{price:b(t.perHost[r.id]),hosts:s})):(e=t.flat,m("row-flat-simple",{price:b(t.flat)})),a.push({label:t.name+" ("+r.name+")",detail:i,annual:e}))}),a.reduce(function(t,e){return t+e.annual},0)),n=i*(1-e);return{tier:r,hosts:s,lines:a,discount:e,annualList:i,annual:n,total:n*t}}function T(){var e,i=p("vatesTier"),s=i.value,t=(e=Math.max(1,c("hosts",1)),o.filter(function(t){return e>=t.min&&e<=t.max})),r=(i.innerHTML="",(t=t.length?t:o.filter(function(t){return t.perHost}
21)).forEach(function(t){var e=document.createElement("option");e.value=t.id,e.textContent=t.name,i.appendChild(e)}),t.filter(function(t){return t.id===s}).length),r=(i.value=r?s:t.filter(function(t){return"PRO"===t.id}).length?"PRO":t[0].id,o.filter(function(t){return t.id===i.value})[0]);p("tierHint").textContent=r?r.hint:""}function x(t,s){var r=document.createElement("tr");return s&&(r.className=s),t.forEach(function(t,e){var i=document.createElement("head"===s?"th":"td");"head"===s&&i.setAttribute("scope","col"),0<e&&(i.className="num"),t&&t.html?i.innerHTML=t.html:i.textContent=t,r.appendChild(i)}),r}function A(){T();var n,s,t=p("vmwEdition").value,e=(p("editionHint").textContent=u("edition-hint-"+t.toLowerCase()),p("availabilityNote")),e=(e&&(e.hidden="VVF"!==t),p("usdBasketNote")),t=(e&&(e.hidden="USD"!==f.currency),p("vmwDiscountVal").textContent=c("vmwDiscount",0)+"%",[1,3,5].map(function(t){return{term:t,vmware:(e=t,l=Math.max(1,c("hosts",1)),i=Math.max(1,c("sockets",1)),s=Math.max(1,c("cores",1)),r=Math.max(1,c("minCores",16)),o=p("vmwEdition").value,a=l*i*s,i=l=l*i*Math.max(r,s),r=c(d[o],0),s=c("vmwDiscount",0)/100,n=c("vmwMultiDiscount",0)/100,{edition:o,rawCores:a,afterCpuMin:l,billableCores:i,phantomCores:i-a,listPerCore:r,effPerCore:o=r*(1-s)*(1-n),discount:s,multiDiscount:n,annual:l=i*o,total:l*e}),vates:E(t)};var e,i,s,r,a,n,o,l})),e=t.filter(function(t){return t.term===f.term})[0],i=Math.max.apply(null,t.map(function(t){return Math.max(t.vmware.total,t.vates.total)})),r=e.vmware,e=e.vates,a=r.total-e.total,o=0<r.total?a/r.total*100:0,l=(p("heroLabel").textContent=m(0<=a?"hero-saved-over":"hero-extra-over",{term:u("term-"+f.term+"y")}),p("heroFig").textContent=v(Math.abs(a)),p("heroFig").className="vc-hero-fig"+(0<=a?"":" negative"),k(r.edition)),o=0<=a?m("pct-less-than",{pct:Math.round(o),edition:l}):m("pct-more-than",{pct:Math.round(-o),edition:l}),l=(p("heroSub").textContent=o+" "+m("hero-sub-suffix",{amount:v(Math.abs(a)/f.term),hosts:w(e.hosts)}),p("kVmw").textContent=v(r.total),p("kVmwN").textContent=m("kpi-vmware-note",{annual:v(r.annual),rate:b(r.effPerCore)}),p("kVat").textContent=v(e.total),p("kVatN").textContent=m("kpi-vates-note",{annual:v(e.annual),rate:v(e.annual/e.hosts)}),p("kUnits").textContent=S(r.billableCores)+" "+u("unit-cores"),c("vms",0)),a=(p("kUnitsN").textContent=m("kpi-units-note",{hosts:w(e.hosts)})+(0<l?m("kpi-units-note-per-vm",{vmwarePerVm:v(r.total/l),vatesPerVm:v(e.total/l)}):""),p("legEdition").textContent="("+k(r.edition)+")",p("legTier").textContent="("+e.tier.name+")",o=t,n=i,(s=p("chart")).innerHTML="",o.forEach(function(r){var t=document.createElement("div"),e=(t.className="vc-cgroup",document.createElement("div")),a=(e.className="vc-cgroup-lbl",e.textContent=u("term-"+r.term+"y"),t.appendChild(e),document.createElement("div")),e=(a.className="vc-bars",[["vc-f2",r.vmware.total,"V
21Mware"],["vc-f1",r.vates.total,"Vates VMS"]].forEach(function(t){var e=document.createElement("div"),i=(e.className="vc-barline",document.createElement("div")),s=(i.className="vc-track",document.createElement("div")),s=(s.className="vc-fill "+t[0],s.style.width=(0<n?Math.max(.4,t[1]/n*100):0)+"%",i.appendChild(s),i.title=t[2]+", "+m("chart-tooltip-total",{term:r.term})+" "+v(t[1]),document.createElement("div"));s.className="vc-barval",s.textContent=v(t[1]),e.appendChild(i),e.appendChild(s),a.appendChild(e)}),document.createElement("div")),i=(e.className="vc-multiple",0<r.vates.total?r.vmware.total/r.vates.total:0);e.textContent=1<=i?m("chart-costs-more-vmware",{ratio:i.toFixed(1)}):m("chart-costs-more-vates",{ratio:(r.vates.total/r.vmware.total).toFixed(1)}),a.appendChild(e),t.appendChild(a),s.appendChild(t)}),e),l=r,t=f.term,i=p("breakdown"),o=i.querySelector("caption"),h=(i.innerHTML="",i.appendChild(o),o.textContent=m("table-caption",{term:t}),(o=document.createElement("thead")).appendChild(x([u("table-header-item"),u("table-header-annual"),m("term-total-label",{term:t})],"head")),i.appendChild(o),document.createElement("tbody")),o=(h.appendChild(x([{html:'<span class="vc-tag"><span class="vc-swatch vc-sw2"></span>VMware '+k(l.edition)+"</span>"},"",""],"sect")),h.appendChild(x([u("row-physical-cores"),S(l.rawCores),""],"sub")),l.afterCpuMin>l.rawCores&&h.appendChild(x([m("row-cpu-minimum",{n:S(c("minCores",16))}),"â "+S(l.afterCpuMin),""],"sub")),h.appendChild(x([u("row-billable-cores"),S(l.billableCores),""],"sub")),h.appendChild(x([u("row-list-price"),b(l.listPerCore),""],"sub")),(0<l.discount||0<l.multiDiscount)&&(0<l.discount&&h.appendChild(x([u("row-negotiated-discount"),"â"+Math.round(100*l.discount)+"%",""],"sub")),0<l.multiDiscount&&h.appendChild(x([u("row-multiyear-discount"),"â"+Math.round(100*l.multiDiscount)+"%",""],"sub")),h.appendChild(x([u("row-effective-price"),b(l.effPerCore),""],"sub"))),h.appendChild(x([u("row-vmware-subtotal"),v(l.annual),v(l.total)],"total")),h.appendChild(x([{html:'<span class="vc-tag"><span class="vc-swatch vc-sw1"></span>Vates VMS '+a.tier.name+"</span>"},"",""],"sect")),a.lines.forEach(function(t){h.appendChild(x([t.label+" â "+t.detail,v(t.annual),""],"sub"))}),0<a.discount&&h.appendChild(x([m("row-commitment-discount",{term:t}),"â"+Math.round(100*a.discount)+"%",""],"sub")),h.appendChild(x([u("row-vates-subtotal"),v(a.annual),v(a.total)],"total")),l.total-a.total);h.appendChild(x([{html:"<strong>"+m("row-difference-over",{term:u("term-"+t+"y")})+"</strong>"},v(l.annual-a.annual),{html:'<strong style="color:'+(0<=o?"var(--good)":"var(--text-primary)")+'">'+v(Math.abs(o))+" "+u(0<=o?"row-saved-suffix":"row-more-suffix")+"</strong>"}],"total")),i.appendChild(h),t=e,a=k((l=r).edition),o=0<l.phantomCores?m("method-phantom-note",{phantom:S(l.phantomCores)}):".",l="<ul><li>"+m("method-core-pricing",{minCores:S(c("minCores",16)),rawCores:S(l.rawCores),billableCores:S(l.billableCores),phantomNote:o})+"</li><li>"+u("method-core-minimums")+"</li><li>"+u("method-host-pricing")+"</li><li>"+m("method-support",{edition:a})+"</li><li>"+u("method-excluded")+"</li>"+(64<t.hosts?"<li>"+u("method-above-64")+"</li>":"")+(t.hosts<=3?"<li>"+u("method-small-estate")+"</li>":"")+"</ul>",p("methodology").innerHTML=l}})(),(()=>{var t,c,e=Array.prototype.slice.call(document.querySelectorAll("header.main li.nav-item[data-menu]"));e.length&&(t=window.matchMedia("(min-width: 900px)"),c=function(){return t.matches},e.forEach(function(e){var i,s,t,r=e.querySelector("a.nav-link"),a=e.querySelector(".dd");function n(t){r.setAttribute("aria-expanded",t?"true":"false")}function o(){e.classList.remove("dd-suppress"),n(!0)}function l(t){e.classList.add("dd-suppress"),n(!1),t&&r.focus()}function h(t){i.length&&i[(t+i.length)%i.length].focus()}function p(){t.setAttribute("aria-expanded",s.checked?"true":"false")}r&&a&&(i=Array.prototype.slice.call(a.querySelectorAll("a.item:not(.show-mobile)")),e.addEventListener("focusin",function(){c()&&!e.classList.contains("dd-suppress")&&n(!0)}),e.addEventListener("focusout",function(t){e.contains(t.relatedTarget)||(e.classList.remove("dd-suppress"),n(!1))}),e.addEventListener("mouseenter",function(){e.classList.remove("dd-suppress")}),r.addEventListener("keydown",function(t){c()&&("ArrowDown"===t.key||" "===t.key||"Spacebar"===t.key?(t.preventDefault(),o(),h(0)):"ArrowUp"===t.key?(t.preventDefault(),o(),h(i.length-1)):"Escape"===t.key&&l(!1))}
21),i.forEach(function(t,e){t.addEventListener("keydown",function(t){c()&&("ArrowDown"===t.key?(t.preventDefault(),h(e+1)):"ArrowUp"===t.key?(t.preventDefault(),h(e-1)):"Home"===t.key?(t.preventDefault(),h(0)):"End"===t.key?(t.preventDefault(),h(i.length-1)):"Escape"===t.key&&(t.preventDefault(),l(!0)))})}),s=e.querySelector("input.menu-checkbox"),t=e.querySelector("label.dd-toggle"),s)&&t&&(t.setAttribute("tabindex","0"),t.setAttribute("role","button"),p(),t.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),s.checked=!s.checked,s.dispatchEvent(new Event("change",{bubbles:!0})))}),s.addEventListener("change",p))}))})(),(async()=>{document.querySelectorAll(".legal-archive-select__select").forEach(t=>{t.addEventListener("change",t=>{t=t.target.value;t&&(window.location.href=t)})}),document.querySelectorAll(".legal-archive-select__toggle").forEach(i=>{i.addEventListener("click",()=>{var t=document.getElementById("legal-changelog"),e="true"===i.getAttribute("aria-expanded");i.setAttribute("aria-expanded",String(!e)),t&&t.classList.toggle("open")})})})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.