1"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},windowIsDefined="object"===(typeof window>"u"?"undefined":_typeof(window));function initAligningGuidelines(t,e=2,i,s){var h,r=t.getSelectionContext(),m=1,g="rgba(164, 0, 241, 1)",o=1,p=t.getWidth(),u=t.getHeight(),f=p/2,l=u/2,c={},n={};function P(M){A(M.x+.5,M.y1>M.y2?M.y2:M.y1,M.x+.5,M.y2>M.y1?M.y2:M.y1)}function _(M){A(M.x1>M.x2?M.x2:M.x1,M.y+.5,M.x2>M.x1?M.x2:M.x1,M.y+.5)}function x(M){r.save(),r.lineWidth=m,r.strokeStyle=g,r.beginPath(),r.translate(h[4],h[5]),r.moveTo(M.x1*o,M.y1*o),r.lineTo(M.x2*o,M.y2*o),r.stroke(),r.restore()}function A(M,I,H,X){r.save(),r.lineWidth=m,r.strokeStyle=g,r.beginPath(),r.translate(h[4],h[5]),r.moveTo(M*o,I*o),r.lineTo(H*o,X*o),r.setLineDash([5,3]),r.stroke(),r.restore()}function E(M){r.save(),r.lineWidth=m,r.strokeStyle=g,r.beginPath(),r.translate(h[4],h[5]),r.rect(M.x1,M.y1,M.x2,M.y2),r.stroke(),r.restore()}function S(M,I){w.push({x1:M,y1:I,x2:t.clipPath.width*t.getZoom()-2*M,y2:t.clipPath.height*t.getZoom()-2*I})}function T(M,I){M=Math.round(M),I=Math.round(I);for(var H=M-10,X=M+10;H<=X;H++)if(H===I)return!0;return 0}function b(M,I){return M=Math.round(M),I=Math.round(I),Math.abs(I-M)<=10}function k(){l=(u=t.clipPath.height)/2,c={},n={};for(var M=(f=(p=t.clipPath.width)/2)-4,I=f+4;M<=I;M++)c[Math.round(M)]=!0;for(M=l-4,I=l+4;M<=I;M++)n[Math.round(M)]=!0}function F(M,I,H,X){r.save(),r.strokeStyle=g,r.lineWidth=m,r.translate(h[4],h[5]),r.beginPath(),r.moveTo(M*o,I*o),r.lineTo(H*o,X*o),r.stroke(),r.restore()}s.subscribe(M=>{M.hover?it({target:M.obj}):Q({target:M.obj})}),k();var V,W,L=[],G=[],w=[],C=[];function it(M){var I=M.target;if(o=t.getZoom(),h=t.viewportTransform,I&&!0===I.visible&&"frame"===I.align_type&&I!==t.getActiveObject()&&!I.ingroup){let H=I.aCoords;r.save(),r.lineWidth=m,r.strokeStyle="andorObj"in I&&I.andorObj.isLayerLocked()?"#959AA7":"#626ADF",r.beginPath(),r.translate(h[4],h[5]),r.moveTo(H.tl.x*o,H.tl.y*o),r.lineTo(H.tr.x*o,H.tr.y*o),r.lineTo(H.br.x*o,H.br.y*o),r.lineTo(H.bl.x*o,H.bl.y*o),r.lineTo(H.tl.x*o,H.tl.y*o),r.stroke(),r.restore(),i.next({obj:I.andorObj,hover:!0})}}function Q(M){if(M instanceof fabric.ActiveSelection){const I=M.getObjects();for(const H of I)Q(H)}else M&&i.next({obj:M.andorObj,hover:!1}),M&&M.hoverLines&&(M.hoverLines.forEach(function(I){t.remove(I)}),M.hoverLines=[]);Y(),t.requestRenderAll()}function Y(){t.clearContext(t.contextTop)}t.on("object:moving",function(M){Y(),h=t.viewportTransform,o=t.getZoom(),p!==t.getWidth()&&k();var I=M.target,H=t.getObjects(),X=I.getCenterPoint(),D=X.x,O=X.y,at=I.getBoundingRect(),q=at.height/h[3],$=at.width/h[0],nt=!1,ot=!1,et=!1,lt=!1,mt=t._currentTransform;if(function U(M){M&&(M.hasControls=!1,M.borderColor="#A400F1",M.borderDashArray=[],Q(M))}(I),!mt)return;for(var rt=H.length;rt--;){if(!1===H[rt].visible||H[rt]===I||"frame"!==H[rt].align_type||"yes"===H[rt].ingroup)continue;var pt=H[rt].getCenterPoint(),z=pt.x,N=pt.y,dt=H[rt].getBoundingRect(),K=dt.height/h[3],J=dt.width/h[0];let yt=T(z,D);1==yt?(ot=!0,L.push({x:z,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z,O),"center","center"),P(L[0])):2===yt&&(ot=!0,L.push({x:z,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z,O),"center","center")),T(z-J/2,D-$/2)&&(ot=!0,L.push({x:z-J/2,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z-J/2+$/2,O),"center","center")),T(z+J/2,D+$/2)&&(ot=!0,L.push({x:z+J/2,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z+J/2-$/2,O),"center","center")),T(N,O)&&(nt=!0,G.push({y:N,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N),"center","center")),T(N-K/2,O-q/2)&&(nt=!0,G.push({y:N-K/2,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N-K/2+q/2),"center","center")),T(N+K/2,O+q/2)&&(nt=!0,G.push({y:N+K/2,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N+K/2-q/2),"center","center")),T(N-K/2,O+q/2)&&(nt=!0,G.push({y:N-K/2,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N-K/2-q/2),"center","center")),T(N+K/2,O-q/2)&&(nt=!0,G.push({y:N+K/2,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N+K/2+q/2),"center","center")),T(z-J/2,D+$/2)&&(ot=!0,L.push({x:z-J/2,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z-J/2-$/2,O),"center","center")),T(z+J/2,D-$/2)&&(ot=!0,L.push({x:z+J/2,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z+J/2+$/2,O),"center","center")),T(N-K/2,O)&&(nt=!0,G.push({y:N-K/2,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N-K/2),"center","center")),T(N+K/2,O)&&(nt=!0,G.push({y:N+K/2,x1:z<D?z-J/2-5:z+J/2+5,x2:D>z?D+$/2+5:D-$/2-5}),I.setPositionByOrigin(new fabric.Point(D,N+K/2),"center","center")),T(z-J/2,D)&&(ot=!0,L.push({x:z-J/2,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z-J/2,O),"center","center"),P(L[0])),T(z+J/2,D)&&(ot=!0,L.push({x:z+J/2,y1:N<O?N-K/2-5:N+K/2+5,y2:O>N?O+q/2+5:O-q/2-5}),I.setPositionByOrigin(new fabric.Point(z+J/2,O),"center","center"),P(L[0]))}let ft=t.clipPath.width*o/10,ct=t.clipPath.height*o/10,ht=0;if(ft<ct?(ct=ft,ht=ft/o):(ft=ct,ht=ct/o),b(ht,D-$/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(ht+$/2,O),"center","center")),b(ht,D+$/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(ht-$/2,O),"center","center")),b(ht,O-q/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(D,ht+q/2),"center","center")),b(ht,O+q/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(D,ht-q/2),"center","center")),b(t.clipPath.width-ht,D+$/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(t.clipPath.width-ht-$/2,O),"center","center")),b(t.clipPath.width-ht,D-$/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(t.clipPath.width-ht+$/2,O),"center","center")),b(t.clipPath.height-ht,O+q/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(D,t.clipPath.height-ht-q/2),"center","center")),b(t.clipPath.height-ht,O-q/2)&&(et=!0,S(ft,ct),I.setPositionByOrigin(new fabric.Point(D,t.clipPath.height-ht+q/2),"center","center")),b(0,D-$/2)&&(lt=!0,C.push({x1:1,y1:0,x2:1,y2:t.clipPath.height}),I.setPositionByOrigin(new fabric.Point($/2,O),"center","center")),b(0,O-q/2)&&(lt=!0,C.push({x1:0,y1:1,x2:t.clipPath.width,y2:1}),I.setPositionByOrigin(new fabric.Point(D,q/2),"center","center")),b(t.clipPath.width,D+$/2)&&(lt=!0,C.push({x1:t.clipPath.width-1,y1:0,x2:t.clipPath.width-1,y2:t.clipPath.height}),I.setPositionByOrigin(new fabric.Point(t.clipPath.width-$/2,O),"center","center")),b(t.clipPath.height,O+q/2)&&(lt=!0,C.push({x1:1,y1:t.clipPath.height-1,x2:t.clipPath.width,y2:t.clipPath.height-1}),I.setPositionByOrigin(new fabric.Point(D,t.clipPath.height-q/2),"center","center")),nt||(G.length=0),ot||(L.length=0),et||(w.length=0),lt||(C.length=0),!(mt=t._currentTransform))return;let gt=X.y;V=Math.round(X.x)in c,(W=Math.round(gt)in n)&&I.setPositionByOrigin(new fabric.Point(X.x,l),"center","center"),V&&I.setPositionByOrigin(new fabric.Point(f,X.y),"center","center")}),t.on("before:render",function(){}),t.on("mouse:over",it),t.on("mouse:out",function Z(M){Q(M.target)}),t.on("after:render",function(M){!function st(){let M=t.getActiveObject();if(M){if(L.length>0){let H=Math.round(M.left+M.width*M.scaleX/2),X=Math.round(M.left),D=Math.round(M.left+M.width*M.scaleX);for(var I=L.length;I--;){let at=Math.round(L[I].x);(Math.abs(at-H)<=1||Math.abs(at-X)<=1||Math.abs(at-D)<=1)&&P(L[I])}}if(G.length>0){let H=Math.round(M.top+M.height*M.scaleY/2),X=Math.round(M.top),D=Math.round(M.top+M.height*M.scaleY);for(I=G.length;I--;){let q=Math.round(G[I].y);Math.abs(q-H)<=1||Math.abs(q-X)<=1||Math.abs(q-D),_(G[I])}}for(I=w.length;I--;)E(w[I]);for(I=C.length;I--;)x(C[I]);V&&function B(){F(f+.5,0,f+.5,u)}(),W&&function R(){F(0,l+.5,p,l+.5)}(),L.length=G.length=w.length=0}}()}),t.on("mouse:down",function(){h=t.viewportTransform,o=t.getZoom(),p!==t.getWidth()&&k(),Y()}),t.on("mouse:up",function(){t.clearContext(t.contextTop),L.length=G.length=w.length=C.length=0,V=W=null,t.renderAll(),function j(M){M&&(M.hasControlsMustFalse||(M.hasControls=!0),M.borderColor="andorObj"in M&&M.andorObj.isLayerLocked()?"#959AA7":"#626ADF",M.borderDashArray=[7,7],Q(M))}(t.getActiveObject())})}!function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"===(typeof module>"u"?"undefined":_typeof(module))&&module.exports){var e;try{e=require("jquery")}catch{e=null}module.exports=t(e)}else window&&(window.Slider=t(window.jQuery))}
1(function(t){var s,e="slider",i="bootstrapSlider";return windowIsDefined&&!window.console&&(window.console={}),windowIsDefined&&!window.console.log&&(window.console.log=function(){}),windowIsDefined&&!window.console.warn&&(window.console.warn=function(){}),function(r){function a(){}var m=Array.prototype.slice;!function y(g){if(g){var p=typeof console>"u"?a:function(u){console.error(u)};g.bridget=function(u,f){(function h(u){u.prototype.option||(u.prototype.option=function(f){g.isPlainObject(f)&&(this.options=g.extend(!0,this.options,f))})})(f),function o(u,f){g.fn[u]=function(l){if("string"==typeof l){for(var c=m.call(arguments,1),n=0,d=this.length;d>n;n++){var P=g.data(this[n],u);if(P)if(g.isFunction(P[l])&&"_"!==l.charAt(0)){var _=P[l].apply(P,c);if(void 0!==_&&_!==P)return _}else p("no such method '"+l+"' for "+u+" instance");else p("cannot call methods on "+u+" prior to initialization; attempted to call '"+l+"'")}return this}var x=this.map(function(){var A=g.data(this,u);return A?(A.option(l),A._init()):(A=new f(this,l),g.data(this,u,A)),g(this)});return 1===x.length?x[0]:x}}(u,f)}}}(r)}(t),function(r){function a(h,o){function p(D,O){var at="data-slider-"+O.replace(/_/g,"-"),q=D.getAttribute(at);try{return JSON.parse(q)}catch{return q}}this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof h?this.element=document.querySelector(h):h instanceof HTMLElement&&(this.element=h),o=o||{};for(var u=Object.keys(this.defaultOptions),f=o.hasOwnProperty("min"),l=o.hasOwnProperty("max"),c=0;c<u.length;c++){var n=u[c],d=o[n];d=null!==(d=typeof d<"u"?d:p(this.element,n))?d:this.defaultOptions[n],this.options||(this.options={}),this.options[n]=d}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var v=window.getComputedStyle(this.element);this.options.rtl=null!=v?"rtl"===v.direction:"rtl"===this.element.style.direction}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.tooltip_position=this.options.rtl?"left":"right";var P,_,x,A,E,S=this.element.style.width,T=!1,b=this.element.parentNode;if(this.sliderElem)T=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var k=document.createElement("div");k.className="slider-track",(_=document.createElement("div")).className="slider-track-low",(P=document.createElement("div")).className="slider-selection",(x=document.createElement("div")).className="slider-track-high",(A=document.createElement("div")).className="slider-handle min-slider-handle",A.setAttribute("role","slider"),A.setAttribute("aria-valuemin",this.options.min),A.setAttribute("aria-valuemax",this.options.max),(E=document.createElement("div")).className="slider-handle max-slider-handle",E.setAttribute("role","slider"),E.setAttribute("aria-valuemin",this.options.min),E.setAttribute("aria-valuemax",this.options.max),k.appendChild(_),k.appendChild(P),k.appendChild(x),this.rangeHighlightElements=[];var B=this.options.rangeHighlights;if(Array.isArray(B)&&B.length>0)for(var R=0;R<B.length;R++){var F=document.createElement("div");F.className="slider-rangeHighlight slider-selection "+(B[R].class||""),this.rangeHighlightElements.push(F),k.appendChild(F)}var G=Array.isArray(this.options.labelledby);if(G&&this.options.labelledby[0]&&A.setAttribute("aria-labelledby",this.options.labelledby[0]),G&&this.options.labelledby[1]&&E.setAttribute("aria-labelledby",this.options.labelledby[1]),!G&&this.options.labelledby&&(A.setAttribute("aria-labelledby",this.options.labelledby),E.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",c=0;c<this.options.ticks.length;c++){var w=document.createElement("div");if(w.className="slider-tick",this.options.ticks_tooltip){var C=this._addTickListener(),V=C.addMouseEnter(this,w,c),W=C.addMouseLeave(this,w);this.ticksCallbackMap[c]={mouseEnter:V,mouseLeave:W}}this.ticks.push(w),this.ticksContainer.appendChild(w)}P.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",c=0;c<this.options.ticks_labels.length;c++){var tt=document.createElement("div"),Q=this.options.reversed&&0===this.options.ticks_positions.length?this.options.ticks_labels.length-(c+1):c;tt.className="slider-tick-label",tt.innerHTML=this.options.ticks_labels[Q],this.tickLabels.push(tt),this.tickLabelContainer.appendChild(tt)}var Z=function(D){var O=document.createElement("div");O.className="tooltip-arrow";var at=document.createElement("div");at.className="tooltip-inner",D.appendChild(O),D.appendChild(at)},Y=document.createElement("div");Y.className="tooltip tooltip-main",Y.setAttribute("role","presentation"),Z(Y);var st=document.createElement("div");st.className="tooltip tooltip-min",st.setAttribute("role","presentation"),Z(st);var U=document.createElement("div");U.className="tooltip tooltip-max",U.setAttribute("role","presentation"),Z(U),this.sliderElem.appendChild(k),this.sliderElem.appendChild(Y),this.sliderElem.appendChild(st),this.sliderElem.appendChild(U),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(A),this.sliderElem.appendChild(E),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(r&&(this.$element=r(this.element),this.$sliderElem=r(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),g[this.options.scale]&&(this.options.scale=g[this.options.scale]),!0===T&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach(function(D){this._removeProperty(this.trackLow,D),this._removeProperty(this.trackSelection,D),this._removeProperty(this.trackHigh,D)},this),[this.handle1,this.handle2].forEach(function(D){this._removeProperty(D,"left"),this._removeProperty(D,"right"),this._removeProperty(D,"top")}
1,this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(D){this._removeProperty(D,"left"),this._removeProperty(D,"right"),this._removeProperty(D,"top"),this._removeClass(D,"right"),this._removeClass(D,"left"),this._removeClass(D,"top")},this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=S,this.options.orientation="horizontal",this.stylePos=this.options.rtl?"right":"left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(l||(this.options.max=Math.max.apply(Math,this.options.ticks)),f||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this._state.value=this.options.range?[this.options.value,this.options.max]:this.options.value,this.trackLow=_||this.trackLow,this.trackSelection=P||this.trackSelection,this.trackHigh=x||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):("after"===this.options.selection||"before"===this.options.selection)&&(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=A||this.handle1,this.handle2=E||this.handle2,!0===T)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),c=0;c<this.ticks.length;c++)this._removeClass(this.ticks[c],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),c=0;c<this.ticks.length;c++)this._addClass(this.ticks[c],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var I=this._addTickListener(),H=I.addMouseEnter(this,this.handle1),X=I.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:H,mouseLeave:X},H=I.addMouseEnter(this,this.handle2),X=I.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:H,mouseLeave:X}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}var y=void 0,m_formatInvalidInputErrorMsg=function(h){return"Invalid input value '"+h+"' passed in"},g={linear:{getValue:function(h,o){return h<o.min?o.min:h>o.max?o.max:h},toValue:function(h){var o=h/100*(this.options.max-this.options.min),p=!0;if(this.options.ticks_positions.length>0){for(var u,f,l,c=0,n=1;n<this.options.ticks_positions.length;n++)if(h<=this.options.ticks_positions[n]){u=this.options.ticks[n-1],l=this.options.ticks_positions[n-1],f=this.options.ticks[n],c=this.options.ticks_positions[n];break}o=u+(h-l)/(c-l)*(f-u),p=!1}var P=(p?this.options.min:0)+Math.round(o/this.options.step)*this.options.step;return g.linear.getValue(P,this.options)},toPercentage:function(h){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var o,p,u,f=0,l=0;l<this.options.ticks.length;l++)if(h<=this.options.ticks[l]){o=l>0?this.options.ticks[l-1]:0,u=l>0?this.options.ticks_positions[l-1]:0,p=this.options.ticks[l],f=this.options.ticks_positions[l];break}if(l>0)return u+(h-o)/(p-o)*(f-u)}return 100*(h-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(h){var o=1-this.options.min,p=Math.log(this.options.min+o),u=Math.log(this.options.max+o),f=Math.exp(p+(u-p)*h/100)-o;return Math.round(f)===u?u:(f=this.options.min+Math.round((f-this.options.min)/this.options.step)*this.options.step,g.linear.getValue(f,this.options))},toPercentage:function(h){if(this.options.max===this.options.min)return 0;var o=1-this.options.min,p=Math.log(this.options.max+o),u=Math.log(this.options.min+o);return 100*(Math.log(h+o)-u)/(p-u)}}};(s=function(h,o){return a.call(this,h,o),this}).prototype={_init:function(){},constructor:s,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(h){return Array.isArray(h)?h[0]+" : "+h[1]:h},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(h,o,p){h||(h=0);var u=this.getValue();
1this._state.value=this._validateInputValue(h);var f=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=f(this._state.value[0]),this._state.value[1]=f(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=f(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),this._state.value[1]="after"===this.options.selection?this.options.max:this.options.min),this._setTickIndex(),this._state.percentage=this.options.max>this.options.min?[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:[0,0,100],this._layout();var l=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(l),!0===o&&this._trigger("slide",l),(Array.isArray(l)?u[0]!==l[0]||u[1]!==l[1]:u!==l)&&!0===p&&this._trigger("change",{oldValue:u,newValue:l}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),r&&(this._unbindJQueryEventHandlers(),y===e&&this.$element.removeData(y),this.$element.removeData(i))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(h,o){return this._bindNonQueryEventHandler(h,o),this},off:function(h,o){r?(this.$element.off(h,o),this.$sliderElem.off(h,o)):this._unbindNonQueryEventHandler(h,o)},getAttribute:function(h){return h?this.options[h]:this.options},setAttribute:function(h,o){return this.options[h]=o,this},refresh:function(h){var o=this.getValue();return this._removeSliderEventHandlers(),a.call(this,this.element,this.options),h&&!0===h.useCurrentValue&&this.setValue(o),r&&(y===e?(r.data(this.element,e,this),r.data(this.element,i,this)):r.data(this.element,i,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(h,o){this.handle1.removeEventListener(h,o,!1),this.handle2.removeEventListener(h,o,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var h=this.ticksContainer.getElementsByClassName("slider-tick"),o=0;o<h.length;o++)h[o].removeEventListener("mouseenter",this.ticksCallbackMap[o].mouseEnter,!1),h[o].removeEventListener("mouseleave",this.ticksCallbackMap[o].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(h,o){void 0===this.eventToCallbackMap[h]&&(this.eventToCallbackMap[h]=[]),this.eventToCallbackMap[h].push(o)},_unbindNonQueryEventHandler:function(h,o){var p=this.eventToCallbackMap[h];if(void 0!==p)for(var u=0;u<p.length;u++)if(p[u]===o){p.splice(u,1);break}},_cleanUpEventCallbacksMap:function(){for(var h=Object.keys(this.eventToCallbackMap),o=0;o<h.length;o++)delete this.eventToCallbackMap[h[o]]},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in")),this._state.over=!1},_setToolTipOnMouseOver:function(h){var p=this,u=this.options.formatter(h?h.value[0]:this._state.value[0]),f=function o(l,c){return c?[100-l.percentage[0],p.options.range?100-l.percentage[1]:l.percentage[1]]:[l.percentage[0],l.percentage[1]]}(h||this._state,this.options.reversed);this._setText(this.tooltipInner,u),this.tooltip.style[this.stylePos]=f[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(h,o,p){var u=function(){var f=h._copyState(),l=o===h.handle1?f.value[0]:f.value[1],c=void 0;void 0!==p?(l=h.options.ticks[p],c=h.options.ticks_positions.length>0&&h.options.ticks_positions[p]||h._toPercentage(h.options.ticks[p])):c=h._toPercentage(l),f.value[0]=l,f.percentage[0]=c,h._setToolTipOnMouseOver(f),h._showTooltip()};return o.addEventListener("mouseenter",u,!1),u}
1,addMouseLeave:function(h,o){var p=function(){h._hideTooltip()};return o.addEventListener("mouseleave",p,!1),p}}},_layout:function(){var h,o,A;if(this.handle1.style[this.stylePos]=(h=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]])[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),o=this.options.formatter(this._state.value[0]),isNaN(o)?this.handle1.setAttribute("aria-valuetext",o):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=h[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),o=this.options.formatter(this._state.value[1]),isNaN(o)?this.handle2.setAttribute("aria-valuetext",o):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var p=0;p<this.options.rangeHighlights.length;p++){var u=this._toPercentage(this.options.rangeHighlights[p].start),f=this._toPercentage(this.options.rangeHighlights[p].end);if(this.options.reversed){var l=100-f;f=100-u,u=l}var c=this._createHighlightRange(u,f);c?"vertical"===this.options.orientation?(this.rangeHighlightElements[p].style.top=c.start+"%",this.rangeHighlightElements[p].style.height=c.size+"%"):(this.options.rtl?this.rangeHighlightElements[p].style.right=c.start+"%":this.rangeHighlightElements[p].style.left=c.start+"%",this.rangeHighlightElements[p].style.width=c.size+"%"):this.rangeHighlightElements[p].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var n,d="vertical"===this.options.orientation?"height":"width";n="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var v=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var P=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[n]=-v/2+"px"),P=this.tickLabelContainer.offsetHeight;else for(_=0;_<this.tickLabelContainer.childNodes.length;_++)this.tickLabelContainer.childNodes[_].offsetHeight>P&&(P=this.tickLabelContainer.childNodes[_].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=P+"px")}for(var _=0;_<this.options.ticks.length;_++){var x=this.options.ticks_positions[_]||this._toPercentage(this.options.ticks[_]);this.options.reversed&&(x=100-x),this.ticks[_].style[this.stylePos]=x+"%",this._removeClass(this.ticks[_],"in-selection"),this.options.range?x>=h[0]&&x<=h[1]&&this._addClass(this.ticks[_],"in-selection"):("after"===this.options.selection&&x>=h[0]||"before"===this.options.selection&&x<=h[0])&&this._addClass(this.ticks[_],"in-selection"),this.tickLabels[_]&&(this.tickLabels[_].style[d]=v+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[_]?(this.tickLabels[_].style.position="absolute",this.tickLabels[_].style[this.stylePos]=x+"%",this.tickLabels[_].style[n]=-v/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[_].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[_].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[n]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[_],"label-in-selection label-is-selection"),this.options.range?x>=h[0]&&x<=h[1]&&(this._addClass(this.tickLabels[_],"label-in-selection"),(x===h[0]||h[1])&&this._addClass(this.tickLabels[_],"label-is-selection")):(("after"===this.options.selection&&x>=h[0]||"before"===this.options.selection&&x<=h[0])&&this._addClass(this.tickLabels[_],"label-in-selection"),x===h[0]&&this._addClass(this.tickLabels[_],"label-is-selection")))}}if(this.options.range){A=this.options.formatter(this._state.value),this._setText(this.tooltipInner,A),this.tooltip.style[this.stylePos]=(h[1]+h[0])/2+"%";var E=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,E);var S=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,S),this.tooltip_min.style[this.stylePos]=h[0]+"%",this.tooltip_max.style[this.stylePos]=h[1]+"%"}else A=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,A),this.tooltip.style[this.stylePos]=h[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(h[0],h[1])+"%",this.trackSelection.style.top=Math.min(h[0],h[1])+"%",this.trackSelection.style.height=Math.abs(h[0]-h[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(h[0],h[1])-Math.abs(h[0]-h[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(h[0],h[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(h[0],h[1])+"%":this.trackSelection.style.left=Math.min(h[0],h[1])+"%",this.trackSelection.style.width=Math.abs(h[0]-h[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(h[0],h[1])-Math.abs(h[0]-h[1])+"%";var T=this.tooltip_min.getBoundingClientRect(),b=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?T.right>b.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):T.right>b.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(h,o){return this._isHighlightRange(h,o)?h>o?{start:o,size:h-o}:{start:h,size:o-h}:null},_isHighlightRange:function(h,o){return h>=0&&100>=h&&o>=0&&100>=o},_resize:function(h){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(h,o){h.style.removeProperty?h.style.removeProperty(o):h.style.removeAttribute(o)},_mousedown:function(h){if(!this._state.enabled)return!1;h.preventDefault&&h.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var o=this._getPercentage(h);if(this.options.range){var p=Math.abs(this._state.percentage[0]-o),u=Math.abs(this._state.percentage[1]-o);this._state.dragged=u>p?0:1,this._adjustPercentageForRangeSliders(o)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=o,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var f=this._calculateValue();return this._trigger("slideStart",f),this.setValue(f,!1,!0),h.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(h){this._mousedown(h)},_triggerFocusOnHandle:function(h){0===h&&this.handle1.focus(),1===h&&this.handle2.focu
1s()},_keydown:function(h,o){if(!this._state.enabled)return!1;var p;switch(o.keyCode){case 37:case 40:p=-1;break;case 39:case 38:p=1}if(p){if(this.options.natural_arrow_keys){var c=this.options.reversed;"horizontal"===this.options.orientation?this.options.rtl?c||(p=-p):c&&(p=-p):"vertical"===this.options.orientation&&(c||(p=-p))}var n;if(this.ticksAreValid&&this.options.lock_to_ticks){var d=void 0;-1===(d=this.options.ticks.indexOf(this._state.value[h]))&&(d=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),d+=p,d=Math.max(0,Math.min(this.options.ticks.length-1,d)),n=this.options.ticks[d]}else n=this._state.value[h]+p*this.options.step;var v=this._toPercentage(n);if(this._state.keyCtrl=h,this.options.range){this._adjustPercentageForRangeSliders(v);var _=this._state.keyCtrl?n:this._state.value[1];n=[Math.max(this.options.min,Math.min(this.options.max,this._state.keyCtrl?this._state.value[0]:n)),Math.max(this.options.min,Math.min(this.options.max,_))]}else n=Math.max(this.options.min,Math.min(this.options.max,n));return this._trigger("slideStart",n),this.setValue(n,!0,!0),this._trigger("slideStop",n),this._pauseEvent(o),delete this._state.keyCtrl,!1}},_pauseEvent:function(h){h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),h.cancelBubble=!0,h.returnValue=!1},_mousemove:function(h){if(!this._state.enabled)return!1;var o=this._getPercentage(h);this._adjustPercentageForRangeSliders(o),this._state.percentage[this._state.dragged]=o;var p=this._calculateValue(!0);return this.setValue(p,!0,!0),!1},_touchmove:function(h){void 0!==h.changedTouches&&h.preventDefault&&h.preventDefault()},_adjustPercentageForRangeSliders:function(h){if(this.options.range){var o=this._getNumDigitsAfterDecimalPlace(h),p=this._applyToFixedAndParseFloat(h,o=o?o-1:0);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],o)<p?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],o)>p?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<h?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>h&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(h){if(!this._state.enabled)return!1;var o=this._getPercentage(h);this._adjustPercentageForRangeSliders(o),this._state.percentage[this._state.dragged]=o,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var p=this._calculateValue(!0);return this.setValue(p,!1,!0),this._trigger("slideStop",p),this._state.dragged=null,!1},_setValues:function(h,o){this._state.percentage[h]!==(0===h?0:100)&&(o.data[h]=this._toValue(this._state.percentage[h]),o.data[h]=this._applyPrecision(o.data[h]))},_calculateValue:function(h){var o={};return this.options.range?(o.data=[this.options.min,this.options.max],this._setValues(0,o),this._setValues(1,o),h&&(o.data[0]=this._snapToClosestTick(o.data[0]),o.data[1]=this._snapToClosestTick(o.data[1]))):(o.data=this._toValue(this._state.percentage[0]),o.data=parseFloat(o.data),o.data=this._applyPrecision(o.data),h&&(o.data=this._snapToClosestTick(o.data))),o.data},_snapToClosestTick:function(h){for(var o=[h,1/0],p=0;p<this.options.ticks.length;p++){var u=Math.abs(this.options.ticks[p]-h);u<=o[1]&&(o=[this.options.ticks[p],u])}return o[1]<=this.options.ticks_snap_bounds?o[0]:h},_applyPrecision:function(h){var o=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(h,o)},_getNumDigitsAfterDecimalPlace:function(h){var o=(""+h).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return o?Math.max(0,(o[1]?o[1].length:0)-(o[2]?+o[2]:0)):0},_applyToFixedAndParseFloat:function(h,o){var p=h.toFixed(o);return parseFloat(p)},_getPercentage:function(h){!this.touchCapable||"touchstart"!==h.type&&"touchmove"!==h.type&&"touchend"!==h.type||(h=h.changedTouches[0]);var u=h[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(u=-u);var f=u/this._state.size*100;return f=Math.round(f/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(f=100-f),Math.max(0,Math.min(100,f))},_validateInputValue:function(h){if(isNaN(+h)){if(Array.isArray(h))return this._val
1idateArray(h),h;throw new Error(m_formatInvalidInputErrorMsg(h))}return+h},_validateArray:function(h){for(var o=0;o<h.length;o++){var p=h[o];if("number"!=typeof p)throw new Error(m_formatInvalidInputErrorMsg(p))}},_setDataVal:function(h){this.element.setAttribute("data-value",h),this.element.setAttribute("value",h),this.element.value=h},_trigger:function(h,o){o=o||0===o?o:void 0;var p=this.eventToCallbackMap[h];if(p&&p.length)for(var u=0;u<p.length;u++)(0,p[u])(o);r&&this._triggerJQueryEvent(h,o)},_triggerJQueryEvent:function(h,o){var p={type:h,value:o};this.$element.trigger(p),this.$sliderElem.trigger(p)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(h,o){typeof h.textContent<"u"?h.textContent=o:typeof h.innerText<"u"&&(h.innerText=o)},_removeClass:function(h,o){for(var p=o.split(" "),u=h.className,f=0;f<p.length;f++){var c=new RegExp("(?:\\s|^)"+p[f]+"(?:\\s|$)");u=u.replace(c," ")}h.className=u.trim()},_addClass:function(h,o){for(var p=o.split(" "),u=h.className,f=0;f<p.length;f++){var l=p[f];new RegExp("(?:\\s|^)"+l+"(?:\\s|$)").test(u)||(u+=" "+l)}h.className=u.trim()},_offsetLeft:function(h){return h.getBoundingClientRect().left},_offsetRight:function(h){return h.getBoundingClientRect().right},_offsetTop:function(h){for(var o=h.offsetTop;(h=h.offsetParent)&&!isNaN(h.offsetTop);)o+=h.offsetTop,"BODY"!==h.tagName&&(o-=h.scrollTop);return o},_offset:function(h){return{left:this._offsetLeft(h),right:this._offsetRight(h),top:this._offsetTop(h)}},_css:function(h,o,p){if(r)r.style(h,o,p);else{var u=o.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(f,l){return l.toUpperCase()});h.style[u]=p}},_toValue:function(h){return this.options.scale.toValue.apply(this,[h])},_toPercentage:function(h){return this.options.scale.toPercentage.apply(this,[h])},_setTooltipPosition:function(){var h=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var o,p="left"===(o=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";h.forEach(function(u){this._addClass(u,o),u.style[p]="100%"}.bind(this))}else h.forEach("bottom"===this.options.tooltip_position?function(u){this._addClass(u,"bottom"),u.style.top="22px"}.bind(this):function(u){this._addClass(u,"top"),u.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(h){for(var o=Math.abs(h-this.options.ticks[0]),p=0,u=0;u<this.options.ticks.length;++u){var f=Math.abs(h-this.options.ticks[u]);o>f&&(o=f,p=u)}return p},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},r&&r.fn&&(r.fn.slider?(windowIsDefined&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),y=i):(r.bridget(e,s),y=e),r.bridget(i,s),r(function(){r("input[data-provide=slider]")[y]()}))}(t),s}),typeof navigator<"u"&&function(t,e){"object"==typeof exports&&typeof module<"u"?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).lottie=e()}(this,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,s,r=t.length;for(i=0;i<r;i+=1)for(var a in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,a)&&(e.prototype[a]=s[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].pause()},resume:function(){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].resume()},setRate:function(e){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(e,i){var s,r=0,a=[];switch(e){case"int16":case"uint8c":s=1;break;default:s=1.1}for(r=0;r<i;r+=1)a.push(s);return a}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",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}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var s,r,a,y,m,g,h,o;switch(g=i*(1-e),h=i*(1-(m=6*t-(y=Math.floor(6*t)))*e),o=i*(1-(1-m)*e),y%6){case 0:s=i,r=o,a=g;break;case 1:s=h,r=i,a=g;break;case 2:s=g,r=i,a=o;break;case 3:s=g,r=h,a=i;break;case 4:s=o,r=g,a=i;break;case 5:s=i,r=g,a=h}return[s,r,a]}
vendor: 13,676 bytes, line 1
1function RGBtoHSV(t,e,i){var s,r=Math.max(t,e,i),a=Math.min(t,e,i),y=r-a,m=0===r?0:y/r,g=r/255;switch(r){case a:s=0;break;case t:s=e-i+y*(e<i?6:0),s/=6*y;break;case e:s=i-t+2*y,s/=6*y;break;case i:s=t-e+4*y,s/=6*y}return[s,m,g]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(s,r,a){return s<0&&(s=0),r<0&&(r=0),a<0&&(a=0),"#"+i[s]+i[r]+i[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var dataManager=function(){var t,e,i=1,s=[],r={onmessage:function(){},postMessage:function(g){t({data:g})}},a={postMessage:function(g){r.onmessage({data:g})}};function y(){e||((e=function(g){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",g.toString()],{type:"text/javascript"}),o=URL.createObjectURL(h);return new Worker(o)}return t=g,r}(function(g){if(a.dataManager||(a.dataManager=function(){function o(E,S){var T,b,k,B,R,F,L=E.length;for(b=0;b<L;b+=1)if("ks"in(T=E[b])&&!T.completed){if(T.completed=!0,T.hasMask){var G=T.masksProperties;for(B=G.length,k=0;k<B;k+=1)if(G[k].pt.k.i)f(G[k].pt.k);else for(F=G[k].pt.k.length,R=0;R<F;R+=1)G[k].pt.k[R].s&&f(G[k].pt.k[R].s[0]),G[k].pt.k[R].e&&f(G[k].pt.k[R].e[0])}0===T.ty?(T.layers=p(T.refId,S),o(T.layers,S)):4===T.ty&&u(T.shapes)}}function p(E,S){var T=function(b,k){for(var B=0,R=k.length;B<R;){if(k[B].id===b)return k[B];B+=1}return null}(E,S);return T?T.layers.__used?JSON.parse(JSON.stringify(T.layers)):(T.layers.__used=!0,T.layers):null}function u(E){var S,T,b;for(S=E.length-1;S>=0;S-=1)if("sh"===E[S].ty)if(E[S].ks.k.i)f(E[S].ks.k);else for(b=E[S].ks.k.length,T=0;T<b;T+=1)E[S].ks.k[T].s&&f(E[S].ks.k[T].s[0]),E[S].ks.k[T].e&&f(E[S].ks.k[T].e[0]);else"gr"===E[S].ty&&u(E[S].it)}function f(E){var S,T=E.i.length;for(S=0;S<T;S+=1)E.i[S][0]+=E.v[S][0],E.i[S][1]+=E.v[S][1],E.o[S][0]+=E.v[S][0],E.o[S][1]+=E.v[S][1]}function l(E,S){var T=S?S.split("."):[100,100,100];return E[0]>T[0]||!(T[0]>E[0])&&(E[1]>T[1]||!(T[1]>E[1])&&(E[2]>T[2]||!(T[2]>E[2])&&null))}var c,n=function(){var E=[4,4,14];function S(T){var b,k,B,R=T.length;for(b=0;b<R;b+=1)5===T[b].ty&&(B=(k=T[b]).t.d,k.t.d={k:[{s:B,t:0}]})}return function(T){if(l(E,T.v)&&(S(T.layers),T.assets)){var b,k=T.assets.length;for(b=0;b<k;b+=1)T.assets[b].layers&&S(T.assets[b].layers)}}}(),d=(c=[4,7,99],function(E){if(E.chars&&!l(c,E.v)){var S,T=E.chars.length;for(S=0;S<T;S+=1){var b=E.chars[S];b.data&&b.data.shapes&&(u(b.data.shapes),b.data.ip=0,b.data.op=99999,b.data.st=0,b.data.sr=1,b.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},E.chars[S].t||(b.data.shapes.push({ty:"no"}),b.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),v=function(){var E=[5,7,15];function S(T){var b,k,B=T.length;for(b=0;b<B;b+=1)5===T[b].ty&&(k=void 0,"number"==typeof(k=T[b].t.p).a&&(k.a={a:0,k:k.a}),"number"==typeof k.p&&(k.p={a:0,k:k.p}),"number"==typeof k.r&&(k.r={a:0,k:k.r}))}return function(T){if(l(E,T.v)&&(S(T.layers),T.assets)){var b,k=T.assets.length;for(b=0;b<k;b+=1)T.assets[b].layers&&S(T.assets[b].layers)}}}(),P=function(){var E=[4,1,9];function S(b){var k,B,R,F=b.length;for(k=0;k<F;k+=1)if("gr"===b[k].ty)S(b[k].it);else if("fl"===b[k].ty||"st"===b[k].ty)if(b[k].c.k&&b[k].c.k[0].i)for(R=b[k].c.k.length,B=0;B<R;B+=1)b[k].c.k[B].s&&(b[k].c.k[B].s[0]/=255,b[k].c.k[B].s[1]/=255,b[k].c.k[B].s[2]/=255,b[k].c.k[B].s[3]/=255),b[k].c.k[B].e&&(b[k].c.k[B].e[0]/=255,b[k].c.k[B].e[1]/=255,b[k].c.k[B].e[2]/=255,b[k].c.k[B].e[3]/=255);else b[k].c.k[0]/=255,b[k].c.k[1]/=255,b[k].c.k[2]/=255,b[k].c.k[3]/=255}function T(b){var k,B=b.length;for(k=0;k<B;k+=1)4===b[k].ty&&S(b[k].shapes)}return function(b){if(l(E,b.v)&&(T(b.layers),b.assets)){var k,B=b.assets.length;for(k=0;k<B;k+=1)b.assets[k].layers&&T(b.assets[k].layers)}}}(),_=function(){var E=[4,4,18];function S(b){var k,B,R;for(k=b.length-1;k>=0;k-=1)if("sh"===b[k].ty)if(b[k].ks.k.i)b[k].ks.k.c=b[k].closed;else for(R=b[k].ks.k.length,B=0;B<R;B+=1)b[k].ks.k[B].s&&(b[k].ks.k[B].s[0].c=b[k].closed),b[k].ks.k[B].e&&(b[k].ks.k[B].e[0].c=b[k].closed);else"gr"===b[k].ty&&S(b[k].it)}function T(b){var k,B,R,F,L,G,w=b.length;for(B=0;B<w;B+=1){if((k=b[B]).hasMask){var C=k.masksProperties;for(F=C.length,R=0;R<F;R+=1)if(C[R].pt.k.i)C[R].pt.k.c=C[R].cl;else for(G=C[R].pt.k.length,L=0;L<G;L+=1)C[R].pt.k[L].s&&(C[R].pt.k[L].s[0].c=C[R].cl),C[R].pt.k[L].e&&(C[R].pt.k[L].e[0].c=C[R].cl)}4===k.ty&&S(k.shapes)}}return function(b){if(l(E,b.v)&&(T(b.layers),b.assets)){var k,B=b.assets.length;for(k=0;k<B;k+=1)b.assets[k].layers&&T(b.assets[k].layers)}}}();var A={completeData:function(E){E.__complete||(P(E),n(E),d(E),v(E),_(E),o(E.layers,E.assets),function(S,T){if(S){var b=0,k=S.length;for(b=0;b<k;b+=1)1===S[b].t&&(S[b].data.layers=p(S[b].data.refId,T),o(S[b].data.layers,T))}}(E.chars,E.assets),E.__complete=!0)}};return A.checkColors=P,A.checkChars=d,A.checkPathProperties=v,A.checkShapes=_,A.completeLayers=o,A}()),a.assetLoader||(a.assetLoader=function(){function o(p){var u=p.getResponseHeader("content-type");return u&&"json"===p.responseType&&-1!==u.indexOf("json")||p.response&&"object"===_typeof$5(p.response)?p.response:p.response&&"string"==typeof p.response?JSON.parse(p.response):p.responseText?JSON.parse(p.responseText):null}return{load:function(p,u,f,l){var c,n=new XMLHttpRequest;try{n.responseType="json"}catch{}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)c=o(n),f(c);else try{c=o(n),f(c)}catch(d){l&&l(d)}};try{n.open(["G","E","T"].join(""),p,!0)}catch{n.open(["G","E","T"].join(""),u+"/"+p,!0)}n.send()}}}()),"loadAnimation"===g.data.type)a.assetLoader.load(g.data.path,g.data.fullPath,function(o){a.dataManager.completeData(o),a.postMessage({id:g.data.id,payload:o,status:"success"})},function(){a.postMessage({id:g.data.id,status:"error"})});else if("complete"===g.data.type){var h=g.data.animation;a.dataManager.completeData(h),a.postMessage({id:g.data.id,payload:h,status:"success"})}else"loadData"===g.data.type&&a.assetLoader.load(g.data.path,g.data.fullPath,function(o){a.postMessage({id:g.data.id,payload:o,status:"success"})},function(){a.postMessage({id:g.data.id,status:"error"})})})).onmessage=function(g){var h=g.data,o=h.id,p=s[o];s[o]=null,"success"===h.status?p.onComplete(h.payload):p.onError&&p.onError()})}function m(g,h){var o="processId_"+(i+=1);return s[o]={onComplete:g,onError:h},o}return{loadAnimation:function(g,h,o){y();var p=m(h,o);e.postMessage({type:"loadAnimation",path:g,fullPath:window.location.origin+window.location.pathname,id:p})},loadData:function(g,h,o){y();var p=m(h,o);e.postMessage({type:"loadData",path:g,fullPath:window.location.origin+window.location.pathname,id:p})},completeAnimation:function(g,h,o){y();var p=m(h,o);e.postMessage({type:"complete",animation:g,id:p})}}}(),ImagePreloader=function(){var t=function(){var m=createTag("canvas");m.width=1,m.height=1;var g=m.getContext("2d");return g.fillStyle="rgba(0,0,0,0)",g.fillRect(0,0,1,1),m}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(m,g,h){var o="";if(m.e)o=m.p;else if(g){var p=m.p;-1!==p.indexOf("images/")&&(p=p.split("/")[1]),o=g+p}else o=h,o+=m.u?m.u:"",o+=m.p;return o}function r(m){var g=0,h=setInterval(function(){(m.getBBox().width||g>500)&&(this._imageLoaded(),clearInterval(h)),g+=1}.bind(this),50)}function a(m){var g={assetData:m},h=s(m,this.assetsPath,this.path);return dataManager.loadData(h,function(o){g.img=o,this._footageLoaded()}.bind(this),function(){g.img={},this._footageLoaded()}.bind(this)),g}function y(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:function(m,g){var h;this.imagesLoadedCb=g;var o=m.length;for(h=0;h<o;h+=1)m[h].layers||(m[h].t&&"seq"!==m[h].t?3===m[h].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(m[h]))):(this.totalImages+=1,this.images.push(this._createImageData(m[h]))))},setAssetsPath:function(m){this.assetsPath=m||""},setPath:function(m){this.path=m||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(m){for(var g=0,h=this.images.length;g<h;){if(this.images[g].assetData===m)return this.images[g].img;g+=1}return null},createImgData:function(m){var g=s(m,this.assetsPath,this.path),h=createTag("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),h.src=g;var o={img:h,assetData:m};return o},createImageData:function(m){var g=s(m,this.assetsPath,this.path),h=createNS("image");isSafari?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),h.setAttributeNS("http://www.w3.org/1999/xlink","href",g),this._elementHelper.append?this._elementHelper.append(h):this._elementHelper.appendChild(h);var o={img:h,assetData:m};return o},imageLoaded:e,footageLoaded:i,setCacheType:function(m,g){"svg"===m?(this._elementHelper=g,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},y}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[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-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(e){for(var i,s=e.split("\r\n"),r={},a=0,y=0;y<s.length;y+=1)2===(i=s[y].split(":")).length&&(r[i[0]]=i[1].trim(),a+=1);if(0===a)throw new Error;return r}return function(e){for(var i=[],s=0;s<e.length;s+=1){var r=e[s],a={time:r.tm,duration:r.dr};try{a.payload=JSON.parse(e[s].cm)}catch{try{a.payload=t(e[s].cm)}catch{a.payload={name:e[s].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function t(e){this.compositions.push(e)}return function(){function e(i){for(var s=0,r=this.compositions.length;s<r;){if(this.compositions[s].data&&this.compositions[s].data.nm===i)return this.compositions[s].prepareFrame&&this.compositions[s].data.xt&&this.compositions[s].prepareFrame(this.currentFrame),this.compositions[s].compInterface;s+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=ne
1w BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,this.loop=""===t.loop||null==t.loop||!0===t.loop||!1!==t.loop&&parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(this.path=-1!==t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:"canvas";var r=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));
vendor: 8,593 bytes, line 1
1var a=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==a,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),this.setParams(i)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,r=s.length,a=t.layers,y=a.length;for(i=0;i<y;i+=1)for(e=0;e<r;){if(s[e].id===a[i].id){s[e]=a[i];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(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)},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(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else this.setCurrentRawFrameValue(e?t:t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+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.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}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=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer
vendor: 1,755 bytes, line 1
1=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch
vendor: 5,671 bytes, line 1
1{}},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"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,s=0,r=0,a=!0,y=!1;function m(c){for(var n=0,d=c.target;n<s;)e[n].animation===d&&(e.splice(n,1),n-=1,s-=1,d.isPaused||o()),n+=1}function g(c,n){if(!c)return null;for(var d=0;d<s;){if(e[d].elem===c&&null!==e[d].elem)return e[d].animation;d+=1}var v=new AnimationItem;return p(v,c),v.setData(c,n),v}function h(){r+=1,l()}function o(){r-=1}function p(c,n){c.addEventListener("destroy",m),c.addEventListener("_active",h),c.addEventListener("_idle",o),e.push({elem:n,animation:c}),s+=1}function u(c){var n,d=c-i;for(n=0;n<s;n+=1)e[n].animation.advanceTime(d);i=c,r&&!y?window.requestAnimationFrame(u):a=!0}function f(c){i=c,window.requestAnimationFrame(u)}function l(){!y&&r&&a&&(window.requestAnimationFrame(f),a=!1)}return t.registerAnimation=g,t.loadAnimation=function(c){var n=new AnimationItem;return p(n,null),n.setParams(c),n},t.setSpeed=function(c,n){var d;for(d=0;d<s;d+=1)e[d].animation.setSpeed(c,n)},t.setDirection=function(c,n){var d;for(d=0;d<s;d+=1)e[d].animation.setDirection(c,n)},t.play=function(c){var n;for(n=0;n<s;n+=1)e[n].animation.play(c)},t.pause=function(c){var n;for(n=0;n<s;n+=1)e[n].animation.pause(c)},t.stop=function(c){var n;for(n=0;n<s;n+=1)e[n].animation.stop(c)},t.togglePause=function(c){var n;for(n=0;n<s;n+=1)e[n].animation.togglePause(c)},t.searchAnimations=function(c,n,d){var v,P=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),_=P.length;for(v=0;v<_;v+=1)d&&P[v].setAttribute("data-bm-type",d),g(P[v],c);if(n&&0===_){d||(d="svg");var x=document.getElementsByTagName("body")[0];x.innerText="";var A=createTag("div");A.style.width="100%",A.style.height="100%",A.setAttribute("data-bm-type",d),x.appendChild(A),g(A,c)}},t.resize=function(){var c;for(c=0;c<s;c+=1)e[c].animation.resize()},t.goToAndStop=function(c,n,d){var v;for(v=0;v<s;v+=1)e[v].animation.goToAndStop(c,n,d)},t.destroy=function(c){var n;for(n=s-1;n>=0;n-=1)e[n].animation.destroy(c)},t.freeze=function(){y=!0},t.unfreeze=function(){y=!1,l()},t.setVolume=function(c,n){var d;for(d=0;d<s;d+=1)e[d].animation.setVolume(c,n)},t.mute=function(c){var n;for(n=0;n<s;n+=1)e[n].animation.mute(c)},t.unmute=function(c){var n;for(n=0;n<s;n+=1)e[n].animation.unmute(c)},t.getRegisteredAnimations=function(){var c,n=e.length,d=[];for(c=0;c<n;c+=1)d.push(e[c].animation);return d},t}(),BezierFactory=function(){var t={getBezierEasing:function(o,p,u,f,l){var c=l||("bez_"+o+"_"+p+"_"+u+"_"+f).replace(/\./g,"p");if(e[c])return e[c];var n=new h([o,p,u,f]);return e[c]=n,n}},e={},i=.1,s="function"==typeof Float32Array;function r(o,p){return 1-3*p+3*o}function a(o,p){return 3*p-6*o}function y(o){return 3*o}function m(o,p,u){return((r(p,u)*o+a(p,u))*o+y(p))*o}function g(o,p,u){return 3*r(p,u)*o*o+2*a(p,u)*o+y(p)}function h(o){this._p=o,this._mSampleValues=s?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(o){var p=this._p[0],u=this._p[1],f=this._p[2],l=this._p[3];return this._precomputed||this._precompute(),p===u&&f===l?o:0===o?0:1===o?1:m(this._getTForX(o),u,l)},_precompute:function(){var o=this._p[0],p=this._p[1],u=this._p[2],f=this._p[3];this._precomputed=!0,o===p&&u===f||this._calcSampleValues()},_calcSampleValues:function(){for(var o=this._p[0],p=this._p[2],u=0;u<11;++u)this._mSampleValues[u]=m(u*i,o,p)},_getTForX:function(o){for(var p=this._p[0],u=this._p[2],f=this._mSampleValues,l=0,c=1;10!==c&&f[c]<=o;++c)l+=i;var n=l+(o-f[--c])/(f[c+1]-f[c])*i,d=g(n,p,u);return d>=.001?function(v,P,_,x){for(var A=0;A<4;++A){var E=g(P,_,x);if(0===E)return P;P-=(m(P,_,x)-v)/E}return P}(o,n,p,u):0===d?n:function(v,P,_,x,A){var E,S,T=0;do{(E=m(S=P+(_-P)/2,x,A)-v)>0?_=S:P=S}while(Math.abs(E)>1e-7&&++T<10);return S}(o,l,l+i,p,u)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}}
vendor: 4,550 bytes, line 1
1,poolFactory=function(t,e,i){var s=0,r=t,a=createSizedArray(r);return{newElement:function(){return s?a[s-=1]:e()},release:function(y){s===r&&(a=pooling.double(a),r*=2),i&&i(y),a[s]=y,s+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(h,o,p,u,f,l){var c=h*u+o*f+p*l-f*u-l*h-p*o;return c>-.001&&c<.001}var i=function(h,o,p,u){var f,l,c,n,d,v,P=getDefaultCurveSegments(),_=0,x=[],A=[],E=bezierLengthPool.newElement();for(c=p.length,f=0;f<P;f+=1){for(d=f/(P-1),v=0,l=0;l<c;l+=1)n=bmPow(1-d,3)*h[l]+3*bmPow(1-d,2)*d*p[l]+3*(1-d)*bmPow(d,2)*u[l]+bmPow(d,3)*o[l],x[l]=n,null!==A[l]&&(v+=bmPow(x[l]-A[l],2)),A[l]=x[l];v&&(_+=v=bmSqrt(v)),E.percents[f]=d,E.lengths[f]=_}return E.addedLength=_,E};function s(h){this.segmentLength=0,this.points=new Array(h)}function r(h,o){this.partialLength=h,this.point=o}var a,y=(a={},function(h,o,p,u){var f=(h[0]+"_"+h[1]+"_"+o[0]+"_"+o[1]+"_"+p[0]+"_"+p[1]+"_"+u[0]+"_"+u[1]).replace(/\./g,"p");if(!a[f]){var l,c,n,d,v,P,_,x=getDefaultCurveSegments(),A=0,E=null;2===h.length&&(h[0]!==o[0]||h[1]!==o[1])&&e(h[0],h[1],o[0],o[1],h[0]+p[0],h[1]+p[1])&&e(h[0],h[1],o[0],o[1],o[0]+u[0],o[1]+u[1])&&(x=2);var S=new s(x);for(n=p.length,l=0;l<x;l+=1){for(_=createSizedArray(n),v=l/(x-1),P=0,c=0;c<n;c+=1)d=bmPow(1-v,3)*h[c]+3*bmPow(1-v,2)*v*(h[c]+p[c])+3*(1-v)*bmPow(v,2)*(o[c]+u[c])+bmPow(v,3)*o[c],_[c]=d,null!==E&&(P+=bmPow(_[c]-E[c],2));A+=P=bmSqrt(P),S.points[l]=new r(P,_),E=_}S.segmentLength=A,a[f]=S}return a[f]});function m(h,o){var p=o.percents,u=o.lengths,f=p.length,l=bmFloor((f-1)*h),c=h*o.addedLength,n=0;if(l===f-1||0===l||c===u[l])return p[l];for(var d=u[l]>c?-1:1,v=!0;v;)if(u[l]<=c&&u[l+1]>c?(n=(c-u[l])/(u[l+1]-u[l]),v=!1):l+=d,l<0||l>=f-1){if(l===f-1)return p[l];v=!1}return p[l]+(p[l+1]-p[l])*n}var g=createTypedArray("float32",8);return{getSegmentsLength:function(h){var o,p=segmentsLengthPool.newElement(),u=h.c,f=h.v,l=h.o,c=h.i,n=h._length,d=p.lengths,v=0;for(o=0;o<n-1;o+=1)d[o]=i(f[o],f[o+1],l[o],c[o+1]),v+=d[o].addedLength;return u&&n&&(d[o]=i(f[o],f[0],l[o],c[0]),v+=d[o].addedLength),p.totalLength=v,p},getNewSegment:function(h,o,p,u,f,l,c){f<0?f=0:f>1&&(f=1);var n,d=m(f,c),v=m(l=l>1?1:l,c),P=h.length,_=1-d,x=1-v,A=_*_*_,E=d*_*_*3,S=d*d*_*3,T=d*d*d,b=_*_*x,k=d*_*x+_*d*x+_*_*v,B=d*d*x+_*d*v+d*_*v,R=d*d*v,F=_*x*x,L=d*x*x+_*v*x+_*x*v,G=d*v*x+_*v*v+d*x*v,w=d*v*v,C=x*x*x,V=v*x*x+x*v*x+x*x*v,W=v*v*x+x*v*v+v*x*v,tt=v*v*v;for(n=0;n<P;n+=1)g[4*n]=t.round(1e3*(A*h[n]+E*p[n]+S*u[n]+T*o[n]))/1e3,g[4*n+1]=t.round(1e3*(b*h[n]+k*p[n]+B*u[n]+R*o[n]))/1e3,g[4*n+2]=t.round(1e3*(F*h[n]+L*p[n]+G*u[n]+w*o[n]))/1e3,g[4*n+3]=t.round(1e3*(C*h[n]+V*p[n]+W*u[n]+tt*o[n]))/1e3;return g},getPointInSegment:function(h,o,p,u,f,l){var c=m(f,l),n=1-c;return[t.round(1e3*(n*n*n*h[0]+(c*n*n+n*c*n+n*n*c)*p[0]+(c*c*n+n*c*c+c*n*c)*u[0]+c*c*c*o[0]))/1e3,t.round(1e3*(n*n*n*h[1]+(c*n*n+n*c*n+n*n*c)*p[1]+(c*c*n+n*c*c+c*n*c)*u[1]+c*c*c*o[1]))/1e3]},buildBezierData:y,pointOnLine2D:e,pointOnLine3D:function(h,o,p,u,f,l,c,n,d){if(0===p&&0===l&&0===d)return e(h,o,u,f,c,n);var v,P=t.sqrt(t.pow(u-h,2)+t.pow(f-o,2)+t.pow(l-p,2)),_=t.sqrt(t.pow(c-h,2)+t.pow(n-o,2)+t.pow(d-p,2)),x=t.sqrt(t.pow(c-u,2)+t.pow(n-f,2)+t.pow(d-l,2));return(v=P>_?P>x?P-_-x:x-_-P:x>_?x-_-P:_-P-x)>-1e-4&&v<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function i(u,f){var l,c=this.offsetTime;"multidimensional"===this.propType&&(l=createTypedArray("float32",this.pv.length));for(var n,d,v,P,_,x,A,E,S,T=f.lastIndex,b=T,k=this.keyframes.length-1,B=!0;B;){if(n=this.keyframes[b],d=this.keyframes[b+1],b===k-1&&u>=d.t-c){n.h&&(n=d),T=0;break}if(d.t-c>u){T=b;break}b<k-1?b+=1:(T=0,B=!1)}v=this.keyframesMetadata[b]||{};var R,F,L,G,w,C,V,W,tt,it,$,nt,ot,et,lt,mt,rt,pt,z,N,dt,K,J,ft,ct,ht,ut,Q=d.t-c,Z=n.t-c;if(n.to){v.bezierData||(v.bezierData=bez.buildBezierData(n.s,d.s||n.e,n.to,n.ti));var Y=v.bezierData;if(u>=Q||u<Z){var st=u>=Q?Y.points.length-1:0;for(_=Y.points[st].point.length,P=0;P<_;P+=1)l[P]=Y.points[st].point[P]}else{v.__fnct?S=v.__fnct:(S=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,v.__fnct=S),x=S((u-Z)/(Q-Z));var U,j=Y.segmentLength*x,M=f.lastFrame<u&&f._lastKeyframeIndex===b?f._lastAddedLe
1ngth:0;for(E=f.lastFrame<u&&f._lastKeyframeIndex===b?f._lastPoint:0,B=!0,A=Y.points.length;B;){if(M+=Y.points[E].partialLength,0===j||0===x||E===Y.points.length-1){for(_=Y.points[E].point.length,P=0;P<_;P+=1)l[P]=Y.points[E].point[P];break}if(j>=M&&j<M+Y.points[E+1].partialLength){for(U=(j-M)/Y.points[E+1].partialLength,_=Y.points[E].point.length,P=0;P<_;P+=1)l[P]=Y.points[E].point[P]+(Y.points[E+1].point[P]-Y.points[E].point[P])*U;break}E<A-1?E+=1:B=!1}f._lastPoint=E,f._lastAddedLength=M-Y.points[E].partialLength,f._lastKeyframeIndex=b}}else{var O;if(k=n.s.length,R=d.s||n.e,this.sh&&1!==n.h)if(u>=Q)l[0]=R[0],l[1]=R[1],l[2]=R[2];else if(u<=Z)l[0]=n.s[0],l[1]=n.s[1],l[2]=n.s[2];else{var at=s(n.s),q=s(R);F=l,ot=(u-Z)/(Q-Z),z=[],(lt=(N=($=at)[0])*(ft=(nt=q)[0])+(dt=$[1])*(ct=nt[1])+(K=$[2])*(ht=nt[2])+(J=$[3])*(ut=nt[3]))<0&&(lt=-lt,ft=-ft,ct=-ct,ht=-ht,ut=-ut),1-lt>1e-6?(et=Math.acos(lt),mt=Math.sin(et),rt=Math.sin((1-ot)*et)/mt,pt=Math.sin(ot*et)/mt):(rt=1-ot,pt=ot),z[0]=rt*N+pt*ft,z[1]=rt*dt+pt*ct,z[2]=rt*K+pt*ht,z[3]=rt*J+pt*ut,G=(L=z)[0],w=L[1],C=L[2],V=L[3],W=Math.atan2(2*w*V-2*G*C,1-2*w*w-2*C*C),tt=Math.asin(2*G*w+2*C*V),it=Math.atan2(2*G*V-2*w*C,1-2*G*G-2*C*C),F[0]=W/degToRads,F[1]=tt/degToRads,F[2]=it/degToRads}else for(b=0;b<k;b+=1)1!==n.h&&(u>=Q?x=1:u<Z?x=0:(n.o.x.constructor===Array?(v.__fnct||(v.__fnct=[]),v.__fnct[b]?S=v.__fnct[b]:(S=BezierFactory.getBezierEasing(void 0===n.o.x[b]?n.o.x[0]:n.o.x[b],void 0===n.o.y[b]?n.o.y[0]:n.o.y[b],void 0===n.i.x[b]?n.i.x[0]:n.i.x[b],void 0===n.i.y[b]?n.i.y[0]:n.i.y[b]).get,v.__fnct[b]=S)):v.__fnct?S=v.__fnct:(S=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y).get,n.
vendor: 54,865 bytes, line 1
1keyframeMetadata=S),x=S((u-Z)/(Q-Z)))),R=d.s||n.e,O=1===n.h?n.s[b]:n.s[b]+(R[b]-n.s[b])*x,"multidimensional"===this.propType?l[b]=O:l=O}return f.lastIndex=T,l}function s(u){var f=u[0]*degToRads,l=u[1]*degToRads,c=u[2]*degToRads,n=Math.cos(f/2),d=Math.cos(l/2),v=Math.cos(c/2),P=Math.sin(f/2),_=Math.sin(l/2),x=Math.sin(c/2);return[P*_*v+n*d*x,P*d*v+n*_*x,n*_*v-P*d*x,n*d*v-P*_*x]}function r(){var u=this.comp.renderedFrame-this.offsetTime,f=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(u===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=l&&u>=l||this._caching.lastFrame<f&&u<f))){this._caching.lastFrame>=u&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(u,this._caching);this.pv=c}return this._caching.lastFrame=u,this.pv}function a(u){var f;if("unidimensional"===this.propType)e(this.v-(f=u*this.mult))>1e-5&&(this.v=f,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)e(this.v[l]-(f=u[l]*this.mult))>1e-5&&(this.v[l]=f,this._mdf=!0),l+=1}function y(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var u;this.lock=!0,this._mdf=this._isFirstFrame;var f=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(u=0;u<f;u+=1)l=this.effectsSequence[u](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(u){this.effectsSequence.push(u),this.container.addDynamicProperty(this)}function g(u,f,l,c){this.propType="unidimensional",this.mult=l||1,this.data=f,this.v=l?f.k*l:f.k,this.pv=f.k,this._mdf=!1,this.elem=u,this.container=c,this.comp=u.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=y,this.setVValue=a,this.addEffect=m}function h(u,f,l,c){var n;this.propType="multidimensional",this.mult=l||1,this.data=f,this._mdf=!1,this.elem=u,this.container=c,this.comp=u.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d=f.k.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),this.vel=createTypedArray("float32",d),n=0;n<d;n+=1)this.v[n]=f.k[n]*this.mult,this.pv[n]=f.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=y,this.setVValue=a,this.addEffect=m}function o(u,f,l,c){this.propType="unidimensional",this.keyframes=f.k,this.keyframesMetadata=[],this.offsetTime=u.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=f,this.mult=l||1,this.elem=u,this.container=c,this.comp=u.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=y,this.setVValue=a,this.interpolateValue=i,this.effectsSequence=[r.bind(this)],this.addEffect=m}function p(u,f,l,c){var n;this.propType="multidimensional";var d,v,P,_,x=f.k.length;for(n=0;n<x-1;n+=1)f.k[n].to&&f.k[n].s&&f.k[n+1]&&f.k[n+1].s&&(v=f.k[n+1].s,P=f.k[n].to,_=f.k[n].ti,(2===(d=f.k[n].s).length&&(d[0]!==v[0]||d[1]!==v[1])&&bez.pointOnLine2D(d[0],d[1],v[0],v[1],d[0]+P[0],d[1]+P[1])&&bez.pointOnLine2D(d[0],d[1],v[0],v[1],v[0]+_[0],v[1]+_[1])||3===d.length&&(d[0]!==v[0]||d[1]!==v[1]||d[2]!==v[2])&&bez.pointOnLine3D(d[0],d[1],d[2],v[0],v[1],v[2],d[0]+P[0],d[1]+P[1],d[2]+P[2])&&bez.pointOnLine3D(d[0],d[1],d[2],v[0],v[1],v[2],v[0]+_[0],v[1]+_[1],v[2]+_[2]))&&(f.k[n].to=null,f.k[n].ti=null),d[0]===v[0]&&d[1]===v[1]&&0===P[0]&&0===P[1]&&0===_[0]&&0===_[1]&&(2===d.length||d[2]===v[2]&&0===P[2]&&0===_[2])&&(f.k[n].to=null,f.k[n].ti=null));this.effectsSequence=[r.bind(this)],this.data=f,this.keyframes=f.k,this.keyframesMetadata=[],this.offsetTime=u.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=u,this.container=c,this.comp=u.comp,this.getValue=y,this.setVValue=a,this.interpolateValue=i,this.frameId=-1;var A=f.k[0].s.length;for(this.v=createTypedArray("float32",A),this.pv=createTypedArray("float32",A),n=0;n<A;n+=1)this.v[n]=t,this.pv[n]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",A)},this.addEffect=m}return{getProp:function(u,f,l,c,n){var d;if(f.k.length)if("number"==typeof f.k[0])d=new h(u,f,c,n);else switch(l){case 0:d=new o(u,f,c,n);break;case 1:d=new p(u,f,c,n)}else d=new g(u,f,c,n);return d.effectsSequence.length&&n.addDynamicProperty(d),d}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});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]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.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;break;default:a=[]}(!a[s]||a[s]&&!r)&&(a[s]=pointPool.newElement()),a[s][0]=t,a[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,r,a,y,m){this.setXYAt(t,e,"v",y,m),this.setXYAt(i,s,"o",y,m),this.setXYAt(r,a,"i",y,m)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=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);var a,y=this._length-1,m=this._length;for(a=r;a<m;a+=1)t.setTripleAt(e[y][0],e[y][1],s[y][0],s[y][1],i[y][0],i[y][1],a,!1),y-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,i=factory.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},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(f,l,c){var n,d,v,P,_,x,A,E,T=c.lastIndex,b=this.keyframes;if(f<b[0].t-this.offsetTime)n=b[0].s[0],v=!0,T=0;else if(f>=b[b.length-1].t-this.offsetTime)n=b[b.length-1].s?b[b.length-1].s[0]:b[b.length-2].e[0],v=!0;else{for(var k,B,R,F=T,L=b.length-1,G=!0;G&&(k=b[F],!((B=b[F+1]).t-this.offsetTime>f));)F<L-1?F+=1:G=!1;if(R=this.keyframesMetadata[F]||{},T=F,!(v=1===k.h)){if(f>=B.t-this.offsetTime)E=1;else if(f<k.t-this.offsetTime)E=0;else{var w;R.__fnct?w=R.__fnct:(w=BezierFactory.getBezierEasing(k.o.x,k.o.y,k.i.x,k.i.y).get,R.__fnct=w),E=w((f-(k.t-this.offsetTime))/(B.t-this.offsetTime-(k.t-this.offsetTime)))}d=B.s?B.s[0]:k.e[0]}n=k.s[0]}for(x=l._length,A=n.i[0].length,c.lastIndex=T,P=0;P<x;P+=1)for(_=0;_<A;_+=1)l.i[P][_]=v?n.i[P][_]:n.i[P][_]+(d.i[P][_]-n.i[P][_])*E,l.o[P][_]=v?n.o[P][_]:n.o[P][_]+(d.o[P][_]-n.o[P][_])*E,l.v[P][_]=v?n.v[P][_]:n.v[P][_]+(d.v[P][_]-n.v[P][_])*E}function i(){var f=this.comp.renderedFrame-this.offsetTime,l=this.keyframes[0].t-this.offsetTime,c=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<l&&f<l||n>c&&f>c)||(this._caching.lastIndex=n<f?this._caching.lastIndex:0,this.interpolateShape(f,this.pv,this._caching)),this._caching.lastFrame=f,this.pv}function s(){this.paths=this.localShapeCollection}function r(f){(function(l,c){if(l._length!==c._length||l.c!==c.c)return!1;var n,d=l._length;for(n=0;n<d;n+=1)if(l.v[n][0]!==c.v[n][0]||l.v[n][1]!==c.v[n][1]||l.o[n][0]!==c.o[n][0]||l.o[n][1]!==c.o[n][1]||l.i[n][0]!==c.i[n][0]||l.i[n][1]!==c.i[n][1])return!1;return!0})(this.v,f)||(this.v=shapePool.clone(f),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f,l;this.lock=!0,this._mdf=!1,f=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var c=this.effectsSequence.length;for(l=0;l<c;l+=1)f=this.effectsSequence[l](f);this.setVValue(f),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function y(f,l,c){this.propType="shape",this.comp=f.comp,this.container=f,this.elem=f,this.data=l,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===c?l.pt.k:l.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function m(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function g(f,l,c){this.propType="shape",this.comp=f.comp,this.elem=f,this.container=f,this.offsetTime=f.data.st,this.keyframes=3===c?l.pt.k:l.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}y.prototype.interpolateShape=e,y.prototype.getValue=a,y.prototype.setVValue=r,y.prototype.addEffect=m,g.prototype.getValue=a,g.prototype.interpolateShape=e,g.prototype.setVValue=r,g.prototype.addEffect=m;var h=function(){var f=roundCorner;function l(c,n){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=n.d,this.elem=c,this.comp=c.comp,this.frameId=-1,this.initDynamicPropertyContainer(c),this.p=PropertyFactory.getProp(c,n.p,1,0,this),this.s=PropertyFactory.getProp(c,n.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return l.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 c=this.p.v[0],n=this.p.v[1],d=this.s.v[0]/2,v=this.s.v[1]/2,P=3!==this.d,_=this.v;_.v[0][0]=c,_.v[0][1]=n-v,_.v[1][0]=P?c+d:c-d,_.v[1][1]=n,_.v[2][0]=c,_.v[2][1]=n+v,_.v[3][0]=P?c-d:c+d,_.v[3][1]=n,_.i[0][0]=P?c-d*f:c+d*f,_.i[0][1]=n-v,_.i[1][0]=P?c+d:c-d,_.i[1][1]=n-v*f,_.i[2][0]=P?c+d*f:c-d*f,_.i[2][1]=n+v,_.i[3][0]=P?c-d:c+d,_.i[3][1]=n+v*f,_.o[0][0]=P?c+d*f:c-d*f,_.o[0][1]=n-v,_.o[1][0]=P?c+d:c-d,_.o[1][1]=n+v*f,_.o[2][0]=P?c-d*f:c+d*f,_.o[2][1]=n+v,_.o[3][0]=P?c-d:c+d,_.o[3][1]=n-v*f}},extendPrototype([DynamicPropertyContainer],l),l}(),o=function(){function f(l,c){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=l,this.comp=l.comp,this.data=c,this.frameId=-1,this.d=c.d,this.initDynamicPropertyContainer(l),1===c.sy?(this.ir=PropertyFactory.getProp(l,c.ir,0,0,this),this.is=PropertyFactory.getProp(l,c.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(l,c.pt,0,0,this),this.p=PropertyFactory.getProp(l,c.p,1,0,this),this.r=PropertyFactory.getProp(l,c.r,0,degToRads,this),this.or=PropertyFactory.getProp(l,c.or,0,0,this),this.os=PropertyFactory.getProp(l,c.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return f.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 l,c,n,d,v=2*Math.floor(this.pt.v),P=2*Math.PI/v,_=!0,x=this.or.v,A=this.ir.v,E=this.os.v,S=this.is.v,T=2*Math.PI*x/(2*v),b=2*Math.PI*A/(2*v),k=-Math.PI/2;k+=this.r.v;var B=3===this.data.d?-1:1;for(this.v._length=0,l=0;l<v;l+=1){n=_?E:S,d=_?T:b;var R=(c=_?x:A)*Math.cos(k),F=c*Math.sin(k),L=0===R&&0===F?0:F/Math.sqrt(R*R+F*F),G=0===R&&0===F?0:-R/Math.sqrt(R*R+F*F);this.v.setTripleAt(R+=+this.p.v[0],F+=+this.p.v[1],R-L*d*n*B,F-G*d*n*B,R+L*d*n*B,F+G*d*n*B,l,!0),_=!_,k+=P*B}},convertPolygonToPath:function(){var l,c=Math.floor(this.pt.v),n=2*Math.PI/c,d=this.or.v,v=this.os.v,P=2*Math.PI*d/(4*c),_=.5*-Math.PI,x=3===this.data.d?-1:1;for(_+=this.r.v,this.v._length=0,l=0;l<c;l+=1){var A=d*Math.cos(_),E=d*Math.sin(_),S=0===A&&0===E?0:E/Math.sqrt(A*A+E*E),T=0===A&&0===E?0:-A/Math.sqrt(A*A+E*E);this.v.setTripleAt(A+=+this.p.v[0],E+=+this.p.v[1],A-S*P*v*x,E-T*P*v*x,A+S*P*v*x,E+T*P*v*x,l,!0),_+=n*x}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f),f}(),p=function(){function f(l,c){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=l,this.comp=l.comp,this.frameId=-1,this.d=c.d,this.initDynamicPropertyContainer(l),this.p=PropertyFactory.getProp(l,c.p,1,0,this),this.s=PropertyFactory.getProp(l,c.s,1,0,this),this.r=PropertyFactory.getProp(l,c.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return f.prototype={convertRectToPath:function(){var l=this.p.v[0],c=this.p.v[1],n=this.s.v[0]/2,d=this.s.v[1]/2,v=bmMin(n,d,this.r.v),P=v*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(l+n,c-d+v,l+n,c-d+v,l+n,c-d+P,0,!0),this.v.setTripleAt(l+n,c+d-v,l+n,c+d-P,l+n,c+d-v,1,!0),0!==v?(this.v.setTripleAt(l+n-v,c+d,l+n-v,c+d,l+n-P,c+d,2,!0),this.v.setTripleAt(l-n+v,c+d,l-n+P,c+d,l-n+v,c+d,3,!0),this.v.setTripleAt(l-n,c+d-v,l-n,c+d-v,l-n,c+d-P,4,!0),this.v.setTripleAt(l-n,c-d+v,l-n,c-d+P,l-n,c-d+v,5,!0),this.v.setTripleAt(l-n+v,c-d,l-n+v,c-d,l-n+P,c-d,6,!0),this.v.setTripleAt(l+n-v,c-d,l+n-P,c-d,l+n-v,c-d,7,!0)):(this.v.setTripleAt(l-n,c+d,l-n+P,c+d,l-n,c+d,2),this.v.setTripleAt(l-n,c-d,l-n,c-d+P,l-n,c-d,3))):(this.v.setTripleAt(l+n,c-d+v,l+n,c-d+P,l+n,c-d+v,0,!0),0!==v?(this.v.setTripleAt(l+n-v,c-d,l+n-v,c-d,l+n-P,c-d,1,!0),this.v.setTripleAt(l-n+v,c-d,l-n+P,c-d,l-n+v,c-d,2,!0),this.v.setTripleAt(l-n,c-d+v,l-n,c-d+v,l-n,c-d+P,3,!0),this.v.setTripleAt(l-n,c+d-v,l-n,c+d-P,l-n,c+d-v,4,!0),this.v.setTripleAt(l-n+v,c+d,l-n+v,c+d,l-n+P,c+d,5,!0),this.v.setTripleAt(l+n-v,c+d,l+n-P,c+d,l+n-v,c+d,6,!0),this.v.setTripleAt(l+n,c+d-v,l+n,c+d-v,l+n,c+d-P,7,!0)):(this.v.setTripleAt(l-n,c-d,l-n+P,c-d,l-n,c-d,1,!0),this.v.setTripleAt(l-n,c+d,l-n,c+d-P,l-n,c+d,2,!0),this.v.setTripleAt(l+n,c+d,l+n-P,c+d,l+n,c+d,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],f),f}();return{getShapeProp:function(f,l,c){var n;return 3===c||4===c?n=(3===c?l.pt:l.ks).k.length?new g(f,l,c):new y(f,l,c):5===c?n=new p(f,l):6===c?n=new h(f,l):7===c&&(n=new o(f,l)),n.k&&f.addDynamicProperty(n),n},getConstructorFunction:function(){return y},getKeyframedConstructorFunction:function(){return g}}}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(w){if(0===w)return this;var C=t(w),V=e(w);return this._t(C,-V,0,0,V,C,0,0,0,0,1,0,0,0,0,1)}function y(w){if(0===w)return this;var C=t(w),V=e(w);return this._t(1,0,0,0,0,C,-V,0,0,V,C,0,0,0,0,1)}function m(w){if(0===w)return this;var C=t(w),V=e(w);return this._t(C,0,V,0,0,1,0,0,-V,0,C,0,0,0,0,1)}function g(w){if(0===w)return this;var C=t(w),V=e(w);return this._t(C,-V,0,0,V,C,0,0,0,0,1,0,0,0,0,1)}function h(w,C){return this._t(1,C,w,1,0,0)}function o(w,C){return this.shear(i(w),i(C))}function p(w,C){var V=t(C),W=e(C);return this._t(V,W,0,0,-W,V,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(w),1,0,0,0,0,1,0,0,0,0,1)._t(V,-W,0,0,W,V,0,0,0,0,1,0,0,0,0,1)}function u(w,C,V){return V||0===V||(V=1),1===w&&1===C&&1===V?this:this._t(w,0,0,0,0,C,0,0,0,0,V,0,0,0,0,1)}function f(w,C,V,W,tt,it,Q,Z,Y,st,U,j,M,I,H,X){return this.props[0]=w,this.props[1]=C,this.props[2]=V,this.props[3]=W,this.props[4]=tt,this.props[5]=it,this.props[6]=Q,this.props[7]=Z,this.props[8]=Y,this.props[9]=st,this.props[10]=U,this.props[11]=j,this.props[12]=M,this.props[13]=I,this.props[14]=H,this.props[15]=X,this}function l(w,C,V){return V=V||0,0!==w||0!==C||0!==V?this._t(1,0,0,0,0,1,0,0,0,0,1,0,w,C,V,1):this}function c(w,C,V,W,tt,it,Q,Z,Y,st,U,j,M,I,H,X){var D=this.props;if(1===w&&0===C&&0===V&&0===W&&0===tt&&1===it&&0===Q&&0===Z&&0===Y&&0===st&&1===U&&0===j)return D[12]=D[12]*w+D[15]*M,D[13]=D[13]*it+D[15]*I,D[14]=D[14]*U+D[15]*H,D[15]*=X,this._identityCalculated=!1,this;var O=D[0],at=D[1],q=D[2],$=D[3],nt=D[4],ot=D[5],et=D[6],lt=D[7],mt=D[8],rt=D[9],pt=D[10],z=D[11],N=D[12],dt=D[13],K=D[14],J=D[15];return D[0]=O*w+at*tt+q*Y+$*M,D[1]=O*C+at*it+q*st+$*I,D[2]=O*V+at*Q+q*U+$*H,D[3]=O*W+at*Z+q*j+$*X,D[4]=nt*w+ot*tt+et*Y+lt*M,D[5]=nt*C+ot*it+et*st+lt*I,D[6]=nt*V+ot*Q+et*U+lt*H,D[7]=nt*W+ot*Z+et*j+lt*X,D[8]=mt*w+rt*tt+pt*Y+z*M,D[9]=mt*C+rt*it+pt*st+z*I,D[10]=mt*V+rt*Q+pt*U+z*H,D[11]=mt*W+rt*Z+pt*j+z*X,D[12]=N*w+dt*tt+K*Y+J*M,D[13]=N*C+dt*it+K*st+J*I,D[14]=N*V+dt*Q+K*U+J*H,D[15]=N*W+dt*Z+K*j+J*X,this._identityCalculated=!1,this}function n(){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 d(w){for(var C=0;C<16;){if(w.props[C]!==this.props[C])return!1;C+=1}return!0}function v(w){var C;for(C=0;C<16;C+=1)w.props[C]=this.props[C];return w}function P(w){var C;for(C=0;C<16;C+=1)this.props[C]=w[C]}function _(w,C,V){return{x:w*this.props[0]+C*this.props[4]+V*this.props[8]+this.props[12],y:w*this.props[1]+C*this.props[5]+V*this.props[9]+this.props[13],z:w*this.props[2]+C*this.props[6]+V*this.props[10]+this.props[14]}}function x(w,C,V){return w*this.props[0]+C*this.props[4]+V*this.props[8]+this.props[12]}function A(w,C,V){return w*this.props[1]+C*this.props[5]+V*this.props[9]+this.props[13]}function E(w,C,V){return w*this.props[2]+C*this.props[6]+V*this.props[10]+this.props[14]}function S(){var w=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/w,V=-this.props[1]/w,W=-this.props[4]/w,tt=this.props[0]/w,it=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/w,Q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/w,Z=new Matrix;return Z.props[0]=C,Z.props[1]=V,Z.props[4]=W,Z.props[5]=tt,Z.props[12]=it,Z.props[13]=Q,Z}function T(w){return this.getInverseMatrix().applyToPointArray(w[0],w[1],w[2]||0)}function b(w){var C,V=w.length,W=[];for(C=0;C<V;C+=1)W[C]=T(w[C]);return W}function k(w,C,V){var W=createTypedArray("float32",6);if(this.isIdentity())W[0]=w[0],W[1]=w[1],W[2]=C[0],W[3]=C[1],W[4]=V[0],W[5]=V[1];else{var tt=this.props[0],it=this.props[1],Q=this.props[4],Z=this.props[5],Y=this.props[12],st=this.props[13];W[0]=w[0]*tt+w[1]*Q+Y,W[1]=w[0]*it+w[1]*Z+st,W[2]=C[0]*tt+C[1]*Q+Y,W[3]=C[0]*it+C[1]*Z+st,W[4]=V[0]*tt+V[1]*Q+Y,W[5]=V[0]*it+V[1]*Z+st}return W}function B(w,C,V){return this.isIdentity()?[w,C,V]:[w*this.props[0]+C*this.props[4]+V*this.props[8]+this.props[12],w*this.props[1]+C*this.props[5]+V*this.props[9]+this.props[13],w*this.props[2]+C*this.props[6]+V*this.props[10]+this.props[14]]}function R(w,C){if(this.isIdentity())return w+","+C;var V=this.props;return Math.round(100*(w*V[0]+C*V[4]+V[12]))/100+","+Math.round(100*(w*V[1]+C*V[5]+V[13]))/100}function F(){for(var w=0,C=this.props,V="matrix3d(";w<16;)V+=s(1e4*C[w])/1e4,V+=15===w?")":",",w+=1;return V}function L(w){return w<1e-6&&w>0||w>-1e-6&&w<0?s(1e4*w)/1e4:w}function G(){var w=this.props;return"matrix("+L(w[0])+","+L(w[1])+","+L(w[4])+","+L(w[5])+","+L(w[12])+","+L(w[13])+")"}return function(){this.reset=r,this.rotate=a,this.rotateX=y,this.rotateY=m,this.rotateZ=g,this.skew=o,this.skewFromAxis=p,this.shear=h,this.scale=u,this.setTransform=f,this.translate=l,this.transform=c,this.applyToPoint=_,this.applyToX=x,this.applyToY=A,this.applyToZ=E,this.applyToPointArray=B,this.applyToTriplePoints=k,this.applyToPointStringified=R,this.toCSS=F,this.to2dCSS=G,this.clone=v,this.cloneFromProps=P,this.equals=d,this.inversePoints=b,this.inversePoint=T,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=n,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(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":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"===(typeof exports>"u"?"undefined":_typeof$3(exports))&&typeof module<"u"||"function"==typeof define&&define.amd||(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(t={},e={},t.registerModifier=function(i,s){e[i]||(e[i]=s)},t.getModifier=function(i,s,r){return new e[i](s,r)},t),t,e;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.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}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var y,m,g=[],h=a.length;for(y=0;y<h;y+=1)(m=a[y]).e*r<s||m.s*r>s+i||g.push([m.s*r<=s?0:(m.s*r-s)/i,m.e*r>=s+i?1:(m.e*r-s)/i]);return g.length||g.push([0,0]),g},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,s,r;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),(e=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(i=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var y=e;e=i,i=y}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var m,g,h,o,p,u=this.shapes.length,f=0;if(i===e)for(r=0;r<u;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<u;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var l,c,n=[];for(r=0;r<u;r+=1)if((l=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(g=(s=l.shape.paths)._length,p=0,!l.shape._mdf&&l.pathsData.length)p=l.totalShapeLength;else{for(h=this.releasePathsData(l.pathsData),m=0;m<g;m+=1)o=bez.getSegmentsLength(s.shapes[m]),h.push(o),p+=o.totalLength;l.totalShapeLength=p,l.pathsData=h}f+=p,l.shape._mdf=!0}else l.shape.paths=l.localShapeCollection;var d,v=e,P=i,_=0;for(r=u-1;r>=0;r-=1)if((l=this.shapes[r]).shape._mdf){for((c=l.localShapeCollection).releaseShapes(),2===this.m&&u>1?(d=this.calculateShapeEdges(e,i,l.totalShapeLength,_,f),_+=l.totalShapeLength):d=[[v,P]],g=d.length,m=0;m<g;m+=1){v=d[m][0],P=d[m][1],n.length=0,P<=1?n.push({s:l.totalShapeLength*v,e:l.totalShapeLength*P}):v>=1?n.push({s:l.totalShapeLength*(v-1),e:l.totalShapeLength*(P-1)}):(n.push({s:l.totalShapeLength*v,e:l.totalShapeLength}),n.push({s:0,e:l.totalShapeLength*(P-1)}));var x=this.addShapes(l,n[0]);if(n[0].s!==n[0].e){if(n.length>1)if(l.shape.paths.shapes[l.shape.paths._length-1].c){var A=x.pop();this.addPaths(x,c),x=this.addShapes(l,n[1],A)}else this.addPaths(x,c),x=this.addShapes(l,n[1]);this.addPaths(x,c)}}l.shape.paths=c}}},TrimModifier.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,s,r,a,y){r.setXYAt(e[0],e[1],"o",a),r.setXYAt(i[0],i[1],"i",a+1),y&&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,y,m,g,h,o,p=t.pathsData,u=t.shape.paths.shapes,f=t.shape.paths._length,l=0,c=[],n=!0;for(i?(m=i._length,o=i._length):(i=shapePool.newElement(),m=0,o=0),c.push(i),s=0;s<f;s+=1){for(g=p[s].lengths,i.c=u[s].c,a=u[s].c?g.length:g.length+1,r=1;r<a;r+=1)if(l+(y=g[r-1]).addedLength<e.s)l+=y.addedLength,i.c=!1;else{if(l>e.e){i.c=!1;break}e.s<=l&&e.e>=l+y.addedLength?(this.addSegment(u[s].v[r-1],u[s].o[r-1],u[s].i[r],u[s].v[r],i,m,n),n=!1):(h=bez.getNewSegment(u[s].v[r-1],u[s].v[r],u[s].o[r-1],u[s].i[r],(e.s-l)/y.addedLength,(e.e-l)/y.addedLength,g[r-1]),this.addSegmentFromArray(h,i,m,n),n=!1,i.c=!1),l+=y.addedLength,m+=1}if(u[s].c&&g.length){if(y=g[r-1],l<=e.e){var d=g[r-1].addedLength;e.s<=l&&e.e>=l+d?(this.addSegment(u[s].v[r-1],u[s].o[r-1],u[s].i[0],u[s].v[0],i,m,n),n=!1):(h=bez.getNewSegment(u[s].v[r-1],u[s].v[0],u[s].o[r-1],u[s].i[0],(e.s-l)/d,(e.e-l)/d,g[r-1]),this.addSegmentFromArray(h,i,m,n),n=!1,i.c=!1)}else i.c=!1;l+=y.addedLength,m+=1}if(i._length&&(i.setXYAt(i.v[o][0],i.v[o][1],"i",o),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),l>e.e)break;s<f-1&&(i=shapePool.newElement(),n=!0,c.push(i),m=0)}return c},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,s=[0,0],r=t._length,a=0;for(a=0;a<r;a+=1)s[0]+=t.v[a][0],s[1]+=t.v[a][1];s[0]/=r,s[1]/=r;var u=shapePool.newElement();for(u.c=t.c,a=0;a<r;a+=1)u.setTripleAt(t.v[a][0]+(s[0]-t.v[a][0])*i,t.v[a][1]+(s[1]-t.v[a][1])*i,t.o[a][0]+(s[0]-t.o[a][0])*-i,t.o[a][1]+(s[1]-t.o[a][1])*-i,t.i[a][0]+(s[0]-t.i[a][0])*-i,t.i[a][1]+(s[1]-t.i[a][1])*-i,a);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,s,r,a,y,m=this.shapes.length,g=this.amount.v;if(0!==g)for(i=0;i<m;i+=1){if(y=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(y.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)y.addShape(this.processPath(e[s],g));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(i,s,r){if(this.elem=i,this.frameId=-1,this.propType="transform",this.data=s,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||i),s.p&&s.p.s?(this.px=PropertyFactory.getProp(i,s.p.x,0,0,this),this.py=PropertyFactory.getProp(i,s.p.y,0,0,this),s.p.z&&(this.pz=PropertyFactory.getProp(i,s.p.z,0,0,this))):this.p=PropertyFactory.getProp(i,s.p||{k:[0,0,0]},1,0,this),s.rx){if(this.rx=PropertyFactory.getProp(i,s.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(i,s.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(i,s.rz,0,degToRads,this),s.or.k[0].ti){var a,y=s.or.k.length;for(a=0;a<y;a+=1)s.or.k[a].to=null,s.or.k[a].ti=null}this.or=PropertyFactory.getProp(i,s.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(i,s.r||{k:0},0,degToRads,this);s.sk&&(this.sk=PropertyFactory.getProp(i,s.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(i,s.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(i,s.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(i,s.s||{k:[100,100,100]},1,.01,this),this.o=s.o?PropertyFactory.getProp(i,s.o,0,.01,i):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(i){var s=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||s,this.a&&i.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&i.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&i.skewFromAxis(-this.sk.v,this.sa.v),this.r?i.rotate(-this.r.v):i.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?i.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):i.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(i){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||i){var s;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,a;if(s=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),a=this.p.getValueAtTime(this.p.keyframes[0].t/s,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(r=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/s,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],a=[];var y=this.px,m=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(r[0]=y.getValueAtTime((y.keyframes[0].t+.01)/s,0),r[1]=m.getValueAtTime((m.keyframes[0].t+.01)/s,0),a[0]=y.getValueAtTime(y.keyframes[0].t/s,0),a[1]=m.getValueAtTime(m.keyframes[0].t/s,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(r[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/s,0),r[1]=m.getValueAtTime(m.keyframes[m.keyframes.length-1].t/s,0),a[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/s,0),a[1]=m.getValueAtTime((m.keyframes[m.keyframes.length-1].t-.01)/s,0)):(r=[y.pv,m.pv],a[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/s,y.offsetTime),a[1]=m.getValueAtTime((m._caching.lastFrame+m.offsetTime-.01)/s,m.offsetTime))}else r=a=t;this.v.rotate(-Math.atan2(r[1]-a[1],r[0]-a[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(i){this._addDynamicProperty(i),this.elem.addDynamicProperty(i),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(i,s,r){return new e(i,s,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var r=-e/(2*t);if(0===s)return[r];var a=Math.sqrt(s)/(2*t);return[r-a,r+a]}function polynomialCoefficients(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,s,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),r&&pointEqual(i,s)&&(i=lerpPoint(t,s,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],s[0]),y=polynomialCoefficients(t[1],e[1],i[1],s[1]);this.a=[a[0],y[0]],this.b=[a[1],y[1]],this.c=[a[2],y[2]],this.d=[a[3],y[3]],this.points=[t,e,i,s]}function extrema(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var r=s;s=i,i=r}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),y=0;y<a.length;y+=1)if(a[y]>0&&a[y]<1){var m=t.point(a[y])[e];m<i?i=m:m>s&&(s=m)}return{min:i,max:s}}function intersectData(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,s,r,a){if(boxIntersect(t,e))if(i>=a||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)r.push([t.t,e.t]);else{var y=splitData(t),m=splitData(e);intersectsImpl(y[0],m[0],i+1,s,r,a),intersectsImpl(y[0],m[1],i+1,s,r,a),intersectsImpl(y[1],m[0],i+1,s,r,a),intersectsImpl(y[1],m[1],i+1,s,r,a)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,s){var y=[i[0],i[1],1],m=[s[0],s[1],1],g=crossProduct(crossProduct([t[0],t[1],1],[e[0],e[1],1]),crossProduct(y,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,s,r,a,y){var m=i-Math.PI/2,g=i+Math.PI/2,h=e[0]+Math.cos(i)*s*r,o=e[1]-Math.sin(i)*s*r;t.setTripleAt(h,o,h+Math.cos(m)*a,o-Math.sin(m)*a,h+Math.cos(g)*y,o-Math.sin(g)*y,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],s=.5*-Math.PI;return[Math.cos(s)*i[0]-Math.sin(s)*i[1],Math.sin(s)*i[0]+Math.cos(s)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,s=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[s]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,s,r,a,y){var m=getProjectingAngle(e,i),g=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],o=e.v[(i+1)%e._length],p=2===a?Math.sqrt(Math.pow(g[0]-h[0],2)+Math.pow(g[1]-h[1],2)):0,u=2===a?Math.sqrt(Math.pow(g[0]-o[0],2)+Math.pow(g[1]-o[1],2)):0;setPoint(t,e.v[i%e._length],m,y,s,u/(2*(r+1)),p/(2*(r+1)),a)}function zigZagSegment(t,e,i,s,r,a){for(var y=0;y<s;y+=1){var m=(y+1)/(s+1),g=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(m);setPoint(t,e.point(m),h,a,i,g/(2*(s+1)),g/(2*(s+1)),r),a=-a}return a}function linearOffset(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,i),polarOffset(e,s,i)]}function offsetSegment(t,e){var i,s,r,a,y,m,g;i=(g=linearOffset(t.points[0],t.points[1],e))[0],s=g[1],r=(g=linearOffset(t.points[1],t.points[2],e))[0],a=g[1],y=(g=linearOffset(t.points[2],t.points[3],e))[0],m=g[1];var h=lineIntersection(i,s,r,a);null===h&&(h=s);var o=lineIntersection(y,m,r,a);return null===o&&(o=y),new PolynomialBezier(i,h,o,m)}function joinLines(t,e,i,s,r){var a=e.points[3],y=i.points[0];if(3===s||pointEqual(a,y))return a;if(2===s){var m=-e.tangentAngle(1),g=-i.tangentAngle(0)+Math.PI,h=lineIntersection(a,polarOffset(a,m+Math.PI/2,100),y,polarOffset(y,m+Math.PI/2,100)),o=h?pointDistance(h,a):pointDistance(a,y)/2,p=polarOffset(a,m,2*o*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(y,g,2*o*roundCorner),t.setTripleAt(y[0],y[1],y[0],y[1],p[0],p[1],t.length()),y}var u=lineIntersection(pointEqual(a,e.points[2])?e.points[0]:e.points[2],a,y,pointEqual(y,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,a)<r?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):a}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),s=e.slice(),r=getIntersection(t[t.length-1],e[0]);return r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],s[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,s]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,s,r,a,y=t.inflectionPoints();return 0===y.length?[offsetSegment(t,e)]:1===y.length||floatEqual(y[1],1)?(i=(r=t.split(y[0]))[0],s=r[1],[offsetSegment(i,e),offsetSegment(s,e)]):(i=(r=t.split(y[0]))[0],a=(r=r[1].split((y[1]-y[0])/(1-y[0])))[0],s=r[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(s,e)])}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",r=e.length,a=0;a<r;a+=1)switch(e[a].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}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 y=a?-1:1,m=s.s.v[0]+(1-s.s.v[0])*(1-r),g=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*y*r,s.p.v[1]*y*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*y*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/m:m,a?1/g:g),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]);i>0;)this._elements.unshift(e[i-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,s,r,a,y=!1;if(this._mdf||t){var m,g=Math.ceil(this.c.v);if(this._groups.length<g){for(;this._groups.length<g;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.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,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),y=!0}for(a=0,s=0;s<=this._groups.length-1;s+=1){if(this._groups[s]._render=m=a<g,this.changeGroupRender(this._groups[s].it,m),!m){var o=this.elemsData[s].it,p=o[o.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=g;var u=this.o.v,f=u%1,l=u>0?Math.floor(u):Math.ceil(u),c=this.pMatrix.props,n=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,P,_=0;if(u>0){for(;_<l;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),_+=f)}else if(u<0){for(;_>l;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),_-=f)}for(s=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,a=this._currentCopies;a;){if(P=(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=1===this._currentCopies?this.so.v:this.so.v+s/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==_){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(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),v=0;v<P;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<P;v+=1)i[v]=this.matrix.props[v];_+=1,a-=1,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-=1,s+=r;return y},RepeaterModifier.prototype.addShape=function(){},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,s=shapePool.newElement();s.c=t.c;var r,a,y,m,g,h,o,p,u,f,l,c,n=t._length,d=0;for(i=0;i<n;i+=1)a=t.i[i],(r=t.v[i])[0]===(y=t.o[i])[0]&&r[1]===y[1]&&r[0]===a[0]&&r[1]===a[1]?0!==i&&i!==n-1||t.c?(m=0===i?t.v[n-1]:t.v[i-1],h=(g=Math.sqrt(Math.pow(r[0]-m[0],2)+Math.pow(r[1]-m[1],2)))?Math.min(g/2,e)/g:0,o=l=r[0]+(m[0]-r[0])*h,p=c=r[1]-(r[1]-m[1])*h,s.setTripleAt(o,p,o-(o-r[0])*roundCorner,p-(p-r[1])*roundCorner,l,c,d),d+=1,m=i===n-1?t.v[0]:t.v[i+1],h=(g=Math.sqrt(Math.pow(r[0]-m[0],2)+Math.pow(r[1]-m[1],2)))?Math.min(g/2,e)/g:0,o=u=r[0]+(m[0]-r[0])*h,p=f=r[1]+(m[1]-r[1])*h,s.setTripleAt(o,p,u,f,l=o-(o-r[0])*roundCorner,c=p-(p-r[1])*roundCorner,d),d+=1):(s.setTripleAt(r[0],r[1],y[0],y[1],a[0],a[1],d),d+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],d),d+=1);return s},RoundCornersModifier.prototype.processShapes=function(t){var e,i,s,r,a,y,m=this.shapes.length,g=this.rd.v;if(0!==g)for(i=0;i<m;i+=1){if(y=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(y.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)y.addShape(this.processPath(e[s],g));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return floatZero(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),s=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),a=lerpPoint(i,s,t),y=lerpPoint(r,a,t);return[new PolynomialBezier(this.points[0],e,r,y,!0),new PolynomialBezier(y,a,s,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,s,i),s},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,s){var r=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(r-=1),0===r)return a;var y=-1,m=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,s,y);for(var g=0;g<r;g+=1)y=zigZagSegment(a,m,e,i,s,-y),m=g!==r-1||t.c?PolynomialBezier.shapeSegment(t,(g+1)%r):null,zigZagCorner(a,t,g+1,e,i,s,y);return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,s,r,a,y,m=this.shapes.length,g=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),o=this.pointsType.v;if(0!==g)for(i=0;i<m;i+=1){if(y=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(y.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)y.addShape(this.processPath(e[s],g,h,o));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,s){var r=shapePool.newElement();r.c=t.c;var a,y,m,g=t.length();t.c||(g-=1);var h=[];for(a=0;a<g;a+=1)m=PolynomialBezier.shapeSegment(t,a),h.push(offsetSegmentSplit(m,e));if(!t.c)for(a=g-1;a>=0;a-=1)m=PolynomialBezier.shapeSegmentInverted(t,a),h.push(offsetSegmentSplit(m,e));h=pruneIntersections(h);var o=null,p=null;for(a=0;a<h.length;a+=1){var u=h[a];for(p&&(o=joinLines(r,p,u[0],i,s)),p=u[u.length-1],y=0;y<u.length;y+=1)m=u[y],o&&pointEqual(m.points[0],o)?r.setXYAt(m.points[1][0],m.points[1][1],"o",r.length()-1):r.setTripleAt(m.points[0][0],m.points[0][1],m.points[1][0],m.points[1][1],m.points[0][0],m.points[0][1],r.length()),r.setTripleAt(m.points[3][0],m.points[3][1],m.points[3][0],m.points[3][1],m.points[2][0],m.points[2][1],r.length()),o=m.points[3]}return h.length&&joinLines(r,p,h[0][0],i,s),r}
vendor: 6,061 bytes, line 1
1,OffsetPathModifier.prototype.processShapes=function(t){var e,i,s,r,a,y,m=this.shapes.length,g=this.amount.v,h=this.miterLimit.v,o=this.lineJoin;if(0!==g)for(i=0;i<m;i+=1){if(y=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(y.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,r=a.shape.paths._length,s=0;s<r;s+=1)y.addShape(this.processPath(e[s],g,o,h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],s=[65039,8205];function r(g,h){var o=createTag("span");o.setAttribute("aria-hidden",!0),o.style.fontFamily=h;var p=createTag("span");p.innerText="giItT1WQy@!-/#",o.style.position="absolute",o.style.left="-10000px",o.style.top="-10000px",o.style.fontSize="300px",o.style.fontVariant="normal",o.style.fontStyle="normal",o.style.fontWeight="normal",o.style.letterSpacing="0",o.appendChild(p),document.body.appendChild(o);var u=p.offsetWidth;return p.style.fontFamily=function(f){var l,c=f.split(","),n=c.length,d=[];for(l=0;l<n;l+=1)"sans-serif"!==c[l]&&"monospace"!==c[l]&&d.push(c[l]);return d.join(",")}(g)+", "+h,{node:p,w:u,parent:o}}function a(g,h){var o,p=document.body&&h?"svg":"canvas",u=getFontProperties(g);if("svg"===p){var f=createNS("text");f.style.fontSize="100px",f.setAttribute("font-family",g.fFamily),f.setAttribute("font-style",u.style),f.setAttribute("font-weight",u.weight),f.textContent="1",g.fClass?(f.style.fontFamily="inherit",f.setAttribute("class",g.fClass)):f.style.fontFamily=g.fFamily,h.appendChild(f),o=f}else{var l=new OffscreenCanvas(500,500).getContext("2d");l.font=u.style+" "+u.weight+" 100px "+g.fFamily,o=l}return{measureText:function(c){return"svg"===p?(o.textContent=c,o.getComputedTextLength()):o.measureText(c).width}}}var y=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return y.isModifier=function(g,h){var o=g.toString(16)+h.toString(16);return-1!==i.indexOf(o)},y.isZeroWidthJoiner=function(g,h){return h?g===s[0]&&h===s[1]:g===s[1]},y.isCombinedCharacter=function(g){return-1!==e.indexOf(g)},y.prototype={addChars:function(g){if(g){var h;this.chars||(this.chars=[]);var o,p,u=g.length,f=this.chars.length;for(h=0;h<u;h+=1){for(o=0,p=!1;o<f;)this.chars[o].style===g[h].style&&this.chars[o].fFamily===g[h].fFamily&&this.chars[o].ch===g[h].ch&&(p=!0),o+=1;p||(this.chars.push(g[h]),f+=1)}}},addFonts:function(g,h){if(g){if(this.chars)return this.isLoaded=!0,void(this.fonts=g.list);if(!document.body)return this.isLoaded=!0,g.list.forEach(function(_){_.helper=a(_),_.cache={}}),void(this.fonts=g.list);var o,p=g.list,u=p.length,f=u;for(o=0;o<u;o+=1){var l,c,n=!0;if(p[o].loaded=!1,p[o].monoCase=r(p[o].fFamily,"monospace"),p[o].sansCase=r(p[o].fFamily,"sans-serif"),p[o].fPath){if("p"===p[o].fOrigin||3===p[o].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[o].fFamily+'"], style[f-origin="3"][f-family="'+p[o].fFamily+'"]')).length>0&&(n=!1),n){var d=createTag("style");d.setAttribute("f-forigin",p[o].fOrigin),d.setAttribute("f-origin",p[o].origin),d.setAttribute("f-family",p[o].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+p[o].fFamily+"; font-style: normal; src: url('"+p[o].fPath+"');}",h.appendChild(d)}}else if("g"===p[o].fOrigin||1===p[o].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(p[o].fPath)&&(n=!1);if(n){var v=createTag("link");v.setAttribute("f-forigin",p[o].fOrigin),v.setAttribute("f-origin",p[o].origin),v.type="text/css",v.rel="stylesheet",v.href=p[o].fPath,document.body.appendChild(v)}}else if("t"===p[o].fOrigin||2===p[o].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)p[o].fPath===l[c].src&&(n=!1);if(n){var P=createTag("link");P.setAttribute("f-forigin",p[o].fOrigin),P.setAttribute("f-origin",p[o].origin),P.setAttribute("rel","stylesheet"),P.setAttribute("href",p[o].fPath),h.appendChild(P)}}}else p[o].loaded=!0,f-=1;p[o].helper=a(p[o],h),p[o].cache={},this.fonts.push(p[o])}0===f?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(g,h,o){for(var p=0,u=this.chars.length;p<u;){if(this.chars[p].ch===g&&this.chars[p].style===h&&this.chars[p].fFamily===o)return this.chars[p];p+=1}return("string"==typeof g&&13!==g.charCodeAt(0)||!g)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",g,h,o)),t},getFontByName:function(g){for(var h=0,o=this.fonts.length;h<o;){if(this.fonts[h].fName===g)return this.fonts[h];h+=1}return this.fonts[0]},measureText:function(g,h,o){var p=this.getFontByName(h),u=g.charCodeAt(0);if(!p.cache[u+1]){var f=p.helper;if(" "===g){var l=f.measureText("|"+g+"|"),c=f.measureText("||");p.cache[u+1]=(l-c)/100}else p.cache[u+1]=f.measureText(g)/100}return p.cache[u+1]*o},checkLoadedFonts:function(){var g,p=this.fonts.length,u=p;for(g=0;g<p;g+=1)this.fonts[g].loaded?u-=1:"n"===this.fonts[g].fOrigin||0===this.fonts[g].origin?this.fonts[g].loaded=!0:((this.fonts[g].monoCase.node.offsetWidth!==this.fonts[g].monoCase.w||this.fonts[g].sansCase.node.offsetWidth!==this.fonts[g].sansCase.w)&&(u-=1,this.fonts[g].loaded=!0),this.fonts[g].loaded&&(this.fonts[g].sansCase.parent.parentNode.removeChild(this.fonts[g].sansCase.parent),this.fonts[g].monoCase.parent.parentNode.removeChild(this.fonts[g].monoCase.parent)));0!==u&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},y}();
vendor: 11,041 bytes, line 1
1function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;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(t,e){var i,s=t.ef||[];this.effectElements=[];var r,a=s.length;for(i=0;i<a;i+=1)r=new GroupEffect(s[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}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,r,a=this.globalData.defs,y=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(y),this.solidPath="";var m,g,h,o,p,u,f=this.masksProperties,l=0,c=[],n=createElementID(),d="clipPath",v="clip-path";for(s=0;s<y;s+=1)if(("a"!==f[s].mode&&"n"!==f[s].mode||f[s].inv||100!==f[s].o.k||f[s].o.x)&&(d="mask",v="mask"),"s"!==f[s].mode&&"i"!==f[s].mode||0!==l?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),c.push(h)),r=createNS("path"),"n"===f[s].mode)this.viewData[s]={op:PropertyFactory.getProp(this.element,f[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[s],3),elem:r,lastPath:""},a.appendChild(r);else{var P;if(l+=1,r.setAttribute("fill","s"===f[s].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==f[s].x.k?(d="mask",v="mask",u=PropertyFactory.getProp(this.element,f[s].x,0,null,this.element),P=createElementID(),(o=createNS("filter")).setAttribute("id",P),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),o.appendChild(p),a.appendChild(o),r.setAttribute("stroke","s"===f[s].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[s]={elem:r,x:u,expan:p,lastPath:"",lastOperator:"",filterId:P,lastRadius:0},"i"===f[s].mode){g=c.length;var _=createNS("g");for(m=0;m<g;m+=1)_.appendChild(c[m]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",n+"_"+l),x.appendChild(r),a.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+n+"_"+l+")"),c.length=0,c.push(_)}else c.push(r);f[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,f[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[s],3),invRect:h},this.viewData[s].prop.k||this.drawPath(f[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(d),y=c.length,s=0;s<y;s+=1)this.maskElement.appendChild(c[s]);l>0&&(this.maskElement.setAttribute("id",n),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+n+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var s,r=this.data.ef.length,a=this.data.ef;for(i=0;i<r;i+=1){switch(s=null,a[i].ty){case 0:s=new SliderEffect(a[i],e,this);break;case 1:s=new AngleEffect(a[i],e,this);break;case 2:s=new ColorEffect(a[i],e,this);break;case 3:s=new PointEffect(a[i],e,this);break;case 4:case 7:s=new CheckboxEffect(a[i],e,this);break;case 10:s=new LayerIndexEffect(a[i],e,this);break;case 11:s=new MaskIndexEffect(a[i],e,this);break;case 5:s=new EffectsManager(a[i],e,this);break;default:s=new NoValueEffect(a[i],e,this)}s&&this.effectElements.push(s)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;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(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),s=t("shape"),r=t("text"),a=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var y=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(y),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(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(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this._currentTime=this.tm._placeholder?t/this.data.sr:this.tm.v,this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)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:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}
vendor: 5,221 bytes, line 1
1},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,s=t.length,r=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=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,y=r.length;a<y;)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){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,r=this.elements.length;for(s=0;s<r;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},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.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,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(e.cloneFromProps(t=this.finalTransform.mProp.v.props),i=0;i<s;i+=1)e.transform((t=this.hierarchy[i].finalTransform.mProp.v.props)[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,r=this.comp;s;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):s=!1;var a,y=e.length;for(i=0;i<y;i+=1)a=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "}
vendor: 4,186 bytes, line 1
1,MaskElement.prototype.drawPath=function(t,e,i){var s,r,a=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,s=1;s<r;s+=1)a+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&r>1&&(a+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==a){var y="";i.elem&&(e.c&&(y=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",y)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(e,i){var s=createNS("filter");return s.setAttribute("id",e),!0!==i&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i,s="SourceGraphic",r=t.data.ef?t.data.ef.length:0,a=createElementID(),y=filtersFactory.createFilter(a,!0),m=0;for(this.filters=[],e=0;e<r;e+=1){i=null;var g=t.data.ef[e].ty;registeredEffects[g]&&(i=new registeredEffects[g].effect(y,t.effectsManager.effectElements[e],t,idPrefix+m,s),s=idPrefix+m,registeredEffects[g].countsAsEffect&&(m+=1)),i&&this.filters.push(i)}m&&(t.globalData.defs.appendChild(y),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,i){registeredEffects[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}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 ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=createElementID();if(i.setAttribute("id",r),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}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("op
1acity",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)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,r,a=this.layerId+"_"+t;if(1===t||3===t){var y=createNS("mask");y.setAttribute("id",a),y.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(s),this.globalData.defs.appendChild(y),featureSupport.maskType||1!==t||(y.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(s),y.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var m=createNS("mask");m.setAttribute("id",a),m.setAttribute("mask-type","alpha");var g=createNS("g");m.appendChild(g),e=createElementID(),i=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),i.appendChild(h);var o=createNS("feFuncA");o.setAttribute("type","table"),o.setAttribute("tableValues","1.0 0.0"),h.appendChild(o),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),g.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),g.appendChild(p),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),g.appendChild(s),featureSupport.maskType||(m.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),g.appendChild(p),r.appendChild(this.layerElement),g.appendChild(r)),this.globalData.defs.appendChild(m)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},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,[])}},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),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},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].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){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},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-=1].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)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};
vendor: 4,608 bytes, line 1
1function 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 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 DashProperty(t,e,i,s){var r;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);var a,y=e.length||0;for(r=0;r<y;r+=1)a=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=a.k||this.k,this.dataProps[r]={n:e[r].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}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 SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}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)}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")}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}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},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),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)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){var e,i,s,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,
vendor: 10,234 bytes, line 1
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");var r,a,y,m=[];for(y=4*e.g.p,a=0;a<y;a+=4)r=createNS("stop"),s.appendChild(r),m.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=s,this.cst=m},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,r,a=createNS("mask"),y=createNS("path");a.appendChild(y);var m=createElementID(),g=createElementID();a.setAttribute("id",g);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",m),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var o=this.stops;for(s=4*t.g.p;s<r;s+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),o.push(i);y.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),"gs"===t.ty&&(y.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),y.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&y.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=a,this.ost=o,this.maskId=g,e.msElem=y}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,s){if(0===e)return"";var r,a=t.o,y=t.i,m=t.v,g=" M"+s.applyToPointStringified(m[0][0],m[0][1]);for(r=1;r<e;r+=1)g+=" C"+s.applyToPointStringified(a[r-1][0],a[r-1][1])+" "+s.applyToPointStringified(y[r][0],y[r][1])+" "+s.applyToPointStringified(m[r][0],m[r][1]);return i&&e&&(g+=" C"+s.applyToPointStringified(a[r-1][0],a[r-1][1])+" "+s.applyToPointStringified(y[0][0],y[0][1])+" "+s.applyToPointStringified(m[0][0],m[0][1]),g+="z"),g},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(h,o,p){(p||o.transform.op._mdf)&&o.transform.container.setAttribute("opacity",o.transform.op.v),(p||o.transform.mProps._mdf)&&o.transform.container.setAttribute("transform",o.transform.mProps.v.to2dCSS())}function s(){}function r(h,o,p){var u,f,l,c,n,d,v,P,_,x,A,E=o.styles.length,S=o.lvl;for(d=0;d<E;d+=1){if(c=o.sh._mdf||p,o.styles[d].lvl<S){for(P=e.reset(),x=S-o.styles[d].lvl,A=o.transformers.length-1;!c&&x>0;)c=o.transformers[A].mProps._mdf||c,x-=1,A-=1;if(c)for(x=S-o.styles[d].lvl,A=o.transformers.length-1;x>0;)P.transform((_=o.transformers[A].mProps.v.props)[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),x-=1,A-=1}else P=t;if(f=(v=o.sh.paths)._length,c){for(l="",u=0;u<f;u+=1)(n=v.shapes[u])&&n._length&&(l+=buildShapeString(n,n._length,n.c,P));o.caches[d]=l}else l=o.caches[d];o.styles[d].d+=!0===h.hd?"":l,o.styles[d]._mdf=c||o.styles[d]._mdf}}function a(h,o,p){var u=o.style;(o.c._mdf||p)&&u.pElem.setAttribute("fill","rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||p)&&u.pElem.setAttribute("fill-opacity",o.o.v)}function y(h,o,p){m(h,o,p),g(0,o,p)}function m(h,o,p){var u,f,l,c,n,d=o.gf,v=o.g._hasOpacity,P=o.s.v,_=o.e.v;if((o.o._mdf||p)&&o.style.pElem.setAttribute("gf"===h.ty?"fill-opacity":"stroke-opacity",o.o.v),o.s._mdf||p){var A=1===h.t?"x1":"cx",E="x1"===A?"y1":"cy";d.setAttribute(A,P[0]),d.setAttribute(E,P[1]),v&&!o.g._collapsable&&(o.of.setAttribute(A,P[0]),o.of.setAttribute(E,P[1]))}if(o.g._cmdf||p){var S=o.g.c;for(l=(u=o.cst).length,f=0;f<l;f+=1)(c=u[f]).setAttribute("offset",S[4*f]+"%"),c.setAttribute("stop-color","rgb("+S[4*f+1]+","+S[4*f+2]+","+S[4*f+3]+")")}if(v&&(o.g._omdf||p)){var T=o.g.o;for(l=(u=o.g._collapsable?o.cst:o.ost).length,f=0;f<l;f+=1)c=u[f],o.g._collapsable||c.setAttribute("offset",T[2*f]+"%"),c.setAttribute("stop-opacity",T[2*f+1])}if(1===h.t)(o.e._mdf||p)&&(d.setAttribute("x2",_[0]),d.setAttribute("y2",_[1]),v&&!o.g._collapsable&&(o.of.setAttribute("x2",_[0]),o.of.setAttribute("y2",_[1])));else if((o.s._mdf||o.e._mdf||p)&&(n=Math.sqrt(Math.pow(P[0]-_[0],2)+Math.pow(P[1]-_[1],2)),d.setAttribute("r",n),v&&!o.g._collapsable&&o.of.setAttribute("r",n)),o.e._mdf||o.h._mdf||o.a._mdf||p){n||(n=Math.sqrt(Math.pow(P[0]-_[0],2)+Math.pow(P[1]-_[1],2)));var b=Math.atan2(_[1]-P[1],_[0]-P[0]),k=o.h.v;k>=1?k=.99:k<=-1&&(k=-.99);var B=n*k,R=Math.cos(b+o.a.v)*B+P[0],F=Math.sin(b+o.a.v)*B+P[1];d.setAttribute("fx",R),d.setAttribute("fy",F),v&&!o.g._collapsable&&(o.of.setAttribute("fx",R),o.of.setAttribute("fy",F))}}function g(h,o,p){var u=o.style,f=o.d;f&&(f._mdf||p)&&f.dashStr&&(u.pElem.setAttribute("stroke-dasharray",f.dashStr),u.pElem.setAttribute("stroke-dashoffset",f.dashoffset[0])),o.c&&(o.c._mdf||p)&&u.pElem.setAttribute("stroke","rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||p)&&u.pElem.setAttribute("stroke-opacity",o.o.v),(o.w._mdf||p)&&(u.pElem.setAttribute("stroke-width",o.w.v),u.msElem&&u.msElem.setAttribute("stroke-width",o.w.v))}return{createRenderFunction:function(h){switch(h.ty){case"fl":return a;case"gf":return m;case"gs":return y;case"st":return g;case"sh":case"el":case"rc":case"sr":return r;case"tr":return i;case"no":return s;default:return null}}}}();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 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)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,s,r=this.shapes.length,a=this.stylesList.length,y=[],m=!1;for(i=0;i<a;i+=1){for(s=this.stylesList[i],m=!1,y.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(y.push(e),m=e._isAnimated||m);y.length>1&&m&&this.setShapesAsAnimated(y)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,s=new SVGStyleData(t,e),r=s.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,s):"fl"===t.ty?i=new SVGFillStyleData(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,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),s=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},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){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()}
vendor: 19,637 bytes, line 1
1,SVGShapeElement.prototype.searchShapes=function(t,e,i,s,r,a,y){var m,g,h,p,u,f=[].concat(a),l=t.length-1,c=[],n=[];for(m=l;m>=0;m-=1){if((u=this.searchProcessedElement(t[m]))?e[m]=i[u-1]:t[m]._render=y,"fl"===t[m].ty||"st"===t[m].ty||"gf"===t[m].ty||"gs"===t[m].ty||"no"===t[m].ty)u?e[m].style.closed=!1:e[m]=this.createStyleElement(t[m],r),t[m]._render&&e[m].style.pElem.parentNode!==s&&s.appendChild(e[m].style.pElem),c.push(e[m].style);else if("gr"===t[m].ty){if(u)for(h=e[m].it.length,g=0;g<h;g+=1)e[m].prevViewData[g]=e[m].it[g];else e[m]=this.createGroupElement(t[m]);this.searchShapes(t[m].it,e[m].it,e[m].prevViewData,e[m].gr,r+1,f,y),t[m]._render&&e[m].gr.parentNode!==s&&s.appendChild(e[m].gr)}else"tr"===t[m].ty?(u||(e[m]=this.createTransformElement(t[m],s)),f.push(e[m].transform)):"sh"===t[m].ty||"rc"===t[m].ty||"el"===t[m].ty||"sr"===t[m].ty?(u||(e[m]=this.createShapeElement(t[m],f,r)),this.setElementStyles(e[m])):"tm"===t[m].ty||"rd"===t[m].ty||"ms"===t[m].ty||"pb"===t[m].ty||"zz"===t[m].ty||"op"===t[m].ty?(u?(p=e[m]).closed=!1:((p=ShapeModifiers.getModifier(t[m].ty)).init(this,t[m]),e[m]=p,this.shapeModifiers.push(p)),n.push(p)):"rp"===t[m].ty&&(u?(p=e[m]).closed=!0:(p=ShapeModifiers.getModifier(t[m].ty),e[m]=p,p.init(this,t,m,e),this.shapeModifiers.push(p),y=!1),n.push(p));this.addProcessedElement(t[m],m+1)}for(l=c.length,m=0;m<l;m+=1)c[m].closed=!0;for(l=n.length,m=0;m<l;m+=1)n[m].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},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,this._mdf.p=!1;var y=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,y=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,y=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,y=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,y=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,y=!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,this._mdf.p=!0,y=!0),y},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,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=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(s=0;s<r;s+=1)a=this.effectsSequence[s](i!==this.keysIndex?a:this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(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,s=[],r=0,a=t.length,y=!1;r<a;)e=t.charCodeAt(r),FontManager.isCombinedCharacter(e)?s[s.length-1]+=t.charAt(r):e>=55296&&e<=56319?(i=t.charCodeAt(r+1))>=56320&&i<=57343?(y||FontManager.isModifier(e,i)?(s[s.length-1]+=t.substr(r,2),y=!1):s.push(t.substr(r,2)),r+=1):s.push(t.charAt(r)):e>56319?(i=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(e,i)?(y=!0,s[s.length-1]+=t.substr(r,2),r+=1):s.push(t.charAt(r))):FontManager.isZeroWidthJoiner(e)?(s[s.length-1]+=t.charAt(r),y=!0):s.push(t.charAt(r)),r+=1;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,r,a,y,m,g=this.elem.globalData.fontManager,h=this.data,o=[],p=0,u=h.m.g,f=0,l=0,c=0,n=[],d=0,v=0,P=g.getFontByName(t.f),_=0,x=getFontProperties(P);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var A,E=t.tr/1e3*t.finalSize;if(t.sz)for(var S,T,b=!0,k=t.sz[0],B=t.sz[1];b;){S=0,d=0,i=(T=this.buildFinalText(t.t)).length,E=t.tr/1e3*t.finalSize;var R=-1;for(e=0;e<i;e+=1)A=T[e].charCodeAt(0),s=!1," "===T[e]?R=e:13!==A&&3!==A||(d=0,s=!0,S+=t.finalLineHeight||1.2*t.finalSize),g.chars?(m=g.getCharData(T[e],P.fStyle,P.fFamily),_=s?0:m.w*t.finalSize/100):_=g.measureText(T[e],t.f,t.finalSize),d+_>k&&" "!==T[e]?(-1===R?i+=1:e=R,S+=t.finalLineHeight||1.2*t.finalSize,T.splice(e,R===e?1:0,"\r"),R=-1,d=0):(d+=_,d+=E);S+=P.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&B<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=T,i=t.finalText.length,b=!1)}d=-E,_=0;var F,L=0;for(e=0;e<i;e+=1)if(s=!1,13===(A=(F=t.finalText[e]).charCodeAt(0))||3===A?(L=0,n.push(d),v=d>v?d:v,d=-2*E,r="",s=!0,c+=1):r=F,g.chars?(m=g.getCharData(F,P.fStyle,g.getFontByName(t.f).fFamily),_=s?0:m.w*t.finalSize/100):_=g.measureText(r,t.f,t.finalSize)," "===F?L+=_+E:(d+=_+E+L,L=0),o.push({l:_,an:_,add:f,n:s,anIndexes:[],val:r,line:c,animatorJustifyOffset:0}),2==u){if(f+=_,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(f-=_);l<=e;)o[l].an=f,o[l].ind=p,o[l].extra=_,l+=1;p+=1,f=0}}else if(3==u){if(f+=_,""===r||e===i-1){for(""===r&&(f-=_);l<=e;)o[l].an=f,o[l].ind=p,o[l].extra=_,l+=1;f=0,p+=1}}else o[p].ind=p,o[p].extra=0,p+=1;if(t.l=o,v=d>v?d:v,n.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=n;var G,w,C,V,W=h.a;y=W.length;var tt=[];for(a=0;a<y;a+=1){for((G=W[a]).a.sc&&(t.strokeColorAnim=!0),G.a.sw&&(t.strokeWidthAnim=!0),(G.a.fc||G.a.fh||G.a.fs||G.a.fb)&&(t.fillColorAnim=!0),V=0,C=G.s.b,e=0;e<i;e+=1)(w=o[e]).anIndexes[a]=V,(1==C&&""!==w.val||2==C&&""!==w.val&&" "!==w.val||3==C&&(w.n||" "==w.val||e==i-1)||4==C&&(w.n||e==i-1))&&(1===G.s.rn&&tt.push(V),V+=1);h.a[a].s.totalChars=V;var it,Q=-1;if(1===G.s.rn)for(e=0;e<i;e+=1)Q!=(w=o[e]).anIndexes[a]&&(Q=w.anIndexes[a],it=tt.splice(Math.floor(Math.random()*tt.length),1)[0]),w.anIndexes[a]=it}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=P.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){var i=this.copyData({},this.data.d.k[e=void 0===e?this.keysIndex: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){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(r,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=r,this.comp=r.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(r),this.s=PropertyFactory.getProp(r,a.s||{k:0},0,0,this),this.e="e"in a?PropertyFactory.getProp(r,a.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(r,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(r,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(r,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(r,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(r,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,y=0,m=1,g=1;this.ne.v>0?a=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?m=1-this.xe.v/100:g=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(a,y,m,g).get,o=0,p=this.finalS,u=this.finalE,f=this.data.sh;if(2===f)o=h(o=u===p?r>=u?1:0:t(0,e(.5/(u-p)+(r-p)/(u-p),1)));else if(3===f)o=h(o=u===p?r>=u?0:1:1-t(0,e(.5/(u-p)+(r-p)/(u-p),1)));else if(4===f)u===p?o=0:(o=t(0,e(.5/(u-p)+(r-p)/(u-p),1)))<.5?o*=2:o=1-2*(o-.5),o=h(o);else if(5===f){if(u===p)o=0;else{var l=u-p,c=-l/2+(r=e(t(0,r+.5-p),u-p)),n=l/2;o=Math.sqrt(1-c*c/(n*n))}o=h(o)}else 6===f?(u===p?o=0:(r=e(t(0,r+.5-p),u-p),o=(1+Math.cos(Math.PI+2*Math.PI*r/(u-p)))/2),o=h(o)):(r>=i(p)&&(o=t(0,e(r-p<0?e(u,1)-(p-r):u-r,1))),o=h(o));if(100!==this.sm.v){var d=.01*this.sm.v;0===d&&(d=1e-8);var v=.5-.5*d;o<v?o=0:(o=(o-v)/d)>1&&(o=1)}return o*this.a.v},getValue:function(r){this.iterateDynamicProperties(),this._mdf=r||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,r&&2===this.data.r&&(this.e.v=this._currentTextLength);var a=2===this.data.r?1:100/this.data.totalChars,y=this.o.v/a,m=this.s.v/a+y,g=this.e.v/a+y;if(m>g){var h=m;m=g,g=h}this.finalS=m,this.finalE=g}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(r,a,y){return new s(r,a,y)}}}();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}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 ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,i=this._textData.a.length,s=PropertyFactory.getProp;for(t=0;t<i;t+=1)this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,this._textData.a[t],this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,r,a,y,m,g,h,o,p,u,f,l,c,n,d,v,_,x=this._moreOptions.alignment.v,A=this._animatorsData,E=this._textData,S=this.mHelper,T=this._renderType,b=this.renderedLetters.length,k=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var B,R=_.v;for(this._pathData.r.v&&(R=R.reverse()),y={tLength:0,segments:[]},a=R._length-1,d=0,r=0;r<a;r+=1)B=bez.buildBezierData(R.v[r],R.v[r+1],[R.o[r][0]-R.v[r][0],R.o[r][1]-R.v[r][1]],[R.i[r+1][0]-R.v[r+1][0],R.i[r+1][1]-R.v[r+1][1]]),y.tLength+=B.segmentLength,y.segments.push(B),d+=B.segmentLength;r=a,_.v.c&&(B=bez.buildBezierData(R.v[r],R.v[0],[R.o[r][0]-R.v[r][0],R.o[r][1]-R.v[r][1]],[R.i[0][0]-R.v[0][0],R.i[0][1]-R.v[0][1]]),y.tLength+=B.segmentLength,y.segments.push(B),d+=B.segmentLength),this._pathData.pi=y}if(u=0,p=1,h=0,o=!0,c=(y=this._pathData.pi).segments,(m=this._pathData.f.v)<0&&_.v.c)for(y.tLength<Math.abs(m)&&(m=-Math.abs(m)%y.tLength),p=(l=c[u=c.length-1].points).length-1;m<0;)m+=l[p].partialLength,(p-=1)<0&&(p=(l=c[u-=1].points).length-1);f=(l=c[u].points)[p-1],n=(g=l[p]).partialLength}a=k.length,i=0,s=0;var F,L,G,w,C,V=1.2*t.finalSize*.714,W=!0;G=A.length;var tt,it,Q,Z,Y,st,U,j,M,I,H,X,D=-1,O=m,at=u,q=p,$=-1,nt="",ot=this.defaultPropsArray;if(2===t.j||1===t.j){var et=0,lt=0,mt=2===t.j?-.5:-1,rt=0,pt=!0;for(r=0;r<a;r+=1)if(k[r].n){for(et&&(et+=lt);rt<r;)k[rt].animatorJustifyOffset=et,rt+=1;et=0,pt=!0}else{for(L=0;L<G;L+=1)(F=A[L].a).t.propType&&(pt&&2===t.j&&(lt+=F.t.v*mt),(C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars)).length?et+=F.t.v*C[0]*mt:et+=F.t.v*C*mt);pt=!1}for(et&&(et+=lt);rt<r;)k[rt].animatorJustifyOffset=et,rt+=1}for(r=0;r<a;r+=1){if(S.reset(),Z=1,k[r].n)i=0,s+=t.yOffset,s+=W?1:0,m=O,W=!1,this._hasMaskedPath&&(f=(l=c[u=at].points)[(p=q)-1],n=(g=l[p]).partialLength,h=0),nt="",H="",M="",X="",ot=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==k[r].line){switch(t.j){case 1:m+=d-t.lineWidths[k[r].line];break;case 2:m+=(d-t.lineWidths[k[r].line])/2}$=k[r].line}D!==k[r].ind&&(k[D]&&(m+=k[D].extra),m+=k[r].an/2,D=k[r].ind),m+=x[0]*k[r].an*.005;var z=0;for(L=0;L<G;L+=1)(F=A[L].a).p.propType&&((C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars)).length?z+=F.p.v[0]*C[0]:z+=F.p.v[0]*C),F.a.propType&&((C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars)).length?z+=F.a.v[0]*C[0]:z+=F.a.v[0]*C);for(o=!0,this._pathData.a.v&&(m=.5*k[0].an+(d-this._pathData.f.v-.5*k[0].an-.5*k[k.length-1].an)*D/(a-1),m+=this._pathData.f.v);o;)h+n>=m+z||!l?(it=f.point[0]+(g.point[0]-f.point[0])*(v=(m+z-h)/g.partialLength),Q=f.point[1]+(g.point[1]-f.point[1])*v,S.translate(-x[0]*k[r].an*.005,-x[1]*V*.01),o=!1):l&&(h+=g.partialLength,(p+=1)>=l.length&&(p=0,c[u+=1]?l=c[u].points:_.v.c?(p=0,l=c[u=0].points):(h-=g.partialLength,l=null)),l&&(f=g,n=(g=l[p]).partialLength));S.translate(-(tt=k[r].an/2-k[r].add),0,0)}else S.translate(-(tt=k[r].an/2-k[r].add),0,0),S.translate(-x[0]*k[r].an*.005,-x[1]*V*.01,0);for(L=0;L<G;L+=1)(F=A[L].a).t.propType&&(C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?m+=C.length?F.t.v*C[0]:F.t.v*C:i+=C.length?F.t.v*C[0]:F.t.v*C));for(t.strokeWidthAnim&&(st=t.sw||0),t.strokeColorAnim&&(Y=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(U=[t.fc[0],t.fc[1],t.fc[2]]),L=0;L<G;L+=1)(F=A[L].a).a.propType&&((C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars)).length?S.translate(-F.a.v[0]*C[0],-F.a.v[1]*C[1],F.a.v[2]*C[2]):S.translate(-F.a.v[0]*C,-F.a.v[1]*C,F.a.v[2]*C));for(L=0;L<G;L+=1)(F=A[L].a).s.propType&&((C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars)).length?S.scale(1+(F.s.v[0]-1)*C[0],1+(F.s.v[1]-1)*C[1],1):S.scale(1+(F.s.v[0]-1)*C,1+(F.s.v[1]-1)*C,1));for(L=0;L<G;L+=1){if(F=A[L].a,C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars),F.sk.propType&&(C.length?S.skewFromAxis(-F.sk.v*C[0],F.sa.v*C[1]):S.skewFromAxis(-F.sk.v*C,F.sa.v*C)),F.r.propType&&S.rotateZ(C.length?-F.r.v*C[2]:-F.r.v*C),F.ry.propType&&S.rotateY(C.length?F.ry.v*C[1]:F.ry.v*C),F.rx.propType&&S.rotateX(C.length?F.rx.v*C[0]:F.rx.v*C),F.o.propType&&(Z+=C.length?(F.o.v*C[0]-Z)*C[0]:(F.o.v*C-Z)*C),t.strokeWidthAnim&&F.sw.propType&&(st+=C.length?F.sw.v*C[0]:F.sw.v*C),t.strokeColorAnim&&F.sc.propType)for(j=0;j<3;j+=1)Y[j]+=C.length?(F.sc.v[j]-Y[j])*C[0]:(F.sc.v[j]-Y[j])*C;if(t.fillColorAnim&&t.fc){if(F.fc.propType)for(j=0;j<3;j+=1)U[j]+=C.length?(F.fc.v[j]-U[j])*C[0]:(F.fc.v[j]-U[j])*C;F.fh.propType&&(U=addHueToRGB(U,C.length?F.fh.v*C[0]:F.fh.v*C)),F.fs.propType&&(U=addSaturationToRGB(U,C.length?F.fs.v*C[0]:F.fs.v*C)),F.fb.propType&&(U=addBrightnessToRGB(U,C.length?F.fb.v*C[0]:F.fb.v*C))}}for(L=0;L<G;L+=1)(F=A[L].a).p.propType&&(C=A[L].s.getMult(k[r].anIndexes[L],E.a[L].s.totalChars),this._hasMaskedPath?C.length?S.translate(0,F.p.v[1]*C[0],-F.p.v[2]*C[1]):S.translate(0,F.p.v[1]*C,-F.p.v[2]*C):C.length?S.translate(F.p.v[0]*C[0],F.p.v[1]*C[1],-F.p.v[2]*C[2]):S.translate(F.p.v[0]*C,F.p.v[1]*C,-F.p.v[2]*C));if(t.strokeWidthAnim&&(M=st<0?0:st),t.strokeColorAnim&&(I="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),t.fillColorAnim&&t.fc&&(H="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),this._hasMaskedPath){if(S.translate(0,-t.ls),S.translate(0,x[1]*V*.01+s,0),this._pathData.p.v){var N=180*Math.atan((g.point[1]-f.point[1])/(g.point[0]-f.point[0]))/Math.PI;g.point[0]<f.point[0]&&(N+=180),S.rotate(-N*Math.PI/180)}S.translate(it,Q,0),m-=x[0]*k[r].an*.005,k[r+1]&&D!==k[r+1].ind&&(m+=k[r].an/2,m+=.001*t.tr*t.finalSize)}else{switch(S.translate(i,s,0),t.ps&&S.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:S.translate(k[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[k[r].line]),0,0);break;case 2:S.translate(k[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[k[r].line])/2,0,0)}S.translate(0,-t.ls),S.translate(tt,0,0),S.translate(x[0]*k[r].an*.005,x[1]*V*.01,0),i+=k[r].l+.001*t.tr*t.finalSize}"html"===T?nt=S.toCSS():"svg"===T?nt=S.to2dCSS():ot=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],X=Z}b<=r?(w=new LetterProps(X,M,I,H,nt,ot),this.renderedLetters.push(w),b+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=(w=this.renderedLetters[r]).update(X,M,I,H,nt,ot)||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),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){var i,s,r=e.length,a="";for(i=0;i<r;
vendor: 4,528 bytes, line 1
1i+=1)"sh"===e[i].ty&&(a+=buildShapeString(s=e[i].ks.k,s.i.length,!0,t));return a},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,i,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(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}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 SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var s=createNS("title"),r=createElementID();s.setAttribute("id",r),s.textContent=e.title,this.svgElement.appendChild(s),i+=r}if(e&&e.description){var a=createNS("desc"),y=createElementID();a.setAttribute("id",y),a.textContent=e.description,this.svgElement.appendChild(a),i+=" "+y}i&&this.svgElement.setAttribute("aria-labelledby",i);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",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%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],r="";e<i;)"\r"===t[e]||"\x03"===t[e]?(s.push(r),r=""):r+=t[e],e+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),this.layerElement.setAttribute("fill",i.fc?this.buildColor(i.fc):"rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);
vendor: 5,677 bytes, line 1
1if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var r=i.fWeight;this.layerElement.setAttribute("font-style",i.fStyle),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var y,m=i.l||[],g=!!this.globalData.fontManager.chars;e=m.length;var h=this.mHelper,o=this.data.singleShape,p=0,u=0,f=!0,l=.001*i.tr*i.finalSize;if(!o||g||i.sz){var c,n=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!g||!o||0===t){if(y=n>t?this.textSpans[t].span:createNS(g?"g":"text"),n<=t){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=y,g){var d=createNS("g");y.appendChild(d),this.textSpans[t].childSpan=d}this.textSpans[t].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(h.reset(),o&&(m[t].n&&(p=-l,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,h,m[t].line,p,u),p+=m[t].l||0,p+=l),g){var v;if(1===(c=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)v=new SVGCompElement(c.data,this.globalData,this);else{var P=emptyShapeData;c.data&&c.data.shapes&&(P=this.buildShapeData(c.data,i.finalSize)),v=new SVGShapeElement(P,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===c.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else o&&y.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),y.textContent=m[t].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}o&&y&&y.setAttribute("d","")}else{var x=this.textContainer,A="start";switch(i.j){case 1:A="end";break;case 2:A="middle";break;default:A="start"}x.setAttribute("text-anchor",A),x.setAttribute("letter-spacing",l);var E=this.buildTextContents(i.finalText);for(e=E.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(y=this.textSpans[t].span||createNS("tspan")).textContent=E[t],y.setAttribute("x",0),y.setAttribute("y",u),y.style.display="inherit",x.appendChild(y),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=y,u+=i.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,s,r,a=this.textAnimator.renderedLetters,y=this.textProperty.currentData.l;for(e=y.length,t=0;t<e;t+=1)y[t].n||(i=a[t],s=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},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)},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),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
10,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),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;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),s=createNS("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var r=e[s].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(s),this.addPendingElement(i)}}},SVGRendererBase.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){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;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 i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(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()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(s=this.elements[r].getBaseElement()),r+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},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){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var i=0;for(i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var t,e=this.saved[this.cArrPos],i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=e[t];return e},CVContextData.prototype.popOpacity=function(){var t=this.savedOp[this.cArrPos];return this.cO=t,t},CVContextData.prototype.pop=function(){return this.cArrPos-=1,{transform:this.popTransform(),opacity:this.popOpacity()}},CVContextData.prototype.push=function(){var t,e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.saved[this.cArrPos];for(t=0;t<16;t+=1)i[t]=e[t];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(t){this.cO=t},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,s="_";for(e=0;e<i;e+=1)s+=t[e].transform.key+"_";var r=this.sequences[s];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=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;s>=0;s-=1)t.finalTransform.transform((i=t.transforms[s].transform.mProps.v.props)[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){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null;function r(){var a,y,m;
vendor: 4,360 bytes, line 1
1e||(a=createNS("svg"),y=createNS("filter"),m=createNS("feColorMatrix"),y.setAttribute("id",t),m.setAttribute("type","matrix"),m.setAttribute("color-interpolation-filters","sRGB"),m.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(m),a.appendChild(y),a.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(a.style.display="none"),document.body.appendChild(a),e=createTag("canvas"),(i=e.getContext("2d")).filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:r,get:function(a){return e||r(),e.width=a.width,e.height=a.height,i.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas};function CVEffects(){}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var s=this.masksProperties.length,r=!1;for(i=0;i<s;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,s,r=this.element.finalTransform.mat,a=this.element.canvasContext,y=this.masksProperties.length;for(a.beginPath(),t=0;t<y;t+=1)if("n"!==this.masksProperties[t].mode){var m;this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),e=r.applyToPointArray((s=this.viewData[t].v).v[0][0],s.v[0][1],0),a.moveTo(e[0],e[1]);var g=s._length;for(m=1;m<g;m+=1)i=r.applyToTriplePoints(s.o[m-1],s.i[m],s.v[m]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=r.applyToTriplePoints(s.o[m-1],s.i[0],s.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var y,m=i.length;for(r=0;r<m;r+=1)i[r].closed||(y={transforms:s.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(y),i[r].elements.push(y))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 16,547 bytes, line 1
1w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=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 CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},s={};if("fl"===t.ty||"st"===t.ty?(s.c=PropertyFactory.getProp(this,t.c,1,255,this),s.c.k||(i.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(s.s=PropertyFactory.getProp(this,t.s,1,null,this),s.e=PropertyFactory.getProp(this,t.e,1,null,this),s.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,t.g,this)),s.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),s.w=PropertyFactory.getProp(this,t.w,0,null,this),s.w.k||(i.wi=s.w.v),t.d){var r=new DashProperty(this,t.d,"canvas",this);s.d=r,s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),s.style=i,s},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,s,r){var a,y,m,g,h,o,p=t.length-1,u=[],f=[],l=[].concat(r);for(a=p;a>=0;a-=1){if((g=this.searchProcessedElement(t[a]))?e[a]=i[g-1]:t[a]._shouldRender=s,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)g?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],l),u.push(e[a].style);else if("gr"===t[a].ty){if(g)for(m=e[a].it.length,y=0;y<m;y+=1)e[a].prevViewData[y]=e[a].it[y];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,s,l)}else"tr"===t[a].ty?(g||(o=this.createTransformElement(t[a]),e[a]=o),l.push(e[a]),this.addTransformToStyleList(e[a])):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?g||(e[a]=this.createShapeElement(t[a])):"tm"===t[a].ty||"rd"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(g?(h=e[a]).closed=!1:((h=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"===t[a].ty&&(g?(h=e[a]).closed=!0:(h=ShapeModifiers.getModifier(t[a].ty),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),s=!1),f.push(h));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=f.length,a=0;a<p;a+=1)f[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,s,r,a,y,m,g,h=this.stylesList.length,o=this.globalData.renderer,p=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(("st"!==(m=(g=this.stylesList[t]).type)&&"gs"!==m||0!==g.wi)&&g.data._shouldRender&&0!==g.coOp&&0!==this.globalData.currentGlobalAlpha){for(o.save(),a=g.elements,"st"===m||"gs"===m?(p.strokeStyle="st"===m?g.co:g.grd,p.lineWidth=g.wi,p.lineCap=g.lc,p.lineJoin=g.lj,p.miterLimit=g.ml||0):p.fillStyle="fl"===m?g.co:g.grd,o.ctxOpacity(g.coOp),"st"!==m&&"gs"!==m&&p.beginPath(),o.ctxTransform(g.preTransforms.finalTransform.props),i=a.length,e=0;e<i;e+=1){for("st"!==m&&"gs"!==m||(p.beginPath(),g.da&&(p.setLineDash(g.da),p.lineDashOffset=g.do)),r=(y=a[e].trNodes).length,s=0;s<r;s+=1)"m"===y[s].t?p.moveTo(y[s].p[0],y[s].p[1]):"c"===y[s].t?p.bezierCurveTo(y[s].pts[0],y[s].pts[1],y[s].pts[2],y[s].pts[3],y[s].pts[4],y[s].pts[5]):p.closePath();"st"!==m&&"gs"!==m||(p.stroke(),g.da&&p.setLineDash(this.dashResetter))}"st"!==m&&"gs"!==m&&p.fill(g.r),o.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,s){var r,a;for(a=t,r=e.length-1;r>=0;r-=1)"tr"===e[r].ty?this.renderShapeTransform(t,a=i[r].transform):"sh"===e[r].ty||"el"===e[r].ty||"rc"===e[r].ty||"sr"===e[r].ty?this.renderPath(e[r],i[r]):"fl"===e[r].ty?this.renderFill(e[r],i[r],a):"st"===e[r].ty?this.renderStroke(e[r],i[r],a):"gf"===e[r].ty||"gs"===e[r].ty?this.renderGradientFill(e[r],i[r],a):"gr"===e[r].ty&&this.renderShape(a,e[r].it,i[r].it);s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,s,r,a=t.trNodes,y=e.paths,m=y._length;a.length=0;var g=t.transforms.finalTransform;for(r=0;r<m;r+=1){var h=y.shapes[r];if(h&&h.v){for(s=h._length,i=1;i<s;i+=1)1===i&&a.push({t:"m",p:g.applyToPointArray(h.v[0][0],h.v[0][1],0)}),a.push({t:"c",pts:g.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===s&&a.push({t:"m",p:g.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&s&&(a.push({t:"c",pts:g.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,s=e.styledShapes.length;for(i=0;i<s;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var s,r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var a,y=this.globalData.canvasContext,m=e.s.v,g=e.e.v;if(1===t.t)s=y.createLinearGradient(m[0],m[1],g[0],g[1]);else{var h=Math.sqrt(Math.pow(m[0]-g[0],2)+Math.pow(m[1]-g[1],2)),o=Math.atan2(g[1]-m[1],g[0]-m[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=h*p,f=Math.cos(o+e.a.v)*u+m[0],l=Math.sin(o+e.a.v)*u+m[1];s=y.createRadialGradient(f,l,0,m[0],m[1],h)}var c=t.g.p,n=e.g.c,d=1;for(a=0;a<c;a+=1)e.g._hasOpacity&&e.g._collapsable&&(d=e.g.o[2*a+1]),s.addColorStop(n[4*a]/100,"rgba("+n[4*a+1]+","+n[4*a+2]+","+n[4*a+3]+","+d+")");r.grd=s}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var s,r,a,y,m,g,h,o,p,u,f,l,c=this.globalData.fontManager.getFontByName(t.f),n=t.l,d=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.finalText.length;var v=this.data.singleShape,P=.001*t.tr*t.finalSize,_=0,x=0,A=!0,E=0;for(s=0;s<r;s+=1){y=(a=this.globalData.fontManager.getCharData(t.finalText[s],c.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},d.reset(),v&&n[s].n&&(_=-P,x+=t.yOffset,x+=A?1:0,A=!1),p=(h=y.shapes?y.shapes[0].it:[]).length,d.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,d,n[s].line,_,x),f=createSizedArray(p-1);var S=0;for(o=0;o<p;o+=1)if("sh"===h[o].ty){for(g=h[o].ks.k.i.length,u=h[o].ks.k,l=[],m=1;m<g;m+=1)1===m&&l.push(d.applyToX(u.v[0][0],u.v[0][1],0),d.applyToY(u.v[0][0],u.v[0][1],0)),l.push(d.applyToX(u.o[m-1][0],u.o[m-1][1],0),d.applyToY(u.o[m-1][0],u.o[m-1][1],0),d.applyToX(u.i[m][0],u.i[m][1],0),d.applyToY(u.i[m][0],u.i[m][1],0),d.applyToX(u.v[m][0],u.v[m][1],0),d.applyToY(u.v[m][0],u.v[m][1],0));l.push(d.applyToX(u.o[m-1][0],u.o[m-1][1],0),d.applyToY(u.o[m-1][0],u.o[m-1][1],0),d.applyToX(u.i[0][0],u.i[0][1],0),d.applyToY(u.i[0][0],u.i[0][1],0),d.applyToX(u.v[0][0],u.v[0][1],0),d.applyToY(u.v[0][0],u.v[0][1],0)),f[S]=l,S+=1}v&&(_+=n[s].l,_+=P),this.textSpans[E]?this.textSpans[E].elem=f:this.textSpans[E]={elem:f},E+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,s,r,a,y=this.canvasContext;y.font=this.values.fValue,y.lineCap="butt",y.lineJoin="miter",y.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var m,g=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;e=h.length;var o,p,u=null,f=null,l=null;for(t=0;t<e;t+=1)if(!h[t].n){if((m=g[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(m.p),this.globalData.renderer.ctxOpacity(m.o)),this.fill){for(m&&m.fc?u!==m.fc&&(u=m.fc,y.fillStyle=m.fc):u!==this.values.fill&&(u=this.values.fill,y.fillStyle=this.values.fill),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(a=(p=o[i]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),r=2;r<a;r+=6)this.globalData.canvasContext.bezierCurveTo(p[r],p[r+1],p[r+2],p[r+3],p[r+4],p[r+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(m&&m.sw?l!==m.sw&&(l=m.sw,y.lineWidth=m.sw):l!==this.values.sWidth&&(l=this.values.sWidth,y.lineWidth=this.values.sWidth),m&&m.sc?f!==m.sc&&(f=m.sc,y.strokeStyle=m.sc):f!==this.values.stroke&&(f=this.values.stroke,y.strokeStyle=this.values.stroke),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(a=(p=o[i]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),r=2;r<a;r+=6)this.globalData.canvasContext.bezierCurveTo(p[r],p[r+1],p[r+2],p[r+3],p[r+4],p[r+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}
1m&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,s=t.getContext("2d"),r=this.img.width,a=this.img.height,y=r/a,m=this.assetData.w/this.assetData.h,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;y>m&&"xMidYMid slice"===g||y<m&&"xMidYMid slice"!==g?e=(i=a)*m:i=(e=r)/m,s.drawImage(this.img,(r-e)/2,(a-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.getTransform(),i=e.props;this.transformMat.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]),e.cloneFromProps(this.transformMat.props);var s=e.props;this.canvasContext.setTransform(s[0],s[1],s[4],s[5],s[12],s[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){var e=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=e);this.contextData.setOpacity(e*=t<0?0:t),this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){this.renderConfig.clearCanvas?(t&&this.canvasContext.save(),this.contextData.push()):this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var e=this.contextData.pop(),i=e.transform,s=e.opacity;this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),this.globalData.currentGlobalAlpha!==s&&(this.canvasContext.globalAlpha=s,this.globalData.currentGlobalAlpha=s)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,s,r,a;if(this.reset(),t?(s=e,this.canvasContext.canvas.width=i=t,this.canvasContext.canvas.height=s):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,s=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var y=this.renderConfig.preserveAspectRatio.split(" "),m=y[1]||"meet",g=y[0]||"xMidYMid",h=g.substr(0,4),o=g.substr(4);(a=this.transformCanvas.w/this.transformCanvas.h)>(r=i/s)&&"meet"===m||a<r&&"slice"===m?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===h&&(a<r&&"meet"===m||a>r&&"slice"===m)?(i-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(a<r&&"meet"===m||a>r&&"slice"===m)?(i-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.t
vendor: 11,716 bytes, line 1
1y="YMid"===o&&(a>r&&"meet"===m||a<r&&"slice"===m)?(s-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===o&&(a>r&&"meet"===m||a<r&&"slice"===m)?(s-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var s=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<s;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},registerRenderer("canvas",CanvasRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier);var CompExpressionInterface=function(t){function e(i){for(var s=0,r=t.layers.length;s<r;){if(t.layers[s].nm===i||t.layers[s].ind===i)return t.elements[s].layerInterface;s+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={initExpressions:function(e){var i=0,s=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){i+=1},e.renderer.globalData.popExpression=function(){0==(i-=1)&&function(){var r,a=s.length;for(r=0;r<a;r+=1)s[r].release();s.length=0}()},e.renderer.globalData.registerExpressionProperty=function(r){-1===s.indexOf(r)&&s.push(r)}}};return t}(),MaskManagerInterface=function(){function t(e,i){this._mask=e,this._data=i}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,s=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)s[i]=new t(e.viewData[i],e.masksProperties[i]);return function(a){for(i=0;i<r;){if(e.masksProperties[i].nm===a)return s[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(r,a,y){Object.defineProperty(r,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),r.numKeys=a.keyframes?a.keyframes.length:0,r.key=function(m){if(!r.numKeys)return 0;var g;g="s"in a.keyframes[m-1]?a.keyframes[m-1].s:"e"in a.keyframes[m-2]?a.keyframes[m-2].e:a.keyframes[m-2].s;var h="unidimensional"===y?new Number(g):Object.assign({},g);return h.time=a.keyframes[m-1].t/a.elem.comp.globalData.frameRate,h.value="unidimensional"===y?g[0]:g,h},r.valueAtTime=a.getValueAtTime,r.speedAtTime=a.getSpeedAtTime,r.velocityAtTime=a.getVelocityAtTime,r.propertyGroup=a.propertyGroup}function s(){return t}return function(r){return r?"unidimensional"===r.propType?function(a){a&&"pv"in a||(a=t);var y=1/a.mult,m=a.pv*y,g=new Number(m);return g.value=m,i(g,a,"unidimensional"),function(){return a.k&&a.getValue(),g.value!==(m=a.v*y)&&((g=new Number(m)).value=m,i(g,a,"unidimensional")),g}}(r):function(a){a&&"pv"in a||(a=e);var y=1/a.mult,m=a.data&&a.data.l||a.pv.length,g=createTypedArray("float32",m),h=createTypedArray("float32",m);return g.value=h,i(g,a,"multidimensional"),function(){a.k&&a.getValue();for(var o=0;o<m;o+=1)h[o]=a.v[o]*y,g[o]=h[o];return g}}(r):s}}(),TransformExpressionInterface=function(t){function e(y){switch(y){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;default:return null}}var i,s,r,a;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?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),s=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),s(),r?r():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},LayerExpressionInterface=function(){function t(h){var o=new Matrix;return void 0!==h?this._elem.finalTransform.mProp.getValueAtTime(h).clone(o):this._elem.finalTransform.mProp.applyToMatrix(o),o}function e(h,o){var p=this.getMatrix(o);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.applyPoint(p,h)}function i(h,o){var p=this.getMatrix(o);return this.applyPoint(p,h)}function s(h,o){var p=this.getMatrix(o);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.invertPoint(p,h)}function r(h,o){var p=this.getMatrix(o);return this.invertPoint(p,h)}function a(h,o){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,u=this._elem.hierarchy.length;for(p=0;p<u;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(o[0],o[1],o[2]||0)}function y(h,o){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,u=this._elem.hierarchy.length;for(p=0;p<u;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(o)}function m(h){var o=new Matrix;if(o.reset(),this._elem.finalTransform.mProp.applyToMatrix(o),this._elem.hierarchy&&this._elem.hierarchy.length){var p,u=this._elem.hierarchy.length;for(p=0;p<u;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(o);return o.inversePoint(h)}return o.inversePoint(h)}function g(){return[1,1,1,1]}return function(h){var o;function p(f){switch(f){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return o;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=y,p.applyPoint=a,p.toWorld=i,p.toWorldVec=e,p.fromWorld=r,p.fromWorldVec=s,p.toComp=i,p.fromComp=m,p.sampleImage=g,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var u=getDescriptor(o=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(o,"rotation"),scale:getDescriptor(o,"scale"),position:getDescriptor(o,"position"),opacity:getDescriptor(o,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return o}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=0===h.data.ty?h.data.h:100,p.width=0===h.data.ty?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(f){p.mask=new MaskManagerInterface(f,h)},p.registerEffectsInterface=function(f){p.effect=f},p}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(s){return(s=void 0===s?1:s)<=0?i:e(s-1)}}
vendor: 7,810 bytes, line 1
1,EffectsExpressionInterface=function(){function t(i,s,r,a){function y(p){for(var u=i.ef,f=0,l=u.length;f<l;){if(p===u[f].nm||p===u[f].mn||p===u[f].ix)return 5===u[f].ty?h[f]:h[f]();f+=1}throw new Error}var m,g=propertyGroupFactory(y,r),h=[],o=i.ef.length;for(m=0;m<o;m+=1)h.push(5===i.ef[m].ty?t(i.ef[m],s.effectElements[m],s.effectElements[m].propertyGroup,a):e(s.effectElements[m],i.ef[m].ty,a,g));return"ADBE Color Control"===i.mn&&Object.defineProperty(y,"color",{get:function(){return h[0]()}}),Object.defineProperties(y,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:g}}),y.active=y.enabled=0!==i.en,y}function e(i,s,r,a){var y=ExpressionPropertyInterface(i.p);return i.p.setGroupProperty&&i.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===s?r.comp.compInterface(i.p.v):y()}}return{createEffectsInterface:function(i,s){if(i.effectsManager){var r,a=[],y=i.data.ef,m=i.effectsManager.effectElements.length;for(r=0;r<m;r+=1)a.push(t(y[r],i.effectsManager.effectElements[r],s,i));var g=i.data.ef||[],h=function(o){for(r=0,m=g.length;r<m;){if(o===g[r].nm||o===g[r].mn||o===g[r].ix)return a[r];r+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return g.length}}),h}return null}}}(),ShapePathInterface=function(t,e,i){var s=e.sh;function r(y){return"Shape"===y||"shape"===y||"Path"===y||"path"===y||"ADBE Vector Shape"===y||2===y?r.path:null}var a=propertyGroupFactory(r,i);return s.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r},ShapeExpressionInterface=function(){function t(f,l,c){var n,d=[],v=f?f.length:0;for(n=0;n<v;n+=1)"gr"===f[n].ty?d.push(e(f[n],l[n],c)):"fl"===f[n].ty?d.push(i(f[n],l[n],c)):"st"===f[n].ty?d.push(a(f[n],l[n],c)):"tm"===f[n].ty?d.push(y(f[n],l[n],c)):"tr"===f[n].ty||d.push("el"===f[n].ty?g(f[n],l[n],c):"sr"===f[n].ty?h(f[n],l[n],c):"sh"===f[n].ty?ShapePathInterface(f[n],l[n],c):"rc"===f[n].ty?o(f[n],l[n],c):"rd"===f[n].ty?p(f[n],l[n],c):"rp"===f[n].ty?u(f[n],l[n],c):"gf"===f[n].ty?s(f[n],l[n],c):function(){return null});return d}function e(f,l,c){var n=function(P){switch(P){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,c);var d=function(P,_,x){var A,E=function(T){for(var b=0,k=A.length;b<k;){if(A[b]._name===T||A[b].mn===T||A[b].propertyIndex===T||A[b].ix===T||A[b].ind===T)return A[b];b+=1}return"number"==typeof T?A[T-1]:null};E.propertyGroup=propertyGroupFactory(E,x),A=t(P.it,_.it,E.propertyGroup),E.numProperties=A.length;var S=m(P.it[P.it.length-1],_.it[_.it.length-1],E.propertyGroup);return E.transform=S,E.propertyIndex=P.cix,E._name=P.nm,E}(f,l,n.propertyGroup),v=m(f.it[f.it.length-1],l.it[l.it.length-1],n.propertyGroup);return n.content=d,n.transform=v,Object.defineProperty(n,"_name",{get:function(){return f.nm}}),n.numProperties=f.np,n.propertyIndex=f.ix,n.nm=f.nm,n.mn=f.mn,n}function i(f,l,c){function n(d){return"Color"===d||"color"===d?n.color:"Opacity"===d||"opacity"===d?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(l.c)},opacity:{get:ExpressionPropertyInterface(l.o)},_name:{value:f.nm},mn:{value:f.mn}}),l.c.setGroupProperty(PropertyInterface("Color",c)),l.o.setGroupProperty(PropertyInterface("Opacity",c)),n}function s(f,l,c){function n(d){return"Start Point"===d||"start point"===d?n.startPoint:"End Point"===d||"end point"===d?n.endPoint:"Opacity"===d||"opacity"===d?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(l.s)},endPoint:{get:ExpressionPropertyInterface(l.e)},opacity:{get:ExpressionPropertyInterface(l.o)},type:{get:function(){return"a"}},_name:{value:f.nm},mn:{value:f.mn}}),l.s.setGroupProperty(PropertyInterface("Start Point",c)),l.e.setGroupProperty(PropertyInterface("End Point",c)),l.o.setGroupProperty(PropertyInterface("Opacity",c)),n}function a(f,l,c){var n,E,d=propertyGroupFactory(A,c),v=propertyGroupFactory(x,d),_=f.d?f.d.length:0,x={};for(n=0;n<_;n+=1)E=n,Object.defineProperty(x,f.d[E].nm,{get:ExpressionPropertyInterface(l.d.dataProps[E].p)}),l.d.dataProps[n].p.setGroupProperty(v);function A(E){return"Color"===E||"color"===E?A.color:"Opacity"===E||"opacity"===E?A.opacity:"Stroke Width"===E||"stroke width"===E?A.strokeWidth:null}return Object.defineProperties(A,{color:{get:ExpressionPropertyInterface(l.c)},opacity:{get:ExpressionPropertyInterface(l.o)},strokeWidth:{get:ExpressionPropertyInterface(l.w)},dash:{get:function(){return x}},_name:{value:f.nm},mn:{value:f.mn}}),l.c.setGroupProperty(PropertyInterface("Color",d)),l.o.setGroupProperty(PropertyInterface("Opacity",d)),l.w.setGroupProperty(PropertyInterface("Stroke Width",d)),A}function y(f,l,c){function n(v){return v===f.e.ix||"End"===v||"end"===v?n.end:v===f.s.ix?n.start:v===f.o.ix?n.offset:null}var d=propertyGroupFactory(n,c);return n.propertyIndex=f.ix,l.s.setGroupProperty(PropertyInterface("Start",d)),l.e.setGroupProperty(PropertyInterface("End",d)),l.o.setGroupProperty(PropertyInterface("Offset",d)),n.propertyIndex=f.ix,n.propertyGroup=c,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(l.s)},end:{get:ExpressionPropertyInterface(l.e)},offset:{get:ExpressionPropertyInterface(l.o)},_name:{value:f.nm}}),n.mn=f.mn,n}function m(f,l,c){function n(v){return f.a.ix===v||"Anchor Point"===v?n.anchorPoint:f.o.ix===v||"Opacity"===v?n.opacity:f.p.ix===v||"Position"===v?n.position:f.r.ix===v||"Rotation"===v||"ADBE Vector Rotation"===v?n.rotation:f.s.ix===v||"Scale"===v?n.scale:f.sk&&f.sk.ix===v||"Skew"===v?n.skew:f.sa&&f.sa.ix===v||"Skew Axis"===v?n.skewAxis:null}var d=propertyGroupFactory(n,c);return l.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",d)),l.transform.mProps.p.setGroupProperty(PropertyInterface("Position",d)),l.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",d)),l.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",d)),l.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",d)),l.transform.mProps.sk&&(l.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",d)),l.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",d))),l.transform.op.setGroupProperty(PropertyInterface("Opacity",d)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(l.transform.mProps.o)},position:{get:ExpressionPropertyInterface(l.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(l.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(l.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(l.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(l.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(l.transform.mProps.sa)},_name:{value:f.nm}}),n.ty="tr",n.mn=f.mn,n.propertyGroup=c,n}function g(f,l,c){function n(P){return f.p.ix===P?n.position:f.s.ix===P?n.size:null}var d=propertyGroupFactory(n,c);n.propertyIndex=f.ix;var v="tm"===l.sh.ty?l.sh.prop:l.sh;return v.s.setGroupProperty(PropertyInterface("Size",d)),v.p.setGroupProperty(PropertyInterface("Position",d)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:f.nm}}),n.mn=f.mn,n}function h(f,l,c){function n(P){return f.p.ix===P?n.position:f.r.ix===P?n.rotation:f.pt.ix===P?n.points:f.or.ix===P||"ADBE Vector Star Outer Radius"===P?n.outerRadius:f.os.ix===P?n.outerRoundness:!f.ir||f.ir.ix!==P&&"ADBE Vector Star Inner Radius"!==P?f.is&&f.is.ix===P?n.innerRoundness:null:n.innerRadius}var d=propertyGroupFactory(n,c),v="tm"===l.sh.ty?l.sh.prop:l.sh;
vendor: 16,490 bytes, line 1
1return n.propertyIndex=f.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",d)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",d)),v.pt.setGroupProperty(PropertyInterface("Points",d)),v.p.setGroupProperty(PropertyInterface("Position",d)),v.r.setGroupProperty(PropertyInterface("Rotation",d)),f.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",d)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",d))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:f.nm}}),n.mn=f.mn,n}function o(f,l,c){function n(P){return f.p.ix===P?n.position:f.r.ix===P?n.roundness:f.s.ix===P||"Size"===P||"ADBE Vector Rect Size"===P?n.size:null}var d=propertyGroupFactory(n,c),v="tm"===l.sh.ty?l.sh.prop:l.sh;return n.propertyIndex=f.ix,v.p.setGroupProperty(PropertyInterface("Position",d)),v.s.setGroupProperty(PropertyInterface("Size",d)),v.r.setGroupProperty(PropertyInterface("Rotation",d)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:f.nm}}),n.mn=f.mn,n}function p(f,l,c){function n(P){return f.r.ix===P||"Round Corners 1"===P?n.radius:null}var d=propertyGroupFactory(n,c),v=l;return n.propertyIndex=f.ix,v.rd.setGroupProperty(PropertyInterface("Radius",d)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:f.nm}}),n.mn=f.mn,n}function u(f,l,c){function n(P){return f.c.ix===P||"Copies"===P?n.copies:f.o.ix===P||"Offset"===P?n.offset:null}var d=propertyGroupFactory(n,c),v=l;return n.propertyIndex=f.ix,v.c.setGroupProperty(PropertyInterface("Copies",d)),v.o.setGroupProperty(PropertyInterface("Offset",d)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:f.nm}}),n.mn=f.mn,n}return function(f,l,c){var n;function d(v){if("number"==typeof v)return 0===(v=void 0===v?1:v)?c:n[v-1];for(var P=0,_=n.length;P<_;){if(n[P]._name===v)return n[P];P+=1}return null}return d.propertyGroup=propertyGroupFactory(d,function(){return c}),n=t(f,l,d.propertyGroup),d.numProperties=n.length,d._name="Contents",d}}(),TextExpressionInterface=function(t){var e,i;function s(r){return"ADBE Text Document"===r?s.sourceText:null}return Object.defineProperty(s,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return r!==e&&(e=t.textProperty.currentData.t,(i=new String(r)).value=r||new String(r),Object.defineProperty(i,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),i}}),s};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(i){return"Outline"===i?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(i){var s="",r=i.getFootageData();function a(y){if(r[y])return s=y,"object"===_typeof$2(r=r[y])?a:r;var m=y.indexOf(s);if(-1!==m){var g=parseInt(y.substr(m+s.length),10);return"object"===_typeof$2(r=r[g])?a:r}return""}return function(){return s="",r=i.getFootageData(),a}}(t),e},function(t){function e(i){return"Data"===i?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(t)}function seedRandom(t,e){var s=this,r=256,a=e.pow(r,6),y=e.pow(2,52),m=2*y,g=255;function h(l){var c,n=l.length,d=this,v=0,P=d.i=d.j=0,_=d.S=[];for(n||(l=[n++]);v<r;)_[v]=v++;for(v=0;v<r;v++)_[v]=_[P=g&P+l[v%n]+(c=_[v])],_[P]=c;d.g=function(x){for(var A,E=0,S=d.i,T=d.j,b=d.S;x--;)A=b[S=g&S+1],E=E*r+b[g&(b[S]=b[T=g&T+A])+(b[T]=A)];return d.i=S,d.j=T,E}}function o(l,c){return c.i=l.i,c.j=l.j,c.S=l.S.slice(),c}function p(l,c){var n,d=[],v=_typeof$1(l);if(c&&"object"==v)for(n in l)try{d.push(p(l[n],c-1))}catch{}return d.length?d:"string"==v?l:l+"\0"}function u(l,c){for(var n,d=l+"",v=0;v<d.length;)c[g&v]=g&(n^=19*c[g&v])+d.charCodeAt(v++);return f(c)}function f(l){return String.fromCharCode.apply(0,l)}e.seedrandom=function(l,c,n){var d=[],v=u(p((c=!0===c?{entropy:!0}:c||{}).entropy?[l,f(t)]:null===l?function(){try{var x=new Uint8Array(r);return(s.crypto||s.msCrypto).getRandomValues(x),f(x)}catch{var A=s.navigator,E=A&&A.plugins;return[+new Date,s,E,s.screen,f(t)]}}():l,3),d),P=new h(d),_=function(){for(var x=P.g(6),A=a,E=0;x<y;)x=(x+E)*r,A*=r,E=P.g(1);for(;x>=m;)x/=2,A/=2,E>>>=1;return(x+E)/A};return _.int32=function(){return 0|P.g(4)},_.quick=function(){return P.g(4)/4294967296},_.double=_,u(f(P.S),t),(c.pass||n||function(x,A,E,S){return S&&(S.S&&o(S,P),x.state=function(){return o(P,{})}),E?(e.random=x,A):x})(_,v,"global"in c?c.global:this==e,c.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=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)return-t;if($bm_isInstanceOfArray(t)){var i,s=t.length,r=[];for(i=0;i<s;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}initialize$2(BMMath);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||isNumerable(i,t)&&isNumerable(s,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return(t=t.slice(0))[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,y=e.length,m=[];r<a||r<y;)m[r]=("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?t[r]+e[r]:void 0===e[r]?t[r]:t[r]||e[r],r+=1;return m}return 0}var add=sum;function sub(t,e){var i=_typeof(t),s=_typeof(e);if(isNumerable(i,t)&&isNumerable(s,e))return"string"===i&&(t=parseInt(t,10)),"string"===s&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return(t=t.slice(0))[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,y=e.length,m=[];r<a||r<y;)m[r]=("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?t[r]-e[r]:void 0===e[r]?t[r]:t[r]||e[r],r+=1;return m}return 0}function mul(t,e){var i,s,r,a=_typeof(t),y=_typeof(e);if(isNumerable(a,t)&&isNumerable(y,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(y,e)){for(i=createTypedArray("float32",r=t.length),s=0;s<r;s+=1)i[s]=t[s]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(i=createTypedArray("float32",r=e.length),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),y=_typeof(e);if(isNumerable(a,t)&&isNumerable(y,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(y,e)){for(i=createTypedArray("float32",r=t.length),s=0;s<r;s+=1)i[s]=t[s]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(i=createTypedArray("float32",r=e.length),s=0;s<r;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var s=i;i=e,e=s}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}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));var i;e||(e=helperLengthArray);var s=Math.min(t.length,e.length),r=0;for(i=0;i<s;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,s=t[0],r=t[1],a=t[2],y=Math.max(s,r,a),m=Math.min(s,r,a),g=(y+m)/2;if(y===m)e=0,i=0;else{var h=y-m;switch(i=g>.5?h/(2-y-m):h/(y+m),y){case s:e=(r-a)/h+(r<a?6:0);break;case r:e=(a-s)/h+2;break;case a:e=(s-r)/h+4}e/=6}return[e,i,g,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,s,r=t[0],a=t[1],y=t[2];if(0===a)e=y,s=y,i=y;else{var m=y<.5?y*(1+a):y+a-y*a,g=2*y-m;e=hue2rgb(g,m,r+1/3),i=hue2rgb(g,m,r),s=hue2rgb(g,m,r-1/3)}return[e,i,s,t[3]]}function linear(t,e,i,s,r){if(void 0!==s&&void 0!==r||(s=e,r=i,e=0,i=1),i<e){var a=i;i=e,e=a}if(t<=e)return s;if(t>=i)return r;var y,m=i===e?0:(t-e)/(i-e);if(!s.length)return s+(r-s)*m;var g=s.length,h=createTypedArray("float32",g);for(y=0;y<g;y+=1)h[y]=s[y]+(r[y]-s[y])*m;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,s=e.length;t||(t=createTypedArray("float32",s));var r=createTypedArray("float32",s),a=BMMath.random();for(i=0;i<s;i+=1)r[i]=t[i]+a*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,s){var r,a=t.length,y=shapePool.newElement();y.setPathData(!!s,a);var m,g,h=[0,0];for(r=0;r<a;r+=1)y.setTripleAt(t[r][0],t[r][1],(g=i&&i[r]?i[r]:h)[0]+t[r][0],g[1]+t[r][1],(m=e&&e[r]?e[r]:h)[0]+t[r][0],m[1]+t[r][1],r,!0);return y}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;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;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var i,s,r=this.pv.length?this.pv.length:1,a=createTypedArray("float32",r),y=Math.floor(5*time);for(i=0,s=0;i<y;){for(s=0;s<r;s+=1)a[s]+=-e+2*e*BMMath.random();i+=1}var m=5*time,g=m-Math.floor(m),h=createTypedArray("float32",r);if(r>1){for(s=0;s<r;s+=1)h[s]=this.pv[s]+a[s]+(-e+2*e*BMMath.random())*g;return h}return this.pv+a[0]+(-e+2*e*BMMath.random())*g}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return 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){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],s=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,s,0]}function easeOut(t,e,i,s,r){return applyEase(easeOutBez,t,e,i,s,r)}function easeIn(t,e,i,s,r){return applyEase(easeInBez,t,e,i,s,r)}function ease(t,e,i,s,r){return 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),e>1?e=1:e<0&&(e=0);var y=t(e);if($bm_isInstanceOfArray(r)){var m,g=r.length,h=createTypedArray("float32",g);for(m=0;m<g;m+=1)h[m]=(a[m]-r[m])*y+r[m];return h}return(a-r)*y+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){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}}-1===i&&(i=e+1,s=data.k[e].t)}else i=0,s=0;var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,s;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);e={time:data.k[t-=1].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(s=r.length,i=0;i<s;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"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,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,thisComp=elem.comp.compInterface,toWorld=(thisLayer=elem.layerInterface).toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),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,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKe
vendor: 4,523 bytes, line 1
1ys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),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){var r;for(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,i,s=-.001,r=this.getValueAtTime(t),a=this.getValueAtTime(t+s);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(a[i]-r[i])/s;else e=(a-r)/s;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(p,u,f){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var l,c,n,d,v,P=this.comp.renderedFrame,_=this.keyframes,x=_[_.length-1].t;if(P<=x)return this.pv;if(f?c=x-(l=u?Math.abs(x-this.elem.comp.globalData.frameRate*u):Math.max(0,x-this.elem.data.ip)):((!u||u>_.length-1)&&(u=_.length-1),l=x-(c=_[_.length-1-u].t)),"pingpong"===p){if(Math.floor((P-c)/l)%2!=0)return this.getValueAtTime((l-(P-c)%l+c)/this.comp.globalData.frameRate,0)}else{if("offset"===p){var A=this.getValueAtTime(c/this.comp.globalData.frameRate,0),E=this.getValueAtTime(x/this.comp.globalData.frameRate,0),S=this.getValueAtTime(((P-c)%l+c)/this.comp.globalData.frameRate,0),T=Math.floor((P-c)/l);if(this.pv.length){for(d=(v=new Array(A.length)).length,n=0;n<d;n+=1)v[n]=(E[n]-A[n])*T+S[n];return v}return(E-A)*T+S}if("continue"===p){var b=this.getValueAtTime(x/this.comp.globalData.frameRate,0),k=this.getValueAtTime((x-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(d=(v=new Array(b.length)).length,n=0;n<d;n+=1)v[n]=b[n]+(P-x)/this.comp.globalData.frameRate*(b[n]-k[n])/5e-4;return v}return b+(P-x)/.001*(b-k)}}return this.getValueAtTime(((P-c)%l+c)/this.comp.globalData.frameRate,0)}function e(p,u,f){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var l,c,n,d,v,P=this.comp.renderedFrame,_=this.keyframes,x=_[0].t;if(P>=x)return this.pv;if(f?c=x+(l=u?Math.abs(this.elem.comp.globalData.frameRate*u):Math.max(0,this.elem.data.op-x)):((!u||u>_.length-1)&&(u=_.length-1),l=(c=_[u].t)-x),"pingpong"===p){if(Math.floor((x-P)/l)%2==0)return this.getValueAtTime(((x-P)%l+x)/this.comp.globalData.frameRate,0)}else{if("offset"===p){var A=this.getValueAtTime(x/this.comp.globalData.frameRate,0),E=this.getValueAtTime(c/this.comp.globalData.frameRate,0),S=this.getValueAtTime((l-(x-P)%l+x)/this.comp.globalData.frameRate,0),T=Math.floor((x-P)/l)+1;if(this.pv.length){for(d=(v=new Array(A.length)).length,n=0;n<d;n+=1)v[n]=S[n]-(E[n]-A[n])*T;return v}return S-(E-A)*T}if("continue"===p){var b=this.getValueAtTime(x/this.comp.globalData.frameRate,0),k=this.getValueAtTime((x+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(d=(v=new Array(b.length)).length,n=0;n<d;n+=1)v[n]=b[n]+(b[n]-k[n])*(x-P)/.001;return v}return b+(b-k)*(x-P)/.001}}return this.getValueAtTime((l-((x-P)%l+x))/this.comp.globalData.frameRate,0)}function i(p,u){if(!this.k)return this.pv;if(p=.5*(p||.4),(u=Math.floor(u||5))<=1)return this.pv;var f,l,c=this.comp.renderedFrame/this.comp.globalData.frameRate,n=c-p,d=u>1?(c+p-n)/(u-1):1,v=0,P=0;for(f=this.pv.length?createTypedArray("float32",this.pv.length):0;v<u;){if(l=this.getValueAtTime(n+v*d),this.pv.length)for(P=0;P<this.pv.length;P+=1)f[P]+=l[P];else f+=l;v+=1}if(this.pv.length)for(P=0;P<this.pv.length;P+=1)f[P]/=u;else f/=u;return f}function s(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:ne
vendor: 5,473 bytes, line 1
1w Matrix});var u=this._transformCachingAtTime.v;if(u.cloneFromProps(this.pre.props),this.appliedTransformations<1){var f=this.a.getValueAtTime(p);u.translate(-f[0]*this.a.mult,-f[1]*this.a.mult,f[2]*this.a.mult)}if(this.appliedTransformations<2){var l=this.s.getValueAtTime(p);u.scale(l[0]*this.s.mult,l[1]*this.s.mult,l[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var c=this.sk.getValueAtTime(p),n=this.sa.getValueAtTime(p);u.skewFromAxis(-c*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var d=this.r.getValueAtTime(p);u.rotate(-d*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(p),P=this.ry.getValueAtTime(p),_=this.rx.getValueAtTime(p),x=this.or.getValueAtTime(p);u.rotateZ(-v*this.rz.mult).rotateY(P*this.ry.mult).rotateX(_*this.rx.mult).rotateZ(-x[2]*this.or.mult).rotateY(x[1]*this.or.mult).rotateX(x[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var A=this.px.getValueAtTime(p),E=this.py.getValueAtTime(p);if(this.data.p.z){var S=this.pz.getValueAtTime(p);u.translate(A*this.px.mult,E*this.py.mult,-S*this.pz.mult)}else u.translate(A*this.px.mult,E*this.py.mult,0)}else{var T=this.p.getValueAtTime(p);u.translate(T[0]*this.p.mult,T[1]*this.p.mult,-T[2]*this.p.mult)}return u}function r(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,u,f){var l=a(p,u,f);return l.getValueAtTime=l.dynamicProperties.length?s.bind(l):r.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l};var y=PropertyFactory.getProp;PropertyFactory.getProp=function(p,u,f,l,c){var n=y(p,u,f,l,c);n.getValueAtTime=n.kf?expressionHelpers.getValueAtTime.bind(n):expressionHelpers.getStaticValueAtTime.bind(n),n.setGroupProperty=expressionHelpers.setGroupProperty,n.loopOut=t,n.loopIn=e,n.smooth=i,n.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(n),n.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(n),n.numKeys=1===u.a?u.k.length:0,n.propertyIndex=u.ix;var d=0;return 0!==f&&(d=createTypedArray("float32",1===u.a?u.k[0].s.length:u.k.length)),n._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(p,u,n),n.k&&c.addDynamicProperty(n),n};var m=ShapePropertyFactory.getConstructorFunction(),g=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(p,u){this.k&&this.getValue();var f,l=this.v;void 0!==u&&(l=this.getValueAtTime(u,0));var c=l._length,n=l[p],d=l.v,v=createSizedArray(c);for(f=0;f<c;f+=1)v[f]="i"===p||"o"===p?[n[f][0]-d[f][0],n[f][1]-d[f][1]]:[n[f][0],n[f][1]];return v},points:function(p){return this.vertices("v",p)},inTangents:function(p){return this.vertices("i",p)},outTangents:function(p){return this.vertices("o",p)},isClosed:function(){return this.v.c},pointOnPath:function(p,u){var f=this.v;void 0!==u&&(f=this.getValueAtTime(u,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(f));for(var l,c=this._segmentsLength,n=c.lengths,d=c.totalLength*p,v=0,P=n.length,_=0;v<P;){if(_+n[v].addedLength>d){var A=f.c&&v===P-1?0:v+1;l=bez.getPointInSegment(f.v[v],f.v[A],f.o[v],f.i[A],(d-_)/n[v].addedLength,n[v]);break}_+=n[v].addedLength,v+=1}return l||(l=f.c?[f.v[0][0],f.v[0][1]]:[f.v[f._length-1][0],f.v[f._length-1][1]]),l},vectorOnPath:function(p,u,f){1==p?p=this.v.c:0==p&&(p=.999);var l=this.pointOnPath(p,u),c=this.pointOnPath(p+.001,u),n=c[0]-l[0],d=c[1]-l[1],v=Math.sqrt(Math.pow(n,2)+Math.pow(d,2));return 0===v?[0,0]:"tangent"===f?[n/v,d/v]:[-d/v,n/v]},tangentOnPath:function(p,u){return this.vectorOnPath(p,u,"tangent")},normalOnPath:function(p,u){return this.vectorOnPath(p,u,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],m),extendPrototype([h],g),g.prototype.getValueAtTime=function(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,(p-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},g.prototype.initiateExpression=ExpressionManager.initiateExpression;var o=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,u,f,l,c){var n=o(p,u,f,l,c);return n.propertyIndex=u.ix,n.lock=!1,3===f?expressionHelpers.searchExpressions(p,u.pt,n):4===f&&expressionHelpers.searchExpressions(p,u.ks,n),n.k&&p.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}return setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),lottie});
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.