index-607ddb73.js 514 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import{a6 as cB,a7 as cE,d as defineComponent,a8 as useConfig,a9 as useTheme,E as computed,aa as createKey,ab as useThemeClass,ac as h$1,ad as inputLight,r as ref,w as watch,f as createVNode,ae as NSkeleton,af as commonjsGlobal,ag as getDefaultExportFromCjs,q as onMounted,ah as openBlock,ai as createElementBlock,aj as normalizeStyle,ak as toRefs,M as nextTick,e as reactive,k as createTextVNode,c as useUserStore,al as useDialog,am as NEllipsis,j as NButton,o as NImage,Q as NSpace,an as NTag,y as resolveComponent,V as isVNode,N as NForm,g as NFormItem,F as Fragment,ao as NInputNumber,i as NInputGroup,h as NInput,m as NTabs,n as NTabPane,H as NDatePicker,z as NModal,b as useMessage,Z as onUnmounted,T as Transition,ap as NTooltip,aq as NDrawer,ar as NDrawerContent}from"./index-f7e86eca.js";import{C as CardType}from"./index-27bdc7c9.js";import{N as NSlider}from"./Slider-4e5664f5.js";import{T as TheSearch}from"./index-61d8dcb3.js";import{l as listData}from"./data-8bf93671.js";import{N as NScrollbar}from"./Scrollbar-dcb7ab01.js";import"./index-e4f39dcb.js";const style=cB("input-group-label",`
  2. position: relative;
  3. user-select: none;
  4. -webkit-user-select: none;
  5. box-sizing: border-box;
  6. padding: 0 12px;
  7. display: inline-block;
  8. border-radius: var(--n-border-radius);
  9. background-color: var(--n-group-label-color);
  10. color: var(--n-group-label-text-color);
  11. font-size: var(--n-font-size);
  12. line-height: var(--n-height);
  13. height: var(--n-height);
  14. flex-shrink: 0;
  15. white-space: nowrap;
  16. transition:
  17. color .3s var(--n-bezier),
  18. background-color .3s var(--n-bezier),
  19. box-shadow .3s var(--n-bezier);
  20. `,[cE("border",`
  21. position: absolute;
  22. left: 0;
  23. right: 0;
  24. top: 0;
  25. bottom: 0;
  26. border-radius: inherit;
  27. border: var(--n-group-label-border);
  28. transition: border-color .3s var(--n-bezier);
  29. `)]),inputGroupLabelProps=Object.assign(Object.assign({},useTheme.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),NInputGroupLabel=defineComponent({name:"InputGroupLabel",props:inputGroupLabelProps,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:i,inlineThemeDisabled:r}=useConfig(e),s=useTheme("Input","-input-group-label",style,inputLight,e,i),n=computed(()=>{const{size:o}=e,{common:{cubicBezierEaseInOut:l},self:{groupLabelColor:c,borderRadius:g,groupLabelTextColor:S,lineHeight:p,groupLabelBorder:P,[createKey("fontSize",o)]:y,[createKey("height",o)]:m}}=s.value;return{"--n-bezier":l,"--n-group-label-color":c,"--n-group-label-border":P,"--n-border-radius":g,"--n-group-label-text-color":S,"--n-font-size":y,"--n-line-height":p,"--n-height":m}}),a=r?useThemeClass("input-group-label",computed(()=>e.size[0]),n,e):void 0;return{mergedClsPrefix:i,mergedBordered:t,cssVars:r?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,i;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h$1("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(i=(t=this.$slots).default)===null||i===void 0?void 0:i.call(t),this.mergedBordered?h$1("div",{class:`${r}-input-group-label__border`}):null)}}),playContent="_playContent_10y90_1",assignHomework="_assignHomework_10y90_10",sectionAnimateUp="_sectionAnimateUp_10y90_23",coursewarePlay="_coursewarePlay_10y90_29",playModel="_playModel_10y90_35",headerContainer="_headerContainer_10y90_44",backBtn="_backBtn_10y90_61",headRight="_headRight_10y90_73",rightBtn="_rightBtn_10y90_82",menu="_menu_10y90_94",tabsContent="_tabsContent_10y90_104",wraps="_wraps_10y90_115",itemDiv="_itemDiv_10y90_122",itemActive="_itemActive_10y90_135",acitveAnimation="_acitveAnimation_10y90_138",show="_show_10y90_141",hide$1="_hide_10y90_144",rightFixedBtns="_rightFixedBtns_10y90_157",fullBtn="_fullBtn_10y90_164",point="_point_10y90_169",btnsDisabled="_btnsDisabled_10y90_179",loadWrap="_loadWrap_10y90_208",drawerContainer="_drawerContainer_10y90_219",sectionAnimate$1="_sectionAnimate_10y90_23",switchDisplaySection="_switchDisplaySection_10y90_264",displayBtn="_displayBtn_10y90_272",attendClassModal="_attendClassModal_10y90_284",modelAttendContent="_modelAttendContent_10y90_308",modelAttendBtnGroup="_modelAttendBtnGroup_10y90_314",trainClassModal="_trainClassModal_10y90_322",styles$8={playContent,assignHomework,sectionAnimateUp,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu,tabsContent,wraps,itemDiv,itemActive,acitveAnimation,show,hide:hide$1,rightFixedBtns,fullBtn,point,btnsDisabled,loadWrap,drawerContainer,sectionAnimate:sectionAnimate$1,switchDisplaySection,displayBtn,attendClassModal,modelAttendContent,modelAttendBtnGroup,trainClassModal},plyr="",musicScore="_musicScore_piq8y_1",container="_container_piq8y_8",musicModel="_musicModel_piq8y_16",errorModel="_errorModel_piq8y_23",startBtn="_startBtn_piq8y_35",loading="_loading_piq8y_45",skeletonWrap="_skeletonWrap_piq8y_51",skeleton="_skeleton_piq8y_51",styles$7={musicScore,container,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton};var inBrowser=typeof window<"u",visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser)){const e=()=>{visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}const MusicScore=defineComponent({name:"musicScore",props:{music:{type:Object,default:()=>({})},activeModel:{type:Boolean}},emits:["setIframe"],setup(e,{emit:t}){const i=ref(!1),r=usePageVisibility();watch(r,g=>{console.log("🚀 ~ value:",g),g=="hidden"&&(i.value=!1)});const s=ref(),n=ref(!1),a=ref(!1),o=ref(!1),l="https://kt.colexiu.com/instrument?platform=pc&modelType=practise",c=()=>{fetch(l).then(()=>{o.value=!0,a.value=!1}).catch(()=>{a.value=!0})};return watch(e.music,()=>{o.value||(a.value=!1,e.music.display&&c())}),()=>createVNode("div",{class:styles$7.musicScore},[createVNode("iframe",{ref:s,onLoad:()=>{t("setIframe",s.value),n.value=!0},class:[styles$7.container,"musicIframe"],frameborder:"0",src:l},null),createVNode("div",{class:styles$7.skeletonWrap},[createVNode(NSkeleton,{text:!0,repeat:8},null)])])}}),iconMenu=""+new URL("icon-menu-c82b47a8.svg",import.meta.url).href,iconUp=""+new URL("icon-up-decb9226.svg",import.meta.url).href,iconDown=""+new URL("icon-down-372e6a8f.svg",import.meta.url).href,iconNote=""+new URL("icon-note-e717c676.png",import.meta.url).href,iconWhiteboard=""+new URL("icon-whiteboard-c1022e62.png",import.meta.url).href,iconAssignHomework=""+new URL("icon-assignHomework-b4738536.svg",import.meta.url).href;var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,r=e.length,s;for(i=0;i<r;i+=1){s=e[i].prototype;for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,r=this.audios.length;for(i=0;i<r;i+=1)this.audios[i].pause()},resume:function(){var i,r=this.audios.length;for(i=0;i<r;i+=1)this.audios[i].resume()},setRate:function(i){var r,s=this.audios.length;for(r=0;r<s;r+=1)this.audios[r].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,r=this.audios.length;for(i=0;i<r;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,r){var s=0,n=[],a;switch(i){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(s=0;s<r;s+=1)n.push(a);return n}function t(i,r){return i==="float32"?new Float32Array(r):i==="int16"?new Int16Array(r):i==="uint8c"?new Uint8ClampedArray(r):e(i,r)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(i){return typeof i}:_typeof$6=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var i=createSizedArray(e.length),r,s=e.length;for(r=0;r<s;r+=1)i[r]=Math.abs(e[r]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,r){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,r){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,i){var r,s,n,a,o,l,c,g;switch(a=Math.floor(e*6),o=e*6-a,l=i*(1-t),c=i*(1-o*t),g=i*(1-(1-o)*t),a%6){case 0:r=i,s=g,n=l;break;case 1:r=c,s=i,n=l;break;case 2:r=l,s=i,n=g;break;case 3:r=l,s=c,n=i;break;case 4:r=g,s=l,n=i;break;case 5:r=i,s=l,n=c;break}return[r,s,n]}function RGBtoHSV(e,t,i){var r=Math.max(e,t,i),s=Math.min(e,t,i),n=r-s,a,o=r===0?0:n/r,l=r/255;switch(r){case s:a=0;break;case e:a=t-i+n*(t<i?6:0),a/=6*n;break;case t:a=i-e+n*2,a/=6*n;break;case i:a=e-t+n*4,a/=6*n;break}return[a,o,l]}function addSaturationToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],t,i;for(t=0;t<256;t+=1)i=t.toString(16),e[t]=i.length===1?"0"+i:i;return function(r,s,n){return r<0&&(r=0),s<0&&(s=0),n<0&&(n=0),"#"+e[r]+e[s]+e[n]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(i){return typeof i}:_typeof$5=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(e)}var dataManager=function(){var e=1,t=[],i,r,s={onmessage:function(){},postMessage:function(P){i({data:P})}},n={postMessage:function(P){s.onmessage({data:P})}};function a(p){if(window.Worker&&window.Blob&&getWebWorker()){var P=new Blob(["var _workerSelf = self; self.onmessage = ",p.toString()],{type:"text/javascript"}),y=URL.createObjectURL(P);return new Worker(y)}return i=p,s}function o(){r||(r=a(function(P){function y(){function A(R,_){var F,E,T=R.length,L,V,G,H;for(E=0;E<T;E+=1)if(F=R[E],"ks"in F&&!F.completed){if(F.completed=!0,F.hasMask){var z=F.masksProperties;for(V=z.length,L=0;L<V;L+=1)if(z[L].pt.k.i)C(z[L].pt.k);else for(H=z[L].pt.k.length,G=0;G<H;G+=1)z[L].pt.k[G].s&&C(z[L].pt.k[G].s[0]),z[L].pt.k[G].e&&C(z[L].pt.k[G].e[0])}F.ty===0?(F.layers=d(F.refId,_),A(F.layers,_)):F.ty===4?b(F.shapes):F.ty===5&&$(F)}}function u(R,_){if(R){var F=0,E=R.length;for(F=0;F<E;F+=1)R[F].t===1&&(R[F].data.layers=d(R[F].data.refId,_),A(R[F].data.layers,_))}}function f(R,_){for(var F=0,E=_.length;F<E;){if(_[F].id===R)return _[F];F+=1}return null}function d(R,_){var F=f(R,_);return F?F.layers.__used?JSON.parse(JSON.stringify(F.layers)):(F.layers.__used=!0,F.layers):null}function b(R){var _,F=R.length,E,T;for(_=F-1;_>=0;_-=1)if(R[_].ty==="sh")if(R[_].ks.k.i)C(R[_].ks.k);else for(T=R[_].ks.k.length,E=0;E<T;E+=1)R[_].ks.k[E].s&&C(R[_].ks.k[E].s[0]),R[_].ks.k[E].e&&C(R[_].ks.k[E].e[0]);else R[_].ty==="gr"&&b(R[_].it)}function C(R){var _,F=R.i.length;for(_=0;_<F;_+=1)R.i[_][0]+=R.v[_][0],R.i[_][1]+=R.v[_][1],R.o[_][0]+=R.v[_][0],R.o[_][1]+=R.v[_][1]}function x(R,_){var F=_?_.split("."):[100,100,100];return R[0]>F[0]?!0:F[0]>R[0]?!1:R[1]>F[1]?!0:F[1]>R[1]?!1:R[2]>F[2]?!0:F[2]>R[2]?!1:null}var M=function(){var R=[4,4,14];function _(E){var T=E.t.d;E.t.d={k:[{s:T,t:0}]}}function F(E){var T,L=E.length;for(T=0;T<L;T+=1)E[T].ty===5&&_(E[T])}return function(E){if(x(R,E.v)&&(F(E.layers),E.assets)){var T,L=E.assets.length;for(T=0;T<L;T+=1)E.assets[T].layers&&F(E.assets[T].layers)}}}(),k=function(){var R=[4,7,99];return function(_){if(_.chars&&!x(R,_.v)){var F,E=_.chars.length;for(F=0;F<E;F+=1){var T=_.chars[F];T.data&&T.data.shapes&&(b(T.data.shapes),T.data.ip=0,T.data.op=99999,T.data.st=0,T.data.sr=1,T.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}},_.chars[F].t||(T.data.shapes.push({ty:"no"}),T.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"})))}}}}(),I=function(){var R=[5,7,15];function _(E){var T=E.t.p;typeof T.a=="number"&&(T.a={a:0,k:T.a}),typeof T.p=="number"&&(T.p={a:0,k:T.p}),typeof T.r=="number"&&(T.r={a:0,k:T.r})}function F(E){var T,L=E.length;for(T=0;T<L;T+=1)E[T].ty===5&&_(E[T])}return function(E){if(x(R,E.v)&&(F(E.layers),E.assets)){var T,L=E.assets.length;for(T=0;T<L;T+=1)E.assets[T].layers&&F(E.assets[T].layers)}}}(),N=function(){var R=[4,1,9];function _(E){var T,L=E.length,V,G;for(T=0;T<L;T+=1)if(E[T].ty==="gr")_(E[T].it);else if(E[T].ty==="fl"||E[T].ty==="st")if(E[T].c.k&&E[T].c.k[0].i)for(G=E[T].c.k.length,V=0;V<G;V+=1)E[T].c.k[V].s&&(E[T].c.k[V].s[0]/=255,E[T].c.k[V].s[1]/=255,E[T].c.k[V].s[2]/=255,E[T].c.k[V].s[3]/=255),E[T].c.k[V].e&&(E[T].c.k[V].e[0]/=255,E[T].c.k[V].e[1]/=255,E[T].c.k[V].e[2]/=255,E[T].c.k[V].e[3]/=255);else E[T].c.k[0]/=255,E[T].c.k[1]/=255,E[T].c.k[2]/=255,E[T].c.k[3]/=255}function F(E){var T,L=E.length;for(T=0;T<L;T+=1)E[T].ty===4&&_(E[T].shapes)}return function(E){if(x(R,E.v)&&(F(E.layers),E.assets)){var T,L=E.assets.length;for(T=0;T<L;T+=1)E.assets[T].layers&&F(E.assets[T].layers)}}}(),B=function(){var R=[4,4,18];function _(E){var T,L=E.length,V,G;for(T=L-1;T>=0;T-=1)if(E[T].ty==="sh")if(E[T].ks.k.i)E[T].ks.k.c=E[T].closed;else for(G=E[T].ks.k.length,V=0;V<G;V+=1)E[T].ks.k[V].s&&(E[T].ks.k[V].s[0].c=E[T].closed),E[T].ks.k[V].e&&(E[T].ks.k[V].e[0].c=E[T].closed);else E[T].ty==="gr"&&_(E[T].it)}function F(E){var T,L,V=E.length,G,H,z,q;for(L=0;L<V;L+=1){if(T=E[L],T.hasMask){var W=T.masksProperties;for(H=W.length,G=0;G<H;G+=1)if(W[G].pt.k.i)W[G].pt.k.c=W[G].cl;else for(q=W[G].pt.k.length,z=0;z<q;z+=1)W[G].pt.k[z].s&&(W[G].pt.k[z].s[0].c=W[G].cl),W[G].pt.k[z].e&&(W[G].pt.k[z].e[0].c=W[G].cl)}T.ty===4&&_(T.shapes)}}return function(E){if(x(R,E.v)&&(F(E.layers),E.assets)){var T,L=E.assets.length;for(T=0;T<L;T+=1)E.assets[T].layers&&F(E.assets[T].layers)}}}();function D(R){R.__complete||(N(R),M(R),k(R),I(R),B(R),A(R.layers,R.assets),u(R.chars,R.assets),R.__complete=!0)}function $(R){R.t.a.length===0&&"m"in R.t.p}var O={};return O.completeData=D,O.checkColors=N,O.checkChars=k,O.checkPathProperties=I,O.checkShapes=B,O.completeLayers=A,O}if(n.dataManager||(n.dataManager=y()),n.assetLoader||(n.assetLoader=function(){function A(f){var d=f.getResponseHeader("content-type");return d&&f.responseType==="json"&&d.indexOf("json")!==-1||f.response&&_typeof$5(f.response)==="object"?f.response:f.response&&typeof f.response=="string"?JSON.parse(f.response):f.responseText?JSON.parse(f.responseText):null}function u(f,d,b,C){var x,M=new XMLHttpRequest;try{M.responseType="json"}catch{}M.onreadystatechange=function(){if(M.readyState===4)if(M.status===200)x=A(M),b(x);else try{x=A(M),b(x)}catch(k){C&&C(k)}};try{M.open(["G","E","T"].join(""),f,!0)}catch{M.open(["G","E","T"].join(""),d+"/"+f,!0)}M.send()}return{load:u}}()),P.data.type==="loadAnimation")n.assetLoader.load(P.data.path,P.data.fullPath,function(A){n.dataManager.completeData(A),n.postMessage({id:P.data.id,payload:A,status:"success"})},function(){n.postMessage({id:P.data.id,status:"error"})});else if(P.data.type==="complete"){var m=P.data.animation;n.dataManager.completeData(m),n.postMessage({id:P.data.id,payload:m,status:"success"})}else P.data.type==="loadData"&&n.assetLoader.load(P.data.path,P.data.fullPath,function(A){n.postMessage({id:P.data.id,payload:A,status:"success"})},function(){n.postMessage({id:P.data.id,status:"error"})})}),r.onmessage=function(p){var P=p.data,y=P.id,m=t[y];t[y]=null,P.status==="success"?m.onComplete(P.payload):m.onError&&m.onError()})}function l(p,P){e+=1;var y="processId_"+e;return t[y]={onComplete:p,onError:P},y}function c(p,P,y){o();var m=l(P,y);r.postMessage({type:"loadAnimation",path:p,fullPath:window.location.origin+window.location.pathname,id:m})}function g(p,P,y){o();var m=l(P,y);r.postMessage({type:"loadData",path:p,fullPath:window.location.origin+window.location.pathname,id:m})}function S(p,P,y){o();var m=l(P,y);r.postMessage({type:"complete",animation:p,id:m})}return{loadAnimation:c,loadData:g,completeAnimation:S}}(),ImagePreloader=function(){var e=function(){var u=createTag("canvas");u.width=1,u.height=1;var f=u.getContext("2d");return f.fillStyle="rgba(0,0,0,0)",f.fillRect(0,0,1,1),u}();function t(){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 r(u,f,d){var b="";if(u.e)b=u.p;else if(f){var C=u.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),b=f+C}else b=d,b+=u.u?u.u:"",b+=u.p;return b}function s(u){var f=0,d=setInterval(function(){var b=u.getBBox();(b.width||f>500)&&(this._imageLoaded(),clearInterval(d)),f+=1}.bind(this),50)}function n(u){var f=r(u,this.assetsPath,this.path),d=createNS("image");isSafari?this.testImageLoaded(d):d.addEventListener("load",this._imageLoaded,!1),d.addEventListener("error",function(){b.img=e,this._imageLoaded()}.bind(this),!1),d.setAttributeNS("http://www.w3.org/1999/xlink","href",f),this._elementHelper.append?this._elementHelper.append(d):this._elementHelper.appendChild(d);var b={img:d,assetData:u};return b}function a(u){var f=r(u,this.assetsPath,this.path),d=createTag("img");d.crossOrigin="anonymous",d.addEventListener("load",this._imageLoaded,!1),d.addEventListener("error",function(){b.img=e,this._imageLoaded()}.bind(this),!1),d.src=f;var b={img:d,assetData:u};return b}function o(u){var f={assetData:u},d=r(u,this.assetsPath,this.path);return dataManager.loadData(d,function(b){f.img=b,this._footageLoaded()}.bind(this),function(){f.img={},this._footageLoaded()}.bind(this)),f}function l(u,f){this.imagesLoadedCb=f;var d,b=u.length;for(d=0;d<b;d+=1)u[d].layers||(!u[d].t||u[d].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(u[d]))):u[d].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(u[d]))))}function c(u){this.path=u||""}function g(u){this.assetsPath=u||""}function S(u){for(var f=0,d=this.images.length;f<d;){if(this.images[f].assetData===u)return this.images[f].img;f+=1}return null}function p(){this.imagesLoadedCb=null,this.images.length=0}function P(){return this.totalImages===this.loadedAssets}function y(){return this.totalFootages===this.loadedFootagesCount}function m(u,f){u==="svg"?(this._elementHelper=f,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function A(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return A.prototype={loadAssets:l,setAssetsPath:g,setPath:c,loadedImages:P,loadedFootages:y,destroy:p,getAsset:S,createImgData:a,createImageData:n,imageLoaded:t,footageLoaded:i,setCacheType:m},A}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var r=this._cbs[t],s=0;s<r.length;s+=1)r[s](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),function(){this.removeEventListener(t,i)}.bind(this)},removeEventListener:function(t,i){if(!i)this._cbs[t]=null;else if(this._cbs[t]){for(var r=0,s=this._cbs[t].length;r<s;)this._cbs[t][r]===i&&(this._cbs[t].splice(r,1),r-=1,s-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var i=t.split(`\r
  30. `),r={},s,n=0,a=0;a<i.length;a+=1)s=i[a].split(":"),s.length===2&&(r[s[0]]=s[1].trim(),n+=1);if(n===0)throw new Error;return r}return function(t){for(var i=[],r=0;r<t.length;r+=1){var s=t[r],n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(t[r].cm)}catch{try{n.payload=e(t[r].cm)}catch{n.payload={name:t[r].cm}}}i.push(n)}return i}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(i){for(var r=0,s=this.compositions.length;r<s;){if(this.compositions[r].data&&this.compositions[r].data.nm===i)return this.compositions[r].prepareFrame&&this.compositions[r].data.xt&&this.compositions[r].prepareFrame(this.currentFrame),this.compositions[r].compInterface;r+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,i){renderers[t]=i};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(i){return typeof i}:_typeof$4=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var i=getRenderer(t);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var i={wrapper:e,animationData:t},r=e.attributes;i.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",i.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";s==="false"?i.loop=!1:s==="true"?i.loop=!0:s!==""&&(i.loop=parseInt(s,10));var n=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:r.getNamedItem("bm-autoplay")?r.getNamedItem("bm-autoplay").value:!0;i.autoplay=n!=="false",i.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"";var a=r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"";a==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,i,r=t.length,s=e.layers,n,a=s.length;for(n=0;n<a;n+=1)for(i=0;i<r;){if(t[i].id===s[n].id){t[i]=s[n];break}i+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(r=e.assets.length,i=0;i<r;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var 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(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var i=typeof e=="number"?e:void 0,r=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(i,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,i=0;i<this.markers.length;i+=1)if(t=this.markers[i],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,i){if(!(i&&this.name!==i)){var r=Number(e);if(isNaN(r)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,i){if(!(i&&this.name!==i)){var r=Number(e);if(isNaN(r)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(r,t,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,i=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(i=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,t=0)):this.setCurrentRawFrameValue(t),i&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>t&&(i=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,r=e.length;for(i=0;i<r;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),t=this.assetsPath+i}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,i=this.assets.length;t<i;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,i){try{var r=this.renderer.getElementByPath(e);r.updateDocumentData(t,i)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],i=0,r=0,s=0,n=!0,a=!1;function o(_){for(var F=0,E=_.target;F<r;)t[F].animation===E&&(t.splice(F,1),F-=1,r-=1,E.isPaused||S()),F+=1}function l(_,F){if(!_)return null;for(var E=0;E<r;){if(t[E].elem===_&&t[E].elem!==null)return t[E].animation;E+=1}var T=new AnimationItem;return p(T,_),T.setData(_,F),T}function c(){var _,F=t.length,E=[];for(_=0;_<F;_+=1)E.push(t[_].animation);return E}function g(){s+=1,N()}function S(){s-=1}function p(_,F){_.addEventListener("destroy",o),_.addEventListener("_active",g),_.addEventListener("_idle",S),t.push({elem:F,animation:_}),r+=1}function P(_){var F=new AnimationItem;return p(F,null),F.setParams(_),F}function y(_,F){var E;for(E=0;E<r;E+=1)t[E].animation.setSpeed(_,F)}function m(_,F){var E;for(E=0;E<r;E+=1)t[E].animation.setDirection(_,F)}function A(_){var F;for(F=0;F<r;F+=1)t[F].animation.play(_)}function u(_){var F=_-i,E;for(E=0;E<r;E+=1)t[E].animation.advanceTime(F);i=_,s&&!a?window.requestAnimationFrame(u):n=!0}function f(_){i=_,window.requestAnimationFrame(u)}function d(_){var F;for(F=0;F<r;F+=1)t[F].animation.pause(_)}function b(_,F,E){var T;for(T=0;T<r;T+=1)t[T].animation.goToAndStop(_,F,E)}function C(_){var F;for(F=0;F<r;F+=1)t[F].animation.stop(_)}function x(_){var F;for(F=0;F<r;F+=1)t[F].animation.togglePause(_)}function M(_){var F;for(F=r-1;F>=0;F-=1)t[F].animation.destroy(_)}function k(_,F,E){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),L,V=T.length;for(L=0;L<V;L+=1)E&&T[L].setAttribute("data-bm-type",E),l(T[L],_);if(F&&V===0){E||(E="svg");var G=document.getElementsByTagName("body")[0];G.innerText="";var H=createTag("div");H.style.width="100%",H.style.height="100%",H.setAttribute("data-bm-type",E),G.appendChild(H),l(H,_)}}function I(){var _;for(_=0;_<r;_+=1)t[_].animation.resize()}function N(){!a&&s&&n&&(window.requestAnimationFrame(f),n=!1)}function B(){a=!0}function D(){a=!1,N()}function $(_,F){var E;for(E=0;E<r;E+=1)t[E].animation.setVolume(_,F)}function O(_){var F;for(F=0;F<r;F+=1)t[F].animation.mute(_)}function R(_){var F;for(F=0;F<r;F+=1)t[F].animation.unmute(_)}return e.registerAnimation=l,e.loadAnimation=P,e.setSpeed=y,e.setDirection=m,e.play=A,e.pause=d,e.stop=C,e.togglePause=x,e.searchAnimations=k,e.resize=I,e.goToAndStop=b,e.destroy=M,e.freeze=B,e.unfreeze=D,e.setVolume=$,e.mute=O,e.unmute=R,e.getRegisteredAnimations=c,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var t={};function i(f,d,b,C,x){var M=x||("bez_"+f+"_"+d+"_"+b+"_"+C).replace(/\./g,"p");if(t[M])return t[M];var k=new u([f,d,b,C]);return t[M]=k,k}var r=4,s=.001,n=1e-7,a=10,o=11,l=1/(o-1),c=typeof Float32Array=="function";function g(f,d){return 1-3*d+3*f}function S(f,d){return 3*d-6*f}function p(f){return 3*f}function P(f,d,b){return((g(d,b)*f+S(d,b))*f+p(d))*f}function y(f,d,b){return 3*g(d,b)*f*f+2*S(d,b)*f+p(d)}function m(f,d,b,C,x){var M,k,I=0;do k=d+(b-d)/2,M=P(k,C,x)-f,M>0?b=k:d=k;while(Math.abs(M)>n&&++I<a);return k}function A(f,d,b,C){for(var x=0;x<r;++x){var M=y(d,b,C);if(M===0)return d;var k=P(d,b,C)-f;d-=k/M}return d}function u(f){this._p=f,this._mSampleValues=c?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(d){var b=this._p[0],C=this._p[1],x=this._p[2],M=this._p[3];return this._precomputed||this._precompute(),b===C&&x===M?d:d===0?0:d===1?1:P(this._getTForX(d),C,M)},_precompute:function(){var d=this._p[0],b=this._p[1],C=this._p[2],x=this._p[3];this._precomputed=!0,(d!==b||C!==x)&&this._calcSampleValues()},_calcSampleValues:function(){for(var d=this._p[0],b=this._p[2],C=0;C<o;++C)this._mSampleValues[C]=P(C*l,d,b)},_getTForX:function(d){for(var b=this._p[0],C=this._p[2],x=this._mSampleValues,M=0,k=1,I=o-1;k!==I&&x[k]<=d;++k)M+=l;--k;var N=(d-x[k])/(x[k+1]-x[k]),B=M+N*l,D=y(B,b,C);return D>=s?A(d,B,b,C):D===0?B:m(d,M,M+l,b,C)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,i){var r=0,s=e,n=createSizedArray(s),a={newElement:o,release:l};function o(){var c;return r?(r-=1,c=n[r]):c=t(),c}function l(c){r===s&&(n=pooling.double(n),s*=2),i&&i(c),n[r]=c,r+=1}return a}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(i){var r,s=i.lengths.length;for(r=0;r<s;r+=1)bezierLengthPool.release(i.lengths[r]);i.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(p,P,y,m,A,u){var f=p*m+P*A+y*u-A*m-u*p-y*P;return f>-.001&&f<.001}function i(p,P,y,m,A,u,f,d,b){if(y===0&&u===0&&b===0)return t(p,P,m,A,f,d);var C=e.sqrt(e.pow(m-p,2)+e.pow(A-P,2)+e.pow(u-y,2)),x=e.sqrt(e.pow(f-p,2)+e.pow(d-P,2)+e.pow(b-y,2)),M=e.sqrt(e.pow(f-m,2)+e.pow(d-A,2)+e.pow(b-u,2)),k;return C>x?C>M?k=C-x-M:k=M-x-C:M>x?k=M-x-C:k=x-C-M,k>-1e-4&&k<1e-4}var r=function(){return function(p,P,y,m){var A=getDefaultCurveSegments(),u,f,d,b,C,x=0,M,k=[],I=[],N=bezierLengthPool.newElement();for(d=y.length,u=0;u<A;u+=1){for(C=u/(A-1),M=0,f=0;f<d;f+=1)b=bmPow(1-C,3)*p[f]+3*bmPow(1-C,2)*C*y[f]+3*(1-C)*bmPow(C,2)*m[f]+bmPow(C,3)*P[f],k[f]=b,I[f]!==null&&(M+=bmPow(k[f]-I[f],2)),I[f]=k[f];M&&(M=bmSqrt(M),x+=M),N.percents[u]=C,N.lengths[u]=x}return N.addedLength=x,N}}();function s(p){var P=segmentsLengthPool.newElement(),y=p.c,m=p.v,A=p.o,u=p.i,f,d=p._length,b=P.lengths,C=0;for(f=0;f<d-1;f+=1)b[f]=r(m[f],m[f+1],A[f],u[f+1]),C+=b[f].addedLength;return y&&d&&(b[f]=r(m[f],m[0],A[f],u[0]),C+=b[f].addedLength),P.totalLength=C,P}function n(p){this.segmentLength=0,this.points=new Array(p)}function a(p,P){this.partialLength=p,this.point=P}var o=function(){var p={};return function(P,y,m,A){var u=(P[0]+"_"+P[1]+"_"+y[0]+"_"+y[1]+"_"+m[0]+"_"+m[1]+"_"+A[0]+"_"+A[1]).replace(/\./g,"p");if(!p[u]){var f=getDefaultCurveSegments(),d,b,C,x,M,k=0,I,N,B=null;P.length===2&&(P[0]!==y[0]||P[1]!==y[1])&&t(P[0],P[1],y[0],y[1],P[0]+m[0],P[1]+m[1])&&t(P[0],P[1],y[0],y[1],y[0]+A[0],y[1]+A[1])&&(f=2);var D=new n(f);for(C=m.length,d=0;d<f;d+=1){for(N=createSizedArray(C),M=d/(f-1),I=0,b=0;b<C;b+=1)x=bmPow(1-M,3)*P[b]+3*bmPow(1-M,2)*M*(P[b]+m[b])+3*(1-M)*bmPow(M,2)*(y[b]+A[b])+bmPow(M,3)*y[b],N[b]=x,B!==null&&(I+=bmPow(N[b]-B[b],2));I=bmSqrt(I),k+=I,D.points[d]=new a(I,N),B=N}D.segmentLength=k,p[u]=D}return p[u]}}();function l(p,P){var y=P.percents,m=P.lengths,A=y.length,u=bmFloor((A-1)*p),f=p*P.addedLength,d=0;if(u===A-1||u===0||f===m[u])return y[u];for(var b=m[u]>f?-1:1,C=!0;C;)if(m[u]<=f&&m[u+1]>f?(d=(f-m[u])/(m[u+1]-m[u]),C=!1):u+=b,u<0||u>=A-1){if(u===A-1)return y[u];C=!1}return y[u]+(y[u+1]-y[u])*d}function c(p,P,y,m,A,u){var f=l(A,u),d=1-f,b=e.round((d*d*d*p[0]+(f*d*d+d*f*d+d*d*f)*y[0]+(f*f*d+d*f*f+f*d*f)*m[0]+f*f*f*P[0])*1e3)/1e3,C=e.round((d*d*d*p[1]+(f*d*d+d*f*d+d*d*f)*y[1]+(f*f*d+d*f*f+f*d*f)*m[1]+f*f*f*P[1])*1e3)/1e3;return[b,C]}var g=createTypedArray("float32",8);function S(p,P,y,m,A,u,f){A<0?A=0:A>1&&(A=1);var d=l(A,f);u=u>1?1:u;var b=l(u,f),C,x=p.length,M=1-d,k=1-b,I=M*M*M,N=d*M*M*3,B=d*d*M*3,D=d*d*d,$=M*M*k,O=d*M*k+M*d*k+M*M*b,R=d*d*k+M*d*b+d*M*b,_=d*d*b,F=M*k*k,E=d*k*k+M*b*k+M*k*b,T=d*b*k+M*b*b+d*k*b,L=d*b*b,V=k*k*k,G=b*k*k+k*b*k+k*k*b,H=b*b*k+k*b*b+b*k*b,z=b*b*b;for(C=0;C<x;C+=1)g[C*4]=e.round((I*p[C]+N*y[C]+B*m[C]+D*P[C])*1e3)/1e3,g[C*4+1]=e.round(($*p[C]+O*y[C]+R*m[C]+_*P[C])*1e3)/1e3,g[C*4+2]=e.round((F*p[C]+E*y[C]+T*m[C]+L*P[C])*1e3)/1e3,g[C*4+3]=e.round((V*p[C]+G*y[C]+H*m[C]+z*P[C])*1e3)/1e3;return g}return{getSegmentsLength:s,getNewSegment:S,getPointInSegment:c,buildBezierData:o,pointOnLine2D:t,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var i=this.offsetTime,r;this.propType==="multidimensional"&&(r=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,n=s,a=this.keyframes.length-1,o=!0,l,c,g;o;){if(l=this.keyframes[n],c=this.keyframes[n+1],n===a-1&&e>=c.t-i){l.h&&(l=c),s=0;break}if(c.t-i>e){s=n;break}n<a-1?n+=1:(s=0,o=!1)}g=this.keyframesMetadata[n]||{};var S,p,P,y,m,A,u=c.t-i,f=l.t-i,d;if(l.to){g.bezierData||(g.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var b=g.bezierData;if(e>=u||e<f){var C=e>=u?b.points.length-1:0;for(p=b.points[C].point.length,S=0;S<p;S+=1)r[S]=b.points[C].point[S]}else{g.__fnct?A=g.__fnct:(A=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,g.__fnct=A),P=A((e-f)/(u-f));var x=b.segmentLength*P,M,k=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastAddedLength:0;for(m=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastPoint:0,o=!0,y=b.points.length;o;){if(k+=b.points[m].partialLength,x===0||P===0||m===b.points.length-1){for(p=b.points[m].point.length,S=0;S<p;S+=1)r[S]=b.points[m].point[S];break}else if(x>=k&&x<k+b.points[m+1].partialLength){for(M=(x-k)/b.points[m+1].partialLength,p=b.points[m].point.length,S=0;S<p;S+=1)r[S]=b.points[m].point[S]+(b.points[m+1].point[S]-b.points[m].point[S])*M;break}m<y-1?m+=1:o=!1}t._lastPoint=m,t._lastAddedLength=k-b.points[m].partialLength,t._lastKeyframeIndex=n}}else{var I,N,B,D,$;if(a=l.s.length,d=c.s||l.e,this.sh&&l.h!==1)if(e>=u)r[0]=d[0],r[1]=d[1],r[2]=d[2];else if(e<=f)r[0]=l.s[0],r[1]=l.s[1],r[2]=l.s[2];else{var O=createQuaternion(l.s),R=createQuaternion(d),_=(e-f)/(u-f);quaternionToEuler(r,slerp(O,R,_))}else for(n=0;n<a;n+=1)l.h!==1&&(e>=u?P=1:e<f?P=0:(l.o.x.constructor===Array?(g.__fnct||(g.__fnct=[]),g.__fnct[n]?A=g.__fnct[n]:(I=l.o.x[n]===void 0?l.o.x[0]:l.o.x[n],N=l.o.y[n]===void 0?l.o.y[0]:l.o.y[n],B=l.i.x[n]===void 0?l.i.x[0]:l.i.x[n],D=l.i.y[n]===void 0?l.i.y[0]:l.i.y[n],A=BezierFactory.getBezierEasing(I,N,B,D).get,g.__fnct[n]=A)):g.__fnct?A=g.__fnct:(I=l.o.x,N=l.o.y,B=l.i.x,D=l.i.y,A=BezierFactory.getBezierEasing(I,N,B,D).get,l.keyframeMetadata=A),P=A((e-f)/(u-f)))),d=c.s||l.e,$=l.h===1?l.s[n]:l.s[n]+(d[n]-l.s[n])*P,this.propType==="multidimensional"?r[n]=$:r=$}return t.lastIndex=s,r}function slerp(e,t,i){var r=[],s=e[0],n=e[1],a=e[2],o=e[3],l=t[0],c=t[1],g=t[2],S=t[3],p,P,y,m,A;return P=s*l+n*c+a*g+o*S,P<0&&(P=-P,l=-l,c=-c,g=-g,S=-S),1-P>1e-6?(p=Math.acos(P),y=Math.sin(p),m=Math.sin((1-i)*p)/y,A=Math.sin(i*p)/y):(m=1-i,A=i),r[0]=m*s+A*l,r[1]=m*n+A*c,r[2]=m*a+A*g,r[3]=m*o+A*S,r}function quaternionToEuler(e,t){var i=t[0],r=t[1],s=t[2],n=t[3],a=Math.atan2(2*r*n-2*i*s,1-2*r*r-2*s*s),o=Math.asin(2*i*r+2*s*n),l=Math.atan2(2*i*n-2*r*s,1-2*i*i-2*s*s);e[0]=a/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,i=e[1]*degToRads,r=e[2]*degToRads,s=Math.cos(t/2),n=Math.cos(i/2),a=Math.cos(r/2),o=Math.sin(t/2),l=Math.sin(i/2),c=Math.sin(r/2),g=s*n*a-o*l*c,S=o*l*a+s*n*c,p=o*n*a+s*l*c,P=s*l*a-o*n*c;return[S,p,P,g]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)t=e[i]*this.mult,mathAbs(this.v[i]-t)>1e-5&&(this.v[i]=t,this._mdf=!0),i+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,i,r){this.propType="unidimensional",this.mult=i||1,this.data=t,this.v=i?t.k*i:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,i,r){this.propType="multidimensional",this.mult=i||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),s=0;s<n;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,i,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=i||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,i,r){this.propType="multidimensional";var s,n=t.k.length,a,o,l,c;for(s=0;s<n-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(a=t.k[s].s,o=t.k[s+1].s,l=t.k[s].to,c=t.k[s].ti,(a.length===2&&!(a[0]===o[0]&&a[1]===o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+l[0],a[1]+l[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+c[0],o[1]+c[1])||a.length===3&&!(a[0]===o[0]&&a[1]===o[1]&&a[2]===o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+l[0],a[1]+l[1],a[2]+l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+c[0],o[1]+c[1],o[2]+c[2]))&&(t.k[s].to=null,t.k[s].ti=null),a[0]===o[0]&&a[1]===o[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(a.length===2||a[2]===o[2]&&l[2]===0&&c[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var g=t.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),s=0;s<g;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,r,s,n,a){r.sid&&(r=i.globalData.slotManager.getProp(r));var o;if(!r.k.length)o=new ValueProperty(i,r,n,a);else if(typeof r.k[0]=="number")o=new MultiDimensionalProperty(i,r,n,a);else switch(s){case 0:o=new KeyframedValueProperty(i,r,n,a);break;case 1:o=new KeyframedMultidimensionalProperty(i,r,n,a);break}return o.effectsSequence.length&&a.addDynamicProperty(o),o}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var i=0;i<t;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,i,r,s){var n;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[];break}(!n[r]||n[r]&&!s)&&(n[r]=pointPool.newElement()),n[r][0]=e,n[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,i,r,s,n,a,o){this.setXYAt(e,t,"v",a,o),this.setXYAt(i,r,"o",a,o),this.setXYAt(s,n,"i",a,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,i=this.o,r=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var n=this._length-1,a=this._length,o;for(o=s;o<a;o+=1)e.setTripleAt(t[n][0],t[n][1],r[n][0],r[n][1],i[n][0],i[n][1],o,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(s){var n=s._length,a;for(a=0;a<n;a+=1)pointPool.release(s.v[a]),pointPool.release(s.i[a]),pointPool.release(s.o[a]),s.v[a]=null,s.i[a]=null,s.o[a]=null;s._length=0,s.c=!1}function i(s){var n=r.newElement(),a,o=s._length===void 0?s.v.length:s._length;for(n.setLength(o),n.c=s.c,a=0;a<o;a+=1)n.setTripleAt(s.v[a][0],s.v[a][1],s.o[a][0],s.o[a][1],s.i[a][0],s.i[a][1],a);return n}var r=poolFactory(4,e,t);return r.clone=i,r}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:s,release:n},t=0,i=4,r=createSizedArray(i);function s(){var a;return t?(t-=1,a=r[t]):a=new ShapeCollection,a}function n(a){var o,l=a._length;for(o=0;o<l;o+=1)shapePool.release(a.shapes[o]);a._length=0,t===i&&(r=pooling.double(r),i*=2),r[t]=a,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(u,f,d){var b=d.lastIndex,C,x,M,k,I,N,B,D,$,O=this.keyframes;if(u<O[0].t-this.offsetTime)C=O[0].s[0],M=!0,b=0;else if(u>=O[O.length-1].t-this.offsetTime)C=O[O.length-1].s?O[O.length-1].s[0]:O[O.length-2].e[0],M=!0;else{for(var R=b,_=O.length-1,F=!0,E,T,L;F&&(E=O[R],T=O[R+1],!(T.t-this.offsetTime>u));)R<_-1?R+=1:F=!1;if(L=this.keyframesMetadata[R]||{},M=E.h===1,b=R,!M){if(u>=T.t-this.offsetTime)D=1;else if(u<E.t-this.offsetTime)D=0;else{var V;L.__fnct?V=L.__fnct:(V=BezierFactory.getBezierEasing(E.o.x,E.o.y,E.i.x,E.i.y).get,L.__fnct=V),D=V((u-(E.t-this.offsetTime))/(T.t-this.offsetTime-(E.t-this.offsetTime)))}x=T.s?T.s[0]:E.e[0]}C=E.s[0]}for(N=f._length,B=C.i[0].length,d.lastIndex=b,k=0;k<N;k+=1)for(I=0;I<B;I+=1)$=M?C.i[k][I]:C.i[k][I]+(x.i[k][I]-C.i[k][I])*D,f.i[k][I]=$,$=M?C.o[k][I]:C.o[k][I]+(x.o[k][I]-C.o[k][I])*D,f.o[k][I]=$,$=M?C.v[k][I]:C.v[k][I]+(x.v[k][I]-C.v[k][I])*D,f.v[k][I]=$}function i(){var u=this.comp.renderedFrame-this.offsetTime,f=this.keyframes[0].t-this.offsetTime,d=this.keyframes[this.keyframes.length-1].t-this.offsetTime,b=this._caching.lastFrame;return b!==e&&(b<f&&u<f||b>d&&u>d)||(this._caching.lastIndex=b<u?this._caching.lastIndex:0,this.interpolateShape(u,this.pv,this._caching)),this._caching.lastFrame=u,this.pv}function r(){this.paths=this.localShapeCollection}function s(u,f){if(u._length!==f._length||u.c!==f.c)return!1;var d,b=u._length;for(d=0;d<b;d+=1)if(u.v[d][0]!==f.v[d][0]||u.v[d][1]!==f.v[d][1]||u.o[d][0]!==f.o[d][0]||u.o[d][1]!==f.o[d][1]||u.i[d][0]!==f.i[d][0]||u.i[d][1]!==f.i[d][1])return!1;return!0}function n(u){s(this.v,u)||(this.v=shapePool.clone(u),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var u;this.kf?u=this.pv:this.data.ks?u=this.data.ks.k:u=this.data.pt.k;var f,d=this.effectsSequence.length;for(f=0;f<d;f+=1)u=this.effectsSequence[f](u);this.setVValue(u),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(u,f,d){this.propType="shape",this.comp=u.comp,this.container=u,this.elem=u,this.data=f,this.k=!1,this.kf=!1,this._mdf=!1;var b=d===3?f.pt.k:f.ks.k;this.v=shapePool.clone(b),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(u){this.effectsSequence.push(u),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=t,o.prototype.getValue=a,o.prototype.setVValue=n,o.prototype.addEffect=l;function c(u,f,d){this.propType="shape",this.comp=u.comp,this.elem=u,this.container=u,this.offsetTime=u.data.st,this.keyframes=d===3?f.pt.k:f.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var b=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,b),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}c.prototype.getValue=a,c.prototype.interpolateShape=t,c.prototype.setVValue=n,c.prototype.addEffect=l;var g=function(){var u=roundCorner;function f(d,b){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=b.d,this.elem=d,this.comp=d.comp,this.frameId=-1,this.initDynamicPropertyContainer(d),this.p=PropertyFactory.getProp(d,b.p,1,0,this),this.s=PropertyFactory.getProp(d,b.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return f.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var b=this.p.v[0],C=this.p.v[1],x=this.s.v[0]/2,M=this.s.v[1]/2,k=this.d!==3,I=this.v;I.v[0][0]=b,I.v[0][1]=C-M,I.v[1][0]=k?b+x:b-x,I.v[1][1]=C,I.v[2][0]=b,I.v[2][1]=C+M,I.v[3][0]=k?b-x:b+x,I.v[3][1]=C,I.i[0][0]=k?b-x*u:b+x*u,I.i[0][1]=C-M,I.i[1][0]=k?b+x:b-x,I.i[1][1]=C-M*u,I.i[2][0]=k?b+x*u:b-x*u,I.i[2][1]=C+M,I.i[3][0]=k?b-x:b+x,I.i[3][1]=C+M*u,I.o[0][0]=k?b+x*u:b-x*u,I.o[0][1]=C-M,I.o[1][0]=k?b+x:b-x,I.o[1][1]=C+M*u,I.o[2][0]=k?b-x*u:b+x*u,I.o[2][1]=C+M,I.o[3][0]=k?b-x:b+x,I.o[3][1]=C-M*u}},extendPrototype([DynamicPropertyContainer],f),f}(),S=function(){function u(f,d){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=f,this.comp=f.comp,this.data=d,this.frameId=-1,this.d=d.d,this.initDynamicPropertyContainer(f),d.sy===1?(this.ir=PropertyFactory.getProp(f,d.ir,0,0,this),this.is=PropertyFactory.getProp(f,d.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(f,d.pt,0,0,this),this.p=PropertyFactory.getProp(f,d.p,1,0,this),this.r=PropertyFactory.getProp(f,d.r,0,degToRads,this),this.or=PropertyFactory.getProp(f,d.or,0,0,this),this.os=PropertyFactory.getProp(f,d.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 u.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var d=Math.floor(this.pt.v)*2,b=Math.PI*2/d,C=!0,x=this.or.v,M=this.ir.v,k=this.os.v,I=this.is.v,N=2*Math.PI*x/(d*2),B=2*Math.PI*M/(d*2),D,$,O,R,_=-Math.PI/2;_+=this.r.v;var F=this.data.d===3?-1:1;for(this.v._length=0,D=0;D<d;D+=1){$=C?x:M,O=C?k:I,R=C?N:B;var E=$*Math.cos(_),T=$*Math.sin(_),L=E===0&&T===0?0:T/Math.sqrt(E*E+T*T),V=E===0&&T===0?0:-E/Math.sqrt(E*E+T*T);E+=+this.p.v[0],T+=+this.p.v[1],this.v.setTripleAt(E,T,E-L*R*O*F,T-V*R*O*F,E+L*R*O*F,T+V*R*O*F,D,!0),C=!C,_+=b*F}},convertPolygonToPath:function(){var d=Math.floor(this.pt.v),b=Math.PI*2/d,C=this.or.v,x=this.os.v,M=2*Math.PI*C/(d*4),k,I=-Math.PI*.5,N=this.data.d===3?-1:1;for(I+=this.r.v,this.v._length=0,k=0;k<d;k+=1){var B=C*Math.cos(I),D=C*Math.sin(I),$=B===0&&D===0?0:D/Math.sqrt(B*B+D*D),O=B===0&&D===0?0:-B/Math.sqrt(B*B+D*D);B+=+this.p.v[0],D+=+this.p.v[1],this.v.setTripleAt(B,D,B-$*M*x*N,D-O*M*x*N,B+$*M*x*N,D+O*M*x*N,k,!0),I+=b*N}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],u),u}(),p=function(){function u(f,d){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=f,this.comp=f.comp,this.frameId=-1,this.d=d.d,this.initDynamicPropertyContainer(f),this.p=PropertyFactory.getProp(f,d.p,1,0,this),this.s=PropertyFactory.getProp(f,d.s,1,0,this),this.r=PropertyFactory.getProp(f,d.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return u.prototype={convertRectToPath:function(){var d=this.p.v[0],b=this.p.v[1],C=this.s.v[0]/2,x=this.s.v[1]/2,M=bmMin(C,x,this.r.v),k=M*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(d+C,b-x+M,d+C,b-x+M,d+C,b-x+k,0,!0),this.v.setTripleAt(d+C,b+x-M,d+C,b+x-k,d+C,b+x-M,1,!0),M!==0?(this.v.setTripleAt(d+C-M,b+x,d+C-M,b+x,d+C-k,b+x,2,!0),this.v.setTripleAt(d-C+M,b+x,d-C+k,b+x,d-C+M,b+x,3,!0),this.v.setTripleAt(d-C,b+x-M,d-C,b+x-M,d-C,b+x-k,4,!0),this.v.setTripleAt(d-C,b-x+M,d-C,b-x+k,d-C,b-x+M,5,!0),this.v.setTripleAt(d-C+M,b-x,d-C+M,b-x,d-C+k,b-x,6,!0),this.v.setTripleAt(d+C-M,b-x,d+C-k,b-x,d+C-M,b-x,7,!0)):(this.v.setTripleAt(d-C,b+x,d-C+k,b+x,d-C,b+x,2),this.v.setTripleAt(d-C,b-x,d-C,b-x+k,d-C,b-x,3))):(this.v.setTripleAt(d+C,b-x+M,d+C,b-x+k,d+C,b-x+M,0,!0),M!==0?(this.v.setTripleAt(d+C-M,b-x,d+C-M,b-x,d+C-k,b-x,1,!0),this.v.setTripleAt(d-C+M,b-x,d-C+k,b-x,d-C+M,b-x,2,!0),this.v.setTripleAt(d-C,b-x+M,d-C,b-x+M,d-C,b-x+k,3,!0),this.v.setTripleAt(d-C,b+x-M,d-C,b+x-k,d-C,b+x-M,4,!0),this.v.setTripleAt(d-C+M,b+x,d-C+M,b+x,d-C+k,b+x,5,!0),this.v.setTripleAt(d+C-M,b+x,d+C-k,b+x,d+C-M,b+x,6,!0),this.v.setTripleAt(d+C,b+x-M,d+C,b+x-M,d+C,b+x-k,7,!0)):(this.v.setTripleAt(d-C,b-x,d-C+k,b-x,d-C,b-x,1,!0),this.v.setTripleAt(d-C,b+x,d-C,b+x-k,d-C,b+x,2,!0),this.v.setTripleAt(d+C,b+x,d+C-k,b+x,d+C,b+x,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],u),u}();function P(u,f,d){var b;if(d===3||d===4){var C=d===3?f.pt:f.ks,x=C.k;x.length?b=new c(u,f,d):b=new o(u,f,d)}else d===5?b=new p(u,f):d===6?b=new g(u,f):d===7&&(b=new S(u,f));return b.k&&u.addDynamicProperty(b),b}function y(){return o}function m(){return c}var A={};return A.getShapeProp=P,A.getConstructorFunction=y,A.getKeyframedConstructorFunction=m,A}();/*!
  31. Transformation Matrix v2.0
  32. (c) Epistemex 2014-2015
  33. www.epistemex.com
  34. By Ken Fyrstenberg
  35. Contributions by leeoniya.
  36. License: MIT, header required.
  37. */var Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,r=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(E){if(E===0)return this;var T=e(E),L=t(E);return this._t(T,-L,0,0,L,T,0,0,0,0,1,0,0,0,0,1)}function a(E){if(E===0)return this;var T=e(E),L=t(E);return this._t(1,0,0,0,0,T,-L,0,0,L,T,0,0,0,0,1)}function o(E){if(E===0)return this;var T=e(E),L=t(E);return this._t(T,0,L,0,0,1,0,0,-L,0,T,0,0,0,0,1)}function l(E){if(E===0)return this;var T=e(E),L=t(E);return this._t(T,-L,0,0,L,T,0,0,0,0,1,0,0,0,0,1)}function c(E,T){return this._t(1,T,E,1,0,0)}function g(E,T){return this.shear(i(E),i(T))}function S(E,T){var L=e(T),V=t(T);return this._t(L,V,0,0,-V,L,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(E),1,0,0,0,0,1,0,0,0,0,1)._t(L,-V,0,0,V,L,0,0,0,0,1,0,0,0,0,1)}function p(E,T,L){return!L&&L!==0&&(L=1),E===1&&T===1&&L===1?this:this._t(E,0,0,0,0,T,0,0,0,0,L,0,0,0,0,1)}function P(E,T,L,V,G,H,z,q,W,X,K,ie,J,Y,Q,U){return this.props[0]=E,this.props[1]=T,this.props[2]=L,this.props[3]=V,this.props[4]=G,this.props[5]=H,this.props[6]=z,this.props[7]=q,this.props[8]=W,this.props[9]=X,this.props[10]=K,this.props[11]=ie,this.props[12]=J,this.props[13]=Y,this.props[14]=Q,this.props[15]=U,this}function y(E,T,L){return L=L||0,E!==0||T!==0||L!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,E,T,L,1):this}function m(E,T,L,V,G,H,z,q,W,X,K,ie,J,Y,Q,U){var j=this.props;if(E===1&&T===0&&L===0&&V===0&&G===0&&H===1&&z===0&&q===0&&W===0&&X===0&&K===1&&ie===0)return j[12]=j[12]*E+j[15]*J,j[13]=j[13]*H+j[15]*Y,j[14]=j[14]*K+j[15]*Q,j[15]*=U,this._identityCalculated=!1,this;var se=j[0],le=j[1],ne=j[2],re=j[3],ae=j[4],oe=j[5],Z=j[6],he=j[7],ce=j[8],ee=j[9],pe=j[10],te=j[11],ue=j[12],fe=j[13],de=j[14],me=j[15];return j[0]=se*E+le*G+ne*W+re*J,j[1]=se*T+le*H+ne*X+re*Y,j[2]=se*L+le*z+ne*K+re*Q,j[3]=se*V+le*q+ne*ie+re*U,j[4]=ae*E+oe*G+Z*W+he*J,j[5]=ae*T+oe*H+Z*X+he*Y,j[6]=ae*L+oe*z+Z*K+he*Q,j[7]=ae*V+oe*q+Z*ie+he*U,j[8]=ce*E+ee*G+pe*W+te*J,j[9]=ce*T+ee*H+pe*X+te*Y,j[10]=ce*L+ee*z+pe*K+te*Q,j[11]=ce*V+ee*q+pe*ie+te*U,j[12]=ue*E+fe*G+de*W+me*J,j[13]=ue*T+fe*H+de*X+me*Y,j[14]=ue*L+fe*z+de*K+me*Q,j[15]=ue*V+fe*q+de*ie+me*U,this._identityCalculated=!1,this}function A(E){var T=E.props;return this.transform(T[0],T[1],T[2],T[3],T[4],T[5],T[6],T[7],T[8],T[9],T[10],T[11],T[12],T[13],T[14],T[15])}function u(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function f(E){for(var T=0;T<16;){if(E.props[T]!==this.props[T])return!1;T+=1}return!0}function d(E){var T;for(T=0;T<16;T+=1)E.props[T]=this.props[T];return E}function b(E){var T;for(T=0;T<16;T+=1)this.props[T]=E[T]}function C(E,T,L){return{x:E*this.props[0]+T*this.props[4]+L*this.props[8]+this.props[12],y:E*this.props[1]+T*this.props[5]+L*this.props[9]+this.props[13],z:E*this.props[2]+T*this.props[6]+L*this.props[10]+this.props[14]}}function x(E,T,L){return E*this.props[0]+T*this.props[4]+L*this.props[8]+this.props[12]}function M(E,T,L){return E*this.props[1]+T*this.props[5]+L*this.props[9]+this.props[13]}function k(E,T,L){return E*this.props[2]+T*this.props[6]+L*this.props[10]+this.props[14]}function I(){var E=this.props[0]*this.props[5]-this.props[1]*this.props[4],T=this.props[5]/E,L=-this.props[1]/E,V=-this.props[4]/E,G=this.props[0]/E,H=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/E,z=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/E,q=new Matrix;return q.props[0]=T,q.props[1]=L,q.props[4]=V,q.props[5]=G,q.props[12]=H,q.props[13]=z,q}function N(E){var T=this.getInverseMatrix();return T.applyToPointArray(E[0],E[1],E[2]||0)}function B(E){var T,L=E.length,V=[];for(T=0;T<L;T+=1)V[T]=N(E[T]);return V}function D(E,T,L){var V=createTypedArray("float32",6);if(this.isIdentity())V[0]=E[0],V[1]=E[1],V[2]=T[0],V[3]=T[1],V[4]=L[0],V[5]=L[1];else{var G=this.props[0],H=this.props[1],z=this.props[4],q=this.props[5],W=this.props[12],X=this.props[13];V[0]=E[0]*G+E[1]*z+W,V[1]=E[0]*H+E[1]*q+X,V[2]=T[0]*G+T[1]*z+W,V[3]=T[0]*H+T[1]*q+X,V[4]=L[0]*G+L[1]*z+W,V[5]=L[0]*H+L[1]*q+X}return V}function $(E,T,L){var V;return this.isIdentity()?V=[E,T,L]:V=[E*this.props[0]+T*this.props[4]+L*this.props[8]+this.props[12],E*this.props[1]+T*this.props[5]+L*this.props[9]+this.props[13],E*this.props[2]+T*this.props[6]+L*this.props[10]+this.props[14]],V}function O(E,T){if(this.isIdentity())return E+","+T;var L=this.props;return Math.round((E*L[0]+T*L[4]+L[12])*100)/100+","+Math.round((E*L[1]+T*L[5]+L[13])*100)/100}function R(){for(var E=0,T=this.props,L="matrix3d(",V=1e4;E<16;)L+=r(T[E]*V)/V,L+=E===15?")":",",E+=1;return L}function _(E){var T=1e4;return E<1e-6&&E>0||E>-1e-6&&E<0?r(E*T)/T:E}function F(){var E=this.props,T=_(E[0]),L=_(E[1]),V=_(E[4]),G=_(E[5]),H=_(E[12]),z=_(E[13]);return"matrix("+T+","+L+","+V+","+G+","+H+","+z+")"}return function(){this.reset=s,this.rotate=n,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=g,this.skewFromAxis=S,this.shear=c,this.scale=p,this.setTransform=P,this.translate=y,this.transform=m,this.multiply=A,this.applyToPoint=C,this.applyToX=x,this.applyToY=M,this.applyToZ=k,this.applyToPointArray=$,this.applyToTriplePoints=D,this.applyToPointStringified=O,this.toCSS=R,this.to2dCSS=F,this.clone=d,this.cloneFromProps=b,this.equals=f,this.inversePoints=B,this.inversePoint=N,this.getInverseMatrix=I,this._t=this.transform,this.isIdentity=u,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(i){return typeof i}:_typeof$3=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var r=t[i].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=i,e.getModifier=r;function i(s,n){t[s]||(t[s]=n)}function r(s,n,a){return new t[s](n,a)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,r,s){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a=[],o,l=n.length,c;for(o=0;o<l;o+=1)if(c=n[o],!(c.e*s<r||c.s*s>r+i)){var g,S;c.s*s<=r?g=0:g=(c.s*s-r)/i,c.e*s>=r+i?S=1:S=(c.e*s-r)/i,a.push([g,S])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i;if(this._mdf||e){var r=this.o.v%360/360;if(r<0&&(r+=1),this.s.v>1?t=1+r:this.s.v<0?t=0+r:t=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,t>i){var s=t;t=i,i=s}t=Math.round(t*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var n,a,o=this.shapes.length,l,c,g,S,p,P=0;if(i===t)for(a=0;a<o;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(i===1&&t===0||i===0&&t===1){if(this._mdf)for(a=0;a<o;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var y=[],m,A;for(a=0;a<o;a+=1)if(m=this.shapes[a],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(n=m.shape.paths,c=n._length,p=0,!m.shape._mdf&&m.pathsData.length)p=m.totalShapeLength;else{for(g=this.releasePathsData(m.pathsData),l=0;l<c;l+=1)S=bez.getSegmentsLength(n.shapes[l]),g.push(S),p+=S.totalLength;m.totalShapeLength=p,m.pathsData=g}P+=p,m.shape._mdf=!0}var u=t,f=i,d=0,b;for(a=o-1;a>=0;a-=1)if(m=this.shapes[a],m.shape._mdf){for(A=m.localShapeCollection,A.releaseShapes(),this.m===2&&o>1?(b=this.calculateShapeEdges(t,i,m.totalShapeLength,d,P),d+=m.totalShapeLength):b=[[u,f]],c=b.length,l=0;l<c;l+=1){u=b[l][0],f=b[l][1],y.length=0,f<=1?y.push({s:m.totalShapeLength*u,e:m.totalShapeLength*f}):u>=1?y.push({s:m.totalShapeLength*(u-1),e:m.totalShapeLength*(f-1)}):(y.push({s:m.totalShapeLength*u,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(f-1)}));var C=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1){var x=m.shape.paths.shapes[m.shape.paths._length-1];if(x.c){var M=C.pop();this.addPaths(C,A),C=this.addShapes(m,y[1],M)}else this.addPaths(C,A),C=this.addShapes(m,y[1])}this.addPaths(C,A)}}m.shape.paths=A}}},TrimModifier.prototype.addPaths=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,r,s,n,a){s.setXYAt(t[0],t[1],"o",n),s.setXYAt(i[0],i[1],"i",n+1),a&&s.setXYAt(e[0],e[1],"v",n),s.setXYAt(r[0],r[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,r){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),r&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var r=e.pathsData,s=e.shape.paths.shapes,n,a=e.shape.paths._length,o,l,c=0,g,S,p,P,y=[],m,A=!0;for(i?(S=i._length,m=i._length):(i=shapePool.newElement(),S=0,m=0),y.push(i),n=0;n<a;n+=1){for(p=r[n].lengths,i.c=s[n].c,l=s[n].c?p.length:p.length+1,o=1;o<l;o+=1)if(g=p[o-1],c+g.addedLength<t.s)c+=g.addedLength,i.c=!1;else if(c>t.e){i.c=!1;break}else t.s<=c&&t.e>=c+g.addedLength?(this.addSegment(s[n].v[o-1],s[n].o[o-1],s[n].i[o],s[n].v[o],i,S,A),A=!1):(P=bez.getNewSegment(s[n].v[o-1],s[n].v[o],s[n].o[o-1],s[n].i[o],(t.s-c)/g.addedLength,(t.e-c)/g.addedLength,p[o-1]),this.addSegmentFromArray(P,i,S,A),A=!1,i.c=!1),c+=g.addedLength,S+=1;if(s[n].c&&p.length){if(g=p[o-1],c<=t.e){var u=p[o-1].addedLength;t.s<=c&&t.e>=c+u?(this.addSegment(s[n].v[o-1],s[n].o[o-1],s[n].i[0],s[n].v[0],i,S,A),A=!1):(P=bez.getNewSegment(s[n].v[o-1],s[n].v[0],s[n].o[o-1],s[n].i[0],(t.s-c)/u,(t.e-c)/u,p[o-1]),this.addSegmentFromArray(P,i,S,A),A=!1,i.c=!1)}else i.c=!1;c+=g.addedLength,S+=1}if(i._length&&(i.setXYAt(i.v[m][0],i.v[m][1],"i",m),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),c>t.e)break;n<a-1&&(i=shapePool.newElement(),A=!0,y.push(i),S=0)}return y};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var i=t/100,r=[0,0],s=e._length,n=0;for(n=0;n<s;n+=1)r[0]+=e.v[n][0],r[1]+=e.v[n][1];r[0]/=s,r[1]/=s;var a=shapePool.newElement();a.c=e.c;var o,l,c,g,S,p;for(n=0;n<s;n+=1)o=e.v[n][0]+(r[0]-e.v[n][0])*i,l=e.v[n][1]+(r[1]-e.v[n][1])*i,c=e.o[n][0]+(r[0]-e.o[n][0])*-i,g=e.o[n][1]+(r[1]-e.o[n][1])*-i,S=e.i[n][0]+(r[0]-e.i[n][0])*-i,p=e.i[n][1]+(r[1]-e.i[n][1])*-i,a.setTripleAt(o,l,c,g,S,p,n);return a},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,r=this.shapes.length,s,n,a=this.amount.v;if(a!==0){var o,l;for(i=0;i<r;i+=1){if(o=this.shapes[i],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,s=0;s<n;s+=1)l.addShape(this.processPath(t[s],a));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var c;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 g,S;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(g=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),S=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),S=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(g=this.p.pv,S=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],S=[];var p=this.px,P=this.py;p._caching.lastFrame+p.offsetTime<=p.keyframes[0].t?(g[0]=p.getValueAtTime((p.keyframes[0].t+.01)/c,0),g[1]=P.getValueAtTime((P.keyframes[0].t+.01)/c,0),S[0]=p.getValueAtTime(p.keyframes[0].t/c,0),S[1]=P.getValueAtTime(P.keyframes[0].t/c,0)):p._caching.lastFrame+p.offsetTime>=p.keyframes[p.keyframes.length-1].t?(g[0]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/c,0),g[1]=P.getValueAtTime(P.keyframes[P.keyframes.length-1].t/c,0),S[0]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-.01)/c,0),S[1]=P.getValueAtTime((P.keyframes[P.keyframes.length-1].t-.01)/c,0)):(g=[p.pv,P.pv],S[0]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-.01)/c,p.offsetTime),S[1]=P.getValueAtTime((P._caching.lastFrame+P.offsetTime-.01)/c,P.offsetTime))}else S=e,g=S;this.v.rotate(-Math.atan2(g[1]-S[1],g[0]-S[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function n(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function a(l,c,g){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var S,p=c.or.k.length;for(S=0;S<p;S+=1)c.or.k[S].to=null,c.or.k[S].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:t,getValue:i,precalculateMatrix:r,autoOrient:s},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=n,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function o(l,c,g){return new a(l,c,g)}return{getTransformProperty:o}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,i,r,s,n){var a=n?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-s),l=r.s.v[1]+(1-r.s.v[1])*(1-s);e.translate(r.p.v[0]*a*s,r.p.v[1]*a*s,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*s),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(n?1/o:o,n?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,r){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)e[i]._render=t,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,r,s,n,a=!1;if(this._mdf||e){var o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}n=0;var c;for(r=0;r<=this._groups.length-1;r+=1){if(c=n<o,this._groups[r]._render=c,this.changeGroupRender(this._groups[r].it,c),!c){var g=this.elemsData[r].it,S=g[g.length-1];S.transform.op.v!==0?(S.transform.op._mdf=!0,S.transform.op.v=0):S.transform.op._mdf=!1}n+=1}this._currentCopies=o;var p=this.o.v,P=p%1,y=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,A=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var f=0;if(p>0){for(;f<y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),f+=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,P,!1),f+=P)}else if(p<0){for(;f>y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),f-=1;P&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-P,!0),f-=P)}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,n=this._currentCopies;for(var d,b;n;){if(t=this.elemsData[r].it,i=t[t.length-1].transform.mProps.v.props,b=i.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),f!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),d=0;d<b;d+=1)i[d]=this.matrix.props[d];this.matrix.reset()}else for(this.matrix.reset(),d=0;d<b;d+=1)i[d]=this.matrix.props[d];f+=1,n-=1,r+=s}}else for(n=this._currentCopies,r=0,s=1;n;)t=this.elemsData[r].it,i=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,r+=s;return a},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var i=shapePool.newElement();i.c=e.c;var r,s=e._length,n,a,o,l,c,g,S=0,p,P,y,m,A,u;for(r=0;r<s;r+=1)n=e.v[r],o=e.o[r],a=e.i[r],n[0]===o[0]&&n[1]===o[1]&&n[0]===a[0]&&n[1]===a[1]?(r===0||r===s-1)&&!e.c?(i.setTripleAt(n[0],n[1],o[0],o[1],a[0],a[1],S),S+=1):(r===0?l=e.v[s-1]:l=e.v[r-1],c=Math.sqrt(Math.pow(n[0]-l[0],2)+Math.pow(n[1]-l[1],2)),g=c?Math.min(c/2,t)/c:0,A=n[0]+(l[0]-n[0])*g,p=A,u=n[1]-(n[1]-l[1])*g,P=u,y=p-(p-n[0])*roundCorner,m=P-(P-n[1])*roundCorner,i.setTripleAt(p,P,y,m,A,u,S),S+=1,r===s-1?l=e.v[0]:l=e.v[r+1],c=Math.sqrt(Math.pow(n[0]-l[0],2)+Math.pow(n[1]-l[1],2)),g=c?Math.min(c/2,t)/c:0,y=n[0]+(l[0]-n[0])*g,p=y,m=n[1]+(l[1]-n[1])*g,P=m,A=p-(p-n[0])*roundCorner,u=P-(P-n[1])*roundCorner,i.setTripleAt(p,P,y,m,A,u,S),S+=1):(i.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],S),S+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,i,r=this.shapes.length,s,n,a=this.rd.v;if(a!==0){var o,l;for(i=0;i<r;i+=1){if(o=this.shapes[i],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,s=0;s<n;s+=1)l.addShape(this.processPath(t[s],a));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(e===0)return[];var r=t*t-4*e*i;if(r<0)return[];var s=-t/(2*e);if(r===0)return[s];var n=Math.sqrt(r)/(2*e);return[s-n,s+n]}function polynomialCoefficients(e,t,i,r){return[-e+3*t-3*i+r,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,r,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),s&&pointEqual(i,r)&&(i=lerpPoint(e,r,2/3));var n=polynomialCoefficients(e[0],t[0],i[0],r[0]),a=polynomialCoefficients(e[1],t[1],i[1],r[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,i,r]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,i,e),n=lerpPoint(i,r,e),a=lerpPoint(s,n,e);return[new PolynomialBezier(this.points[0],t,s,a,!0),new PolynomialBezier(a,n,r,this.points[3],!0)]};function extrema(e,t){var i=e.points[0][t],r=e.points[e.points.length-1][t];if(i>r){var s=r;r=i,i=s}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var o=e.point(n[a])[t];o<i?i=o:o>r&&(r=o)}return{min:i,max:r}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,i){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+i)/2,t1:t,t2:i}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,i,r,s,n){if(boxIntersect(e,t)){if(i>=n||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r){s.push([e.t,t.t]);return}var a=splitData(e),o=splitData(t);intersectsImpl(a[0],o[0],i+1,r,s,n),intersectsImpl(a[0],o[1],i+1,r,s,n),intersectsImpl(a[1],o[0],i+1,r,s,n),intersectsImpl(a[1],o[1],i+1,r,s,n)}}PolynomialBezier.prototype.intersections=function(e,t,i){t===void 0&&(t=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,i),r},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,i,r){var s=[e[0],e[1],1],n=[t[0],t[1],1],a=[i[0],i[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(s,n),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,i,r,s,n,a){var o=i-Math.PI/2,l=i+Math.PI/2,c=t[0]+Math.cos(i)*r*s,g=t[1]-Math.sin(i)*r*s;e.setTripleAt(c,g,c+Math.cos(o)*n,g-Math.sin(o)*n,c+Math.cos(l)*a,g-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(e,t){var i=t===0?e.length()-1:t-1,r=(t+1)%e.length(),s=e.v[i],n=e.v[r],a=getPerpendicularVector(s,n);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,i,r,s,n,a){var o=getProjectingAngle(t,i),l=t.v[i%t._length],c=t.v[i===0?t._length-1:i-1],g=t.v[(i+1)%t._length],S=n===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=n===2?Math.sqrt(Math.pow(l[0]-g[0],2)+Math.pow(l[1]-g[1],2)):0;setPoint(e,t.v[i%t._length],o,a,r,p/((s+1)*2),S/((s+1)*2))}function zigZagSegment(e,t,i,r,s,n){for(var a=0;a<r;a+=1){var o=(a+1)/(r+1),l=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(o),g=t.point(o);setPoint(e,g,c,n,i,l/((r+1)*2),l/((r+1)*2)),n=-n}return n}ZigZagModifier.prototype.processPath=function(e,t,i,r){var s=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(s-=1),s===0)return n;var a=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,i,r,a);for(var l=0;l<s;l+=1)a=zigZagSegment(n,o,t,i,r,-a),l===s-1&&!e.c?o=null:o=PolynomialBezier.shapeSegment(e,(l+1)%s),zigZagCorner(n,e,l+1,t,i,r,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,i,r=this.shapes.length,s,n,a=this.amplitude.v,o=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(a!==0){var c,g;for(i=0;i<r;i+=1){if(c=this.shapes[i],g=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,n=c.shape.paths._length,s=0;s<n;s+=1)g.addShape(this.processPath(t[s],a,o,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,i){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,i),polarOffset(t,r,i)]}function offsetSegment(e,t){var i,r,s,n,a,o,l;l=linearOffset(e.points[0],e.points[1],t),i=l[0],r=l[1],l=linearOffset(e.points[1],e.points[2],t),s=l[0],n=l[1],l=linearOffset(e.points[2],e.points[3],t),a=l[0],o=l[1];var c=lineIntersection(i,r,s,n);c===null&&(c=r);var g=lineIntersection(a,o,s,n);return g===null&&(g=a),new PolynomialBezier(i,c,g,o)}function joinLines(e,t,i,r,s){var n=t.points[3],a=i.points[0];if(r===3||pointEqual(n,a))return n;if(r===2){var o=-t.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,c=lineIntersection(n,polarOffset(n,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),g=c?pointDistance(c,n):pointDistance(n,a)/2,S=polarOffset(n,o,2*g*roundCorner);return e.setXYAt(S[0],S[1],"o",e.length()-1),S=polarOffset(a,l,2*g*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],S[0],S[1],e.length()),a}var p=pointEqual(n,t.points[2])?t.points[0]:t.points[2],P=pointEqual(a,i.points[1])?i.points[3]:i.points[1],y=lineIntersection(p,n,a,P);return y&&pointDistance(y,n)<s?(e.setTripleAt(y[0],y[1],y[0],y[1],y[0],y[1],e.length()),y):n}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),r=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(i[e.length-1]=e[e.length-1].split(s[0])[0],r[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var i=e.inflectionPoints(),r,s,n,a;if(i.length===0)return[offsetSegment(e,t)];if(i.length===1||floatEqual(i[1],1))return n=e.split(i[0]),r=n[0],s=n[1],[offsetSegment(r,t),offsetSegment(s,t)];n=e.split(i[0]),r=n[0];var o=(i[1]-i[0])/(1-i[0]);return n=n[1].split(o),a=n[0],s=n[1],[offsetSegment(r,t),offsetSegment(a,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,i,r){var s=shapePool.newElement();s.c=e.c;var n=e.length();e.c||(n-=1);var a,o,l,c=[];for(a=0;a<n;a+=1)l=PolynomialBezier.shapeSegment(e,a),c.push(offsetSegmentSplit(l,t));if(!e.c)for(a=n-1;a>=0;a-=1)l=PolynomialBezier.shapeSegmentInverted(e,a),c.push(offsetSegmentSplit(l,t));c=pruneIntersections(c);var g=null,S=null;for(a=0;a<c.length;a+=1){var p=c[a];for(S&&(g=joinLines(s,S,p[0],i,r)),S=p[p.length-1],o=0;o<p.length;o+=1)l=p[o],g&&pointEqual(l.points[0],g)?s.setXYAt(l.points[1][0],l.points[1][1],"o",s.length()-1):s.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],s.length()),s.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],s.length()),g=l.points[3]}return c.length&&joinLines(s,S,c[0][0],i,r),s},OffsetPathModifier.prototype.processShapes=function(e){var t,i,r=this.shapes.length,s,n,a=this.amount.v,o=this.miterLimit.v,l=this.lineJoin;if(a!==0){var c,g;for(i=0;i<r;i+=1){if(c=this.shapes[i],g=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,n=c.shape.paths._length,s=0;s<n;s+=1)g.addShape(this.processPath(t[s],a,l,o));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",r="normal",s=t.length,n,a=0;a<s;a+=1)switch(n=t[a].toLowerCase(),n){case"italic":r="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";break}return{style:r,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,s=917631,n=917601,a=917626,o=65039,l=8205,c=127462,g=127487,S=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(_){var F=_.split(","),E,T=F.length,L=[];for(E=0;E<T;E+=1)F[E]!=="sans-serif"&&F[E]!=="monospace"&&L.push(F[E]);return L.join(",")}function P(_,F){var E=createTag("span");E.setAttribute("aria-hidden",!0),E.style.fontFamily=F;var T=createTag("span");T.innerText="giItT1WQy@!-/#",E.style.position="absolute",E.style.left="-10000px",E.style.top="-10000px",E.style.fontSize="300px",E.style.fontVariant="normal",E.style.fontStyle="normal",E.style.fontWeight="normal",E.style.letterSpacing="0",E.appendChild(T),document.body.appendChild(E);var L=T.offsetWidth;return T.style.fontFamily=p(_)+", "+F,{node:T,w:L,parent:E}}function y(){var _,F=this.fonts.length,E,T,L=F;for(_=0;_<F;_+=1)this.fonts[_].loaded?L-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(E=this.fonts[_].monoCase.node,T=this.fonts[_].monoCase.w,E.offsetWidth!==T?(L-=1,this.fonts[_].loaded=!0):(E=this.fonts[_].sansCase.node,T=this.fonts[_].sansCase.w,E.offsetWidth!==T&&(L-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));L!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(_,F){var E=document.body&&F?"svg":"canvas",T,L=getFontProperties(_);if(E==="svg"){var V=createNS("text");V.style.fontSize="100px",V.setAttribute("font-family",_.fFamily),V.setAttribute("font-style",L.style),V.setAttribute("font-weight",L.weight),V.textContent="1",_.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",_.fClass)):V.style.fontFamily=_.fFamily,F.appendChild(V),T=V}else{var G=new OffscreenCanvas(500,500).getContext("2d");G.font=L.style+" "+L.weight+" 100px "+_.fFamily,T=G}function H(z){return E==="svg"?(T.textContent=z,T.getComputedTextLength()):T.measureText(z).width}return{measureText:H}}function A(_,F){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(K){K.helper=m(K),K.cache={}}),this.fonts=_.list;return}var E=_.list,T,L=E.length,V=L;for(T=0;T<L;T+=1){var G=!0,H,z;if(E[T].loaded=!1,E[T].monoCase=P(E[T].fFamily,"monospace"),E[T].sansCase=P(E[T].fFamily,"sans-serif"),!E[T].fPath)E[T].loaded=!0,V-=1;else if(E[T].fOrigin==="p"||E[T].origin===3){if(H=document.querySelectorAll('style[f-forigin="p"][f-family="'+E[T].fFamily+'"], style[f-origin="3"][f-family="'+E[T].fFamily+'"]'),H.length>0&&(G=!1),G){var q=createTag("style");q.setAttribute("f-forigin",E[T].fOrigin),q.setAttribute("f-origin",E[T].origin),q.setAttribute("f-family",E[T].fFamily),q.type="text/css",q.innerText="@font-face {font-family: "+E[T].fFamily+"; font-style: normal; src: url('"+E[T].fPath+"');}",F.appendChild(q)}}else if(E[T].fOrigin==="g"||E[T].origin===1){for(H=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),z=0;z<H.length;z+=1)H[z].href.indexOf(E[T].fPath)!==-1&&(G=!1);if(G){var W=createTag("link");W.setAttribute("f-forigin",E[T].fOrigin),W.setAttribute("f-origin",E[T].origin),W.type="text/css",W.rel="stylesheet",W.href=E[T].fPath,document.body.appendChild(W)}}else if(E[T].fOrigin==="t"||E[T].origin===2){for(H=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),z=0;z<H.length;z+=1)E[T].fPath===H[z].src&&(G=!1);if(G){var X=createTag("link");X.setAttribute("f-forigin",E[T].fOrigin),X.setAttribute("f-origin",E[T].origin),X.setAttribute("rel","stylesheet"),X.setAttribute("href",E[T].fPath),F.appendChild(X)}}E[T].helper=m(E[T],F),E[T].cache={},this.fonts.push(E[T])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function u(_){if(_){this.chars||(this.chars=[]);var F,E=_.length,T,L=this.chars.length,V;for(F=0;F<E;F+=1){for(T=0,V=!1;T<L;)this.chars[T].style===_[F].style&&this.chars[T].fFamily===_[F].fFamily&&this.chars[T].ch===_[F].ch&&(V=!0),T+=1;V||(this.chars.push(_[F]),L+=1)}}}function f(_,F,E){for(var T=0,L=this.chars.length;T<L;){if(this.chars[T].ch===_&&this.chars[T].style===F&&this.chars[T].fFamily===E)return this.chars[T];T+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,F,E)),t}function d(_,F,E){var T=this.getFontByName(F),L=_;if(!T.cache[L]){var V=T.helper;if(_===" "){var G=V.measureText("|"+_+"|"),H=V.measureText("||");T.cache[L]=(G-H)/100}else T.cache[L]=V.measureText(_)/100}return T.cache[L]*E}function b(_){for(var F=0,E=this.fonts.length;F<E;){if(this.fonts[F].fName===_)return this.fonts[F];F+=1}return this.fonts[0]}function C(_){var F=0,E=_.charCodeAt(0);if(E>=55296&&E<=56319){var T=_.charCodeAt(1);T>=56320&&T<=57343&&(F=(E-55296)*1024+T-56320+65536)}return F}function x(_,F){var E=_.toString(16)+F.toString(16);return S.indexOf(E)!==-1}function M(_){return _===l}function k(_){return _===o}function I(_){var F=C(_);return F>=c&&F<=g}function N(_){return I(_.substr(0,2))&&I(_.substr(2,2))}function B(_){return i.indexOf(_)!==-1}function D(_,F){var E=C(_.substr(F,2));if(E!==r)return!1;var T=0;for(F+=2;T<5;){if(E=C(_.substr(F,2)),E<n||E>a)return!1;T+=1,F+=2}return C(_.substr(F,2))===s}function $(){this.isLoaded=!0}var O=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)};O.isModifier=x,O.isZeroWidthJoiner=M,O.isFlagEmoji=N,O.isRegionalCode=I,O.isCombinedCharacter=B,O.isRegionalFlag=D,O.isVariationSelector=k,O.BLACK_FLAG_CODE_POINT=r;var R={addChars:u,addFonts:A,getCharData:f,getFontByName:b,measureText:d,checkLoadedFonts:y,setIsLoaded:$};return O.prototype=R,O}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,i=this.renderableComponents.length;for(t=0;t<i;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i=e.ef||[];this.effectElements=[];var r,s=i.length,n;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,r=this.data.ef.length,s,n=this.data.ef;for(i=0;i<r;i+=1){switch(s=null,n[i].ty){case 0:s=new SliderEffect(n[i],t,this);break;case 1:s=new AngleEffect(n[i],t,this);break;case 2:s=new ColorEffect(n[i],t,this);break;case 3:s=new PointEffect(n[i],t,this);break;case 4:case 7:s=new CheckboxEffect(n[i],t,this);break;case 10:s=new LayerIndexEffect(n[i],t,this);break;case 11:s=new MaskIndexEffect(n[i],t,this);break;case 5:s=new EffectsManager(n[i],t);break;default:s=new NoValueEffect(n[i]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,i=this.data.masksProperties.length;t<i;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var i=t("layer"),r=t("effects"),s=t("shape"),n=t("text"),a=t("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=t},initBaseData:function(t,i,r){this.globalData=i,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,i){var r,s=this.dynamicProperties.length;for(r=0;r<s;r+=1)(i||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var 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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,i=this.layers.length,r;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t],r.ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,i=e.length,r,s=this.layers.length;for(t=0;t<i;t+=1)for(r=0;r<s;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var r=this.elements,s=this.layers,n=0,a=s.length;n<a;)s[n].ind==t&&(!r[n]||r[n]===!0?(this.buildItem(n),this.addPendingElement(e)):(i.push(r[n]),r[n].setAsParent(),s[n].parent!==void 0?this.buildElementParenting(e,s[n].parent,i):e.setHierarchy(i))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),i;if(typeof t=="number")i=this.elements[t];else{var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.nm===t){i=this.elements[r];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,i=this.finalTransform.mat,r=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<s;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,i.cloneFromProps(t),r=0;r<s;r+=1)i.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<i;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),t=1;t<i;t+=1){var s=this.localTransforms[t].matrix;r.multiply(s)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<i;t+=1)n*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,r=t.length;for(i=0;i<r;i+=1)this.localTransforms.push(t[i])}}},globalToLocal:function(t){var i=[];i.push(this.finalTransform);for(var r=!0,s=this.comp;r;)s.finalTransform?(s.data.hasMask&&i.splice(0,0,s.finalTransform),s=s.comp):r=!1;var n,a=i.length,o;for(n=0;n<a;n+=1)o=i[n].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,s,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var a,o=this.masksProperties,l=0,c=[],g,S,p=createElementID(),P,y,m,A,u="clipPath",f="clip-path";for(s=0;s<n;s+=1)if((o[s].mode!=="a"&&o[s].mode!=="n"||o[s].inv||o[s].o.k!==100||o[s].o.x)&&(u="mask",f="mask"),(o[s].mode==="s"||o[s].mode==="i")&&l===0?(P=createNS("rect"),P.setAttribute("fill","#ffffff"),P.setAttribute("width",this.element.comp.data.w||0),P.setAttribute("height",this.element.comp.data.h||0),c.push(P)):P=null,a=createNS("path"),o[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,o[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[s],3),elem:a,lastPath:""},r.appendChild(a);else{l+=1,a.setAttribute("fill",o[s].mode==="s"?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var d;if(o[s].x.k!==0?(u="mask",f="mask",A=PropertyFactory.getProp(this.element,o[s].x,0,null,this.element),d=createElementID(),y=createNS("filter"),y.setAttribute("id",d),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),y.appendChild(m),r.appendChild(y),a.setAttribute("stroke",o[s].mode==="s"?"#000000":"#ffffff")):(m=null,A=null),this.storedData[s]={elem:a,x:A,expan:m,lastPath:"",lastOperator:"",filterId:d,lastRadius:0},o[s].mode==="i"){S=c.length;var b=createNS("g");for(g=0;g<S;g+=1)b.appendChild(c[g]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",p+"_"+l),C.appendChild(a),r.appendChild(C),b.setAttribute("mask","url("+getLocationHref()+"#"+p+"_"+l+")"),c.length=0,c.push(b)}else c.push(a);o[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,o[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[s],3),invRect:P},this.viewData[s].prop.k||this.drawPath(o[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(u),n=c.length,s=0;s<n;s+=1)this.maskElement.appendChild(c[s]);l>0&&(this.maskElement.setAttribute("id",p),this.element.maskedElement.setAttribute(f,"url("+getLocationHref()+"#"+p+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i<r;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var s=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),s.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,i){var r=" M"+t.v[0][0]+","+t.v[0][1],s,n;for(n=t._length,s=1;s<n;s+=1)r+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&n>1&&(r+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==r){var a="";i.elem&&(t.c&&(a=e.inv?this.solidPath+r:r),i.elem.setAttribute("d",a)),i.lastPath=r}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=i;function t(r,s){var n=createNS("filter");return n.setAttribute("id",r),s!==!0&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,i="SourceGraphic",r=e.data.ef?e.data.ef.length:0,s=createElementID(),n=filtersFactory.createFilter(s,!0),a=0;this.filters=[];var o;for(t=0;t<r;t+=1){o=null;var l=e.data.ef[t].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;o=new c(n,e.effectsManager.effectElements[t],e,idPrefix+a,i),i=idPrefix+a,registeredEffects$1[l].countsAsEffect&&(a+=1)}o&&this.filters.push(o)}a&&(e.globalData.defs.appendChild(n),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,r=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r};function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),t=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var r=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(r.setAttribute("id",n),r.appendChild(s),this.globalData.defs.appendChild(r),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var i=this.layerId+"_"+t,r,s,n,a;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",i),o.setAttribute("mask-type",t===3?"luminance":"alpha"),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(n),this.globalData.defs.appendChild(o),!featureSupport.maskType&&t===1&&(o.setAttribute("mask-type","luminance"),r=createElementID(),s=filtersFactory.createFilter(r),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),a.appendChild(n),o.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+r+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",i),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),r=createElementID(),s=filtersFactory.createFilter(r);var g=createNS("feComponentTransfer");g.setAttribute("in","SourceGraphic"),s.appendChild(g);var S=createNS("feFuncA");S.setAttribute("type","table"),S.setAttribute("tableValues","1.0 0.0"),g.appendChild(S),this.globalData.defs.appendChild(s);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+r+")"),c.appendChild(p),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),c.appendChild(p),a.appendChild(this.layerElement),c.appendChild(a)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=i}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,r,s){this.initFrame(),this.initBaseData(i,r,s),this.initTransform(i,r,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var i,r=this.shapeModifiers.length;for(i=0;i<r;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var i=0,r=this.shapeModifiers.length;i<r;)if(this.shapeModifiers[i].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,i=this.shapes.length;for(t=0;t<i;t+=1)this.shapes[t].sh.reset();i=this.shapeModifiers.length;var r;for(t=i-1;t>=0&&(r=this.shapeModifiers[t].processShapes(this._isFirstFrame),!r);t-=1);}},searchProcessedElement:function(t){for(var i=this.processedElements,r=0,s=i.length;r<s;){if(i[r].elem===t)return i[r].pos;r+=1}return 0},addProcessedElement:function(t,i){for(var r=this.processedElements,s=r.length;s;)if(s-=1,r[s].elem===t){r[s].pos=i;return}r.push(new ProcessedElement(t,i))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var r=0,s=e.length;r<s;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,i,r){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var s,n=t.length||0,a;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:t[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<i;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var r=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var i=0,r=this.o.length/2,s;i<r;){if(s=Math.abs(e[i*4]-e[t*4+i*2]),s>.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 e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,i=this.data.p*4,r,s;for(t=0;t<i;t+=1)r=t%4===0?100:255,s=Math.round(this.prop.v[t]*r),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=this.data.p*4;t<i;t+=1)r=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),r=createNS(t.t===1?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var s=[],n,a,o;for(o=t.g.p*4,a=0;a<o;a+=4)n=createNS("stop"),r.appendChild(n),s.push(n);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,s,n=createNS("mask"),a=createNS("path");n.appendChild(a);var o=createElementID(),l=createElementID();n.setAttribute("id",l);var c=createNS(e.t===1?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var g=this.stops;for(r=e.g.p*4;r<s;r+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(i),g.push(i);a.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),e.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=n,this.ost=g,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,i,r,s){if(i===0)return"";var n=t.o,a=t.i,o=t.v,l,c=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(l=1;l<i;l+=1)c+=" C"+s.applyToPointStringified(n[l-1][0],n[l-1][1])+" "+s.applyToPointStringified(a[l][0],a[l][1])+" "+s.applyToPointStringified(o[l][0],o[l][1]);return r&&i&&(c+=" C"+s.applyToPointStringified(n[l-1][0],n[l-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,i={createRenderFunction:r};function r(S){switch(S.ty){case"fl":return o;case"gf":return c;case"gs":return l;case"st":return g;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return n;default:return null}}function s(S,p,P){(P||p.transform.op._mdf)&&p.transform.container.setAttribute("opacity",p.transform.op.v),(P||p.transform.mProps._mdf)&&p.transform.container.setAttribute("transform",p.transform.mProps.v.to2dCSS())}function n(){}function a(S,p,P){var y,m,A,u,f,d,b=p.styles.length,C=p.lvl,x,M,k,I;for(d=0;d<b;d+=1){if(u=p.sh._mdf||P,p.styles[d].lvl<C){for(M=t.reset(),k=C-p.styles[d].lvl,I=p.transformers.length-1;!u&&k>0;)u=p.transformers[I].mProps._mdf||u,k-=1,I-=1;if(u)for(k=C-p.styles[d].lvl,I=p.transformers.length-1;k>0;)M.multiply(p.transformers[I].mProps.v),k-=1,I-=1}else M=e;if(x=p.sh.paths,m=x._length,u){for(A="",y=0;y<m;y+=1)f=x.shapes[y],f&&f._length&&(A+=buildShapeString(f,f._length,f.c,M));p.caches[d]=A}else A=p.caches[d];p.styles[d].d+=S.hd===!0?"":A,p.styles[d]._mdf=u||p.styles[d]._mdf}}function o(S,p,P){var y=p.style;(p.c._mdf||P)&&y.pElem.setAttribute("fill","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||P)&&y.pElem.setAttribute("fill-opacity",p.o.v)}function l(S,p,P){c(S,p,P),g(S,p,P)}function c(S,p,P){var y=p.gf,m=p.g._hasOpacity,A=p.s.v,u=p.e.v;if(p.o._mdf||P){var f=S.ty==="gf"?"fill-opacity":"stroke-opacity";p.style.pElem.setAttribute(f,p.o.v)}if(p.s._mdf||P){var d=S.t===1?"x1":"cx",b=d==="x1"?"y1":"cy";y.setAttribute(d,A[0]),y.setAttribute(b,A[1]),m&&!p.g._collapsable&&(p.of.setAttribute(d,A[0]),p.of.setAttribute(b,A[1]))}var C,x,M,k;if(p.g._cmdf||P){C=p.cst;var I=p.g.c;for(M=C.length,x=0;x<M;x+=1)k=C[x],k.setAttribute("offset",I[x*4]+"%"),k.setAttribute("stop-color","rgb("+I[x*4+1]+","+I[x*4+2]+","+I[x*4+3]+")")}if(m&&(p.g._omdf||P)){var N=p.g.o;for(p.g._collapsable?C=p.cst:C=p.ost,M=C.length,x=0;x<M;x+=1)k=C[x],p.g._collapsable||k.setAttribute("offset",N[x*2]+"%"),k.setAttribute("stop-opacity",N[x*2+1])}if(S.t===1)(p.e._mdf||P)&&(y.setAttribute("x2",u[0]),y.setAttribute("y2",u[1]),m&&!p.g._collapsable&&(p.of.setAttribute("x2",u[0]),p.of.setAttribute("y2",u[1])));else{var B;if((p.s._mdf||p.e._mdf||P)&&(B=Math.sqrt(Math.pow(A[0]-u[0],2)+Math.pow(A[1]-u[1],2)),y.setAttribute("r",B),m&&!p.g._collapsable&&p.of.setAttribute("r",B)),p.e._mdf||p.h._mdf||p.a._mdf||P){B||(B=Math.sqrt(Math.pow(A[0]-u[0],2)+Math.pow(A[1]-u[1],2)));var D=Math.atan2(u[1]-A[1],u[0]-A[0]),$=p.h.v;$>=1?$=.99:$<=-1&&($=-.99);var O=B*$,R=Math.cos(D+p.a.v)*O+A[0],_=Math.sin(D+p.a.v)*O+A[1];y.setAttribute("fx",R),y.setAttribute("fy",_),m&&!p.g._collapsable&&(p.of.setAttribute("fx",R),p.of.setAttribute("fy",_))}}}function g(S,p,P){var y=p.style,m=p.d;m&&(m._mdf||P)&&m.dashStr&&(y.pElem.setAttribute("stroke-dasharray",m.dashStr),y.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),p.c&&(p.c._mdf||P)&&y.pElem.setAttribute("stroke","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||P)&&y.pElem.setAttribute("stroke-opacity",p.o.v),(p.w._mdf||P)&&(y.pElem.setAttribute("stroke-width",p.w.v),y.msElem&&y.msElem.setAttribute("stroke-width",p.w.v))}return i}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,i,r,s=this.stylesList.length,n,a=[],o=!1;for(r=0;r<s;r+=1){for(n=this.stylesList[r],o=!1,a.length=0,e=0;e<t;e+=1)i=this.shapes[e],i.styles.indexOf(n)!==-1&&(a.push(i),o=i._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,r=new SVGStyleData(e,t),s=r.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,r);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,r);else if(e.ty==="gf"||e.ty==="gs"){var n=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new n(this,e,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,r));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var i=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var r=4;e.ty==="rc"?r=5:e.ty==="el"?r=6:e.ty==="sr"&&(r=7);var s=ShapePropertyFactory.getShapeProp(this,e,r,this),n=new SVGShapeData(t,i,s);return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,i,r=this.stylesList.length;for(i=0;i<r;i+=1)this.stylesList[i].closed||t.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,i,r,s,n,a){var o=[].concat(n),l,c=e.length-1,g,S,p=[],P=[],y,m,A;for(l=c;l>=0;l-=1){if(A=this.searchProcessedElement(e[l]),A?t[l]=i[A-1]:e[l]._render=a,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")A?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],s),e[l]._render&&t[l].style.pElem.parentNode!==r&&r.appendChild(t[l].style.pElem),p.push(t[l].style);else if(e[l].ty==="gr"){if(!A)t[l]=this.createGroupElement(e[l]);else for(S=t[l].it.length,g=0;g<S;g+=1)t[l].prevViewData[g]=t[l].it[g];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,s+1,o,a),e[l]._render&&t[l].gr.parentNode!==r&&r.appendChild(t[l].gr)}else e[l].ty==="tr"?(A||(t[l]=this.createTransformElement(e[l],r)),y=t[l].transform,o.push(y)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(A||(t[l]=this.createShapeElement(e[l],o,s)),this.setElementStyles(t[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="ms"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(A?(m=t[l],m.closed=!1):(m=ShapeModifiers.getModifier(e[l].ty),m.init(this,e[l]),t[l]=m,this.shapeModifiers.push(m)),P.push(m)):e[l].ty==="rp"&&(A?(m=t[l],m.closed=!0):(m=ShapeModifiers.getModifier(e[l].ty),t[l]=m,m.init(this,e,l,t),this.shapeModifiers.push(m),a=!1),P.push(m));this.addProcessedElement(e[l],l+1)}for(c=p.length,l=0;l<c;l+=1)p[l].closed=!0;for(c=P.length,l=0;l<c;l+=1)P[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,i;for(e=0;e<t;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,i,r,s,n){this.o=e,this.sw=t,this.sc=i,this.fc=r,this.m=s,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!r,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,i,r,s,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,a=!0),n.length&&(this.p[0]!==n[0]||this.p[1]!==n[1]||this.p[4]!==n[4]||this.p[5]!==n[5]||this.p[12]!==n[12]||this.p[13]!==n[13])&&(this.p=n,this._mdf.p=!0,a=!0),a};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,s=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(r=0;r<s;r+=1)i!==this.keysIndex?n=this.effectsSequence[r](n,n.t):n=this.effectsSequence[r](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,r=e.length;i<=r-1&&!(i===r-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],i=0,r=e.length,s,n,a=!1,o=!1,l="";i<r;)a=o,o=!1,s=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(s)?a=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1),n>=56320&&n<=57343&&(FontManager.isModifier(s,n)?(l=e.substr(i,2),a=!0):FontManager.isFlagEmoji(e.substr(i,4))?l=e.substr(i,4):l=e.substr(i,2))):s>56319?(n=e.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(a=!0)):FontManager.isZeroWidthJoiner(s)&&(a=!0,o=!0),a?(t[t.length-1]+=l,a=!1):t.push(l),i+=l.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,i=this.data,r=[],s,n,a,o=0,l,c=i.m.g,g=0,S=0,p=0,P=[],y=0,m=0,A,u,f=t.getFontByName(e.f),d,b=0,C=getFontProperties(f);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var x=e.tr/1e3*e.finalSize,M;if(e.sz)for(var k=!0,I=e.sz[0],N=e.sz[1],B,D;k;){D=this.buildFinalText(e.t),B=0,y=0,n=D.length,x=e.tr/1e3*e.finalSize;var $=-1;for(s=0;s<n;s+=1)M=D[s].charCodeAt(0),a=!1,D[s]===" "?$=s:(M===13||M===3)&&(y=0,a=!0,B+=e.finalLineHeight||e.finalSize*1.2),t.chars?(d=t.getCharData(D[s],f.fStyle,f.fFamily),b=a?0:d.w*e.finalSize/100):b=t.measureText(D[s],e.f,e.finalSize),y+b>I&&D[s]!==" "?($===-1?n+=1:s=$,B+=e.finalLineHeight||e.finalSize*1.2,D.splice(s,$===s?1:0,"\r"),$=-1,y=0):(y+=b,y+=x);B+=f.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&N<B?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=D,n=e.finalText.length,k=!1)}y=-x,b=0;var O=0,R;for(s=0;s<n;s+=1)if(a=!1,R=e.finalText[s],M=R.charCodeAt(0),M===13||M===3?(O=0,P.push(y),m=y>m?y:m,y=-2*x,l="",a=!0,p+=1):l=R,t.chars?(d=t.getCharData(R,f.fStyle,t.getFontByName(e.f).fFamily),b=a?0:d.w*e.finalSize/100):b=t.measureText(l,e.f,e.finalSize),R===" "?O+=b+x:(y+=b+x+O,O=0),r.push({l:b,an:b,add:g,n:a,anIndexes:[],val:l,line:p,animatorJustifyOffset:0}),c==2){if(g+=b,l===""||l===" "||s===n-1){for((l===""||l===" ")&&(g-=b);S<=s;)r[S].an=g,r[S].ind=o,r[S].extra=b,S+=1;o+=1,g=0}}else if(c==3){if(g+=b,l===""||s===n-1){for(l===""&&(g-=b);S<=s;)r[S].an=g,r[S].ind=o,r[S].extra=b,S+=1;g=0,o+=1}}else r[o].ind=o,r[o].extra=0,o+=1;if(e.l=r,m=y>m?y:m,P.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=P;var _=i.a,F,E;u=_.length;var T,L,V=[];for(A=0;A<u;A+=1){for(F=_[A],F.a.sc&&(e.strokeColorAnim=!0),F.a.sw&&(e.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(e.fillColorAnim=!0),L=0,T=F.s.b,s=0;s<n;s+=1)E=r[s],E.anIndexes[A]=L,(T==1&&E.val!==""||T==2&&E.val!==""&&E.val!==" "||T==3&&(E.n||E.val==" "||s==n-1)||T==4&&(E.n||s==n-1))&&(F.s.rn===1&&V.push(L),L+=1);i.a[A].s.totalChars=L;var G=-1,H;if(F.s.rn===1)for(s=0;s<n;s+=1)E=r[s],G!=E.anIndexes[A]&&(G=E.anIndexes[A],H=V.splice(Math.floor(Math.random()*V.length),1)[0]),E.anIndexes[A]=H}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=f.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,i=Math.floor;function r(n,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,a.s||{k:0},0,0,this),"e"in a?this.e=PropertyFactory.getProp(n,a.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(n,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}r.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,c=1,g=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:g=1+this.xe.v/100;var S=BezierFactory.getBezierEasing(o,l,c,g).get,p=0,P=this.finalS,y=this.finalE,m=this.data.sh;if(m===2)y===P?p=a>=y?1:0:p=e(0,t(.5/(y-P)+(a-P)/(y-P),1)),p=S(p);else if(m===3)y===P?p=a>=y?0:1:p=1-e(0,t(.5/(y-P)+(a-P)/(y-P),1)),p=S(p);else if(m===4)y===P?p=0:(p=e(0,t(.5/(y-P)+(a-P)/(y-P),1)),p<.5?p*=2:p=1-2*(p-.5)),p=S(p);else if(m===5){if(y===P)p=0;else{var A=y-P;a=t(e(0,a+.5-P),y-P);var u=-A/2+a,f=A/2;p=Math.sqrt(1-u*u/(f*f))}p=S(p)}else m===6?(y===P?p=0:(a=t(e(0,a+.5-P),y-P),p=(1+Math.cos(Math.PI+Math.PI*2*a/(y-P)))/2),p=S(p)):(a>=i(P)&&(a-P<0?p=e(0,t(t(y,1)-(P-a),1)):p=e(0,t(y-a,1))),p=S(p));if(this.sm.v!==100){var d=this.sm.v*.01;d===0&&(d=1e-8);var b=.5-d*.5;p<b?p=0:(p=(p-b)/d,p>1&&(p=1))}return p*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/o,c=this.s.v/o+l,g=this.e.v/o+l;if(c>g){var S=c;c=g,g=S}this.finalS=c,this.finalE=g}},extendPrototype([DynamicPropertyContainer],r);function s(n,a,o){return new r(n,a)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,i){var r={propType:!1},s=PropertyFactory.getProp,n=t.a;this.a={r:n.r?s(e,n.r,0,degToRads,i):r,rx:n.rx?s(e,n.rx,0,degToRads,i):r,ry:n.ry?s(e,n.ry,0,degToRads,i):r,sk:n.sk?s(e,n.sk,0,degToRads,i):r,sa:n.sa?s(e,n.sa,0,degToRads,i):r,s:n.s?s(e,n.s,1,.01,i):r,a:n.a?s(e,n.a,1,0,i):r,o:n.o?s(e,n.o,0,.01,i):r,p:n.p?s(e,n.p,1,0,i):r,sw:n.sw?s(e,n.sw,0,0,i):r,sc:n.sc?s(e,n.sc,1,0,i):r,fc:n.fc?s(e,n.fc,1,0,i):r,fh:n.fh?s(e,n.fh,0,0,i):r,fs:n.fs?s(e,n.fs,0,.01,i):r,fb:n.fb?s(e,n.fb,0,.01,i):r,t:n.t?s(e,n.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,i,r=PropertyFactory.getProp;for(e=0;e<t;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(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=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,r=this._animatorsData,s=this._textData,n=this.mHelper,a=this._renderType,o=this.renderedLetters.length,l,c,g,S,p=e.l,P,y,m,A,u,f,d,b,C,x,M,k,I,N,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var D=B.v;this._pathData.r.v&&(D=D.reverse()),P={tLength:0,segments:[]},S=D._length-1;var $;for(k=0,g=0;g<S;g+=1)$=bez.buildBezierData(D.v[g],D.v[g+1],[D.o[g][0]-D.v[g][0],D.o[g][1]-D.v[g][1]],[D.i[g+1][0]-D.v[g+1][0],D.i[g+1][1]-D.v[g+1][1]]),P.tLength+=$.segmentLength,P.segments.push($),k+=$.segmentLength;g=S,B.v.c&&($=bez.buildBezierData(D.v[g],D.v[0],[D.o[g][0]-D.v[g][0],D.o[g][1]-D.v[g][1]],[D.i[0][0]-D.v[0][0],D.i[0][1]-D.v[0][1]]),P.tLength+=$.segmentLength,P.segments.push($),k+=$.segmentLength),this._pathData.pi=P}if(P=this._pathData.pi,y=this._pathData.f.v,d=0,f=1,A=0,u=!0,x=P.segments,y<0&&B.v.c)for(P.tLength<Math.abs(y)&&(y=-Math.abs(y)%P.tLength),d=x.length-1,C=x[d].points,f=C.length-1;y<0;)y+=C[f].partialLength,f-=1,f<0&&(d-=1,C=x[d].points,f=C.length-1);C=x[d].points,b=C[f-1],m=C[f],M=m.partialLength}S=p.length,l=0,c=0;var O=e.finalSize*1.2*.714,R=!0,_,F,E,T,L;T=r.length;var V,G=-1,H,z,q,W=y,X=d,K=f,ie=-1,J,Y,Q,U,j,se,le,ne,re="",ae=this.defaultPropsArray,oe;if(e.j===2||e.j===1){var Z=0,he=0,ce=e.j===2?-.5:-1,ee=0,pe=!0;for(g=0;g<S;g+=1)if(p[g].n){for(Z&&(Z+=he);ee<g;)p[ee].animatorJustifyOffset=Z,ee+=1;Z=0,pe=!0}else{for(E=0;E<T;E+=1)_=r[E].a,_.t.propType&&(pe&&e.j===2&&(he+=_.t.v*ce),F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),V.length?Z+=_.t.v*V[0]*ce:Z+=_.t.v*V*ce);pe=!1}for(Z&&(Z+=he);ee<g;)p[ee].animatorJustifyOffset=Z,ee+=1}for(g=0;g<S;g+=1){if(n.reset(),J=1,p[g].n)l=0,c+=e.yOffset,c+=R?1:0,y=W,R=!1,this._hasMaskedPath&&(d=X,f=K,C=x[d].points,b=C[f-1],m=C[f],M=m.partialLength,A=0),re="",ne="",se="",oe="",ae=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ie!==p[g].line){switch(e.j){case 1:y+=k-e.lineWidths[p[g].line];break;case 2:y+=(k-e.lineWidths[p[g].line])/2;break}ie=p[g].line}G!==p[g].ind&&(p[G]&&(y+=p[G].extra),y+=p[g].an/2,G=p[g].ind),y+=i[0]*p[g].an*.005;var te=0;for(E=0;E<T;E+=1)_=r[E].a,_.p.propType&&(F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),V.length?te+=_.p.v[0]*V[0]:te+=_.p.v[0]*V),_.a.propType&&(F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),V.length?te+=_.a.v[0]*V[0]:te+=_.a.v[0]*V);for(u=!0,this._pathData.a.v&&(y=p[0].an*.5+(k-this._pathData.f.v-p[0].an*.5-p[p.length-1].an*.5)*G/(S-1),y+=this._pathData.f.v);u;)A+M>=y+te||!C?(I=(y+te-A)/m.partialLength,z=b.point[0]+(m.point[0]-b.point[0])*I,q=b.point[1]+(m.point[1]-b.point[1])*I,n.translate(-i[0]*p[g].an*.005,-(i[1]*O)*.01),u=!1):C&&(A+=m.partialLength,f+=1,f>=C.length&&(f=0,d+=1,x[d]?C=x[d].points:B.v.c?(f=0,d=0,C=x[d].points):(A-=m.partialLength,C=null)),C&&(b=m,m=C[f],M=m.partialLength));H=p[g].an/2-p[g].add,n.translate(-H,0,0)}else H=p[g].an/2-p[g].add,n.translate(-H,0,0),n.translate(-i[0]*p[g].an*.005,-i[1]*O*.01,0);for(E=0;E<T;E+=1)_=r[E].a,_.t.propType&&(F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?V.length?y+=_.t.v*V[0]:y+=_.t.v*V:V.length?l+=_.t.v*V[0]:l+=_.t.v*V));for(e.strokeWidthAnim&&(Q=e.sw||0),e.strokeColorAnim&&(e.sc?Y=[e.sc[0],e.sc[1],e.sc[2]]:Y=[0,0,0]),e.fillColorAnim&&e.fc&&(U=[e.fc[0],e.fc[1],e.fc[2]]),E=0;E<T;E+=1)_=r[E].a,_.a.propType&&(F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),V.length?n.translate(-_.a.v[0]*V[0],-_.a.v[1]*V[1],_.a.v[2]*V[2]):n.translate(-_.a.v[0]*V,-_.a.v[1]*V,_.a.v[2]*V));for(E=0;E<T;E+=1)_=r[E].a,_.s.propType&&(F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),V.length?n.scale(1+(_.s.v[0]-1)*V[0],1+(_.s.v[1]-1)*V[1],1):n.scale(1+(_.s.v[0]-1)*V,1+(_.s.v[1]-1)*V,1));for(E=0;E<T;E+=1){if(_=r[E].a,F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),_.sk.propType&&(V.length?n.skewFromAxis(-_.sk.v*V[0],_.sa.v*V[1]):n.skewFromAxis(-_.sk.v*V,_.sa.v*V)),_.r.propType&&(V.length?n.rotateZ(-_.r.v*V[2]):n.rotateZ(-_.r.v*V)),_.ry.propType&&(V.length?n.rotateY(_.ry.v*V[1]):n.rotateY(_.ry.v*V)),_.rx.propType&&(V.length?n.rotateX(_.rx.v*V[0]):n.rotateX(_.rx.v*V)),_.o.propType&&(V.length?J+=(_.o.v*V[0]-J)*V[0]:J+=(_.o.v*V-J)*V),e.strokeWidthAnim&&_.sw.propType&&(V.length?Q+=_.sw.v*V[0]:Q+=_.sw.v*V),e.strokeColorAnim&&_.sc.propType)for(j=0;j<3;j+=1)V.length?Y[j]+=(_.sc.v[j]-Y[j])*V[0]:Y[j]+=(_.sc.v[j]-Y[j])*V;if(e.fillColorAnim&&e.fc){if(_.fc.propType)for(j=0;j<3;j+=1)V.length?U[j]+=(_.fc.v[j]-U[j])*V[0]:U[j]+=(_.fc.v[j]-U[j])*V;_.fh.propType&&(V.length?U=addHueToRGB(U,_.fh.v*V[0]):U=addHueToRGB(U,_.fh.v*V)),_.fs.propType&&(V.length?U=addSaturationToRGB(U,_.fs.v*V[0]):U=addSaturationToRGB(U,_.fs.v*V)),_.fb.propType&&(V.length?U=addBrightnessToRGB(U,_.fb.v*V[0]):U=addBrightnessToRGB(U,_.fb.v*V))}}for(E=0;E<T;E+=1)_=r[E].a,_.p.propType&&(F=r[E].s,V=F.getMult(p[g].anIndexes[E],s.a[E].s.totalChars),this._hasMaskedPath?V.length?n.translate(0,_.p.v[1]*V[0],-_.p.v[2]*V[1]):n.translate(0,_.p.v[1]*V,-_.p.v[2]*V):V.length?n.translate(_.p.v[0]*V[0],_.p.v[1]*V[1],-_.p.v[2]*V[2]):n.translate(_.p.v[0]*V,_.p.v[1]*V,-_.p.v[2]*V));if(e.strokeWidthAnim&&(se=Q<0?0:Q),e.strokeColorAnim&&(le="rgb("+Math.round(Y[0]*255)+","+Math.round(Y[1]*255)+","+Math.round(Y[2]*255)+")"),e.fillColorAnim&&e.fc&&(ne="rgb("+Math.round(U[0]*255)+","+Math.round(U[1]*255)+","+Math.round(U[2]*255)+")"),this._hasMaskedPath){if(n.translate(0,-e.ls),n.translate(0,i[1]*O*.01+c,0),this._pathData.p.v){N=(m.point[1]-b.point[1])/(m.point[0]-b.point[0]);var ue=Math.atan(N)*180/Math.PI;m.point[0]<b.point[0]&&(ue+=180),n.rotate(-ue*Math.PI/180)}n.translate(z,q,0),y-=i[0]*p[g].an*.005,p[g+1]&&G!==p[g+1].ind&&(y+=p[g].an/2,y+=e.tr*.001*e.finalSize)}else{switch(n.translate(l,c,0),e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:n.translate(p[g].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[g].line]),0,0);break;case 2:n.translate(p[g].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[g].line])/2,0,0);break}n.translate(0,-e.ls),n.translate(H,0,0),n.translate(i[0]*p[g].an*.005,i[1]*O*.01,0),l+=p[g].l+e.tr*.001*e.finalSize}a==="html"?re=n.toCSS():a==="svg"?re=n.to2dCSS():ae=[n.props[0],n.props[1],n.props[2],n.props[3],n.props[4],n.props[5],n.props[6],n.props[7],n.props[8],n.props[9],n.props[10],n.props[11],n.props[12],n.props[13],n.props[14],n.props[15]],oe=J}o<=g?(L=new LetterProps(oe,se,le,ne,re,ae),this.renderedLetters.push(L),o+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[g],this.lettersChangedFlag=L.update(oe,se,le,ne,re,ae)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var i,r=t.length,s,n="";for(i=0;i<r;i+=1)t[i].ty==="sh"&&(s=t[i].ks.k,n+=buildShapeString(s,s.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,r,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}t.translate(r,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,i=e.length,r=[],s="";t<i;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(s),s=""):s+=e[t],t+=1;return r.push(s),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","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 r=this.globalData.fontManager.getFontByName(i.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var s=i.fWeight,n=i.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",i.t);var a=i.l||[],o=!!this.globalData.fontManager.chars;t=a.length;var l,c=this.mHelper,g="",S=this.data.singleShape,p=0,P=0,y=!0,m=i.tr*.001*i.finalSize;if(S&&!o&&!i.sz){var A=this.textContainer,u="start";switch(i.j){case 1:u="end";break;case 2:u="middle";break;default:u="start";break}A.setAttribute("text-anchor",u),A.setAttribute("letter-spacing",m);var f=this.buildTextContents(i.finalText);for(t=f.length,P=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=f[e],l.setAttribute("x",0),l.setAttribute("y",P),l.style.display="inherit",A.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,P+=i.finalLineHeight;this.layerElement.appendChild(A)}else{var d=this.textSpans.length,b;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!S||e===0){if(l=d>e?this.textSpans[e].span:createNS(o?"g":"text"),d<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,o){var C=createNS("g");l.appendChild(C),this.textSpans[e].childSpan=C}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),S&&(a[e].n&&(p=-m,P+=i.yOffset,P+=y?1:0,y=!1),this.applyTextPropertiesToMatrix(i,c,a[e].line,p,P),p+=a[e].l||0,p+=m),o){b=this.globalData.fontManager.getCharData(i.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var x;if(b.t===1)x=new SVGCompElement(b.data,this.globalData,this);else{var M=emptyShapeData;b.data&&b.data.shapes&&(M=this.buildShapeData(b.data,i.finalSize)),x=new SVGShapeElement(M,this.globalData,this)}if(this.textSpans[e].glyph){var k=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[e].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[e].childSpan.appendChild(x.layerElement),b.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else S&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=a[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}S&&l&&l.setAttribute("d",g)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,i=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;t=r.length;var s,n,a;for(e=0;e<t;e+=1)r[e].n||(s=i[e],n=this.textSpans[e].span,a=this.textSpans[e].glyph,a&&a.renderFrame(),s._mdf.m&&n.setAttribute("transform",s.m),s._mdf.o&&n.setAttribute("opacity",s.o),s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s._mdf.sc&&n.setAttribute("stroke",s.sc),s._mdf.fc&&n.setAttribute("fill",s.fc))}};function ISolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var s=createElementID();i.setAttribute("id",s),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,i=this.layers.length;for(t=0;t<i;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(r===-1)return;if(!this.elements[r]||this.elements[r]===!0)this.buildItem(r),this.addPendingElement(i);else{var s=t[r],n=s.getMatte(this.layers[e].tt);i.setMatte(n)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[r],n=s.getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var r=0,s;r<t;)this.elements[r]&&this.elements[r]!==!0&&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"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-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 e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(t&&t.title){var r=createNS("title"),s=createElementID();r.setAttribute("id",s),r.textContent=t.title,this.svgElement.appendChild(r),i+=s}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var i,r=t.length,s="_";for(i=0;i<r;i+=1)s+=t[i].transform.key+"_";var n=this.sequences[s];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=n,this.sequenceList.push(n)),n},processSequence:function(t,i){for(var r=0,s=t.transforms.length,n=i;r<s&&!i;){if(t.transforms[r].transform.mProps._mdf){n=!0;break}r+=1}if(n)for(t.finalTransform.reset(),r=s-1;r>=0;r-=1)t.finalTransform.multiply(t.transforms[r].transform.mProps.v);t._mdf=n},processSequences:function(t){var i,r=this.sequenceList.length;for(i=0;i<r;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",i=null,r=null,s=null;function n(){var l=createNS("svg"),c=createNS("filter"),g=createNS("feColorMatrix");return c.setAttribute("id",t),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.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"),c.appendChild(g),l.appendChild(c),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function a(){i||(s=n(),document.body.appendChild(s),i=createTag("canvas"),r=i.getContext("2d"),r.filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}function o(l){return i||a(),i.width=l.width,i.height=l.height,r.filter="url(#"+t+")",i}return{load:a,get:o}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,i=e.data.ef?e.data.ef.length:0;this.filters=[];var r;for(t=0;t<i;t+=1){r=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var n=registeredEffects[s].effect;r=new n(e.effectsManager.effectElements[t],e)}r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,r=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,r=this.masksProperties.length,s=!1;for(i=0;i<r;i+=1)this.masksProperties[i].mode!=="n"&&(s=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,i,r=this.masksProperties.length,s,n,a;for(t.beginPath(),i=0;i<r;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),a=this.viewData[i].v,s=e.applyToPointArray(a.v[0][0],a.v[0][1],0),t.moveTo(s[0],s[1]);var o,l=a._length;for(o=1;o<l;o+=1)n=e.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=e.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=i}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],i=t.getContext("2d");this.clearCanvas(i),i.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],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var r=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(r.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),n=s.getContext("2d");n.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var n,a=i.length,o;for(n=0;n<a;n+=1)i[n].closed||(o={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(o),i[n].elements.push(o))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},r={};if(e.ty==="fl"||e.ty==="st"?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(i.wi=r.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);r.d=s,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,r,s){var n,a=e.length-1,o,l,c=[],g=[],S,p,P,y=[].concat(s);for(n=a;n>=0;n-=1){if(S=this.searchProcessedElement(e[n]),S?t[n]=i[S-1]:e[n]._shouldRender=r,e[n].ty==="fl"||e[n].ty==="st"||e[n].ty==="gf"||e[n].ty==="gs")S?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],y),c.push(t[n].style);else if(e[n].ty==="gr"){if(!S)t[n]=this.createGroupElement(e[n]);else for(l=t[n].it.length,o=0;o<l;o+=1)t[n].prevViewData[o]=t[n].it[o];this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,r,y)}else e[n].ty==="tr"?(S||(P=this.createTransformElement(e[n]),t[n]=P),y.push(t[n]),this.addTransformToStyleList(t[n])):e[n].ty==="sh"||e[n].ty==="rc"||e[n].ty==="el"||e[n].ty==="sr"?S||(t[n]=this.createShapeElement(e[n])):e[n].ty==="tm"||e[n].ty==="rd"||e[n].ty==="pb"||e[n].ty==="zz"||e[n].ty==="op"?(S?(p=t[n],p.closed=!1):(p=ShapeModifiers.getModifier(e[n].ty),p.init(this,e[n]),t[n]=p,this.shapeModifiers.push(p)),g.push(p)):e[n].ty==="rp"&&(S?(p=t[n],p.closed=!0):(p=ShapeModifiers.getModifier(e[n].ty),t[n]=p,p.init(this,e,n,t),this.shapeModifiers.push(p),r=!1),g.push(p));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),a=g.length,n=0;n<a;n+=1)g[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,i,r,s,n,a,o,l=this.globalData.renderer,c=this.globalData.canvasContext,g,S;for(e=0;e<t;e+=1)if(S=this.stylesList[e],g=S.type,!((g==="st"||g==="gs")&&S.wi===0||!S.data._shouldRender||S.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),a=S.elements,g==="st"||g==="gs"?(l.ctxStrokeStyle(g==="st"?S.co:S.grd),l.ctxLineWidth(S.wi),l.ctxLineCap(S.lc),l.ctxLineJoin(S.lj),l.ctxMiterLimit(S.ml||0)):l.ctxFillStyle(g==="fl"?S.co:S.grd),l.ctxOpacity(S.coOp),g!=="st"&&g!=="gs"&&c.beginPath(),l.ctxTransform(S.preTransforms.finalTransform.props),r=a.length,i=0;i<r;i+=1){for((g==="st"||g==="gs")&&(c.beginPath(),S.da&&(c.setLineDash(S.da),c.lineDashOffset=S.do)),o=a[i].trNodes,n=o.length,s=0;s<n;s+=1)o[s].t==="m"?c.moveTo(o[s].p[0],o[s].p[1]):o[s].t==="c"?c.bezierCurveTo(o[s].pts[0],o[s].pts[1],o[s].pts[2],o[s].pts[3],o[s].pts[4],o[s].pts[5]):c.closePath();(g==="st"||g==="gs")&&(l.ctxStroke(),S.da&&c.setLineDash(this.dashResetter))}g!=="st"&&g!=="gs"&&this.globalData.renderer.ctxFill(S.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,r){var s,n=t.length-1,a;for(a=e,s=n;s>=0;s-=1)t[s].ty==="tr"?(a=i[s].transform,this.renderShapeTransform(e,a)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],i[s]):t[s].ty==="fl"?this.renderFill(t[s],i[s],a):t[s].ty==="st"?this.renderStroke(t[s],i[s],a):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],i[s],a):t[s].ty==="gr"?this.renderShape(a,t[s].it,i[s].it):t[s].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i=e.trNodes,r=t.paths,s,n,a,o=r._length;i.length=0;var l=e.transforms.finalTransform;for(a=0;a<o;a+=1){var c=r.shapes[a];if(c&&c.v){for(n=c._length,s=1;s<n;s+=1)s===1&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(c.o[s-1],c.i[s],c.v[s])});n===1&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(i.push({t:"c",pts:l.applyToTriplePoints(c.o[s-1],c.i[0],c.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var i,r=t.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var r=t.style,s;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var n=this.globalData.canvasContext,a=t.s.v,o=t.e.v;if(e.t===1)s=n.createLinearGradient(a[0],a[1],o[0],o[1]);else{var l=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)),c=Math.atan2(o[1]-a[1],o[0]-a[0]),g=t.h.v;g>=1?g=.99:g<=-1&&(g=-.99);var S=l*g,p=Math.cos(c+t.a.v)*S+a[0],P=Math.sin(c+t.a.v)*S+a[1];s=n.createRadialGradient(p,P,0,a[0],a[1],l)}var y,m=e.g.p,A=t.g.c,u=1;for(y=0;y<m;y+=1)t.g._hasOpacity&&t.g._collapsable&&(u=t.g.o[y*2+1]),s.addColorStop(A[y*4]/100,"rgba("+A[y*4+1]+","+A[y*4+2]+","+A[y*4+3]+","+u+")");r.grd=s}r.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var r=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(r.da=s.dashArray,r.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,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(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r=this.globalData.fontManager.getFontByName(e.f),s,n,a=e.l,o=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var l,c,g,S,p,P,y,m,A,u,f=this.data.singleShape,d=e.tr*.001*e.finalSize,b=0,C=0,x=!0,M=0;for(s=0;s<n;s+=1){l=this.globalData.fontManager.getCharData(e.finalText[s],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),c=l&&l.data||{},o.reset(),f&&a[s].n&&(b=-d,C+=e.yOffset,C+=x?1:0,x=!1),p=c.shapes?c.shapes[0].it:[],y=p.length,o.scale(e.finalSize/100,e.finalSize/100),f&&this.applyTextPropertiesToMatrix(e,o,a[s].line,b,C),A=createSizedArray(y-1);var k=0;for(P=0;P<y;P+=1)if(p[P].ty==="sh"){for(S=p[P].ks.k.i.length,m=p[P].ks.k,u=[],g=1;g<S;g+=1)g===1&&u.push(o.applyToX(m.v[0][0],m.v[0][1],0),o.applyToY(m.v[0][0],m.v[0][1],0)),u.push(o.applyToX(m.o[g-1][0],m.o[g-1][1],0),o.applyToY(m.o[g-1][0],m.o[g-1][1],0),o.applyToX(m.i[g][0],m.i[g][1],0),o.applyToY(m.i[g][0],m.i[g][1],0),o.applyToX(m.v[g][0],m.v[g][1],0),o.applyToY(m.v[g][0],m.v[g][1],0));u.push(o.applyToX(m.o[g-1][0],m.o[g-1][1],0),o.applyToY(m.o[g-1][0],m.o[g-1][1],0),o.applyToX(m.i[0][0],m.i[0][1],0),o.applyToY(m.i[0][0],m.i[0][1],0),o.applyToX(m.v[0][0],m.v[0][1],0),o.applyToY(m.v[0][0],m.v[0][1],0)),A[k]=u,k+=1}f&&(b+=a[s].l,b+=d),this.textSpans[M]?this.textSpans[M].elem=A:this.textSpans[M]={elem:A},M+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,i,r,s,n,a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var c,g=null,S=null,p=null,P,y,m=this.globalData.renderer;for(t=0;t<i;t+=1)if(!l[t].n){if(c=o[t],c&&(m.save(),m.ctxTransform(c.p),m.ctxOpacity(c.o)),this.fill){for(c&&c.fc?g!==c.fc&&(m.ctxFillStyle(c.fc),g=c.fc):g!==this.values.fill&&(g=this.values.fill,m.ctxFillStyle(this.values.fill)),P=this.textSpans[t].elem,s=P.length,this.globalData.canvasContext.beginPath(),r=0;r<s;r+=1)for(y=P[r],a=y.length,this.globalData.canvasContext.moveTo(y[0],y[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(y[n],y[n+1],y[n+2],y[n+3],y[n+4],y[n+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(c&&c.sw?p!==c.sw&&(p=c.sw,m.ctxLineWidth(c.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),c&&c.sc?S!==c.sc&&(S=c.sc,m.ctxStrokeStyle(c.sc)):S!==this.values.stroke&&(S=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),P=this.textSpans[t].elem,s=P.length,this.globalData.canvasContext.beginPath(),r=0;r<s;r+=1)for(y=P[r],a=y.length,this.globalData.canvasContext.moveTo(y[0],y[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(y[n],y[n+1],y[n+2],y[n+3],y[n+4],y[n+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),i=this.img.width,r=this.img.height,s=i/r,n=this.assetData.w/this.assetData.h,a,o,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>n&&l==="xMidYMid slice"||s<n&&l!=="xMidYMid slice"?(o=r,a=o*n):(a=i,o=a/n),t.drawImage(this.img,(i-a)/2,(r-o)/2,a,o,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,i,r){this.canvasContext.fillRect(e,t,i,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var i,r;e?(i=e,r=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr);var s,n;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),g=l.substr(4);s=i/r,n=this.transformCanvas.w/this.transformCanvas.h,n>s&&o==="meet"||n<s&&o==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(n<s&&o==="meet"||n>s&&o==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(n<s&&o==="meet"||n>s&&o==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,g==="YMid"&&(n>s&&o==="meet"||n<s&&o==="slice")?this.transformCanvas.ty=(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:g==="YMax"&&(n>s&&o==="meet"||n<s&&o==="slice")?this.transformCanvas.ty=(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],i=t.transform,r,s=this.cTr.props;for(r=0;r<16;r+=1)s[r]=i[r];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],r;for(r=0;r<16;r+=1)i.transform[r]=t[r];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=i.opacity,s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,s.lineWidth=i.lineWidth,s.lineCap=i.lineCap,s.lineJoin=i.lineJoin,s.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,i,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,i=this.layers.length;for(t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();t.transform=i,t.webkitTransform=i}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i=e.sh.v,r=e.transformers,s,n=i._length,a,o,l,c;if(!(n<=1)){for(s=0;s<n-1;s+=1)a=this.getTransformedPoint(r,i.v[s]),o=this.getTransformedPoint(r,i.o[s]),l=this.getTransformedPoint(r,i.i[s+1]),c=this.getTransformedPoint(r,i.v[s+1]),this.checkBounds(a,o,l,c,t);i.c&&(a=this.getTransformedPoint(r,i.v[s]),o=this.getTransformedPoint(r,i.o[s]),l=this.getTransformedPoint(r,i.i[0]),c=this.getTransformedPoint(r,i.v[0]),this.checkBounds(a,o,l,c,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,r,s){this.getBoundsOfCurve(e,t,i,r);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x),s.xMax=bmMax(n.right,s.xMax),s.y=bmMin(n.top,s.y),s.yMax=bmMax(n.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,i,r){for(var s=[[e[0],r[0]],[e[1],r[1]]],n,a,o,l,c,g,S,p=0;p<2;++p)a=6*e[p]-12*t[p]+6*i[p],n=-3*e[p]+9*t[p]-9*i[p]+3*r[p],o=3*t[p]-3*e[p],a|=0,n|=0,o|=0,n===0&&a===0||(n===0?(l=-o/a,l>0&&l<1&&s[p].push(this.calculateF(l,e,t,i,r,p))):(c=a*a-4*o*n,c>=0&&(g=(-a+bmSqrt(c))/(2*n),g>0&&g<1&&s[p].push(this.calculateF(g,e,t,i,r,p)),S=(-a-bmSqrt(c))/(2*n),S>0&&S<1&&s[p].push(this.calculateF(S,e,t,i,r,p)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,i,r,s,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*i[n]+3*(1-e)*bmPow(e,2)*r[n]+bmPow(e,3)*s[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var s=e.keyframes[r].s;s>i&&(i=s)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=s,r.webkitTransform=s}}};function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",r.fClass)this.innerElem.className=r.fClass;else{t.fontFamily=r.fFamily;var s=e.fWeight,n=e.fStyle;t.fontStyle=n,t.fontWeight=s}var a,o,l=e.l;o=l.length;var c,g,S,p=this.mHelper,P,y="",m=0;for(a=0;a<o;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(g=this.textSpans[m],S=g.children[0]):(g=createTag("div"),g.style.lineHeight=0,S=createNS("svg"),S.appendChild(c),styleDiv(g)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(g=this.textSpans[m],c=this.textPaths[m]):(g=createTag("span"),styleDiv(g),c=createTag("span"),styleDiv(c),g.appendChild(c)),this.globalData.fontManager.chars){var A=this.globalData.fontManager.getCharData(e.finalText[a],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u;if(A?u=A.data:u=null,p.reset(),u&&u.shapes&&u.shapes.length&&(P=u.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),y=this.createPathShape(p,P),c.setAttribute("d",y)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(g),u&&u.shapes){document.body.appendChild(S);var f=S.getBBox();S.setAttribute("width",f.width+2),S.setAttribute("height",f.height+2),S.setAttribute("viewBox",f.x-1+" "+(f.y-1)+" "+(f.width+2)+" "+(f.height+2));var d=S.style,b="translate("+(f.x-1)+"px,"+(f.y-1)+"px)";d.transform=b,d.webkitTransform=b,l[a].yOffset=f.y-1}else S.setAttribute("width",1),S.setAttribute("height",1);g.appendChild(S)}}else if(c.textContent=l[a].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(g);var C=c.style,x="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=x,C.webkitTransform=x}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=g,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,r,s=0,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var o,l,c;for(i=0;i<r;i+=1)a[i].n?s+=1:(l=this.textSpans[i],c=this.textPaths[i],o=n[s],s+=1,o._mdf.m&&(this.isMasked?l.setAttribute("transform",o.m):(l.style.webkitTransform=o.m,l.style.transform=o.m)),l.style.opacity=o.o,o.sw&&o._mdf.sw&&c.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&c.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(c.setAttribute("fill",o.fc),c.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var g=this.innerElem.getBBox();this.currentBBox.w!==g.width&&(this.currentBBox.w=g.width,this.svgElement.setAttribute("width",g.width)),this.currentBBox.h!==g.height&&(this.currentBBox.h=g.height,this.svgElement.setAttribute("height",g.height));var S=1;if(this.currentBBox.w!==g.width+S*2||this.currentBBox.h!==g.height+S*2||this.currentBBox.x!==g.x-S||this.currentBBox.y!==g.y-S){this.currentBBox.w=g.width+S*2,this.currentBBox.h=g.height+S*2,this.currentBBox.x=g.x-S,this.currentBBox.y=g.y-S,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}};function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,n=e.ks.or.k.length;for(s=0;s<n;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,i,r,s;for(e=0;e<t;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){r=i.perspectiveElem.style,s=i.container.style;var n=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n,r.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,i;if(this.hierarchy)for(i=this.hierarchy.length,t=0;t<i;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=this.hierarchy.length-1,t=i;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),a=[s[0]/n,s[1]/n,s[2]/n],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var S,p,P;for(t=0;t<i;t+=1)if(S=this.comp.threeDElements[t],S.type==="3d"){if(g){var y=this.mat.toCSS();P=S.container.style,P.transform=y,P.webkitTransform=y}this.pe._mdf&&(p=S.perspectiveElem.style,p.perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){var r=this.layers[t];if(!r.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var s=0,n,a,o;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(a=this.elements[s],o=this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement(),n=o||n),s+=1;n?(!r.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,n):(!r.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,i=this.threeDElements.length;t<i;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var i=createTag("div"),r,s;styleDiv(i);var n=createTag("div");if(styleDiv(n),t==="3d"){r=i.style,r.width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a,s=n.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=o,s.webkitTransform=o}i.appendChild(n);var l={container:n,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,i,r="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(r!=="3d"&&(r="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(r!=="2d"&&(r="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,r=this.threeDElements.length;i<r;){if(t<=this.threeDElements[i].endPos){for(var s=this.threeDElements[i].startPos,n;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[i].container.insertBefore(e,n):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),r.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,i=e/t,r=this.globalData.compSize.w/this.globalData.compSize.h,s,n,a,o;r>i?(s=e/this.globalData.compSize.w,n=e/this.globalData.compSize.w,a=0,o=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,n=t/this.globalData.compSize.h,a=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,o=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+s+",0,0,0,0,"+n+",0,0,0,0,1,0,"+a+","+o+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,i,r=this.threeDElements.length;for(i=0;i<r;i+=1){var s=this.threeDElements[i].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,r=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var s=this.createComp(e[t],r,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var i=0,r;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(i){for(var r=0,s=e.layers.length;r<s;){if(e.layers[r].nm===i||e.layers[r].ind===i)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(i){return typeof i}:_typeof$2=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(e)}function seedRandom(e,t){var i=this,r=256,s=6,n=52,a="random",o=t.pow(r,s),l=t.pow(2,n),c=l*2,g=r-1,S;function p(d,b,C){var x=[];b=b===!0?{entropy:!0}:b||{};var M=A(m(b.entropy?[d,f(e)]:d===null?u():d,3),x),k=new P(x),I=function(){for(var B=k.g(s),D=o,$=0;B<l;)B=(B+$)*r,D*=r,$=k.g(1);for(;B>=c;)B/=2,D/=2,$>>>=1;return(B+$)/D};return I.int32=function(){return k.g(4)|0},I.quick=function(){return k.g(4)/4294967296},I.double=I,A(f(k.S),e),(b.pass||C||function(N,B,D,$){return $&&($.S&&y($,k),N.state=function(){return y(k,{})}),D?(t[a]=N,B):N})(I,M,"global"in b?b.global:this==t,b.state)}t["seed"+a]=p;function P(d){var b,C=d.length,x=this,M=0,k=x.i=x.j=0,I=x.S=[];for(C||(d=[C++]);M<r;)I[M]=M++;for(M=0;M<r;M++)I[M]=I[k=g&k+d[M%C]+(b=I[M])],I[k]=b;x.g=function(N){for(var B,D=0,$=x.i,O=x.j,R=x.S;N--;)B=R[$=g&$+1],D=D*r+R[g&(R[$]=R[O=g&O+B])+(R[O]=B)];return x.i=$,x.j=O,D}}function y(d,b){return b.i=d.i,b.j=d.j,b.S=d.S.slice(),b}function m(d,b){var C=[],x=_typeof$2(d),M;if(b&&x=="object")for(M in d)try{C.push(m(d[M],b-1))}catch{}return C.length?C:x=="string"?d:d+"\0"}function A(d,b){for(var C=d+"",x,M=0;M<C.length;)b[g&M]=g&(x^=b[g&M]*19)+C.charCodeAt(M++);return f(b)}function u(){try{var d=new Uint8Array(r);return(i.crypto||i.msCrypto).getRandomValues(d),f(d)}catch{var b=i.navigator,C=b&&b.plugins;return[+new Date,i,C,i.screen,f(e)]}}function f(d){return String.fromCharCode.apply(0,d)}A(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(i){return typeof i}:_typeof$1=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,r=e.length,s=[];for(i=0;i<r;i+=1)s[i]=-e[i];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var i=_typeof$1(e),r=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(r,t)||i==="string"||r==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,o=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?o[s]=e[s]+t[s]:o[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return o}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),r=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(r,t))return i==="string"&&(e=parseInt(e,10)),r==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,o=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?o[s]=e[s]-t[s]:o[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return o}return 0}function mul(e,t){var i=_typeof$1(e),r=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(r,t))return e*t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]*t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e*t[n];return s}return 0}function div(e,t){var i=_typeof$1(e),r=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(r,t))return e/t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]/t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e/t[n];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,i){if(t>i){var r=i;i=t,t=r}return Math.min(Math.max(e,t),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var i,r=Math.min(e.length,t.length),s=0;for(i=0;i<r;i+=1)s+=Math.pow(t[i]-e[i],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],i=e[1],r=e[2],s=Math.max(t,i,r),n=Math.min(t,i,r),a,o,l=(s+n)/2;if(s===n)a=0,o=0;else{var c=s-n;switch(o=l>.5?c/(2-s-n):c/(s+n),s){case t:a=(i-r)/c+(i<r?6:0);break;case i:a=(r-t)/c+2;break;case r:a=(t-i)/c+4;break}a/=6}return[a,o,l,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t=e[0],i=e[1],r=e[2],s,n,a;if(i===0)s=r,a=r,n=r;else{var o=r<.5?r*(1+i):r+i-r*i,l=2*r-o;s=hue2rgb(l,o,t+1/3),n=hue2rgb(l,o,t),a=hue2rgb(l,o,t-1/3)}return[s,n,a,e[3]]}function linear(e,t,i,r,s){if((r===void 0||s===void 0)&&(r=t,s=i,t=0,i=1),i<t){var n=i;i=t,t=n}if(e<=t)return r;if(e>=i)return s;var a=i===t?0:(e-t)/(i-t);if(!r.length)return r+(s-r)*a;var o,l=r.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=r[o]+(s[o]-r[o])*a;return c}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var i,r=t.length;e||(e=createTypedArray("float32",r));var s=createTypedArray("float32",r),n=BMMath.random();for(i=0;i<r;i+=1)s[i]=e[i]+n*(t[i]-e[i]);return s}e===void 0&&(e=0);var a=BMMath.random();return e+a*(t-e)}function createPath(e,t,i,r){var s,n=e.length,a=shapePool.newElement();a.setPathData(!!r,n);var o=[0,0],l,c;for(s=0;s<n;s+=1)l=t&&t[s]?t[s]:o,c=i&&i[s]?i[s]:o,a.setTripleAt(e[s][0],e[s][1],c[0]+e[s][0],c[1]+e[s][1],l[0]+e[s][0],l[1]+e[s][1],s,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function e(t,i){var r,s,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n);t=5;var o=Math.floor(time*t);for(r=0,s=0;r<o;){for(s=0;s<n;s+=1)a[s]+=-i+i*2*BMMath.random();r+=1}var l=time*t,c=l-Math.floor(l),g=createTypedArray("float32",n);if(n>1){for(s=0;s<n;s+=1)g[s]=this.pv[s]+a[s]+(-i+i*2*BMMath.random())*c;return g}return this.pv+a[0]+(-i+i*2*BMMath.random())*c}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,s=-Math.atan2(i[1],i[2])/degToRads;return[s,r,0]}function easeOut(e,t,i,r,s){return applyEase(easeOutBez,e,t,i,r,s)}function easeIn(e,t,i,r,s){return applyEase(easeInBez,e,t,i,r,s)}function ease(e,t,i,r,s){return applyEase(easeInOutBez,e,t,i,r,s)}function applyEase(e,t,i,r,s,n){s===void 0?(s=i,n=r):t=(t-i)/(r-i),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(s)){var o,l=s.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(n[o]-s[o])*a+s[o];return c}return(n-s)*a+s}function nearestKey(e){var t,i=data.k.length,r,s;if(!data.k.length||typeof data.k[0]=="number")r=0,s=0;else if(r=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)r=1,s=data.k[0].t;else{for(t=0;t<i-1;t+=1)if(e===data.k[t].t){r=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,s=data.k[t+1].t):(r=t+1,s=data.k[t].t);break}r===-1&&(r=t+1,s=data.k[t].t)}var n={};return n.index=r,n.time=s/elem.comp.globalData.frameRate,n}function key(e){var t,i,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=s.length,i=0;i<r;i+=1)t[i]=s[i],t.value[i]=s[i];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(i){var r=0,s=[];function n(){r+=1}function a(){r-=1,r===0&&l()}function o(c){s.indexOf(c)===-1&&s.push(c)}function l(){var c,g=s.length;for(c=0;c<g;c+=1)s[c].release();s.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=n,i.renderer.globalData.popExpression=a,i.renderer.globalData.registerExpressionProperty=o}return e}(),MaskManagerInterface=function(){function e(i,r){this._mask=i,this._data=r}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(r){var s=createSizedArray(r.viewData.length),n,a=r.viewData.length;for(n=0;n<a;n+=1)s[n]=new e(r.viewData[n],r.masksProperties[n]);var o=function(c){for(n=0;n<a;){if(r.masksProperties[n].nm===c)return s[n];n+=1}return null};return o};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function i(a,o,l){Object.defineProperty(a,"velocity",{get:function(){return o.getVelocityAtTime(o.comp.currentFrame)}}),a.numKeys=o.keyframes?o.keyframes.length:0,a.key=function(c){if(!a.numKeys)return 0;var g="";"s"in o.keyframes[c-1]?g=o.keyframes[c-1].s:"e"in o.keyframes[c-2]?g=o.keyframes[c-2].e:g=o.keyframes[c-2].s;var S=l==="unidimensional"?new Number(g):Object.assign({},g);return S.time=o.keyframes[c-1].t/o.elem.comp.globalData.frameRate,S.value=l==="unidimensional"?g[0]:g,S},a.valueAtTime=o.getValueAtTime,a.speedAtTime=o.getSpeedAtTime,a.velocityAtTime=o.getVelocityAtTime,a.propertyGroup=o.propertyGroup}function r(a){(!a||!("pv"in a))&&(a=e);var o=1/a.mult,l=a.pv*o,c=new Number(l);return c.value=l,i(c,a,"unidimensional"),function(){return a.k&&a.getValue(),l=a.v*o,c.value!==l&&(c=new Number(l),c.value=l,i(c,a,"unidimensional")),c}}function s(a){(!a||!("pv"in a))&&(a=t);var o=1/a.mult,l=a.data&&a.data.l||a.pv.length,c=createTypedArray("float32",l),g=createTypedArray("float32",l);return c.value=g,i(c,a,"multidimensional"),function(){a.k&&a.getValue();for(var S=0;S<l;S+=1)g[S]=a.v[S]*o,c[S]=g[S];return c}}function n(){return e}return function(a){return a?a.propType==="unidimensional"?r(a):s(a):n}}(),TransformExpressionInterface=function(){return function(e){function t(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var i,r,s,n;return e.p?n=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[i(),r(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(c){var g=new Matrix;if(c!==void 0){var S=this._elem.finalTransform.mProp.getValueAtTime(c);S.clone(g)}else{var p=this._elem.finalTransform.mProp;p.applyToMatrix(g)}return g}function t(c,g){var S=this.getMatrix(g);return S.props[12]=0,S.props[13]=0,S.props[14]=0,this.applyPoint(S,c)}function i(c,g){var S=this.getMatrix(g);return this.applyPoint(S,c)}function r(c,g){var S=this.getMatrix(g);return S.props[12]=0,S.props[13]=0,S.props[14]=0,this.invertPoint(S,c)}function s(c,g){var S=this.getMatrix(g);return this.invertPoint(S,c)}function n(c,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var S,p=this._elem.hierarchy.length;for(S=0;S<p;S+=1)this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(g[0],g[1],g[2]||0)}function a(c,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var S,p=this._elem.hierarchy.length;for(S=0;S<p;S+=1)this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(g)}function o(c){var g=new Matrix;if(g.reset(),this._elem.finalTransform.mProp.applyToMatrix(g),this._elem.hierarchy&&this._elem.hierarchy.length){var S,p=this._elem.hierarchy.length;for(S=0;S<p;S+=1)this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(g);return g.inversePoint(c)}return g.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var g;function S(m){P.mask=new MaskManagerInterface(m,c)}function p(m){P.effect=m}function P(m){switch(m){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 g;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return P.effect;case"ADBE Text Properties":return P.textInterface;default:return null}}P.getMatrix=e,P.invertPoint=a,P.applyPoint=n,P.toWorld=i,P.toWorldVec=t,P.fromWorld=s,P.fromWorldVec=r,P.toComp=i,P.fromComp=o,P.sampleImage=l,P.sourceRectAtTime=c.sourceRectAtTime.bind(c),P._elem=c,g=TransformExpressionInterface(c.finalTransform.mProp);var y=getDescriptor(g,"anchorPoint");return Object.defineProperties(P,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(g,"rotation"),scale:getDescriptor(g,"scale"),position:getDescriptor(g,"position"),opacity:getDescriptor(g,"opacity"),anchorPoint:y,anchor_point:y,transform:{get:function(){return g}},active:{get:function(){return c.isInRange}}}),P.startTime=c.data.st,P.index=c.data.ind,P.source=c.data.refId,P.height=c.data.ty===0?c.data.h:100,P.width=c.data.ty===0?c.data.w:100,P.inPoint=c.data.ip/c.comp.globalData.frameRate,P.outPoint=c.data.op/c.comp.globalData.frameRate,P._name=c.data.nm,P.registerMaskInterface=S,P.registerEffectsInterface=p,P}}(),propertyGroupFactory=function(){return function(e,t){return function(i){return i=i===void 0?1:i,i<=0?e:t(i-1)}}}(),PropertyInterface=function(){return function(e,t){var i={_name:e};function r(s){return s=s===void 0?1:s,s<=0?i:t(s-1)}return r}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,n){if(s.effectsManager){var a=[],o=s.data.ef,l,c=s.effectsManager.effectElements.length;for(l=0;l<c;l+=1)a.push(i(o[l],s.effectsManager.effectElements[l],n,s));var g=s.data.ef||[],S=function(P){for(l=0,c=g.length;l<c;){if(P===g[l].nm||P===g[l].mn||P===g[l].ix)return a[l];l+=1}return null};return Object.defineProperty(S,"numProperties",{get:function(){return g.length}}),S}return null}function i(s,n,a,o){function l(P){for(var y=s.ef,m=0,A=y.length;m<A;){if(P===y[m].nm||P===y[m].mn||P===y[m].ix)return y[m].ty===5?g[m]:g[m]();m+=1}throw new Error}var c=propertyGroupFactory(l,a),g=[],S,p=s.ef.length;for(S=0;S<p;S+=1)s.ef[S].ty===5?g.push(i(s.ef[S],n.effectElements[S],n.effectElements[S].propertyGroup,o)):g.push(r(n.effectElements[S],s.ef[S].ty,o,c));return s.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return g[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:c}}),l.enabled=s.en!==0,l.active=l.enabled,l}function r(s,n,a,o){var l=ExpressionPropertyInterface(s.p);function c(){return n===10?a.comp.compInterface(s.p.v):l()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",o)),c}return e}(),ShapePathInterface=function(){return function(t,i,r){var s=i.sh;function n(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?n.path:null}var a=propertyGroupFactory(n,r);return s.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n}}(),ShapeExpressionInterface=function(){function e(y,m,A){var u=[],f,d=y?y.length:0;for(f=0;f<d;f+=1)y[f].ty==="gr"?u.push(i(y[f],m[f],A)):y[f].ty==="fl"?u.push(r(y[f],m[f],A)):y[f].ty==="st"?u.push(a(y[f],m[f],A)):y[f].ty==="tm"?u.push(o(y[f],m[f],A)):y[f].ty==="tr"||(y[f].ty==="el"?u.push(c(y[f],m[f],A)):y[f].ty==="sr"?u.push(g(y[f],m[f],A)):y[f].ty==="sh"?u.push(ShapePathInterface(y[f],m[f],A)):y[f].ty==="rc"?u.push(S(y[f],m[f],A)):y[f].ty==="rd"?u.push(p(y[f],m[f],A)):y[f].ty==="rp"?u.push(P(y[f],m[f],A)):y[f].ty==="gf"?u.push(s(y[f],m[f],A)):u.push(n(y[f],m[f])));return u}function t(y,m,A){var u,f=function(C){for(var x=0,M=u.length;x<M;){if(u[x]._name===C||u[x].mn===C||u[x].propertyIndex===C||u[x].ix===C||u[x].ind===C)return u[x];x+=1}return typeof C=="number"?u[C-1]:null};f.propertyGroup=propertyGroupFactory(f,A),u=e(y.it,m.it,f.propertyGroup),f.numProperties=u.length;var d=l(y.it[y.it.length-1],m.it[m.it.length-1],f.propertyGroup);return f.transform=d,f.propertyIndex=y.cix,f._name=y.nm,f}function i(y,m,A){var u=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return u.content;default:return u.transform}};u.propertyGroup=propertyGroupFactory(u,A);var f=t(y,m,u.propertyGroup),d=l(y.it[y.it.length-1],m.it[m.it.length-1],u.propertyGroup);return u.content=f,u.transform=d,Object.defineProperty(u,"_name",{get:function(){return y.nm}}),u.numProperties=y.np,u.propertyIndex=y.ix,u.nm=y.nm,u.mn=y.mn,u}function r(y,m,A){function u(f){return f==="Color"||f==="color"?u.color:f==="Opacity"||f==="opacity"?u.opacity:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:y.nm},mn:{value:y.mn}}),m.c.setGroupProperty(PropertyInterface("Color",A)),m.o.setGroupProperty(PropertyInterface("Opacity",A)),u}function s(y,m,A){function u(f){return f==="Start Point"||f==="start point"?u.startPoint:f==="End Point"||f==="end point"?u.endPoint:f==="Opacity"||f==="opacity"?u.opacity:null}return Object.defineProperties(u,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:y.nm},mn:{value:y.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",A)),m.e.setGroupProperty(PropertyInterface("End Point",A)),m.o.setGroupProperty(PropertyInterface("Opacity",A)),u}function n(){function y(){return null}return y}function a(y,m,A){var u=propertyGroupFactory(M,A),f=propertyGroupFactory(x,u);function d(k){Object.defineProperty(x,y.d[k].nm,{get:ExpressionPropertyInterface(m.d.dataProps[k].p)})}var b,C=y.d?y.d.length:0,x={};for(b=0;b<C;b+=1)d(b),m.d.dataProps[b].p.setGroupProperty(f);function M(k){return k==="Color"||k==="color"?M.color:k==="Opacity"||k==="opacity"?M.opacity:k==="Stroke Width"||k==="stroke width"?M.strokeWidth:null}return Object.defineProperties(M,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return x}},_name:{value:y.nm},mn:{value:y.mn}}),m.c.setGroupProperty(PropertyInterface("Color",u)),m.o.setGroupProperty(PropertyInterface("Opacity",u)),m.w.setGroupProperty(PropertyInterface("Stroke Width",u)),M}function o(y,m,A){function u(d){return d===y.e.ix||d==="End"||d==="end"?u.end:d===y.s.ix?u.start:d===y.o.ix?u.offset:null}var f=propertyGroupFactory(u,A);return u.propertyIndex=y.ix,m.s.setGroupProperty(PropertyInterface("Start",f)),m.e.setGroupProperty(PropertyInterface("End",f)),m.o.setGroupProperty(PropertyInterface("Offset",f)),u.propertyIndex=y.ix,u.propertyGroup=A,Object.defineProperties(u,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:y.nm}}),u.mn=y.mn,u}function l(y,m,A){function u(d){return y.a.ix===d||d==="Anchor Point"?u.anchorPoint:y.o.ix===d||d==="Opacity"?u.opacity:y.p.ix===d||d==="Position"?u.position:y.r.ix===d||d==="Rotation"||d==="ADBE Vector Rotation"?u.rotation:y.s.ix===d||d==="Scale"?u.scale:y.sk&&y.sk.ix===d||d==="Skew"?u.skew:y.sa&&y.sa.ix===d||d==="Skew Axis"?u.skewAxis:null}var f=propertyGroupFactory(u,A);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",f)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",f)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",f)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",f)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",f)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",f)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",f))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",f)),Object.defineProperties(u,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:y.nm}}),u.ty="tr",u.mn=y.mn,u.propertyGroup=A,u}function c(y,m,A){function u(b){return y.p.ix===b?u.position:y.s.ix===b?u.size:null}var f=propertyGroupFactory(u,A);u.propertyIndex=y.ix;var d=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.s.setGroupProperty(PropertyInterface("Size",f)),d.p.setGroupProperty(PropertyInterface("Position",f)),Object.defineProperties(u,{size:{get:ExpressionPropertyInterface(d.s)},position:{get:ExpressionPropertyInterface(d.p)},_name:{value:y.nm}}),u.mn=y.mn,u}function g(y,m,A){function u(b){return y.p.ix===b?u.position:y.r.ix===b?u.rotation:y.pt.ix===b?u.points:y.or.ix===b||b==="ADBE Vector Star Outer Radius"?u.outerRadius:y.os.ix===b?u.outerRoundness:y.ir&&(y.ir.ix===b||b==="ADBE Vector Star Inner Radius")?u.innerRadius:y.is&&y.is.ix===b?u.innerRoundness:null}var f=propertyGroupFactory(u,A),d=m.sh.ty==="tm"?m.sh.prop:m.sh;return u.propertyIndex=y.ix,d.or.setGroupProperty(PropertyInterface("Outer Radius",f)),d.os.setGroupProperty(PropertyInterface("Outer Roundness",f)),d.pt.setGroupProperty(PropertyInterface("Points",f)),d.p.setGroupProperty(PropertyInterface("Position",f)),d.r.setGroupProperty(PropertyInterface("Rotation",f)),y.ir&&(d.ir.setGroupProperty(PropertyInterface("Inner Radius",f)),d.is.setGroupProperty(PropertyInterface("Inner Roundness",f))),Object.defineProperties(u,{position:{get:ExpressionPropertyInterface(d.p)},rotation:{get:ExpressionPropertyInterface(d.r)},points:{get:ExpressionPropertyInterface(d.pt)},outerRadius:{get:ExpressionPropertyInterface(d.or)},outerRoundness:{get:ExpressionPropertyInterface(d.os)},innerRadius:{get:ExpressionPropertyInterface(d.ir)},innerRoundness:{get:ExpressionPropertyInterface(d.is)},_name:{value:y.nm}}),u.mn=y.mn,u}function S(y,m,A){function u(b){return y.p.ix===b?u.position:y.r.ix===b?u.roundness:y.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?u.size:null}var f=propertyGroupFactory(u,A),d=m.sh.ty==="tm"?m.sh.prop:m.sh;return u.propertyIndex=y.ix,d.p.setGroupProperty(PropertyInterface("Position",f)),d.s.setGroupProperty(PropertyInterface("Size",f)),d.r.setGroupProperty(PropertyInterface("Rotation",f)),Object.defineProperties(u,{position:{get:ExpressionPropertyInterface(d.p)},roundness:{get:ExpressionPropertyInterface(d.r)},size:{get:ExpressionPropertyInterface(d.s)},_name:{value:y.nm}}),u.mn=y.mn,u}function p(y,m,A){function u(b){return y.r.ix===b||b==="Round Corners 1"?u.radius:null}var f=propertyGroupFactory(u,A),d=m;return u.propertyIndex=y.ix,d.rd.setGroupProperty(PropertyInterface("Radius",f)),Object.defineProperties(u,{radius:{get:ExpressionPropertyInterface(d.rd)},_name:{value:y.nm}}),u.mn=y.mn,u}function P(y,m,A){function u(b){return y.c.ix===b||b==="Copies"?u.copies:y.o.ix===b||b==="Offset"?u.offset:null}var f=propertyGroupFactory(u,A),d=m;return u.propertyIndex=y.ix,d.c.setGroupProperty(PropertyInterface("Copies",f)),d.o.setGroupProperty(PropertyInterface("Offset",f)),Object.defineProperties(u,{copies:{get:ExpressionPropertyInterface(d.c)},offset:{get:ExpressionPropertyInterface(d.o)},_name:{value:y.nm}}),u.mn=y.mn,u}return function(y,m,A){var u;function f(b){if(typeof b=="number")return b=b===void 0?1:b,b===0?A:u[b-1];for(var C=0,x=u.length;C<x;){if(u[C]._name===b)return u[C];C+=1}return null}function d(){return A}return f.propertyGroup=propertyGroupFactory(f,d),u=e(y,m,f.propertyGroup),f.numProperties=u.length,f._name="Contents",f}}(),TextExpressionInterface=function(){return function(e){var t;function i(r){switch(r){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(i){return typeof i}:_typeof=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(e)}var FootageInterface=function(){var e=function(r){var s="",n=r.getFootageData();function a(){return s="",n=r.getFootageData(),o}function o(l){if(n[l])return s=l,n=n[l],_typeof(n)==="object"?o:n;var c=l.indexOf(s);if(c!==-1){var g=parseInt(l.substr(c+s.length),10);return n=n[g],_typeof(n)==="object"?o:n}return""}return a},t=function(r){function s(n){return n==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(r),s};return function(i){function r(s){return s==="Data"?r.dataInterface:null}return r._name="Data",r.dataInterface=t(i),r}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(a,o,l){o.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(a,o,l).bind(l)))}function t(a){return a*=this.elem.globalData.frameRate,a-=this.offsetTime,a!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<a?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(a,this._cachingAtTime),this._cachingAtTime.lastFrame=a),this._cachingAtTime.value}function i(a){var o=-.01,l=this.getValueAtTime(a),c=this.getValueAtTime(a+o),g=0;if(l.length){var S;for(S=0;S<l.length;S+=1)g+=Math.pow(c[S]-l[S],2);g=Math.sqrt(g)*100}else g=0;return g}function r(a){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(a),c=this.getValueAtTime(a+o),g;if(l.length){g=createTypedArray("float32",l.length);var S;for(S=0;S<l.length;S+=1)g[S]=(c[S]-l[S])/o}else g=(c-l)/o;return g}function s(){return this.pv}function n(a){this.propertyGroup=a}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:r,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:n}}();function addPropertyDecorator(){function e(p,P,y){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var m=this.comp.renderedFrame,A=this.keyframes,u=A[A.length-1].t;if(m<=u)return this.pv;var f,d;y?(P?f=Math.abs(u-this.elem.comp.globalData.frameRate*P):f=Math.max(0,u-this.elem.data.ip),d=u-f):((!P||P>A.length-1)&&(P=A.length-1),d=A[A.length-1-P].t,f=u-d);var b,C,x;if(p==="pingpong"){var M=Math.floor((m-d)/f);if(M%2!==0)return this.getValueAtTime((f-(m-d)%f+d)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var k=this.getValueAtTime(d/this.comp.globalData.frameRate,0),I=this.getValueAtTime(u/this.comp.globalData.frameRate,0),N=this.getValueAtTime(((m-d)%f+d)/this.comp.globalData.frameRate,0),B=Math.floor((m-d)/f);if(this.pv.length){for(x=new Array(k.length),C=x.length,b=0;b<C;b+=1)x[b]=(I[b]-k[b])*B+N[b];return x}return(I-k)*B+N}else if(p==="continue"){var D=this.getValueAtTime(u/this.comp.globalData.frameRate,0),$=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(D.length),C=x.length,b=0;b<C;b+=1)x[b]=D[b]+(D[b]-$[b])*((m-u)/this.comp.globalData.frameRate)/5e-4;return x}return D+(D-$)*((m-u)/.001)}return this.getValueAtTime(((m-d)%f+d)/this.comp.globalData.frameRate,0)}function t(p,P,y){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var m=this.comp.renderedFrame,A=this.keyframes,u=A[0].t;if(m>=u)return this.pv;var f,d;y?(P?f=Math.abs(this.elem.comp.globalData.frameRate*P):f=Math.max(0,this.elem.data.op-u),d=u+f):((!P||P>A.length-1)&&(P=A.length-1),d=A[P].t,f=d-u);var b,C,x;if(p==="pingpong"){var M=Math.floor((u-m)/f);if(M%2===0)return this.getValueAtTime(((u-m)%f+u)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var k=this.getValueAtTime(u/this.comp.globalData.frameRate,0),I=this.getValueAtTime(d/this.comp.globalData.frameRate,0),N=this.getValueAtTime((f-(u-m)%f+u)/this.comp.globalData.frameRate,0),B=Math.floor((u-m)/f)+1;if(this.pv.length){for(x=new Array(k.length),C=x.length,b=0;b<C;b+=1)x[b]=N[b]-(I[b]-k[b])*B;return x}return N-(I-k)*B}else if(p==="continue"){var D=this.getValueAtTime(u/this.comp.globalData.frameRate,0),$=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(D.length),C=x.length,b=0;b<C;b+=1)x[b]=D[b]+(D[b]-$[b])*(u-m)/.001;return x}return D+(D-$)*(u-m)/.001}return this.getValueAtTime((f-((u-m)%f+u))/this.comp.globalData.frameRate,0)}function i(p,P){if(!this.k)return this.pv;if(p=(p||.4)*.5,P=Math.floor(P||5),P<=1)return this.pv;var y=this.comp.renderedFrame/this.comp.globalData.frameRate,m=y-p,A=y+p,u=P>1?(A-m)/(P-1):1,f=0,d=0,b;this.pv.length?b=createTypedArray("float32",this.pv.length):b=0;for(var C;f<P;){if(C=this.getValueAtTime(m+f*u),this.pv.length)for(d=0;d<this.pv.length;d+=1)b[d]+=C[d];else b+=C;f+=1}if(this.pv.length)for(d=0;d<this.pv.length;d+=1)b[d]/=P;else b/=P;return b}function r(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var P=this._transformCachingAtTime.v;if(P.cloneFromProps(this.pre.props),this.appliedTransformations<1){var y=this.a.getValueAtTime(p);P.translate(-y[0]*this.a.mult,-y[1]*this.a.mult,y[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(p);P.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var A=this.sk.getValueAtTime(p),u=this.sa.getValueAtTime(p);P.skewFromAxis(-A*this.sk.mult,u*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var f=this.r.getValueAtTime(p);P.rotate(-f*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var d=this.rz.getValueAtTime(p),b=this.ry.getValueAtTime(p),C=this.rx.getValueAtTime(p),x=this.or.getValueAtTime(p);P.rotateZ(-d*this.rz.mult).rotateY(b*this.ry.mult).rotateX(C*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 M=this.px.getValueAtTime(p),k=this.py.getValueAtTime(p);if(this.data.p.z){var I=this.pz.getValueAtTime(p);P.translate(M*this.px.mult,k*this.py.mult,-I*this.pz.mult)}else P.translate(M*this.px.mult,k*this.py.mult,0)}else{var N=this.p.getValueAtTime(p);P.translate(N[0]*this.p.mult,N[1]*this.p.mult,-N[2]*this.p.mult)}return P}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,P,y){var m=n(p,P,y);return m.dynamicProperties.length?m.getValueAtTime=r.bind(m):m.getValueAtTime=s.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(p,P,y,m,A){var u=a(p,P,y,m,A);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=i,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=P.a===1?P.k.length:0,u.propertyIndex=P.ix;var f=0;return y!==0&&(f=createTypedArray("float32",P.a===1?P.k[0].s.length:P.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:f},expressionHelpers.searchExpressions(p,P,u),u.k&&A.addDynamicProperty(u),u};function o(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function g(){}g.prototype={vertices:function(P,y){this.k&&this.getValue();var m=this.v;y!==void 0&&(m=this.getValueAtTime(y,0));var A,u=m._length,f=m[P],d=m.v,b=createSizedArray(u);for(A=0;A<u;A+=1)P==="i"||P==="o"?b[A]=[f[A][0]-d[A][0],f[A][1]-d[A][1]]:b[A]=[f[A][0],f[A][1]];return b},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,y){var m=this.v;y!==void 0&&(m=this.getValueAtTime(y,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var A=this._segmentsLength,u=A.lengths,f=A.totalLength*P,d=0,b=u.length,C=0,x;d<b;){if(C+u[d].addedLength>f){var M=d,k=m.c&&d===b-1?0:d+1,I=(f-C)/u[d].addedLength;x=bez.getPointInSegment(m.v[M],m.v[k],m.o[M],m.i[k],I,u[d]);break}else C+=u[d].addedLength;d+=1}return x||(x=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),x},vectorOnPath:function(P,y,m){P==1?P=this.v.c:P==0&&(P=.999);var A=this.pointOnPath(P,y),u=this.pointOnPath(P+.001,y),f=u[0]-A[0],d=u[1]-A[1],b=Math.sqrt(Math.pow(f,2)+Math.pow(d,2));if(b===0)return[0,0];var C=m==="tangent"?[f/b,d/b]:[-d/b,f/b];return C},tangentOnPath:function(P,y){return this.vectorOnPath(P,y,"tangent")},normalOnPath:function(P,y){return this.vectorOnPath(P,y,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],l),extendPrototype([g],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var S=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,P,y,m,A){var u=S(p,P,y,m,A);return u.propertyIndex=P.ix,u.lock=!1,y===3?expressionHelpers.searchExpressions(p,P.pt,u):y===4&&expressionHelpers.searchExpressions(p,P.ks,u),u.k&&p.addDynamicProperty(u),u}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,i){var r=this.calculateExpression(i);if(t.t!==r){var s={};return this.copyData(s,t),s.t=r.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),i=this.searchExpressions();return this.kf=t||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,i){var r=createNS("feMerge");r.setAttribute("result",t);var s,n;for(n=0;n<i.length;n+=1)s=createNS("feMergeNode"),s.setAttribute("in",i[n]),r.appendChild(s),r.appendChild(s);return r}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,i,r,s){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",r+"_tint_1"),e.appendChild(n),n=createNS("feColorMatrix"),n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(r,[s,r+"_tint_1",r+"_tint_2"]);e.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,i,r){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",r),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,i,r,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,r=0):(r=this.filterManager.effectElements[0].p.v-1,s=r+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),r;r<s;r+=1)t=createNS("path"),i.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(i),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");e[0];)o.appendChild(e[0]);this.elem.layerElement.appendChild(o),this.masker=n,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,i=this.paths.length,r,s;for(t=0;t<i;t+=1)if(this.paths[t].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&s.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var n;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=s.getTotalLength();n="0 0 0 "+l*a+" ";var c=l*(o-a),g=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,S=Math.floor(c/g),p;for(p=0;p<S;p+=1)n+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+l*10+" 0 0"}else n="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var P=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(P[0]*255)+","+bmFloor(P[1]*255)+","+bmFloor(P[2]*255)+")")}};function SVGTritoneFilter(e,t,i,r){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",r),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,s=r[0]+" "+i[0]+" "+t[0],n=r[1]+" "+i[1]+" "+t[1],a=r[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(e,t,i,r){this.filterManager=t;var s=this.filterManager.effectElements,n=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(n=createNS("feComponentTransfer"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",r),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,r,s){for(var n=0,a=256,o,l=Math.min(e,t),c=Math.max(e,t),g=Array.call(null,{length:a}),S,p=0,P=s-r,y=t-e;n<=256;)o=n/256,o<=l?S=y<0?s:r:o>=c?S=y<0?r:s:S=r+P*Math.pow((o-e)/y,1/i),g[p]=S,p+=1,n+=256/(a-1);return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,i,r,s){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var g=createNS("feComposite");g.setAttribute("in",r+"_drop_shadow_3"),g.setAttribute("in2",r+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(g);var S=this.createMergeNode(r,[r+"_drop_shadow_4",s]);e.appendChild(S)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),n=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var r=i.children,s=0,n=r.length;s<n&&r[s]!==e.layerElement;)s+=1;var a;s<=n-2&&(a=r[s+1]);var o=createNS("use");o.setAttribute("href","#"+t),a?i.insertBefore(o,a):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(r);var n=createNS("symbol");n.setAttribute("id",i),this.replaceInParent(t,i),n.appendChild(t.layerElement),s.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+i),r.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,i=0,r=t.length;i<r;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,i,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",r),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,i=this.filterManager.effectElements[0].p.v*t,r=this.filterManager.effectElements[1].p.v,s=r==3?0:i,n=r==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+n);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,i=t[0].p.v,r=t[1].p.v,s=t[2].p.v===1,n=t[3].p.v,a=s?n:t[4].p.v,o=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(a*.01,n*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie,lottie.exports);var lottieExports=lottie.exports;const Lottie=getDefaultExportFromCjs(lottieExports);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),i=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch{}var s=nativeObjectToString$1.call(e);return r&&(t?e[symToStringTag$1]=i:delete e[symToStringTag$1]),s}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var isArray$2=Array.isArray,isArray$1$1=isArray$2;function isObject$2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$2(e))return!1;var t=baseGetTag(e);return t==funcTag$2||t==genTag$1||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch{}try{return e+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject$2(e)||isMasked(e))return!1;var t=isFunction$2(e)?reIsNative:reIsHostCtor;return t.test(toSource(e))}function getValue(e,t){return e==null?void 0:e[t]}function getNative(e,t){var i=getValue(e,t);return baseIsNative(i)?i:void 0}var WeakMap$1=getNative(root$1,"WeakMap"),WeakMap$1$1=WeakMap$1,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject$2(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),baseCreate$1=baseCreate;function copyArray(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}(),defineProperty$1=defineProperty;function arrayEach(e,t){for(var i=-1,r=e==null?0:e.length;++i<r&&t(e[i],i,e)!==!1;);return e}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var i=typeof e;return t=t??MAX_SAFE_INTEGER$1,!!t&&(i=="number"||i!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function baseAssignValue(e,t,i){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function eq(e,t){return e===t||e!==e&&t!==t}var objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function assignValue(e,t,i){var r=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(r,i))||i===void 0&&!(t in e))&&baseAssignValue(e,t,i)}function copyObject(e,t,i,r){var s=!i;i||(i={});for(var n=-1,a=t.length;++n<a;){var o=t[n],l=r?r(i[o],e[o],o,i,e):void 0;l===void 0&&(l=e[o]),s?baseAssignValue(i,o,l):assignValue(i,o,l)}return i}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction$2(e)}var objectProto$a=Object.prototype;function isPrototype(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||objectProto$a;return e===i}function baseTimes(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}var argsTag$3="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$8.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var e=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1=isTypedArray,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function arrayLikeKeys(e,t){var i=isArray$1$1(e),r=!i&&isArguments$1(e),s=!i&&!r&&isBuffer$1(e),n=!i&&!r&&!s&&isTypedArray$1(e),a=i||r||s||n,o=a?baseTimes(e.length,String):[],l=o.length;for(var c in e)(t||hasOwnProperty$7.call(e,c))&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||isIndex(c,l)))&&o.push(c);return o}function overArg(e,t){return function(i){return e(t(i))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys$1(e);var t=[];for(var i in Object(e))hasOwnProperty$6.call(e,i)&&i!="constructor"&&t.push(i);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function nativeKeysIn(e){var t=[];if(e!=null)for(var i in Object(e))t.push(i);return t}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeysIn(e){if(!isObject$2(e))return nativeKeysIn(e);var t=isPrototype(e),i=[];for(var r in e)r=="constructor"&&(t||!hasOwnProperty$5.call(e,r))||i.push(r);return i}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var i=t[e];return i===HASH_UNDEFINED$2?void 0:i}return hasOwnProperty$4.call(t,e)?t[e]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$3.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=nativeCreate$1&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var i=e.length;i--;)if(eq(e[i][0],t))return i;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,i=assocIndexOf(t,e);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():splice.call(t,i,1),--this.size,!0}function listCacheGet(e){var t=this.__data__,i=assocIndexOf(t,e);return i<0?void 0:t[i][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var i=this.__data__,r=assocIndexOf(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}function ListCache(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map=getNative(root$1,"Map"),Map$1=Map;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function getMapData(e,t){var i=e.__data__;return isKeyable(t)?i[typeof t=="string"?"string":"hash"]:i.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var i=getMapData(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}function MapCache(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function arrayPush(e,t){for(var i=-1,r=t.length,s=e.length;++i<r;)e[s+i]=t[i];return e}var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var i=this.__data__;if(i instanceof ListCache){var r=i.__data__;if(!Map$1||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new MapCache(r)}return i.set(e,t),this.size=i.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}function baseAssignIn(e,t){return e&&copyObject(t,keysIn(t),e)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(e,t){if(t)return e.slice();var i=e.length,r=allocUnsafe?allocUnsafe(i):new e.constructor(i);return e.copy(r),r}function arrayFilter(e,t){for(var i=-1,r=e==null?0:e.length,s=0,n=[];++i<r;){var a=e[i];t(a,i,e)&&(n[s++]=a)}return n}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols$1(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,getSymbols$1=getSymbols;function copySymbols(e,t){return copyObject(e,getSymbols$1(e),t)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush(t,getSymbols$1(e)),e=getPrototype$1(e);return t}:stubArray,getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(e,t){return copyObject(e,getSymbolsIn$1(e),t)}function baseGetAllKeys(e,t,i){var r=t(e);return isArray$1$1(e)?r:arrayPush(r,i(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols$1)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn$1)}var DataView=getNative(root$1,"DataView"),DataView$1=DataView,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set=getNative(root$1,"Set"),Set$1=Set,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1&&getTag(new Map$1)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1$1&&getTag(new WeakMap$1$1)!=weakMapTag$1)&&(getTag=function(e){var t=baseGetTag(e),i=t==objectTag$2?e.constructor:void 0,r=i?toSource(i):"";if(r)switch(r){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return t});var getTag$1=getTag,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function initCloneArray(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&hasOwnProperty$2.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Uint8Array$1=root$1.Uint8Array,Uint8Array$1$1=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1$1(t).set(new Uint8Array$1$1(e)),t}function cloneDataView(e,t){var i=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var reFlags=/\w*$/;function cloneRegExp(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}function cloneTypedArray(e,t){var i=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(e,t,i){var r=e.constructor;switch(t){case arrayBufferTag$2:return cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new r(+e);case dataViewTag$2:return cloneDataView(e,i);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,i);case mapTag$3:return new r;case numberTag$2:case stringTag$2:return new r(e);case regexpTag$2:return cloneRegExp(e);case setTag$3:return new r;case symbolTag$2:return cloneSymbol(e)}}function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype(e)?baseCreate$1(getPrototype$1(e)):{}}var mapTag$2="[object Map]";function baseIsMap(e){return isObjectLike(e)&&getTag$1(e)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isMap$1=isMap,setTag$2="[object Set]";function baseIsSet(e){return isObjectLike(e)&&getTag$1(e)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet$1=isSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(e,t,i,r,s,n){var a,o=t&CLONE_DEEP_FLAG$1,l=t&CLONE_FLAT_FLAG,c=t&CLONE_SYMBOLS_FLAG$1;if(i&&(a=s?i(e,r,s,n):i(e)),a!==void 0)return a;if(!isObject$2(e))return e;var g=isArray$1$1(e);if(g){if(a=initCloneArray(e),!o)return copyArray(e,a)}else{var S=getTag$1(e),p=S==funcTag||S==genTag;if(isBuffer$1(e))return cloneBuffer(e,o);if(S==objectTag$1||S==argsTag$1||p&&!s){if(a=l||p?{}:initCloneObject(e),!o)return l?copySymbolsIn(e,baseAssignIn(a,e)):copySymbols(e,baseAssign(a,e))}else{if(!cloneableTags[S])return s?e:{};a=initCloneByTag(e,S,o)}}n||(n=new Stack);var P=n.get(e);if(P)return P;n.set(e,a),isSet$1(e)?e.forEach(function(A){a.add(baseClone(A,t,i,A,e,n))}):isMap$1(e)&&e.forEach(function(A,u){a.set(u,baseClone(A,t,i,u,e,n))});var y=c?l?getAllKeysIn:getAllKeys:l?keysIn:keys,m=g?void 0:y(e);return arrayEach(m||e,function(A,u){m&&(u=A,A=e[u]),assignValue(a,u,baseClone(A,t,i,u,e,n))}),a}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep$1(e){return baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new MapCache;++t<i;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(e,t){for(var i=-1,r=e==null?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,i,r,s,n){var a=i&COMPARE_PARTIAL_FLAG$3,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=n.get(e),g=n.get(t);if(c&&g)return c==t&&g==e;var S=-1,p=!0,P=i&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(n.set(e,t),n.set(t,e);++S<o;){var y=e[S],m=t[S];if(r)var A=a?r(m,y,S,t,e,n):r(y,m,S,e,t,n);if(A!==void 0){if(A)continue;p=!1;break}if(P){if(!arraySome(t,function(u,f){if(!cacheHas(P,f)&&(y===u||s(y,u,i,r,n)))return P.push(f)})){p=!1;break}}else if(!(y===m||s(y,m,i,r,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function mapToArray(e){var t=-1,i=Array(e.size);return e.forEach(function(r,s){i[++t]=[s,r]}),i}function setToArray(e){var t=-1,i=Array(e.size);return e.forEach(function(r){i[++t]=r}),i}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,i,r,s,n,a){switch(i){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!n(new Uint8Array$1$1(e),new Uint8Array$1$1(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var o=mapToArray;case setTag:var l=r&COMPARE_PARTIAL_FLAG$2;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=COMPARE_UNORDERED_FLAG,a.set(e,t);var g=equalArrays(o(e),o(t),r,s,n,a);return a.delete(e),g;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,i,r,s,n){var a=i&COMPARE_PARTIAL_FLAG$1,o=getAllKeys(e),l=o.length,c=getAllKeys(t),g=c.length;if(l!=g&&!a)return!1;for(var S=l;S--;){var p=o[S];if(!(a?p in t:hasOwnProperty$1.call(t,p)))return!1}var P=n.get(e),y=n.get(t);if(P&&y)return P==t&&y==e;var m=!0;n.set(e,t),n.set(t,e);for(var A=a;++S<l;){p=o[S];var u=e[p],f=t[p];if(r)var d=a?r(f,u,p,t,e,n):r(u,f,p,e,t,n);if(!(d===void 0?u===f||s(u,f,i,r,n):d)){m=!1;break}A||(A=p=="constructor")}if(m&&!A){var b=e.constructor,C=t.constructor;b!=C&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof C=="function"&&C instanceof C)&&(m=!1)}return n.delete(e),n.delete(t),m}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,i,r,s,n){var a=isArray$1$1(e),o=isArray$1$1(t),l=a?arrayTag:getTag$1(e),c=o?arrayTag:getTag$1(t);l=l==argsTag?objectTag:l,c=c==argsTag?objectTag:c;var g=l==objectTag,S=c==objectTag,p=l==c;if(p&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;a=!0,g=!1}if(p&&!g)return n||(n=new Stack),a||isTypedArray$1(e)?equalArrays(e,t,i,r,s,n):equalByTag(e,t,l,i,r,s,n);if(!(i&COMPARE_PARTIAL_FLAG)){var P=g&&hasOwnProperty.call(e,"__wrapped__"),y=S&&hasOwnProperty.call(t,"__wrapped__");if(P||y){var m=P?e.value():e,A=y?t.value():t;return n||(n=new Stack),s(m,A,i,r,n)}}return p?(n||(n=new Stack),equalObjects(e,t,i,r,s,n)):!1}function baseIsEqual(e,t,i,r,s){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,i,r,baseIsEqual,s)}function isEqual(e,t){return baseIsEqual(e,t)}var _export_sfc=(e,t)=>{const i=e.__vccOpts||e;for(const[r,s]of t)i[r]=s;return i};const _sfc_main=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(e,{emit:t}){let i=ref(null);const r=ref("");let s=1;const n=k=>document.querySelector(`[data-id="${k}"]`)!==null,a=async k=>{let I=e.autoPlay;e.playOnHover&&(I=!1);let N={};if(isEqual(e.animationData,{})===!1&&(N=cloneDeep$1(e.animationData)),e.animationLink!="")try{N=await(await fetch(e.animationLink)).json()}catch($){console.error($);return}let B=e.loop;typeof B=="number"&&B>0&&(B=B-1),e.delay>0&&(I=!1);const D={container:k,renderer:e.renderer,loop:B,autoplay:I,animationData:N,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(D.rendererSettings=e.rendererSettings),i=Lottie.loadAnimation(D),setTimeout(()=>{I=e.autoPlay,e.playOnHover?i.pause():I?i.play():i.pause(),t("onAnimationLoaded")},e.delay),i.setSpeed(e.speed),e.direction==="reverse"&&i.setDirection(-1),e.direction==="normal"&&i.setDirection(1),(e.pauseAnimation||e.playOnHover)&&i.pause(),i.addEventListener("loopComplete",()=>{e.direction==="alternate"&&(i.stop(),s=s*-1,i.setDirection(s),i.play()),t("onLoopComplete")}),i.addEventListener("complete",()=>{t("onComplete")}),i.addEventListener("enterFrame",()=>{t("onEnterFrame")}),i.addEventListener("segmentStart",()=>{t("onSegmentStart")})},o=computed(()=>{let k=e.width,I=e.height;return typeof e.width=="number"&&(k=`${e.width}px`),typeof e.height=="number"&&(I=`${e.height}px`),{"--lottie-animation-container-width":k,"--lottie-animation-container-height":I,"--lottie-animation-container-background-color":e.backgroundColor}}),l=()=>{i&&e.pauseOnHover&&i.pause(),i&&e.playOnHover&&i.play()},c=()=>{i&&e.pauseOnHover&&i.play(),i&&e.playOnHover&&i.pause()};watch(()=>e.pauseAnimation,()=>{if((e.pauseOnHover||e.playOnHover)&&e.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return}i&&(e.pauseAnimation?i.pause():i.play())});const g=()=>{i&&i.play()},S=()=>{i&&i.pause()},p=()=>{i&&i.stop()},P=()=>{i&&i.destroy()},y=(k=1)=>{if(k<=0)throw new Error("Speed must be greater than 0");i&&i.setSpeed(k)},m=k=>{i&&(k==="forward"?i.setDirection(1):k==="reverse"&&i.setDirection(-1))},A=(k,I=!0)=>{i&&i.goToAndStop(k,I)},u=(k,I=!0)=>{i&&i.goToAndPlay(k,I)},f=(k,I=!1)=>{i&&i.playSegments(k,I)},d=(k=!0)=>{i&&i.setSubframe(k)},b=(k=!0)=>{if(i)return i.getDuration(k)},C=(k,I=0)=>{i&&i.renderer.elements[I].updateDocumentData(k)},x=k=>{for(var I="",N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",B=N.length,D=0;D<k;D++)I+=N.charAt(Math.floor(Math.random()*B));return I},M=k=>{if(e.pauseOnHover&&e.playOnHover)throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");if(e.animationLink===""&&isEqual(e.animationData,{}))throw new Error("You must provide either animationLink or animationData");const I=setInterval(()=>{if(n(k)){clearInterval(I);const N=document.querySelector(`[data-id="${k}" ]`);N&&a(N)}},0)};return onMounted(async()=>{r.value=x(20),M(r.value)}),{elementid:r,hoverEnded:c,hoverStarted:l,getCurrentStyle:o,play:g,pause:S,stop:p,destroy:P,setSpeed:y,setDirection:m,goToAndStop:A,goToAndPlay:u,playSegments:f,setSubFrame:d,getDuration:b,updateDocumentData:C}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,i,r,s,n){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverStarted&&e.hoverStarted(...a)),onMouseleave:t[1]||(t[1]=(...a)=>e.hoverEnded&&e.hoverEnded(...a))},null,44,_hoisted_1)}var Vue3Lottie=_export_sfc(_sfc_main,[["render",_sfc_render]]);const v="5.7.1",fr=60,ip=0,op=120,w=2436,h=1125,nm="合成 1",ddd=0,assets=[{id:"image_0",w:195,h:264,u:"",p:"data:image/png;base64,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",e:1},{id:"image_1",w:1080,h:3,u:"",p:"data:image/png;base64,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",e:1}],layers=[{ddd:0,ind:1,ty:2,nm:"加载视频@3x.png",cl:"png",refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1218,562,0],ix:2},a:{a:0,k:[97.5,132,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[0],e:[0]},{t:120}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[678,587.5,0],ix:2},a:{a:0,k:[0,1.5,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[0,100,100],e:[100,100,100]},{t:60}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1758,589,0],ix:2},a:{a:0,k:[1080,3,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100],e:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100],e:[0,100,100]},{t:120}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers=[],playLoadData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers};function _defineProperty$1(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPrimitive(e,t){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:String(t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,r)}return i}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(r){_defineProperty(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}var defaults$1={addCSS:!0,thumbWidth:15,watch:!0};function matches$1(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function trigger(e,t){if(e&&t){var i=new Event(t,{bubbles:!0});e.dispatchEvent(i)}}var getConstructor$1=function(e){return e!=null?e.constructor:null},instanceOf$1=function(e,t){return!!(e&&t&&e instanceof t)},isNullOrUndefined$1=function(e){return e==null},isObject$1=function(e){return getConstructor$1(e)===Object},isNumber$1=function(e){return getConstructor$1(e)===Number&&!Number.isNaN(e)},isString$1=function(e){return getConstructor$1(e)===String},isBoolean$1=function(e){return getConstructor$1(e)===Boolean},isFunction$1=function(e){return getConstructor$1(e)===Function},isArray$1=function(e){return Array.isArray(e)},isNodeList$1=function(e){return instanceOf$1(e,NodeList)},isElement$1=function(e){return instanceOf$1(e,Element)},isEvent$1=function(e){return instanceOf$1(e,Event)},isEmpty$1=function(e){return isNullOrUndefined$1(e)||(isString$1(e)||isArray$1(e)||isNodeList$1(e))&&!e.length||isObject$1(e)&&!Object.keys(e).length},is$1={nullOrUndefined:isNullOrUndefined$1,object:isObject$1,number:isNumber$1,string:isString$1,boolean:isBoolean$1,function:isFunction$1,array:isArray$1,nodeList:isNodeList$1,element:isElement$1,event:isEvent$1,empty:isEmpty$1};function getDecimalPlaces(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function round(e,t){if(1>t){var i=getDecimalPlaces(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var RangeTouch=function(){function e(t,i){_classCallCheck(this,e),is$1.element(t)?this.element=t:is$1.string(t)&&(this.element=document.querySelector(t)),is$1.element(this.element)&&is$1.empty(this.element.rangeTouch)&&(this.config=_objectSpread2({},defaults$1,{},i),this.init())}return _createClass(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var i=this,r=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){i.element[r](s,function(n){return i.set(n)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!is$1.event(t))return null;var i,r=t.target,s=t.changedTouches[0],n=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,o=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(s.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),n+round(i/100*(a-n),o)}},{key:"set",value:function(t){e.enabled&&is$1.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),trigger(t.target,t.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(t){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=null;if(is$1.empty(t)||is$1.string(t)?r=Array.from(document.querySelectorAll(is$1.string(t)?t:'input[type="range"]')):is$1.element(t)?r=[t]:is$1.nodeList(t)?r=Array.from(t):is$1.array(t)&&(r=t.filter(is$1.element)),is$1.empty(r))return null;var s=_objectSpread2({},defaults$1,{},i);if(is$1.string(t)&&s.watch){var n=new MutationObserver(function(a){Array.from(a).forEach(function(o){Array.from(o.addedNodes).forEach(function(l){is$1.element(l)&&matches$1(l,t)&&new e(l,s)})})});n.observe(document.body,{childList:!0,subtree:!0})}return r.map(function(a){return new e(a,i)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const getConstructor=e=>e!=null?e.constructor:null,instanceOf=(e,t)=>!!(e&&t&&e instanceof t),isNullOrUndefined=e=>e==null,isObject=e=>getConstructor(e)===Object,isNumber=e=>getConstructor(e)===Number&&!Number.isNaN(e),isString=e=>getConstructor(e)===String,isBoolean=e=>getConstructor(e)===Boolean,isFunction=e=>typeof e=="function",isArray=e=>Array.isArray(e),isWeakMap=e=>instanceOf(e,WeakMap),isNodeList=e=>instanceOf(e,NodeList),isTextNode=e=>getConstructor(e)===Text,isEvent=e=>instanceOf(e,Event),isKeyboardEvent=e=>instanceOf(e,KeyboardEvent),isCue=e=>instanceOf(e,window.TextTrackCue)||instanceOf(e,window.VTTCue),isTrack=e=>instanceOf(e,TextTrack)||!isNullOrUndefined(e)&&isString(e.kind),isPromise=e=>instanceOf(e,Promise)&&isFunction(e.then),isElement=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",isEmpty=e=>isNullOrUndefined(e)||(isString(e)||isArray(e)||isNodeList(e))&&!e.length||isObject(e)&&!Object.keys(e).length,isUrl=e=>{if(instanceOf(e,window.URL))return!0;if(!isString(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t=`http://${e}`);try{return!isEmpty(new URL(t).hostname)}catch{return!1}};var is={nullOrUndefined:isNullOrUndefined,object:isObject,number:isNumber,string:isString,boolean:isBoolean,function:isFunction,array:isArray,weakMap:isWeakMap,nodeList:isNodeList,element:isElement,textNode:isTextNode,event:isEvent,keyboardEvent:isKeyboardEvent,cue:isCue,track:isTrack,promise:isPromise,url:isUrl,empty:isEmpty};const transitionEndEvent=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(t).find(r=>e.style[r]!==void 0);return!!is.string(i)&&t[i]})();function repaint(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},t)}const isIE=!!window.document.documentMode,isEdge=/Edge/g.test(navigator.userAgent),isWebKit="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,isIos=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var browser={isIE,isEdge,isWebKit,isIPhone,isIPadOS,isIos};function cloneDeep(e){return JSON.parse(JSON.stringify(e))}function getDeep(e,t){return t.split(".").reduce((i,r)=>i&&i[r],e)}function extend(e={},...t){if(!t.length)return e;const i=t.shift();return is.object(i)?(Object.keys(i).forEach(r=>{is.object(i[r])?(Object.keys(e).includes(r)||Object.assign(e,{[r]:{}}),extend(e[r],i[r])):Object.assign(e,{[r]:i[r]})}),extend(e,...t)):e}function wrap(e,t){const i=e.length?e:[e];Array.from(i).reverse().forEach((r,s)=>{const n=s>0?t.cloneNode(!0):t,a=r.parentNode,o=r.nextSibling;n.appendChild(r),o?a.insertBefore(n,o):a.appendChild(n)})}function setAttributes(e,t){is.element(e)&&!is.empty(t)&&Object.entries(t).filter(([,i])=>!is.nullOrUndefined(i)).forEach(([i,r])=>e.setAttribute(i,r))}function createElement(e,t,i){const r=document.createElement(e);return is.object(t)&&setAttributes(r,t),is.string(i)&&(r.innerText=i),r}function insertAfter(e,t){is.element(e)&&is.element(t)&&t.parentNode.insertBefore(e,t.nextSibling)}function insertElement(e,t,i,r){is.element(t)&&t.appendChild(createElement(e,i,r))}function removeElement(e){is.nodeList(e)||is.array(e)?Array.from(e).forEach(removeElement):is.element(e)&&is.element(e.parentNode)&&e.parentNode.removeChild(e)}function emptyElement(e){if(!is.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function replaceElement(e,t){return is.element(t)&&is.element(t.parentNode)&&is.element(e)?(t.parentNode.replaceChild(e,t),e):null}function getAttributesFromSelector(e,t){if(!is.string(e)||is.empty(e))return{};const i={},r=extend({},t);return e.split(",").forEach(s=>{const n=s.trim(),a=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[l]=o,c=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":is.string(r.class)?i.class=`${r.class} ${a}`:i.class=a;break;case"#":i.id=n.replace("#","");break;case"[":i[l]=c}}),extend(r,i)}function toggleHidden(e,t){if(!is.element(e))return;let i=t;is.boolean(i)||(i=!e.hidden),e.hidden=i}function toggleClass(e,t,i){if(is.nodeList(e))return Array.from(e).map(r=>toggleClass(r,t,i));if(is.element(e)){let r="toggle";return i!==void 0&&(r=i?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function hasClass(e,t){return is.element(e)&&e.classList.contains(t)}function matches(e,t){const{prototype:i}=Element;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function closest$1(e,t){const{prototype:i}=Element;return(i.closest||function(){let r=this;do{if(matches.matches(r,t))return r;r=r.parentElement||r.parentNode}while(r!==null&&r.nodeType===1);return null}).call(e,t)}function getElements(e){return this.elements.container.querySelectorAll(e)}function getElement(e){return this.elements.container.querySelector(e)}function setFocus(e=null,t=!1){is.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}const defaultCodecs={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},support={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t){const i=support[e]||t!=="html5";return{api:i,ui:i&&support.rangeInput}},pip:!(browser.isIPhone||!is.function(createElement("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||createElement("video").disablePictureInPicture)),airplay:is.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(is.empty(e))return!1;const[t]=e.split("/");let i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(defaultCodecs).includes(i)&&(i+=`; codecs="${defaultCodecs[e]}"`);try{return!!(i&&this.media.canPlayType(i).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:transitionEndEvent!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},supportsPassiveListeners=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e})();function toggleListener(e,t,i,r=!1,s=!0,n=!1){if(!e||!("addEventListener"in e)||is.empty(t)||!is.function(i))return;const a=t.split(" ");let o=n;supportsPassiveListeners&&(o={passive:s,capture:n}),a.forEach(l=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:l,callback:i,options:o}),e[r?"addEventListener":"removeEventListener"](l,i,o)})}function on(e,t="",i,r=!0,s=!1){toggleListener.call(this,e,t,i,!0,r,s)}function off(e,t="",i,r=!0,s=!1){toggleListener.call(this,e,t,i,!1,r,s)}function once(e,t="",i,r=!0,s=!1){const n=(...a)=>{off(e,t,n,r,s),i.apply(this,a)};toggleListener.call(this,e,t,n,!0,r,s)}function triggerEvent(e,t="",i=!1,r={}){if(!is.element(e)||is.empty(t))return;const s=new CustomEvent(t,{bubbles:i,detail:{...r,plyr:this}});e.dispatchEvent(s)}function unbindListeners(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:i,callback:r,options:s}=e;t.removeEventListener(i,r,s)}),this.eventListeners=[])}function ready(){return new Promise(e=>this.ready?setTimeout(e,0):on.call(this,this.elements.container,"ready",e)).then(()=>{})}function silencePromise(e){is.promise(e)&&e.then(null,()=>{})}function dedupe(e){return is.array(e)?e.filter((t,i)=>e.indexOf(t)===i):e}function closest(e,t){return is.array(e)&&e.length?e.reduce((i,r)=>Math.abs(r-t)<Math.abs(i-t)?r:i):null}function supportsCSS(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const standardRatios=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[t,i])=>({...e,[t/i]:[t,i]}),{});function validateAspectRatio(e){return is.array(e)||is.string(e)&&e.includes(":")?(is.array(e)?e:e.split(":")).map(Number).every(is.number):!1}function reduceAspectRatio(e){if(!is.array(e)||!e.every(is.number))return null;const[t,i]=e,r=(n,a)=>a===0?n:r(a,n%a),s=r(t,i);return[t/s,i/s]}function getAspectRatio(e){const t=r=>validateAspectRatio(r)?r.split(":").map(Number):null;let i=t(e);if(i===null&&(i=t(this.config.ratio)),i===null&&!is.empty(this.embed)&&is.array(this.embed.ratio)&&({ratio:i}=this.embed),i===null&&this.isHTML5){const{videoWidth:r,videoHeight:s}=this.media;i=[r,s]}return reduceAspectRatio(i)}function setAspectRatio(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,i=getAspectRatio.call(this,e);if(!is.array(i))return{};const[r,s]=reduceAspectRatio(i),n=100/r*s;if(supportsCSS(`aspect-ratio: ${r}/${s}`)?t.style.aspectRatio=`${r}/${s}`:t.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const a=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(a-n)/(a/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:i}}function roundAspectRatio(e,t,i=.05){const r=e/t,s=closest(Object.keys(standardRatios),r);return Math.abs(s-r)<=i?standardRatios[s]:[e,t]}function getViewportSize(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const html5={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const t=e.getAttribute("type");return!!is.empty(t)||support.mime.call(this,t)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:html5.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,is.empty(this.config.ratio)||setAspectRatio.call(e),Object.defineProperty(e.media,"quality",{get(){const t=html5.getSources.call(e).find(i=>i.getAttribute("src")===e.source);return t&&Number(t.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&is.function(e.config.quality.onChange))e.config.quality.onChange(t);else{const i=html5.getSources.call(e).find(l=>Number(l.getAttribute("size"))===t);if(!i)return;const{currentTime:r,paused:s,preload:n,readyState:a,playbackRate:o}=e.media;e.media.src=i.getAttribute("src"),(n!=="none"||a)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=r,s||silencePromise(e.play())}),e.media.load())}triggerEvent.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(removeElement(html5.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function generateId(e){return`${e}-${Math.floor(1e4*Math.random())}`}function format(e,...t){return is.empty(e)?e:e.toString().replace(/{(\d+)}/g,(i,r)=>t[r].toString())}function getPercentage(e,t){return e===0||t===0||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}const replaceAll=(e="",t="",i="")=>e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString()),toTitleCase=(e="")=>e.toString().replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase());function toPascalCase(e=""){let t=e.toString();return t=replaceAll(t,"-"," "),t=replaceAll(t,"_"," "),t=toTitleCase(t),replaceAll(t," ","")}function toCamelCase(e=""){let t=e.toString();return t=toPascalCase(t),t.charAt(0).toLowerCase()+t.slice(1)}function stripHTML(e){const t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.innerText}function getHTML(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const resources={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},i18n={get(e="",t={}){if(is.empty(e)||is.empty(t))return"";let i=getDeep(t.i18n,e);if(is.empty(i))return Object.keys(resources).includes(e)?resources[e]:"";const r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach(([s,n])=>{i=replaceAll(i,s,n)}),i}};class Storage{constructor(t){_defineProperty$1(this,"get",i=>{if(!Storage.supported||!this.enabled)return null;const r=window.localStorage.getItem(this.key);if(is.empty(r))return null;const s=JSON.parse(r);return is.string(i)&&i.length?s[i]:s}),_defineProperty$1(this,"set",i=>{if(!Storage.supported||!this.enabled||!is.object(i))return;let r=this.get();is.empty(r)&&(r={}),extend(r,i);try{window.localStorage.setItem(this.key,JSON.stringify(r))}catch{}}),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch{return!1}}}function fetch$1(e,t="text"){return new Promise((i,r)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",()=>{if(t==="text")try{i(JSON.parse(s.responseText))}catch{i(s.responseText)}else i(s.response)}),s.addEventListener("error",()=>{throw new Error(s.status)}),s.open("GET",e,!0),s.responseType=t,s.send()}catch(s){r(s)}})}function loadSprite(e,t){if(!is.string(e))return;const i="cache",r=is.string(t);let s=!1;const n=()=>document.getElementById(t)!==null,a=(o,l)=>{o.innerHTML=l,r&&n()||document.body.insertAdjacentElement("afterbegin",o)};if(!r||!n()){const o=Storage.supported,l=document.createElement("div");if(l.setAttribute("hidden",""),r&&l.setAttribute("id",t),o){const c=window.localStorage.getItem(`${i}-${t}`);if(s=c!==null,s){const g=JSON.parse(c);a(l,g.content)}}fetch$1(e).then(c=>{if(!is.empty(c)){if(o)try{window.localStorage.setItem(`${i}-${t}`,JSON.stringify({content:c}))}catch{}a(l,c)}}).catch(()=>{})}}const getHours=e=>Math.trunc(e/60/60%60,10),getMinutes=e=>Math.trunc(e/60%60,10),getSeconds=e=>Math.trunc(e%60,10);function formatTime(e=0,t=!1,i=!1){if(!is.number(e))return formatTime(void 0,t,i);const r=o=>`0${o}`.slice(-2);let s=getHours(e);const n=getMinutes(e),a=getSeconds(e);return s=t||s>0?`${s}:`:"",`${i&&e>0?"-":""}${s}${r(n)}:${r(a)}`}const controls$2={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,i=e.host!==t||browser.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements(){try{return this.elements.controls=getElement.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:getElements.call(this,this.config.selectors.buttons.play),pause:getElement.call(this,this.config.selectors.buttons.pause),restart:getElement.call(this,this.config.selectors.buttons.restart),rewind:getElement.call(this,this.config.selectors.buttons.rewind),fastForward:getElement.call(this,this.config.selectors.buttons.fastForward),mute:getElement.call(this,this.config.selectors.buttons.mute),pip:getElement.call(this,this.config.selectors.buttons.pip),airplay:getElement.call(this,this.config.selectors.buttons.airplay),settings:getElement.call(this,this.config.selectors.buttons.settings),captions:getElement.call(this,this.config.selectors.buttons.captions),fullscreen:getElement.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=getElement.call(this,this.config.selectors.progress),this.elements.inputs={seek:getElement.call(this,this.config.selectors.inputs.seek),volume:getElement.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:getElement.call(this,this.config.selectors.display.buffer),currentTime:getElement.call(this,this.config.selectors.display.currentTime),duration:getElement.call(this,this.config.selectors.display.duration)},is.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const i="http://www.w3.org/2000/svg",r=controls$2.getIconUrl.call(this),s=`${r.cors?"":r.url}#${this.config.iconPrefix}`,n=document.createElementNS(i,"svg");setAttributes(n,extend(t,{"aria-hidden":"true",focusable:"false"}));const a=document.createElementNS(i,"use"),o=`${s}-${e}`;return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",o),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(a),n},createLabel(e,t={}){const i=i18n.get(e,this.config);return createElement("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},i)},createBadge(e){if(is.empty(e))return null;const t=createElement("span",{class:this.config.classNames.menu.value});return t.appendChild(createElement("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const i=extend({},t);let r=toCamelCase(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(a=>{Object.keys(i).includes(a)&&(s[a]=i[a],delete i[a])}),s.element!=="button"||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some(a=>a===this.config.classNames.control)||extend(i,{class:`${i.class} ${this.config.classNames.control}`}):i.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,r="play",s.label="play",s.icon="play";break;default:is.empty(s.label)&&(s.label=r),is.empty(s.icon)&&(s.icon=e)}const n=createElement(s.element);return s.toggle?(n.appendChild(controls$2.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),n.appendChild(controls$2.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),n.appendChild(controls$2.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),n.appendChild(controls$2.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(n.appendChild(controls$2.createIcon.call(this,s.icon)),n.appendChild(controls$2.createLabel.call(this,s.label))),extend(i,getAttributesFromSelector(this.config.selectors.buttons[r],i)),setAttributes(n,i),r==="play"?(is.array(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(n)):this.elements.buttons[r]=n,n},createRange(e,t){const i=createElement("input",extend(getAttributesFromSelector(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":i18n.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,controls$2.updateRangeFill.call(this,i),RangeTouch.setup(i),i},createProgress(e,t){const i=createElement("progress",extend(getAttributesFromSelector(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if(e!=="volume"){i.appendChild(createElement("span",null,"0"));const r={played:"played",buffer:"buffered"}[e],s=r?i18n.get(r,this.config):"";i.innerText=`% ${s.toLowerCase()}`}return this.elements.display[e]=i,i},createTime(e,t){const i=getAttributesFromSelector(this.config.selectors.display[e],t),r=createElement("div",extend(i,{class:`${i.class?i.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":i18n.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,t){on.call(this,e,"keydown keyup",i=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(i.key)||(i.preventDefault(),i.stopPropagation(),i.type==="keydown"))return;const r=matches(e,'[role="menuitemradio"]');if(!r&&[" ","ArrowRight"].includes(i.key))controls$2.showMenuPanel.call(this,t,!0);else{let s;i.key!==" "&&(i.key==="ArrowDown"||r&&i.key==="ArrowRight"?(s=e.nextElementSibling,is.element(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,is.element(s)||(s=e.parentNode.lastElementChild)),setFocus.call(this,s,!0))}},!1),on.call(this,e,"keyup",i=>{i.key==="Return"&&controls$2.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:i,title:r,badge:s=null,checked:n=!1}){const a=getAttributesFromSelector(this.config.selectors.inputs[i]),o=createElement("button",extend(a,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${a.class?a.class:""}`.trim(),"aria-checked":n,value:e})),l=createElement("span");l.innerHTML=r,is.element(s)&&l.appendChild(s),o.appendChild(l),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>o.getAttribute("aria-checked")==="true",set(c){c&&Array.from(o.parentNode.children).filter(g=>matches(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",c?"true":"false")}}),this.listeners.bind(o,"click keyup",c=>{if(!is.keyboardEvent(c)||c.key===" "){switch(c.preventDefault(),c.stopPropagation(),o.checked=!0,i){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}controls$2.showMenuPanel.call(this,"home",is.keyboardEvent(c))}},i,!1),controls$2.bindMenuItemShortcuts.call(this,o,i),t.appendChild(o)},formatTime(e=0,t=!1){return is.number(e)?formatTime(e,getHours(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,i=!1){is.element(e)&&is.number(t)&&(e.innerText=controls$2.formatTime(t,i))},updateVolume(){this.supported.ui&&(is.element(this.elements.inputs.volume)&&controls$2.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),is.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,t=0){is.element(e)&&(e.value=t,controls$2.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!is.event(e))return;let t=0;const i=(r,s)=>{const n=is.number(s)?s:0,a=is.element(r)?r:this.elements.display.buffer;if(is.element(a)){a.value=n;const o=a.getElementsByTagName("span")[0];is.element(o)&&(o.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=getPercentage(this.currentTime,this.duration),e.type==="timeupdate"&&controls$2.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":i(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const t=is.event(e)?e.target:e;if(is.element(t)&&t.getAttribute("type")==="range"){if(matches(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const i=controls$2.formatTime(this.currentTime),r=controls$2.formatTime(this.duration),s=i18n.get("seekLabel",this.config);t.setAttribute("aria-valuetext",s.replace("{currentTime}",i).replace("{duration}",r))}else if(matches(t,this.config.selectors.inputs.volume)){const i=100*t.value;t.setAttribute("aria-valuenow",i),t.setAttribute("aria-valuetext",`${i.toFixed(1)}%`)}else t.setAttribute("aria-valuenow",t.value);(browser.isWebKit||browser.isIPadOS)&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){var t,i;if(!this.config.tooltips.seek||!is.element(this.elements.inputs.seek)||!is.element(this.elements.display.seekTooltip)||this.duration===0)return;const r=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,n=g=>toggleClass(r,s,g);if(this.touch)return void n(!1);let a=0;const o=this.elements.progress.getBoundingClientRect();if(is.event(e))a=100/o.width*(e.pageX-o.left);else{if(!hasClass(r,s))return;a=parseFloat(r.style.left,10)}a<0?a=0:a>100&&(a=100);const l=this.duration/100*a;r.innerText=controls$2.formatTime(l);const c=(t=this.config.markers)===null||t===void 0||(i=t.points)===null||i===void 0?void 0:i.find(({time:g})=>g===Math.round(l));c&&r.insertAdjacentHTML("afterbegin",`${c.label}<br>`),r.style.left=`${a}%`,is.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n(e.type==="mouseenter")},timeUpdate(e){const t=!is.element(this.elements.display.duration)&&this.config.invertTime;controls$2.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&e.type==="timeupdate"&&this.media.seeking||controls$2.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return toggleHidden(this.elements.display.currentTime,!0),void toggleHidden(this.elements.progress,!0);is.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=is.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&controls$2.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&controls$2.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&controls$2.setMarkers.call(this),controls$2.updateSeekTooltip.call(this)},toggleMenuButton(e,t){toggleHidden(this.elements.settings.buttons[e],!t)},updateSetting(e,t,i){const r=this.elements.settings.panels[e];let s=null,n=t;if(e==="captions")s=this.currentTrack;else{if(s=is.empty(i)?this[e]:i,is.empty(s)&&(s=this.config[e].default),!is.empty(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${e}`);if(!this.config[e].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${e}`)}if(is.element(n)||(n=r&&r.querySelector('[role="menu"]')),!is.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=controls$2.getLabel.call(this,e,s);const a=n&&n.querySelector(`[value="${s}"]`);is.element(a)&&(a.checked=!0)},getLabel(e,t){switch(e){case"speed":return t===1?i18n.get("normal",this.config):`${t}&times;`;case"quality":if(is.number(t)){const i=i18n.get(`qualityLabel.${t}`,this.config);return i.length?i:`${t}p`}return toTitleCase(t);case"captions":return captions.getLabel.call(this);default:return null}},setQualityMenu(e){if(!is.element(this.elements.settings.panels.quality))return;const t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');is.array(e)&&(this.options.quality=dedupe(e).filter(n=>this.config.quality.options.includes(n)));const r=!is.empty(this.options.quality)&&this.options.quality.length>1;if(controls$2.toggleMenuButton.call(this,t,r),emptyElement(i),controls$2.checkMenu.call(this),!r)return;const s=n=>{const a=i18n.get(`qualityBadge.${n}`,this.config);return a.length?controls$2.createBadge.call(this,a):null};this.options.quality.sort((n,a)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(a)?1:-1}).forEach(n=>{controls$2.createMenuItem.call(this,{value:n,list:i,type:t,title:controls$2.getLabel.call(this,"quality",n),badge:s(n)})}),controls$2.updateSetting.call(this,t,i)},setCaptionsMenu(){if(!is.element(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=captions.getTracks.call(this),r=!!i.length;if(controls$2.toggleMenuButton.call(this,e,r),emptyElement(t),controls$2.checkMenu.call(this),!r)return;const s=i.map((n,a)=>({value:a,checked:this.captions.toggled&&this.currentTrack===a,title:captions.getLabel.call(this,n),badge:n.language&&controls$2.createBadge.call(this,n.language.toUpperCase()),list:t,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:i18n.get("disabled",this.config),list:t,type:"language"}),s.forEach(controls$2.createMenuItem.bind(this)),controls$2.updateSetting.call(this,e,t)},setSpeedMenu(){if(!is.element(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(r=>r>=this.minimumSpeed&&r<=this.maximumSpeed);const i=!is.empty(this.options.speed)&&this.options.speed.length>1;controls$2.toggleMenuButton.call(this,e,i),emptyElement(t),controls$2.checkMenu.call(this),i&&(this.options.speed.forEach(r=>{controls$2.createMenuItem.call(this,{value:r,list:t,type:e,title:controls$2.getLabel.call(this,"speed",r)})}),controls$2.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!is.empty(e)&&Object.values(e).some(i=>!i.hidden);toggleHidden(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let i=e;is.element(i)||(i=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const r=i.querySelector('[role^="menuitem"]');setFocus.call(this,r,t)},toggleMenu(e){const{popup:t}=this.elements.settings,i=this.elements.buttons.settings;if(!is.element(t)||!is.element(i))return;const{hidden:r}=t;let s=r;if(is.boolean(e))s=e;else if(is.keyboardEvent(e)&&e.key==="Escape")s=!1;else if(is.event(e)){const n=is.function(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(n);if(a||!a&&e.target!==i&&s)return}i.setAttribute("aria-expanded",s),toggleHidden(t,!s),toggleClass(this.elements.container,this.config.classNames.menu.open,s),s&&is.keyboardEvent(e)?controls$2.focusFirstMenuItem.call(this,null,!0):s||r||setFocus.call(this,i,is.keyboardEvent(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const i=t.scrollWidth,r=t.scrollHeight;return removeElement(t),{width:i,height:r}},showMenuPanel(e="",t=!1){const i=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!is.element(i))return;const r=i.parentNode,s=Array.from(r.children).find(n=>!n.hidden);if(support.transitions&&!support.reducedMotion){r.style.width=`${s.scrollWidth}px`,r.style.height=`${s.scrollHeight}px`;const n=controls$2.getMenuSize.call(this,i),a=o=>{o.target===r&&["width","height"].includes(o.propertyName)&&(r.style.width="",r.style.height="",off.call(this,r,transitionEndEvent,a))};on.call(this,r,transitionEndEvent,a),r.style.width=`${n.width}px`,r.style.height=`${n.height}px`}toggleHidden(s,!0),toggleHidden(i,!1),controls$2.focusFirstMenuItem.call(this,i,t)},setDownloadUrl(){const e=this.elements.buttons.download;is.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:i,createProgress:r,createRange:s,createTime:n,setQualityMenu:a,setSpeedMenu:o,showMenuPanel:l}=controls$2;this.elements.controls=null,is.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const c=createElement("div",getAttributesFromSelector(this.config.selectors.controls.wrapper));this.elements.controls=c;const g={class:"plyr__controls__item"};return dedupe(is.array(this.config.controls)?this.config.controls:[]).forEach(S=>{if(S==="restart"&&c.appendChild(i.call(this,"restart",g)),S==="rewind"&&c.appendChild(i.call(this,"rewind",g)),S==="play"&&c.appendChild(i.call(this,"play",g)),S==="fast-forward"&&c.appendChild(i.call(this,"fast-forward",g)),S==="progress"){const p=createElement("div",{class:`${g.class} plyr__progress__container`}),P=createElement("div",getAttributesFromSelector(this.config.selectors.progress));if(P.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),P.appendChild(r.call(this,"buffer")),this.config.tooltips.seek){const y=createElement("span",{class:this.config.classNames.tooltip},"00:00");P.appendChild(y),this.elements.display.seekTooltip=y}this.elements.progress=P,p.appendChild(this.elements.progress),c.appendChild(p)}if(S==="current-time"&&c.appendChild(n.call(this,"currentTime",g)),S==="duration"&&c.appendChild(n.call(this,"duration",g)),S==="mute"||S==="volume"){let{volume:p}=this.elements;if(is.element(p)&&c.contains(p)||(p=createElement("div",extend({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=p,c.appendChild(p)),S==="mute"&&p.appendChild(i.call(this,"mute")),S==="volume"&&!browser.isIos&&!browser.isIPadOS){const P={max:1,step:.05,value:this.config.volume};p.appendChild(s.call(this,"volume",extend(P,{id:`plyr-volume-${e.id}`})))}}if(S==="captions"&&c.appendChild(i.call(this,"captions",g)),S==="settings"&&!is.empty(this.config.settings)){const p=createElement("div",extend({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));p.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const P=createElement("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),y=createElement("div"),m=createElement("div",{id:`plyr-settings-${e.id}-home`}),A=createElement("div",{role:"menu"});m.appendChild(A),y.appendChild(m),this.elements.settings.panels.home=m,this.config.settings.forEach(u=>{const f=createElement("button",extend(getAttributesFromSelector(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,f,u),on.call(this,f,"click",()=>{l.call(this,u,!1)});const d=createElement("span",null,i18n.get(u,this.config)),b=createElement("span",{class:this.config.classNames.menu.value});b.innerHTML=e[u],d.appendChild(b),f.appendChild(d),A.appendChild(f);const C=createElement("div",{id:`plyr-settings-${e.id}-${u}`,hidden:""}),x=createElement("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});x.appendChild(createElement("span",{"aria-hidden":!0},i18n.get(u,this.config))),x.appendChild(createElement("span",{class:this.config.classNames.hidden},i18n.get("menuBack",this.config))),on.call(this,C,"keydown",M=>{M.key==="ArrowLeft"&&(M.preventDefault(),M.stopPropagation(),l.call(this,"home",!0))},!1),on.call(this,x,"click",()=>{l.call(this,"home",!1)}),C.appendChild(x),C.appendChild(createElement("div",{role:"menu"})),y.appendChild(C),this.elements.settings.buttons[u]=f,this.elements.settings.panels[u]=C}),P.appendChild(y),p.appendChild(P),c.appendChild(p),this.elements.settings.popup=P,this.elements.settings.menu=p}if(S==="pip"&&support.pip&&c.appendChild(i.call(this,"pip",g)),S==="airplay"&&support.airplay&&c.appendChild(i.call(this,"airplay",g)),S==="download"){const p=extend({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(p.download="");const{download:P}=this.config.urls;!is.url(P)&&this.isEmbed&&extend(p,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(i.call(this,"download",p))}S==="fullscreen"&&c.appendChild(i.call(this,"fullscreen",g))}),this.isHTML5&&a.call(this,html5.getQualityOptions.call(this)),o.call(this),c},inject(){if(this.config.loadSprite){const s=controls$2.getIconUrl.call(this);s.cors&&loadSprite(s.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let i=!0;is.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),is.element(this.config.controls)||is.string(this.config.controls)?e=this.config.controls:(e=controls$2.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:captions.getLabel.call(this)}),i=!1);let r;if(i&&is.string(this.config.controls)&&(e=(s=>{let n=s;return Object.entries(t).forEach(([a,o])=>{n=replaceAll(n,`{${a}}`,o)}),n})(e)),is.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),is.element(r)||(r=this.elements.container),r[is.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),is.element(this.elements.controls)||controls$2.findElements.call(this),!is.empty(this.elements.buttons)){const s=n=>{const a=this.config.classNames.controlPressed;n.setAttribute("aria-pressed","false"),Object.defineProperty(n,"pressed",{configurable:!0,enumerable:!0,get:()=>hasClass(n,a),set(o=!1){toggleClass(n,a,o),n.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{is.array(n)||is.nodeList(n)?Array.from(n).filter(Boolean).forEach(s):s(n)})}if(browser.isEdge&&repaint(r),this.config.tooltips.controls){const{classNames:s,selectors:n}=this.config,a=`${n.controls.wrapper} ${n.labels} .${s.hidden}`,o=getElements.call(this,a);Array.from(o).forEach(l=>{toggleClass(l,this.config.classNames.hidden,!1),toggleClass(l,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,t;if(!this.duration||this.elements.markers)return;const i=(e=this.config.markers)===null||e===void 0||(t=e.points)===null||t===void 0?void 0:t.filter(({time:l})=>l>0&&l<this.duration);if(i==null||!i.length)return;const r=document.createDocumentFragment(),s=document.createDocumentFragment();let n=null;const a=`${this.config.classNames.tooltip}--visible`,o=l=>toggleClass(n,a,l);i.forEach(l=>{const c=createElement("span",{class:this.config.classNames.marker},""),g=l.time/this.duration*100+"%";n&&(c.addEventListener("mouseenter",()=>{l.label||(n.style.left=g,n.innerHTML=l.label,o(!0))}),c.addEventListener("mouseleave",()=>{o(!1)})),c.addEventListener("click",()=>{this.currentTime=l.time}),c.style.left=g,s.appendChild(c)}),r.appendChild(s),this.config.tooltips.seek||(n=createElement("span",{class:this.config.classNames.tooltip},""),r.appendChild(n)),this.elements.markers={points:s,tip:n},this.elements.progress.appendChild(r)}};function parseUrl(e,t=!0){let i=e;if(t){const r=document.createElement("a");r.href=i,i=r.href}try{return new URL(i)}catch{return null}}function buildUrlParams(e){const t=new URLSearchParams;return is.object(e)&&Object.entries(e).forEach(([i,r])=>{t.set(i,r)}),t}const captions={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!support.textTracks)return void(is.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&controls$2.setCaptionsMenu.call(this));if(is.element(this.elements.captions)||(this.elements.captions=createElement("div",getAttributesFromSelector(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),insertAfter(this.elements.captions,this.elements.wrapper)),browser.isIE&&window.URL){const r=this.media.querySelectorAll("track");Array.from(r).forEach(s=>{const n=s.getAttribute("src"),a=parseUrl(n);a!==null&&a.hostname!==window.location.href.hostname&&["http:","https:"].includes(a.protocol)&&fetch$1(n,"blob").then(o=>{s.setAttribute("src",window.URL.createObjectURL(o))}).catch(()=>{removeElement(s)})})}const e=dedupe((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(r=>r.split("-")[0]));let t=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();t==="auto"&&([t]=e);let i=this.storage.get("captions");if(is.boolean(i)||({active:i}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:i,language:t,languages:e}),this.isHTML5){const r=this.config.captions.update?"addtrack removetrack":"removetrack";on.call(this,this.media.textTracks,r,captions.update.bind(this))}setTimeout(captions.update.bind(this),0)},update(){const e=captions.getTracks.call(this,!0),{active:t,language:i,meta:r,currentTrackNode:s}=this.captions,n=!!e.find(a=>a.language===i);this.isHTML5&&this.isVideo&&e.filter(a=>!r.get(a)).forEach(a=>{this.debug.log("Track added",a),r.set(a,{default:a.mode==="showing"}),a.mode==="showing"&&(a.mode="hidden"),on.call(this,a,"cuechange",()=>captions.updateCues.call(this))}),(n&&this.language!==i||!e.includes(s))&&(captions.setLanguage.call(this,i),captions.toggle.call(this,t&&n)),this.elements&&toggleClass(this.elements.container,this.config.classNames.captions.enabled,!is.empty(e)),is.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&controls$2.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:i}=this.captions,r=this.config.classNames.captions.active,s=is.nullOrUndefined(e)?!i:e;if(s!==i){if(t||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!t){const n=captions.getTracks.call(this),a=captions.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=a.language,void captions.set.call(this,n.indexOf(a))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),toggleClass(this.elements.container,r,s),this.captions.toggled=s,controls$2.updateSetting.call(this,"captions"),triggerEvent.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,t=!0){const i=captions.getTracks.call(this);if(e!==-1)if(is.number(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const r=i[e],{language:s}=r||{};this.captions.currentTrackNode=r,controls$2.updateSetting.call(this,"captions"),t||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),triggerEvent.call(this,this.media,"languagechange")}captions.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&captions.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else captions.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!is.string(e))return void this.debug.warn("Invalid language argument",e);const i=e.toLowerCase();this.captions.language=i;const r=captions.getTracks.call(this),s=captions.findTrack.call(this,[i]);captions.set.call(this,r.indexOf(s),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(t=>!this.isHTML5||e||this.captions.meta.has(t)).filter(t=>["captions","subtitles"].includes(t.kind))},findTrack(e,t=!1){const i=captions.getTracks.call(this),r=a=>Number((this.captions.meta.get(a)||{}).default),s=Array.from(i).sort((a,o)=>r(o)-r(a));let n;return e.every(a=>(n=s.find(o=>o.language===a),!n)),n||(t?s[0]:void 0)},getCurrentTrack(){return captions.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!is.track(t)&&support.textTracks&&this.captions.toggled&&(t=captions.getCurrentTrack.call(this)),is.track(t)?is.empty(t.label)?is.empty(t.language)?i18n.get("enabled",this.config):e.language.toUpperCase():t.label:i18n.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!is.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!is.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const r=captions.getCurrentTrack.call(this);t=Array.from((r||{}).activeCues||[]).map(s=>s.getCueAsHTML()).map(getHTML)}const i=t.map(r=>r.trim()).join(`
  38. `);if(i!==this.elements.captions.innerHTML){emptyElement(this.elements.captions);const r=createElement("span",getAttributesFromSelector(this.config.selectors.caption));r.innerHTML=i,this.elements.captions.appendChild(r),triggerEvent.call(this,this.media,"cuechange")}}},defaults={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},pip={active:"picture-in-picture",inactive:"inline"},providers={html5:"html5",youtube:"youtube",vimeo:"vimeo"},types={audio:"audio",video:"video"};function getProviderByUrl(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?providers.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?providers.vimeo:null}const noop=()=>{};class Console{constructor(t=!1){this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):noop}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):noop}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):noop}}class Fullscreen{constructor(t){_defineProperty$1(this,"onChange",()=>{if(!this.supported)return;const i=this.player.elements.buttons.fullscreen;is.element(i)&&(i.pressed=this.active);const r=this.target===this.player.media?this.target:this.player.elements.container;triggerEvent.call(this.player,r,this.active?"enterfullscreen":"exitfullscreen",!0)}),_defineProperty$1(this,"toggleFallback",(i=!1)=>{if(i?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=i?"hidden":"",toggleClass(this.target,this.player.config.classNames.fullscreen.fallback,i),browser.isIos){let r=document.head.querySelector('meta[name="viewport"]');const s="viewport-fit=cover";r||(r=document.createElement("meta"),r.setAttribute("name","viewport"));const n=is.string(r.content)&&r.content.includes(s);i?(this.cleanupViewport=!n,n||(r.content+=`,${s}`)):this.cleanupViewport&&(r.content=r.content.split(",").filter(a=>a.trim()!==s).join(","))}this.onChange()}),_defineProperty$1(this,"trapFocus",i=>{if(browser.isIos||browser.isIPadOS||!this.active||i.key!=="Tab")return;const r=document.activeElement,s=getElements.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=s,a=s[s.length-1];r!==a||i.shiftKey?r===n&&i.shiftKey&&(a.focus(),i.preventDefault()):(n.focus(),i.preventDefault())}),_defineProperty$1(this,"update",()=>{if(this.supported){let i;i=this.forceFallback?"Fallback (forced)":Fullscreen.nativeSupported?"Native":"Fallback",this.player.debug.log(`${i} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");toggleClass(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),_defineProperty$1(this,"enter",()=>{this.supported&&(browser.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Fullscreen.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?is.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),_defineProperty$1(this,"exit",()=>{if(this.supported)if(browser.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),silencePromise(this.player.play());else if(!Fullscreen.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!is.empty(this.prefix)){const i=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${i}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),_defineProperty$1(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=t,this.prefix=Fullscreen.prefix,this.property=Fullscreen.property,this.scrollPosition={x:0,y:0},this.forceFallback=t.config.fullscreen.fallback==="force",this.player.elements.fullscreen=t.config.fullscreen.container&&closest$1(this.player.elements.container,t.config.fullscreen.container),on.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),on.call(this.player,this.player.elements.container,"dblclick",i=>{is.element(this.player.elements.controls)&&this.player.elements.controls.contains(i.target)||this.player.listeners.proxy(i,this.toggle,"fullscreen")}),on.call(this,this.player.elements.container,"keydown",i=>this.trapFocus(i)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Fullscreen.nativeSupported&&!this.forceFallback}static get prefix(){if(is.function(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some(i=>!(!is.function(document[`${i}ExitFullscreen`])&&!is.function(document[`${i}CancelFullScreen`]))&&(t=i,!0)),t}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Fullscreen.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Fullscreen.nativeSupported||!browser.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Fullscreen.nativeSupported||this.forceFallback)return hasClass(this.target,this.player.config.classNames.fullscreen.fallback);const t=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){return browser.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function loadImage(e,t=1){return new Promise((i,r)=>{const s=new Image,n=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=t?i:r)(s)};Object.assign(s,{onload:n,onerror:n,src:e})})}const ui={addStyleHook(){toggleClass(this.elements.container,this.config.selectors.container.replace(".",""),!0),toggleClass(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void ui.toggleNativeControls.call(this,!0);is.element(this.elements.controls)||(controls$2.inject.call(this),this.listeners.controls()),ui.toggleNativeControls.call(this),this.isHTML5&&captions.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,controls$2.updateVolume.call(this),controls$2.timeUpdate.call(this),controls$2.durationUpdate.call(this),ui.checkPlaying.call(this),toggleClass(this.elements.container,this.config.classNames.pip.supported,support.pip&&this.isHTML5&&this.isVideo),toggleClass(this.elements.container,this.config.classNames.airplay.supported,support.airplay&&this.isHTML5),toggleClass(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{triggerEvent.call(this,this.media,"ready")},0),ui.setTitle.call(this),this.poster&&ui.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&controls$2.durationUpdate.call(this),this.config.mediaMetadata&&controls$2.setMediaMetadata.call(this)},setTitle(){let e=i18n.get("play",this.config);if(is.string(this.config.title)&&!is.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(t=>{t.setAttribute("aria-label",e)}),this.isEmbed){const t=getElement.call(this,"iframe");if(!is.element(t))return;const i=is.empty(this.config.title)?"video":this.config.title,r=i18n.get("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",i))}},togglePoster(e){toggleClass(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),ready.call(this).then(()=>loadImage(e)).catch(i=>{throw e===this.poster&&ui.togglePoster.call(this,!1),i}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),ui.togglePoster.call(this,!0),e)))},checkPlaying(e){toggleClass(this.elements.container,this.config.classNames.playing,this.playing),toggleClass(this.elements.container,this.config.classNames.paused,this.paused),toggleClass(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(t=>{Object.assign(t,{pressed:this.playing}),t.setAttribute("aria-label",i18n.get(this.playing?"pause":"play",this.config))}),is.event(e)&&e.type==="timeupdate"||ui.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{toggleClass(this.elements.container,this.config.classNames.loading,this.loading),ui.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!is.empty(e)&&is.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),is.empty(this.media.style)&&this.media.removeAttribute("style")}};class Listeners{constructor(t){_defineProperty$1(this,"firstTouch",()=>{const{player:i}=this,{elements:r}=i;i.touch=!0,toggleClass(r.container,i.config.classNames.isTouch,!0)}),_defineProperty$1(this,"global",(i=!0)=>{const{player:r}=this;r.config.keyboard.global&&toggleListener.call(r,window,"keydown keyup",this.handleKey,i,!1),toggleListener.call(r,document.body,"click",this.toggleMenu,i),once.call(r,document.body,"touchstart",this.firstTouch)}),_defineProperty$1(this,"container",()=>{const{player:i}=this,{config:r,elements:s,timers:n}=i;!r.keyboard.global&&r.keyboard.focused&&on.call(i,s.container,"keydown keyup",this.handleKey,!1),on.call(i,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",l=>{const{controls:c}=s;c&&l.type==="enterfullscreen"&&(c.pressed=!1,c.hover=!1);let g=0;["touchstart","touchmove","mousemove"].includes(l.type)&&(ui.toggleControls.call(i,!0),g=i.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>ui.toggleControls.call(i,!1),g)});const a=()=>{if(!i.isVimeo||i.config.vimeo.premium)return;const l=s.wrapper,{active:c}=i.fullscreen,[g,S]=getAspectRatio.call(i),p=supportsCSS(`aspect-ratio: ${g} / ${S}`);if(!c)return void(p?(l.style.width=null,l.style.height=null):(l.style.maxWidth=null,l.style.margin=null));const[P,y]=getViewportSize(),m=P/y>g/S;p?(l.style.width=m?"auto":"100%",l.style.height=m?"100%":"auto"):(l.style.maxWidth=m?y/S*g+"px":null,l.style.margin=m?"0 auto":null)},o=()=>{clearTimeout(n.resized),n.resized=setTimeout(a,50)};on.call(i,s.container,"enterfullscreen exitfullscreen",l=>{const{target:c}=i.fullscreen;c===s.container&&(!i.isEmbed&&is.empty(i.config.ratio)||(a(),(l.type==="enterfullscreen"?on:off).call(i,window,"resize",o)))})}),_defineProperty$1(this,"media",()=>{const{player:i}=this,{elements:r}=i;if(on.call(i,i.media,"timeupdate seeking seeked",n=>controls$2.timeUpdate.call(i,n)),on.call(i,i.media,"durationchange loadeddata loadedmetadata",n=>controls$2.durationUpdate.call(i,n)),on.call(i,i.media,"ended",()=>{i.isHTML5&&i.isVideo&&i.config.resetOnEnd&&(i.restart(),i.pause())}),on.call(i,i.media,"progress playing seeking seeked",n=>controls$2.updateProgress.call(i,n)),on.call(i,i.media,"volumechange",n=>controls$2.updateVolume.call(i,n)),on.call(i,i.media,"playing play pause ended emptied timeupdate",n=>ui.checkPlaying.call(i,n)),on.call(i,i.media,"waiting canplay seeked playing",n=>ui.checkLoading.call(i,n)),i.supported.ui&&i.config.clickToPlay&&!i.isAudio){const n=getElement.call(i,`.${i.config.classNames.video}`);if(!is.element(n))return;on.call(i,r.container,"click",a=>{([r.container,n].includes(a.target)||n.contains(a.target))&&(i.touch&&i.config.hideControls||(i.ended?(this.proxy(a,i.restart,"restart"),this.proxy(a,()=>{silencePromise(i.play())},"play")):this.proxy(a,()=>{silencePromise(i.togglePlay())},"play")))})}i.supported.ui&&i.config.disableContextMenu&&on.call(i,r.wrapper,"contextmenu",n=>{n.preventDefault()},!1),on.call(i,i.media,"volumechange",()=>{i.storage.set({volume:i.volume,muted:i.muted})}),on.call(i,i.media,"ratechange",()=>{controls$2.updateSetting.call(i,"speed"),i.storage.set({speed:i.speed})}),on.call(i,i.media,"qualitychange",n=>{controls$2.updateSetting.call(i,"quality",null,n.detail.quality)}),on.call(i,i.media,"ready qualitychange",()=>{controls$2.setDownloadUrl.call(i)});const s=i.config.events.concat(["keyup","keydown"]).join(" ");on.call(i,i.media,s,n=>{let{detail:a={}}=n;n.type==="error"&&(a=i.media.error),triggerEvent.call(i,r.container,n.type,!0,a)})}),_defineProperty$1(this,"proxy",(i,r,s)=>{const{player:n}=this,a=n.config.listeners[s];let o=!0;is.function(a)&&(o=a.call(n,i)),o!==!1&&is.function(r)&&r.call(n,i)}),_defineProperty$1(this,"bind",(i,r,s,n,a=!0)=>{const{player:o}=this,l=o.config.listeners[n],c=is.function(l);on.call(o,i,r,g=>this.proxy(g,s,n),a&&!c)}),_defineProperty$1(this,"controls",()=>{const{player:i}=this,{elements:r}=i,s=browser.isIE?"change":"input";if(r.buttons.play&&Array.from(r.buttons.play).forEach(n=>{this.bind(n,"click",()=>{silencePromise(i.togglePlay())},"play")}),this.bind(r.buttons.restart,"click",i.restart,"restart"),this.bind(r.buttons.rewind,"click",()=>{i.lastSeekTime=Date.now(),i.rewind()},"rewind"),this.bind(r.buttons.fastForward,"click",()=>{i.lastSeekTime=Date.now(),i.forward()},"fastForward"),this.bind(r.buttons.mute,"click",()=>{i.muted=!i.muted},"mute"),this.bind(r.buttons.captions,"click",()=>i.toggleCaptions()),this.bind(r.buttons.download,"click",()=>{triggerEvent.call(i,i.media,"download")},"download"),this.bind(r.buttons.fullscreen,"click",()=>{i.fullscreen.toggle()},"fullscreen"),this.bind(r.buttons.pip,"click",()=>{i.pip="toggle"},"pip"),this.bind(r.buttons.airplay,"click",i.airplay,"airplay"),this.bind(r.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),controls$2.toggleMenu.call(i,n)},null,!1),this.bind(r.buttons.settings,"keyup",n=>{[" ","Enter"].includes(n.key)&&(n.key!=="Enter"?(n.preventDefault(),n.stopPropagation(),controls$2.toggleMenu.call(i,n)):controls$2.focusFirstMenuItem.call(i,null,!0))},null,!1),this.bind(r.settings.menu,"keydown",n=>{n.key==="Escape"&&controls$2.toggleMenu.call(i,n)}),this.bind(r.inputs.seek,"mousedown mousemove",n=>{const a=r.progress.getBoundingClientRect(),o=100/a.width*(n.pageX-a.left);n.currentTarget.setAttribute("seek-value",o)}),this.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const a=n.currentTarget,o="play-on-seeked";if(is.keyboardEvent(n)&&!["ArrowLeft","ArrowRight"].includes(n.key))return;i.lastSeekTime=Date.now();const l=a.hasAttribute(o),c=["mouseup","touchend","keyup"].includes(n.type);l&&c?(a.removeAttribute(o),silencePromise(i.play())):!c&&i.playing&&(a.setAttribute(o,""),i.pause())}),browser.isIos){const n=getElements.call(i,'input[type="range"]');Array.from(n).forEach(a=>this.bind(a,s,o=>repaint(o.target)))}this.bind(r.inputs.seek,s,n=>{const a=n.currentTarget;let o=a.getAttribute("seek-value");is.empty(o)&&(o=a.value),a.removeAttribute("seek-value"),i.currentTime=o/a.max*i.duration},"seek"),this.bind(r.progress,"mouseenter mouseleave mousemove",n=>controls$2.updateSeekTooltip.call(i,n)),this.bind(r.progress,"mousemove touchmove",n=>{const{previewThumbnails:a}=i;a&&a.loaded&&a.startMove(n)}),this.bind(r.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=i;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(r.progress,"mousedown touchstart",n=>{const{previewThumbnails:a}=i;a&&a.loaded&&a.startScrubbing(n)}),this.bind(r.progress,"mouseup touchend",n=>{const{previewThumbnails:a}=i;a&&a.loaded&&a.endScrubbing(n)}),browser.isWebKit&&Array.from(getElements.call(i,'input[type="range"]')).forEach(n=>{this.bind(n,"input",a=>controls$2.updateRangeFill.call(i,a.target))}),i.config.toggleInvert&&!is.element(r.display.duration)&&this.bind(r.display.currentTime,"click",()=>{i.currentTime!==0&&(i.config.invertTime=!i.config.invertTime,controls$2.timeUpdate.call(i))}),this.bind(r.inputs.volume,s,n=>{i.volume=n.target.value},"volume"),this.bind(r.controls,"mouseenter mouseleave",n=>{r.controls.hover=!i.touch&&n.type==="mouseenter"}),r.fullscreen&&Array.from(r.fullscreen.children).filter(n=>!n.contains(r.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",a=>{r.controls&&(r.controls.hover=!i.touch&&a.type==="mouseenter")})}),this.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{r.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(r.controls,"focusin",()=>{const{config:n,timers:a}=i;toggleClass(r.controls,n.classNames.noTransition,!0),ui.toggleControls.call(i,!0),setTimeout(()=>{toggleClass(r.controls,n.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(a.controls),a.controls=setTimeout(()=>ui.toggleControls.call(i,!1),o)}),this.bind(r.inputs.volume,"wheel",n=>{const a=n.webkitDirectionInvertedFromDevice,[o,l]=[n.deltaX,-n.deltaY].map(S=>a?-S:S),c=Math.sign(Math.abs(o)>Math.abs(l)?o:l);i.increaseVolume(c/50);const{volume:g}=i.media;(c===1&&g<1||c===-1&&g>0)&&n.preventDefault()},"volume",!1)}),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:i}=this,{elements:r}=i,{key:s,type:n,altKey:a,ctrlKey:o,metaKey:l,shiftKey:c}=t,g=n==="keydown",S=g&&s===this.lastKey;if(!(a||o||l||c)&&s){if(g){const P=document.activeElement;if(is.element(P)){const{editable:y}=i.config.selectors,{seek:m}=r.inputs;if(P!==m&&matches(P,y)||t.key===" "&&matches(P,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(t.preventDefault(),t.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":S||(p=parseInt(s,10),i.currentTime=i.duration/10*p);break;case" ":case"k":S||silencePromise(i.togglePlay());break;case"ArrowUp":i.increaseVolume(.1);break;case"ArrowDown":i.decreaseVolume(.1);break;case"m":S||(i.muted=!i.muted);break;case"ArrowRight":i.forward();break;case"ArrowLeft":i.rewind();break;case"f":i.fullscreen.toggle();break;case"c":S||i.toggleCaptions();break;case"l":i.loop=!i.loop}s==="Escape"&&!i.fullscreen.usingNative&&i.fullscreen.active&&i.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null;var p}}toggleMenu(t){controls$2.toggleMenu.call(this.player,t)}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var loadjs_umd=createCommonjsModule(function(e,t){e.exports=function(){var i=function(){},r={},s={},n={};function a(p,P){p=p.push?p:[p];var y,m,A,u=[],f=p.length,d=f;for(y=function(b,C){C.length&&u.push(b),--d||P(u)};f--;)m=p[f],(A=s[m])?y(m,A):(n[m]=n[m]||[]).push(y)}function o(p,P){if(p){var y=n[p];if(s[p]=P,y)for(;y.length;)y[0](p,P),y.splice(0,1)}}function l(p,P){p.call&&(p={success:p}),P.length?(p.error||i)(P):(p.success||i)(p)}function c(p,P,y,m){var A,u,f=document,d=y.async,b=(y.numRetries||0)+1,C=y.before||i,x=p.replace(/[\?|#].*$/,""),M=p.replace(/^(css|img)!/,"");m=m||0,/(^css!|\.css$)/.test(x)?((u=f.createElement("link")).rel="stylesheet",u.href=M,(A="hideFocus"in u)&&u.relList&&(A=0,u.rel="preload",u.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(x)?(u=f.createElement("img")).src=M:((u=f.createElement("script")).src=p,u.async=d===void 0||d),u.onload=u.onerror=u.onbeforeload=function(k){var I=k.type[0];if(A)try{u.sheet.cssText.length||(I="e")}catch(N){N.code!=18&&(I="e")}if(I=="e"){if((m+=1)<b)return c(p,P,y,m)}else if(u.rel=="preload"&&u.as=="style")return u.rel="stylesheet";P(p,I,k.defaultPrevented)},C(p,u)!==!1&&f.head.appendChild(u)}function g(p,P,y){var m,A,u=(p=p.push?p:[p]).length,f=u,d=[];for(m=function(b,C,x){if(C=="e"&&d.push(b),C=="b"){if(!x)return;d.push(b)}--u||P(d)},A=0;A<f;A++)c(p[A],m,y)}function S(p,P,y){var m,A;if(P&&P.trim&&(m=P),A=(m?y:P)||{},m){if(m in r)throw"LoadJS";r[m]=!0}function u(f,d){g(p,function(b){l(A,b),f&&l({success:f,error:d},b),o(m,b)},A)}if(A.returnPromise)return new Promise(u);u()}return S.ready=function(p,P){return a(p,function(y){l(P,y)}),S},S.done=function(p){o(p,[])},S.reset=function(){r={},s={},n={}},S.isDefined=function(p){return p in r},S}()});function loadScript(e){return new Promise((t,i)=>{loadjs_umd(e,{success:t,error:i})})}function parseId$1(e){return is.empty(e)?null:is.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function parseHash(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&t.length===5?t[4]:null}function assurePlaybackState$1(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,triggerEvent.call(this,this.media,e?"play":"pause"))}const vimeo={setup(){const e=this;toggleClass(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,setAspectRatio.call(e),is.object(window.Vimeo)?vimeo.ready.call(e):loadScript(e.config.urls.vimeo.sdk).then(()=>{vimeo.ready.call(e)}).catch(t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready(){const e=this,t=e.config.vimeo,{premium:i,referrerPolicy:r,...s}=t;let n=e.media.getAttribute("src"),a="";is.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),a=e.media.getAttribute(e.config.attributes.embed.hash)):a=parseHash(n);const o=a?{h:a}:{};i&&Object.assign(s,{controls:!1,sidedock:!1});const l=buildUrlParams({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...s}),c=parseId$1(n),g=createElement("iframe"),S=format(e.config.urls.vimeo.iframe,c,l);if(g.setAttribute("src",S),g.setAttribute("allowfullscreen",""),g.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),is.empty(r)||g.setAttribute("referrerPolicy",r),i||!t.customControls)g.setAttribute("data-poster",e.poster),e.media=replaceElement(g,e.media);else{const f=createElement("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});f.appendChild(g),e.media=replaceElement(f,e.media)}t.customControls||fetch$1(format(e.config.urls.vimeo.api,S)).then(f=>{!is.empty(f)&&f.thumbnail_url&&ui.setPoster.call(e,f.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(g,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(assurePlaybackState$1.call(e,!0),e.embed.play()),e.media.pause=()=>(assurePlaybackState$1.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:p}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>p,set(f){const{embed:d,media:b,paused:C,volume:x}=e,M=C&&!d.hasPlayed;b.seeking=!0,triggerEvent.call(e,b,"seeking"),Promise.resolve(M&&d.setVolume(0)).then(()=>d.setCurrentTime(f)).then(()=>M&&d.pause()).then(()=>M&&d.setVolume(x)).catch(()=>{})}});let P=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>P,set(f){e.embed.setPlaybackRate(f).then(()=>{P=f,triggerEvent.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:y}=e.config;Object.defineProperty(e.media,"volume",{get:()=>y,set(f){e.embed.setVolume(f).then(()=>{y=f,triggerEvent.call(e,e.media,"volumechange")})}});let{muted:m}=e.config;Object.defineProperty(e.media,"muted",{get:()=>m,set(f){const d=!!is.boolean(f)&&f;e.embed.setMuted(!!d||e.config.muted).then(()=>{m=d,triggerEvent.call(e,e.media,"volumechange")})}});let A,{loop:u}=e.config;Object.defineProperty(e.media,"loop",{get:()=>u,set(f){const d=is.boolean(f)?f:e.config.loop.active;e.embed.setLoop(d).then(()=>{u=d})}}),e.embed.getVideoUrl().then(f=>{A=f,controls$2.setDownloadUrl.call(e)}).catch(f=>{this.debug.warn(f)}),Object.defineProperty(e.media,"currentSrc",{get:()=>A}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(f=>{const[d,b]=f;e.embed.ratio=roundAspectRatio(d,b),setAspectRatio.call(this)}),e.embed.setAutopause(e.config.autopause).then(f=>{e.config.autopause=f}),e.embed.getVideoTitle().then(f=>{e.config.title=f,ui.setTitle.call(this)}),e.embed.getCurrentTime().then(f=>{p=f,triggerEvent.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(f=>{e.media.duration=f,triggerEvent.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(f=>{e.media.textTracks=f,captions.setup.call(e)}),e.embed.on("cuechange",({cues:f=[]})=>{const d=f.map(b=>stripHTML(b.text));captions.updateCues.call(e,d)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(f=>{assurePlaybackState$1.call(e,!f),f||triggerEvent.call(e,e.media,"playing")}),is.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{triggerEvent.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{triggerEvent.call(e,e.media,"playing")}),e.embed.on("play",()=>{assurePlaybackState$1.call(e,!0),triggerEvent.call(e,e.media,"playing")}),e.embed.on("pause",()=>{assurePlaybackState$1.call(e,!1)}),e.embed.on("timeupdate",f=>{e.media.seeking=!1,p=f.seconds,triggerEvent.call(e,e.media,"timeupdate")}),e.embed.on("progress",f=>{e.media.buffered=f.percent,triggerEvent.call(e,e.media,"progress"),parseInt(f.percent,10)===1&&triggerEvent.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(d=>{d!==e.media.duration&&(e.media.duration=d,triggerEvent.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,triggerEvent.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,triggerEvent.call(e,e.media,"ended")}),e.embed.on("error",f=>{e.media.error=f,triggerEvent.call(e,e.media,"error")}),t.customControls&&setTimeout(()=>ui.build.call(e),0)}};function parseId(e){return is.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function assurePlaybackState(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,triggerEvent.call(this,this.media,e?"play":"pause"))}function getHost(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const youtube={setup(){if(toggleClass(this.elements.wrapper,this.config.classNames.embed,!0),is.object(window.YT)&&is.function(window.YT.Player))youtube.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{is.function(e)&&e(),youtube.ready.call(this)},loadScript(this.config.urls.youtube.sdk).catch(t=>{this.debug.warn("YouTube API failed to load",t)})}},getTitle(e){fetch$1(format(this.config.urls.youtube.api,e)).then(t=>{if(is.object(t)){const{title:i,height:r,width:s}=t;this.config.title=i,ui.setTitle.call(this),this.embed.ratio=roundAspectRatio(s,r)}setAspectRatio.call(this)}).catch(()=>{setAspectRatio.call(this)})},ready(){const e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(!is.empty(i)&&i.startsWith("youtube-"))return;let r=e.media.getAttribute("src");is.empty(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));const s=parseId(r),n=createElement("div",{id:generateId(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=replaceElement(n,e.media),t.customControls){const a=o=>`https://i.ytimg.com/vi/${s}/${o}default.jpg`;loadImage(a("maxres"),121).catch(()=>loadImage(a("sd"),121)).catch(()=>loadImage(a("hq"))).then(o=>ui.setPoster.call(e,o.src)).then(o=>{o.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:getHost(t),playerVars:extend({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(a){if(!e.media.error){const o=a.data,l={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[o]||"An unknown error occurred";e.media.error={code:o,message:l},triggerEvent.call(e,e.media,"error")}},onPlaybackRateChange(a){const o=a.target;e.media.playbackRate=o.getPlaybackRate(),triggerEvent.call(e,e.media,"ratechange")},onReady(a){if(is.function(e.media.play))return;const o=a.target;youtube.getTitle.call(e,s),e.media.play=()=>{assurePlaybackState.call(e,!0),o.playVideo()},e.media.pause=()=>{assurePlaybackState.call(e,!1),o.pauseVideo()},e.media.stop=()=>{o.stopVideo()},e.media.duration=o.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(o.getCurrentTime()),set(S){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,triggerEvent.call(e,e.media,"seeking"),o.seekTo(S)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>o.getPlaybackRate(),set(S){o.setPlaybackRate(S)}});let{volume:l}=e.config;Object.defineProperty(e.media,"volume",{get:()=>l,set(S){l=S,o.setVolume(100*l),triggerEvent.call(e,e.media,"volumechange")}});let{muted:c}=e.config;Object.defineProperty(e.media,"muted",{get:()=>c,set(S){const p=is.boolean(S)?S:c;c=p,o[p?"mute":"unMute"](),o.setVolume(100*l),triggerEvent.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>o.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const g=o.getAvailablePlaybackRates();e.options.speed=g.filter(S=>e.config.speed.options.includes(S)),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),triggerEvent.call(e,e.media,"timeupdate"),triggerEvent.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=o.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&triggerEvent.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),triggerEvent.call(e,e.media,"canplaythrough"))},200),t.customControls&&setTimeout(()=>ui.build.call(e),50)},onStateChange(a){const o=a.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(a.data)&&(e.media.seeking=!1,triggerEvent.call(e,e.media,"seeked")),a.data){case-1:triggerEvent.call(e,e.media,"timeupdate"),e.media.buffered=o.getVideoLoadedFraction(),triggerEvent.call(e,e.media,"progress");break;case 0:assurePlaybackState.call(e,!1),e.media.loop?(o.stopVideo(),o.playVideo()):triggerEvent.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(assurePlaybackState.call(e,!0),triggerEvent.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{triggerEvent.call(e,e.media,"timeupdate")},50),e.media.duration!==o.getDuration()&&(e.media.duration=o.getDuration(),triggerEvent.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),assurePlaybackState.call(e,!1);break;case 3:triggerEvent.call(e,e.media,"waiting")}triggerEvent.call(e,e.elements.container,"statechange",!1,{code:a.data})}}})}},media={setup(){this.media?(toggleClass(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),toggleClass(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&toggleClass(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=createElement("div",{class:this.config.classNames.video}),wrap(this.media,this.elements.wrapper),this.elements.poster=createElement("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?html5.setup.call(this):this.isYouTube?youtube.setup.call(this):this.isVimeo&&vimeo.setup.call(this)):this.debug.warn("No media element found!")}};class Ads{constructor(t){_defineProperty$1(this,"load",()=>{this.enabled&&(is.object(window.google)&&is.object(window.google.ima)?this.ready():loadScript(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),_defineProperty$1(this,"ready",()=>{var i;this.enabled||((i=this).manager&&i.manager.destroy(),i.elements.displayContainer&&i.elements.displayContainer.destroy(),i.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),_defineProperty$1(this,"setupIMA",()=>{this.elements.container=createElement("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,i=>this.onAdsManagerLoaded(i),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,i=>this.onAdError(i),!1),this.requestAds()}),_defineProperty$1(this,"requestAds",()=>{const{container:i}=this.player.elements;try{const r=new google.ima.AdsRequest;r.adTagUrl=this.tagUrl,r.linearAdSlotWidth=i.offsetWidth,r.linearAdSlotHeight=i.offsetHeight,r.nonLinearAdSlotWidth=i.offsetWidth,r.nonLinearAdSlotHeight=i.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(r)}catch(r){this.onAdError(r)}}),_defineProperty$1(this,"pollCountdown",(i=!1)=>{if(!i)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const r=formatTime(Math.max(this.manager.getRemainingTime(),0)),s=`${i18n.get("advertisement",this.player.config)} - ${r}`;this.elements.container.setAttribute("data-badge-text",s)},100)}),_defineProperty$1(this,"onAdsManagerLoaded",i=>{if(!this.enabled)return;const r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,this.manager=i.getAdsManager(this.player,r),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],n=>this.onAdEvent(n))}),this.trigger("loaded")}),_defineProperty$1(this,"addCuePoints",()=>{is.empty(this.cuePoints)||this.cuePoints.forEach(i=>{if(i!==0&&i!==-1&&i<this.player.duration){const r=this.player.elements.progress;if(is.element(r)){const s=100/this.player.duration*i,n=createElement("span",{class:this.player.config.classNames.cues});n.style.left=`${s.toString()}%`,r.appendChild(n)}}})}),_defineProperty$1(this,"onAdEvent",i=>{const{container:r}=this.player.elements,s=i.getAd(),n=i.getAdData();switch((a=>{triggerEvent.call(this.player,this.player.media,`ads${a.replace(/_/g,"").toLowerCase()}`)})(i.type),i.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=r.offsetWidth,s.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`)}}),_defineProperty$1(this,"onAdError",i=>{this.cancel(),this.player.debug.warn("Ads error",i)}),_defineProperty$1(this,"listeners",()=>{const{container:i}=this.player.elements;let r;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{r=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;is.empty(this.cuePoints)||this.cuePoints.forEach((n,a)=>{r<n&&n<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(a,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(i.offsetWidth,i.offsetHeight,google.ima.ViewMode.NORMAL)})}),_defineProperty$1(this,"play",()=>{const{container:i}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(i.offsetWidth,i.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(r){this.onAdError(r)}}).catch(()=>{})}),_defineProperty$1(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,silencePromise(this.player.media.play())}),_defineProperty$1(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),_defineProperty$1(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),_defineProperty$1(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(i=>{this.on("loaded",i),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),_defineProperty$1(this,"trigger",(i,...r)=>{const s=this.events[i];is.array(s)&&s.forEach(n=>{is.function(n)&&n.apply(this,r)})}),_defineProperty$1(this,"on",(i,r)=>(is.array(this.events[i])||(this.events[i]=[]),this.events[i].push(r),this)),_defineProperty$1(this,"startSafetyTimer",(i,r)=>{this.player.debug.log(`Safety timer invoked from: ${r}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},i)}),_defineProperty$1(this,"clearSafetyTimer",i=>{is.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${i}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((i,r)=>{this.on("loaded",i),this.on("error",r)}),this.load()}get enabled(){const{config:t}=this;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!is.empty(t.publisherId)||is.url(t.tagUrl))}get tagUrl(){const{config:t}=this;return is.url(t.tagUrl)?t.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${buildUrlParams({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId})}`}}function clamp(e=0,t=0,i=255){return Math.min(Math.max(e,t),i)}const parseVtt=e=>{const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(i=>{const r={};i.split(/\r\n|\n|\r/).forEach(s=>{if(is.number(r.startTime)){if(!is.empty(s.trim())&&is.empty(r.text)){const n=s.trim().split("#xywh=");[r.text]=n,n[1]&&([r.x,r.y,r.w,r.h]=n[1].split(","))}}else{const n=s.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);n&&(r.startTime=60*Number(n[1]||0)*60+60*Number(n[2])+Number(n[3])+ +`0.${n[4]}`,r.endTime=60*Number(n[6]||0)*60+60*Number(n[7])+Number(n[8])+ +`0.${n[9]}`)}}),r.text&&t.push(r)}),t},fitRatio=(e,t)=>{const i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i};class PreviewThumbnails{constructor(t){_defineProperty$1(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),_defineProperty$1(this,"getThumbnails",()=>new Promise(i=>{const{src:r}=this.player.config.previewThumbnails;if(is.empty(r))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((n,a)=>n.height-a.height),this.player.debug.log("Preview thumbnails",this.thumbnails),i()};if(is.function(r))r(n=>{this.thumbnails=n,s()});else{const n=(is.string(r)?[r]:r).map(a=>this.getThumbnail(a));Promise.all(n).then(s)}})),_defineProperty$1(this,"getThumbnail",i=>new Promise(r=>{fetch$1(i).then(s=>{const n={frames:parseVtt(s),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=i.substring(0,i.lastIndexOf("/")+1));const a=new Image;a.onload=()=>{n.height=a.naturalHeight,n.width=a.naturalWidth,this.thumbnails.push(n),r()},a.src=n.urlPrefix+n.frames[0].text})})),_defineProperty$1(this,"startMove",i=>{if(this.loaded&&is.event(i)&&["touchmove","mousemove"].includes(i.type)&&this.player.media.duration){if(i.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var r,s;const n=this.player.elements.progress.getBoundingClientRect(),a=100/n.width*(i.pageX-n.left);this.seekTime=this.player.media.duration*(a/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=i.pageX,this.elements.thumb.time.innerText=formatTime(this.seekTime);const o=(r=this.player.config.markers)===null||r===void 0||(s=r.points)===null||s===void 0?void 0:s.find(({time:l})=>l===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`)}this.showImageAtCurrentTime()}}),_defineProperty$1(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),_defineProperty$1(this,"startScrubbing",i=>{(is.nullOrUndefined(i.button)||i.button===!1||i.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),_defineProperty$1(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):once.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),_defineProperty$1(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),_defineProperty$1(this,"render",()=>{this.elements.thumb.container=createElement("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=createElement("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const i=createElement("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=createElement("span",{},"00:00"),i.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(i),is.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=createElement("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),_defineProperty$1(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),_defineProperty$1(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const i=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),r=i>=0;let s=0;this.mouseDown||this.toggleThumbContainer(r),r&&(this.thumbnails.forEach((n,a)=>{this.loadedImages.includes(n.frames[i].text)&&(s=a)}),i!==this.showingThumb&&(this.showingThumb=i,this.loadImage(s)))}),_defineProperty$1(this,"loadImage",(i=0)=>{const r=this.showingThumb,s=this.thumbnails[i],{urlPrefix:n}=s,a=s.frames[r],o=s.frames[r].text,l=n+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,a,i,r,o,!1),this.currentImageElement.dataset.index=r,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const c=new Image;c.src=l,c.dataset.index=r,c.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${l}`),c.onload=()=>this.showImage(c,a,i,r,o,!0),this.loadingImage=c,this.removeOldImages(c)}}),_defineProperty$1(this,"showImage",(i,r,s,n,a,o=!0)=>{this.player.debug.log(`Showing thumb: ${a}. num: ${n}. qual: ${s}. newimg: ${o}`),this.setImageSizeAndOffset(i,r),o&&(this.currentImageContainer.appendChild(i),this.currentImageElement=i,this.loadedImages.includes(a)||this.loadedImages.push(a)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(s,i,r,a))}),_defineProperty$1(this,"removeOldImages",i=>{Array.from(this.currentImageContainer.children).forEach(r=>{if(r.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(r.dataset.index!==i.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(r),this.player.debug.log(`Removing thumb: ${r.dataset.filename}`)},s)}})}),_defineProperty$1(this,"preloadNearby",(i,r=!0)=>new Promise(s=>{setTimeout(()=>{const n=this.thumbnails[0].frames[i].text;if(this.showingThumbFilename===n){let a;a=r?this.thumbnails[0].frames.slice(i):this.thumbnails[0].frames.slice(0,i).reverse();let o=!1;a.forEach(l=>{const c=l.text;if(c!==n&&!this.loadedImages.includes(c)){o=!0,this.player.debug.log(`Preloading thumb filename: ${c}`);const{urlPrefix:g}=this.thumbnails[0],S=g+c,p=new Image;p.src=S,p.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${c}`),this.loadedImages.includes(c)||this.loadedImages.push(c),s()}}}),o||s()}},300)})),_defineProperty$1(this,"getHigherQuality",(i,r,s,n)=>{if(i<this.thumbnails.length-1){let a=r.naturalHeight;this.usingSprites&&(a=s.h),a<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(i+1))},300)}}),_defineProperty$1(this,"toggleThumbContainer",(i=!1,r=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,i),!i&&r&&(this.showingThumb=null,this.showingThumbFilename=null)}),_defineProperty$1(this,"toggleScrubbingContainer",(i=!1)=>{const r=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(r,i),i||(this.showingThumb=null,this.showingThumbFilename=null)}),_defineProperty$1(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),_defineProperty$1(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:i}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(i.clientHeight>20&&i.clientWidth<20){const r=Math.floor(i.clientHeight*this.thumbAspectRatio);i.style.width=`${r}px`}else if(i.clientHeight<20&&i.clientWidth>20){const r=Math.floor(i.clientWidth/this.thumbAspectRatio);i.style.height=`${r}px`}}else{const r=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);i.style.height=`${this.thumbContainerHeight}px`,i.style.width=`${r}px`}this.setThumbContainerPos()}),_defineProperty$1(this,"setThumbContainerPos",()=>{const i=this.player.elements.progress.getBoundingClientRect(),r=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,n=r.left-i.left+10,a=r.right-i.left-s.clientWidth-10,o=this.mousePosX-i.left-s.clientWidth/2,l=clamp(o,n,a);s.style.left=`${l}px`,s.style.setProperty("--preview-arrow-offset",o-l+"px")}),_defineProperty$1(this,"setScrubbingContainerSize",()=>{const{width:i,height:r}=fitRatio(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${i}px`,this.elements.scrubbing.container.style.height=`${r}px`}),_defineProperty$1(this,"setImageSizeAndOffset",(i,r)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/r.h;i.style.height=i.naturalHeight*s+"px",i.style.width=i.naturalWidth*s+"px",i.style.left=`-${r.x*s}px`,i.style.top=`-${r.y*s}px`}),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:t}=fitRatio(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return t}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}const source={insertElements(e,t){is.string(t)?insertElement(e,this.media,{src:t}):is.array(t)&&t.forEach(i=>{insertElement(e,this.media,i)})},change(e){getDeep(e,"sources.length")?(html5.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],removeElement(this.media),this.media=null,is.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:i}=e,[{provider:r=providers.html5,src:s}]=t,n=r==="html5"?i:"div",a=r==="html5"?{}:{src:s};Object.assign(this,{provider:r,type:i,supported:support.check(i,r,this.config.playsinline),media:createElement(n,a)}),this.elements.container.appendChild(this.media),is.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),is.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),ui.addStyleHook.call(this),this.isHTML5&&source.insertElements.call(this,"source",t),this.config.title=e.title,media.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&source.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&ui.build.call(this),this.isHTML5&&this.media.load(),is.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new PreviewThumbnails(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Plyr{constructor(t,i){if(_defineProperty$1(this,"play",()=>is.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>silencePromise(this.media.play())),this.media.play()):null),_defineProperty$1(this,"pause",()=>this.playing&&is.function(this.media.pause)?this.media.pause():null),_defineProperty$1(this,"togglePlay",o=>(is.boolean(o)?o:!this.playing)?this.play():this.pause()),_defineProperty$1(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):is.function(this.media.stop)&&this.media.stop()}),_defineProperty$1(this,"restart",()=>{this.currentTime=0}),_defineProperty$1(this,"rewind",o=>{this.currentTime-=is.number(o)?o:this.config.seekTime}),_defineProperty$1(this,"forward",o=>{this.currentTime+=is.number(o)?o:this.config.seekTime}),_defineProperty$1(this,"increaseVolume",o=>{const l=this.media.muted?0:this.volume;this.volume=l+(is.number(o)?o:0)}),_defineProperty$1(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),_defineProperty$1(this,"airplay",()=>{support.airplay&&this.media.webkitShowPlaybackTargetPicker()}),_defineProperty$1(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const l=hasClass(this.elements.container,this.config.classNames.hideControls),c=o===void 0?void 0:!o,g=toggleClass(this.elements.container,this.config.classNames.hideControls,c);if(g&&is.array(this.config.controls)&&this.config.controls.includes("settings")&&!is.empty(this.config.settings)&&controls$2.toggleMenu.call(this,!1),g!==l){const S=g?"controlshidden":"controlsshown";triggerEvent.call(this,this.media,S)}return!g}return!1}),_defineProperty$1(this,"on",(o,l)=>{on.call(this,this.elements.container,o,l)}),_defineProperty$1(this,"once",(o,l)=>{once.call(this,this.elements.container,o,l)}),_defineProperty$1(this,"off",(o,l)=>{off(this.elements.container,o,l)}),_defineProperty$1(this,"destroy",(o,l=!1)=>{if(!this.ready)return;const c=()=>{document.body.style.overflow="",this.embed=null,l?(Object.keys(this.elements).length&&(removeElement(this.elements.buttons.play),removeElement(this.elements.captions),removeElement(this.elements.controls),removeElement(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),is.function(o)&&o()):(unbindListeners.call(this),html5.cancelRequests.call(this),replaceElement(this.elements.original,this.elements.container),triggerEvent.call(this,this.elements.original,"destroyed",!0),is.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(ui.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&is.function(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(c),setTimeout(c,200))}),_defineProperty$1(this,"supports",o=>support.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=support.touch,this.media=t,is.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||is.nodeList(this.media)||is.array(this.media))&&(this.media=this.media[0]),this.config=extend({},defaults,Plyr.defaults,i||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Console(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",support),is.nullOrUndefined(this.media)||!is.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!support.check().api)return void this.debug.error("Setup failed: no support");const r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;const s=this.media.tagName.toLowerCase();let n=null,a=null;switch(s){case"div":if(n=this.media.querySelector("iframe"),is.element(n)){if(a=parseUrl(n.getAttribute("src")),this.provider=getProviderByUrl(a.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",a.search.length){const o=["1","true"];o.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(is.empty(this.provider)||!Object.values(providers).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=types.video;break;case"video":case"audio":this.type=s,this.provider=providers.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=support.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Listeners(this),this.storage=new Storage(this),this.media.plyr=this,is.element(this.elements.container)||(this.elements.container=createElement("div"),wrap(this.media,this.elements.container)),ui.migrateStyles.call(this),ui.addStyleHook.call(this),media.setup.call(this),this.config.debug&&on.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new Fullscreen(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&ui.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ads(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>silencePromise(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new PreviewThumbnails(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===providers.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===providers.youtube}get isVimeo(){return this.provider===providers.vimeo}get isVideo(){return this.type===types.video}get isAudio(){return this.type===types.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(t){if(!this.duration)return;const i=is.number(t)&&t>0;this.media.currentTime=i?Math.min(t,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:t}=this.media;return is.number(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const t=parseFloat(this.config.duration),i=(this.media||{}).duration,r=is.number(i)&&i!==1/0?i:0;return t||r}set volume(t){let i=t;is.string(i)&&(i=Number(i)),is.number(i)||(i=this.storage.get("volume")),is.number(i)||({volume:i}=this.config),i>1&&(i=1),i<0&&(i=0),this.config.volume=i,this.media.volume=i,!is.empty(t)&&this.muted&&i>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let i=t;is.boolean(i)||(i=this.storage.get("muted")),is.boolean(i)||(i=this.config.muted),this.config.muted=i,this.media.muted=i}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(t){let i=null;is.number(t)&&(i=t),is.number(i)||(i=this.storage.get("speed")),is.number(i)||(i=this.config.speed.selected);const{minimumSpeed:r,maximumSpeed:s}=this;i=clamp(i,r,s),this.config.speed.selected=i,setTimeout(()=>{this.media&&(this.media.playbackRate=i)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(t){const i=this.config.quality,r=this.options.quality;if(!r.length)return;let s=[!is.empty(t)&&Number(t),this.storage.get("quality"),i.selected,i.default].find(is.number),n=!0;if(!r.includes(s)){const a=closest(r,s);this.debug.warn(`Unsupported quality option: ${s}, using ${a} instead`),s=a,n=!1}i.selected=s,this.media.quality=s,n&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(t){const i=is.boolean(t)?t:this.config.loop.active;this.config.loop.active=i,this.media.loop=i}get loop(){return!!this.media.loop}set source(t){source.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return is.url(t)?t:this.source}set download(t){is.url(t)&&(this.config.urls.download=t,controls$2.setDownloadUrl.call(this))}set poster(t){this.isVideo?ui.setPoster.call(this,t,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const t=reduceAspectRatio(getAspectRatio.call(this));return is.array(t)?t.join(":"):t}set ratio(t){this.isVideo?is.string(t)&&validateAspectRatio(t)?(this.config.ratio=reduceAspectRatio(t),setAspectRatio.call(this)):this.debug.error(`Invalid aspect ratio specified (${t})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(t){this.config.autoplay=is.boolean(t)?t:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(t){captions.toggle.call(this,t,!1)}set currentTrack(t){captions.set.call(this,t,!1),captions.setup.call(this)}get currentTrack(){const{toggled:t,currentTrack:i}=this.captions;return t?i:-1}set language(t){captions.setLanguage.call(this,t,!1)}get language(){return(captions.getCurrentTrack.call(this)||{}).language}set pip(t){if(!support.pip)return;const i=is.boolean(t)?t:!this.pip;is.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(i?pip.active:pip.inactive),is.function(this.media.requestPictureInPicture)&&(!this.pip&&i?this.media.requestPictureInPicture():this.pip&&!i&&document.exitPictureInPicture())}get pip(){return support.pip?is.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===pip.active:null}setPreviewThumbnails(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new PreviewThumbnails(this))}static supported(t,i){return support.check(t,i)}static loadSprite(t,i){return loadSprite(t,i)}static setup(t,i={}){let r=null;return is.string(t)?r=Array.from(document.querySelectorAll(t)):is.nodeList(t)?r=Array.from(t):is.array(t)&&(r=t.filter(is.element)),is.empty(r)?null:r.map(s=>new Plyr(s,i))}}Plyr.defaults=cloneDeep(defaults);const videoWrap="_videoWrap_xntkj_1",controls$1="_controls_xntkj_19",time$1="_time_xntkj_27",line$1="_line_xntkj_36",slider$1="_slider_xntkj_43",actions$1="_actions_xntkj_54",actionWrap$1="_actionWrap_xntkj_62",actionBtn$1="_actionBtn_xntkj_65",playIcon="_playIcon_xntkj_80",btnPlay="_btnPlay_xntkj_83",btnPause="_btnPause_xntkj_86",loopBtn="_loopBtn_xntkj_93",styles$6={videoWrap,controls:controls$1,time:time$1,line:line$1,slider:slider$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,playIcon,btnPlay,btnPause,loopBtn},iconplay=""+new URL("icon-pause-259f3cb5.svg",import.meta.url).href,iconpause=""+new URL("icon-play-f09d7ebf.svg",import.meta.url).href,iconReplay$1=""+new URL("icon-replay-2c102172.svg",import.meta.url).href,VideoPlay=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset"],setup(e,{emit:t,expose:i}){const{item:r,isEmtry:s}=toRefs(e),n=ref(),a=ref(),o="v"+Date.now()+Math.floor(Math.random()*100),l="play"+Date.now()+Math.floor(Math.random()*100),c="replay"+Date.now()+Math.floor(Math.random()*100),g=A=>{var u;(u=a.value)==null||u.toggleControls(A)},S=A=>{var u;A.stopPropagation(),(u=a.value)==null||u.togglePlay()},p=()=>{!document.getElementById(c)||!a.value||a.value.restart()},P=()=>{var A,u,f;(A=document.getElementById(o))==null||A.addEventListener("click",d=>{d.stopPropagation(),t("reset")}),(u=document.getElementById(l))==null||u.addEventListener("click",S),(f=document.getElementById(c))==null||f.addEventListener("click",p)},y=A=>{const u=document.getElementById(l);u&&(A=="play"?(u.classList.remove(styles$6.btnPause),u.classList.add(styles$6.btnPlay)):(u.classList.remove(styles$6.btnPlay),u.classList.add(styles$6.btnPause)))},m=`
  39. <div id="${o}" class="plyr__controls bottomFixed ${styles$6.controls}">
  40. <div class="${styles$6.actions}">
  41. <div class="${styles$6.actionWrap}">
  42. <button id="${l}" class="${styles$6.actionBtn}">
  43. <div class="van-loading van-loading--circular" aria-live="polite" aria-busy="true"><span class="van-loading__spinner van-loading__spinner--circular" style="color: rgb(255, 255, 255);"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div>
  44. <img class="${styles$6.playIcon}" src="${iconplay}" />
  45. <img class="${styles$6.playIcon}" src="${iconpause}" />
  46. </button>
  47. </div>
  48. <div class="${styles$6.time}">
  49. <div class="plyr__time plyr__time--current" aria-label="Current time">00:00</div><span class="${styles$6.line}">/</span>
  50. <div class="plyr__time plyr__time--duration" aria-label="Duration">00:00</div>
  51. </div>
  52. </div>
  53. <div class="${styles$6.slider}">
  54. <div class="plyr__progress">
  55. <input data-plyr="seek" type="range" min="0" max="100" step="0.01" value="0" aria-label="Seek">
  56. <progress class="plyr__progress__buffer" min="0" max="100" value="0">% buffered</progress>
  57. <span role="tooltip" class="plyr__tooltip">00:00</span>
  58. </div>
  59. </div>
  60. <div class="${styles$6.actions}" style="padding-right: 0;">
  61. <button id="${c}" class="${styles$6.actionBtn} ${styles$6.loopBtn}">
  62. <img class="loop" src="${iconReplay$1}" />
  63. </button>
  64. </div>
  65. </div>`;return onMounted(()=>{a.value=new Plyr(n.value,{autoplay:!1,controls:m,autopause:!0,ratio:"16:9",hideControls:!1,clickToPlay:!1,fullscreen:{enabled:!1,fallback:!1,iosNative:!1}}),a.value&&(a.value.on("play",()=>{var A;a.value&&(a.value.muted=!1,a.value.volume=1),!r.value.autoPlay&&!r.value.isprepare&&a.value&&(console.log(a.value),a.value.pause()),y(""),t("togglePlay",(A=a.value)==null?void 0:A.paused)}),a.value.on("pause",()=>{var A;y("play"),t("togglePlay",(A=a.value)==null?void 0:A.paused)}),a.value.on("ended",()=>{t("ended"),y("play")}),a.value.once("loadedmetadata",()=>{y("play"),r.value.autoPlay&&a.value&&a.value.play(),t("loadedmetadata",a.value)}),nextTick(()=>{P()}))}),i({changePlayBtn:y,toggleHideControl:g}),()=>createVNode("div",{class:styles$6.videoWrap},[createVNode("video",{style:{width:"100%",height:"100%"},src:s.value?"":r.value.content,ref:n,playsinline:"false"},null)])}}),pen="_pen_frc2u_1",open="_open_frc2u_9",whiteboard="_whiteboard_frc2u_12",hide="_hide_frc2u_15",iframe="_iframe_frc2u_18",dely="_dely_frc2u_24",rightItem="_rightItem_frc2u_27",img="_img_frc2u_39",styles$5={pen,open,whiteboard,hide,iframe,dely,rightItem,img},Pen=defineComponent({name:"pen-page",props:{show:{type:Boolean,default:!1},type:{type:String,default:"pen"},close:{type:Function,default:()=>({})}},setup(e){const{show:t,type:i}=toRefs(e),r=ref(!0),s=(/(localhost|192)/.test(location.host),"https://test.lexiaoya.cn/whiteboard-noCollab");return()=>createVNode("div",{class:[styles$5.pen,i.value==="whiteboard"?styles$5.whiteboard:"",r.value?styles$5.dely:"",t.value?styles$5.open:styles$5.hide]},[createVNode("iframe",{class:styles$5.iframe,frameborder:"0",width:"100vw",height:"100vh",src:s,onLoad:()=>{r.value=!1}},null),createVNode("div",{class:styles$5.rightItem,onClick:()=>e.close()},[createVNode("svg",{width:"22px",height:"20px",viewBox:"0 0 22 20"},[createVNode("path",{transform:"translate(-1.000000, -2.000000)",fill:"#FFFFFF",d:"M13,2 C13.5522847,2 14,2.44771525 14,3 C14,3.51283584 13.6139598,3.93550716 13.1166211,3.99327227 L13,4 L3,4 L3,20 L13,20 C13.5128358,20 13.9355072,20.3860402 13.9932723,20.8833789 L14,21 C14,21.5128358 13.6139598,21.9355072 13.1166211,21.9932723 L13,22 L2,22 C1.48716416,22 1.06449284,21.6139598 1.00672773,21.1166211 L1,21 L1,3 C1,2.48716416 1.38604019,2.06449284 1.88337887,2.00672773 L2,2 L13,2 Z M17.7071068,7.05025253 L21.9497475,11.2928932 L21.9497475,11.2928932 C22.3402718,11.6834175 22.3402718,12.3165825 21.9497475,12.7071068 L17.7071068,16.9497475 C17.3165825,17.3402718 16.6834175,17.3402718 16.2928932,16.9497475 C15.9023689,16.5592232 15.9023689,15.9260582 16.2928932,15.5355339 L18.828,12.999 L9.29368112,13 C8.74139637,13 8.29368112,12.5522847 8.29368112,12 C8.29368112,11.4871642 8.67972131,11.0644928 9.17706,11.0067277 L9.29368112,11 L18.827,10.999 L16.2928932,8.46446609 C15.9023689,8.0739418 15.9023689,7.44077682 16.2928932,7.05025253 C16.6834175,6.65972824 17.3165825,6.65972824 17.7071068,7.05025253 Z"},null)])])])}}),audioWrap="_audioWrap_1fqhr_1",audioContainer="_audioContainer_1fqhr_6",audio="_audio_1fqhr_1",tempVudio="_tempVudio_1fqhr_22",controls="_controls_1fqhr_34",time="_time_1fqhr_48",line="_line_1fqhr_57",actions="_actions_1fqhr_64",actionWrap="_actionWrap_1fqhr_72",actionBtn="_actionBtn_1fqhr_75",iconReplay="_iconReplay_1fqhr_86",slider="_slider_1fqhr_95",sectionAnimate="_sectionAnimate_1fqhr_103",styles$4={audioWrap,audioContainer,audio,tempVudio,controls,time,line,actions,actionWrap,actionBtn,iconReplay,slider,sectionAnimate};var vudio={exports:{}};(function(e,t){(function(i){e.exports=i()})(function(){var i={effect:"waveform",accuracy:128,width:256,height:100,waveform:{maxHeight:80,minHeight:1,spacing:1,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle",prettify:!0},lighting:{maxHeight:80,lineWidth:0,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle"}};function r(n,a,o){if(["[object HTMLAudioSource]","[object HTMLAudioElement]","[object MediaStream]"].indexOf(Object.prototype.toString.call(n))===-1)throw new TypeError("Invaild Audio Source");if(Object.prototype.toString.call(a)!=="[object HTMLCanvasElement]")throw new TypeError("Invaild Canvas Element");this.audioSrc=n,this.canvasEle=a,this.option=s(i,o),this.meta={},this.stat=0,this.freqByteData=null,this.__init()}function s(){var n={};return Array.prototype.forEach.call(arguments,function(a){var o;for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(Object.prototype.toString.call(a[o])==="[object Object]"?n[o]=s(n[o],a[o]):n[o]=a[o])}),n}return r.prototype={__init:function(){var n=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),a=Object.prototype.toString.call(this.audioSrc)!=="[object MediaStream]"?n.createMediaElementSource(this.audioSrc):n.createMediaStreamSource(this.audioSrc),o=window.devicePixelRatio||1;this.analyser=n.createAnalyser(),this.meta.spr=n.sampleRate,a.connect(this.analyser),this.analyser.fftSize=this.option.accuracy*2,this.analyser.connect(n.destination),this.freqByteData=new Uint8Array(this.analyser.frequencyBinCount),this.context2d=this.canvasEle.getContext("2d"),this.width=this.option.width,this.height=this.option.height,this.context2d.canvas.width=this.width*o,this.context2d.canvas.height=this.height*o,this.context2d.scale(o,o)},__rebuildData:function(n,a){var o;return a==="center"?o=[].concat(Array.from(n).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(n).splice(0,this.option.accuracy/2)):a==="left"?o=n:a==="right"?o=Array.from(n).reverse():o=[].concat(Array.from(n).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(n).splice(0,this.option.accuracy/2)),o},__animate:function(){this.stat===1&&(this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData),requestAnimationFrame(this.__animate.bind(this)))},__testFrame:function(){this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData)},__effects:function(){var n=this;return{lighting:function(a){var o=n.option.lighting,l=n.__rebuildData(a,o.horizontalAlign),c=o.maxHeight/2,g=!0,S,p;o.horizontalAlign,n.context2d.clearRect(0,0,n.width,n.height),n.context2d.lineWidth=o.lineWidth,n.context2d.strokeStyle=o.color,n.context2d.beginPath(),l.forEach(function(P,y){S=n.width/n.option.accuracy*y,p=P/256*c,o.verticalAlign==="middle"?p=(n.height-P)/2-c/2:o.verticalAlign==="bottom"?p=n.height-P:o.verticalAlign==="top"?p=P:p=(n.height-P)/2-c/2,g?(n.context2d.moveTo(S,p),g=!1):n.context2d.lineTo(S,p)}),n.context2d.stroke()},waveform:function(a){var o=n.option.waveform,l=o.fadeSide,c=o.prettify,g=n.__rebuildData(a,o.horizontalAlign),S,p,P,y,m,A,u,f;o.horizontalAlign!=="center"&&(l=!1,c=!1),n.context2d.clearRect(0,0,n.width,n.height),g.forEach(function(d,b){p=(n.width-n.option.accuracy*o.spacing)/n.option.accuracy,y=b*(p+o.spacing),o.spacing!==1&&(y+=o.spacing/2),c?b<=n.option.accuracy/2?S=(1-(n.option.accuracy/2-1-b)/(n.option.accuracy/2))*o.maxHeight:S=(1-(b-n.option.accuracy/2)/(n.option.accuracy/2))*o.maxHeight:S=o.maxHeight,P=d/256*S,P=P<o.minHeight?o.minHeight:P,o.verticalAlign==="middle"?m=(n.height-P)/2:o.verticalAlign==="top"?m=0:o.verticalAlign==="bottom"?m=n.height-P:m=(n.height-P)/2,A=o.color,A instanceof Array?(u=n.context2d.createLinearGradient(y,m,y,m+P),A.forEach(function(C,x){C instanceof Array?(f=C[0],C=C[1]):x===0||x===A.length-1?f=x/(A.length-1):f=x/A.length+.5/A.length,u.addColorStop(f,C)}),n.context2d.fillStyle=u):n.context2d.fillStyle=A,o.shadowBlur>0&&(n.context2d.shadowBlur=o.shadowBlur,n.context2d.shadowColor=o.shadowColor),l?b<=n.option.accuracy/2?n.context2d.globalAlpha=1-(n.option.accuracy/2-1-b)/(n.option.accuracy/2):n.context2d.globalAlpha=1-(b-n.option.accuracy/2)/(n.option.accuracy/2):n.context2d.globalAlpha=1,n.context2d.fillRect(y,m,p,P)})}}},dance:function(){return this.stat===0&&(this.stat=1,this.__animate()),this},pause:function(){return this.stat=0,this},setOption:function(n){this.option=s(this.option,n)}},r})})(vudio);var vudioExports=vudio.exports;const Vudio=getDefaultExportFromCjs(vudioExports),tickMp3=""+new URL("tick-b5f22461.mp3",import.meta.url).href,AudioPay=defineComponent({name:"audio-play",props:{item:{type:Object,default:()=>({})},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset"],setup(e,{emit:t,expose:i}){const r=reactive({paused:!0,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,afterMa3:!0}),s=ref(),n=ref();let a=null;const o=m=>{m==null||m.stopPropagation(),n.value.paused?(l(n.value,s.value),n.value.play(),r.afterMa3=!1):n.value.pause(),r.paused=n.value.paused,t("togglePlay",r.paused)},l=(m,A)=>{a||(a=new Vudio(m,A,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),a.dance())},c=m=>{if(m>0){const A=Math.floor(m/60),u=m%60;return(A<10?"0"+A:A)+":"+(u<10?"0"+u:u)}else return"00:00"},g=m=>{r.showBar=m},S=()=>{n.value&&(n.value.currentTime=0)};let p=null;const P=ref(),y=ref();return nextTick(()=>{p=new Vudio(y.value,P.value,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),p.dance()}),i({toggleHideControl:g}),()=>createVNode("div",{class:styles$4.audioWrap},[createVNode("div",{class:styles$4.audioContainer},[createVNode("audio",{ref:n,crossorigin:"anonymous",src:e.item.content+"?time=1",onEnded:()=>{r.paused=!0,t("ended")},onTimeupdate:()=>{var m;r.currentTime=c(Math.round(((m=n.value)==null?void 0:m.currentTime)||0)),r.currentTimeNum=n.value.currentTime},onLoadedmetadata:()=>{r.duration=c(Math.round(n.value.duration)),r.durationNum=n.value.duration,e.item.autoPlay&&n.value&&n.value.play(),n.value.stop=()=>{n.value.pause(),r.paused=!0,t("togglePlay",r.paused)},n.value.onPlay=()=>{n.value.play(),r.paused=!1,l(n.value,s.value),t("togglePlay",r.paused)},t("loadedmetadata",n.value)}},null),createVNode("canvas",{ref:s},null),r.afterMa3&&createVNode("div",{class:styles$4.tempVudio},[createVNode("audio",{ref:y,src:tickMp3},null),createVNode("canvas",{ref:P},null)])]),createVNode("div",{class:[styles$4.controls,r.showBar?"":styles$4.sectionAnimate],onClick:m=>{m.stopPropagation(),t("reset")}},[createVNode("div",{class:styles$4.actions},[createVNode("div",{class:styles$4.actionWrap},[createVNode("button",{class:styles$4.actionBtn,onClick:o},[r.paused?createVNode("img",{class:styles$4.playIcon,src:iconplay},null):createVNode("img",{class:styles$4.playIcon,src:iconpause},null)])]),createVNode("div",{class:styles$4.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[r.currentTime]),createVNode("span",{class:styles$4.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[r.duration])])]),createVNode("div",{class:styles$4.slider},[createVNode(NSlider,{value:r.currentTimeNum,step:.01,max:r.durationNum,tooltip:!1,"onUpdate:value":m=>{n.value.currentTime=m,r.currentTimeNum=m,r.currentTime=c(Math.round(m||0))}},null)]),createVNode("div",{class:styles$4.actions},[createVNode("div",{class:styles$4.actionWrap},[createVNode("button",{class:styles$4.iconReplay,onClick:S},[createVNode("img",{src:iconReplay$1},null)])])])])])}}),trainSettings="_trainSettings_1ohlb_1",trainBtnGroup="_trainBtnGroup_1ohlb_1",searchGroup$1="_searchGroup_1ohlb_9",datetime="_datetime_1ohlb_13",trainList="_trainList_1ohlb_43",trainEditModal="_trainEditModal_1ohlb_53",selectMusicModal="_selectMusicModal_1ohlb_56",styles$3={trainSettings,trainBtnGroup,searchGroup:searchGroup$1,datetime,trainList,trainEditModal,selectMusicModal},trainType="_trainType_45ce3_1",title="_title_45ce3_13",btn="_btn_45ce3_28",preview="_preview_45ce3_70",previewBtn="_previewBtn_45ce3_84",type="_type_45ce3_100",operation="_operation_45ce3_113",evaluationType="_evaluationType_45ce3_122",styles$2={trainType,"train-header":"_train-header_45ce3_8",title,"title-tag":"_title-tag_45ce3_20","title-text":"_title-text_45ce3_25",btn,"train-content":"_train-content_45ce3_53",preview,previewBtn,"train-footer":"_train-footer_45ce3_95",type,operation,evaluationType},pTag=""+new URL("p-tag-db7b6399.svg",import.meta.url).href,eTag=""+new URL("e-tag-e90db03d.svg",import.meta.url).href,pEdit=""+new URL("p-edit-ecf6e1a4.svg",import.meta.url).href,eEdit=""+new URL("e-edit-a0caffbb.svg",import.meta.url).href,iconPause=""+new URL("icon-pause-a04ae1da.svg",import.meta.url).href,pDelete=""+new URL("p-delete-0e4c7354.svg",import.meta.url).href,eDelete=""+new URL("e-delete-42180152.svg",import.meta.url).href;function _isSlot$2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const TrainType=defineComponent({name:"train-type",props:{item:{type:Object,default:()=>({})}},emits:["click","delete","edit"],setup(e,{emit:t}){useUserStore();const i=useDialog(),r=()=>{const n=i.warning({title:"提示",content:"您确定是否删除?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{n.loading=!0,t("delete",e.item)}})},s=()=>{const n="https://kt.colexiu.com/instrument?platform=pc&modelType=practise";window.open(n,"_blank")};return()=>{let n;return createVNode("div",{class:[styles$2.trainType,e.item.type==="evaluation"?styles$2.evaluationType:""],onClick:()=>t("click",e.item)},[createVNode("div",{class:styles$2["train-header"]},[createVNode("div",{class:styles$2.title},[createVNode("img",{src:e.item.type==="evaluation"?eTag:pTag,class:styles$2["title-tag"]},null),createVNode(NEllipsis,{class:styles$2["title-text"]},{default:()=>[e.item.name]})]),createVNode(NButton,{class:styles$2.btn,round:!0,onClick:s},{default:()=>[e.item.type==="evaluation"?"评测模式":"练习模式",createVNode("img",{src:iconPause},null)]})]),createVNode("div",{class:styles$2["train-content"]},[createVNode(NImage,{src:e.item.src,previewDisabled:!0,objectFit:"cover"},null),createVNode("div",{class:styles$2.preview},[createVNode(NButton,{strong:!0,secondary:!0,class:styles$2.previewBtn,onClick:s},{default:()=>[createTextVNode("预览")]})])]),createVNode("div",{class:styles$2["train-footer"]},[createVNode(NSpace,{class:styles$2.type},_isSlot$2(n=e.item.typeList.map(a=>createVNode(NTag,null,_isSlot$2(a)?a:{default:()=>[a]})))?n:{default:()=>[n]}),createVNode(NSpace,{size:6},{default:()=>[createVNode(resolveComponent("n-button"),{quaternary:!0,class:styles$2.operation,onClick:a=>{a.stopPropagation(),t("edit",e.item)}},{default:()=>[createVNode("img",{src:e.item.type==="evaluation"?eEdit:pEdit},null)]}),createVNode(resolveComponent("n-button"),{quaternary:!0,class:styles$2.operation,onClick:a=>{a.stopPropagation(),r()}},{default:()=>[createVNode("img",{src:e.item.type==="evaluation"?eDelete:pDelete},null)]})]})])])}}}),trainUpdate="_trainUpdate_gry8i_1",updateBtnGroup="_updateBtnGroup_gry8i_4",active="_active_gry8i_16",styles$1={trainUpdate,updateBtnGroup,switch:"_switch_gry8i_12",active},TrainUpdate=defineComponent({name:"train-update",emits:["close"],setup(e,{emit:t}){const i=reactive({type:"practice",minScore:null,maxScore:null,difficulty:"1"});return()=>createVNode("div",{class:styles$1.trainUpdate},[createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"训练方式",path:"type"},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,class:[styles$1.switch,i.type==="practice"?styles$1.active:""],onClick:()=>i.type="practice"},{default:()=>[createTextVNode("练习")]}),createVNode(NButton,{secondary:!0,class:[styles$1.switch,i.type==="evaluation"?styles$1.active:""],onClick:()=>i.type="evaluation"},{default:()=>[createTextVNode("评测")]})]})]}),i.type==="practice"&&createVNode(Fragment,null,[createVNode(NFormItem,{label:"练习小节",path:"minScore"},{default:()=>[createVNode(NInputNumber,{value:i.minScore,"onUpdate:value":[r=>i.minScore=r,()=>{i.maxScore=null}],showButton:!1,min:0,max:99,placeholder:"最小练习小节",style:{width:"46%"}},null),createVNode("div",{style:{display:"flex",alignItems:"center",lineHeight:"1",marginTop:"-2px",margin:"-2px 4% 0 4%"}},[createTextVNode("-")]),createVNode(NInputNumber,{value:i.maxScore,"onUpdate:value":r=>i.maxScore=r,showButton:!1,min:i.minScore||0,max:99,placeholder:"最大练习小节",style:{width:"46%"}},null)]}),createVNode(NFormItem,{label:"练习速度"},{default:()=>[createVNode(NInputNumber,{min:0,showButton:!1,style:{width:"100%"}},null)]}),createVNode(NFormItem,{label:"练习时长"},{default:()=>[createVNode(NInputGroup,null,{default:()=>[createVNode(NInput,null,null),createVNode(NInputGroupLabel,null,{default:()=>[createTextVNode("分钟")]})]})]})]),i.type==="evaluation"&&createVNode(Fragment,null,[createVNode(NFormItem,{label:"评测难度",path:"type"},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,class:[styles$1.switch,i.difficulty==="1"?styles$1.active:""],onClick:()=>i.difficulty="1"},{default:()=>[createTextVNode("入门级")]}),createVNode(NButton,{secondary:!0,class:[styles$1.switch,i.difficulty==="2"?styles$1.active:""],onClick:()=>i.difficulty="2"},{default:()=>[createTextVNode("进阶级")]}),createVNode(NButton,{secondary:!0,class:[styles$1.switch,i.difficulty==="3"?styles$1.active:""],onClick:()=>i.difficulty="3"},{default:()=>[createTextVNode("大师级")]})]})]}),createVNode(NFormItem,{label:"评测速度"},{default:()=>[createVNode(NInputGroup,null,{default:()=>[createVNode(NInput,null,null),createVNode(NInputGroupLabel,null,{default:()=>[createTextVNode("分钟")]})]})]}),createVNode(NFormItem,{label:"合格分数"},{default:()=>[createVNode(NInputGroup,null,{default:()=>[createVNode(NInput,null,null),createVNode(NInputGroupLabel,null,{default:()=>[createTextVNode("分")]})]})]})]),createVNode(NSpace,{class:styles$1.updateBtnGroup},{default:()=>[createVNode(NButton,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{strong:!0,type:"primary",round:!0,onClick:()=>t("close")},{default:()=>[createTextVNode("确认")]})]})]})])}}),selectMusic="_selectMusic_1akyv_1",close="_close_1akyv_30",listContainer="_listContainer_1akyv_37",list="_list_1akyv_37",searchGroup="_searchGroup_1akyv_50",inputSearch="_inputSearch_1akyv_72",styles={selectMusic,close,listContainer,list,searchGroup,inputSearch},SearchGroup=defineComponent({name:"search-group",setup(){return ref(!1),reactive({search:""}),()=>createVNode("div",{class:styles.searchGroup},[createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"教材:"},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,strong:!0,type:"primary",focusable:!1},{default:()=>[createTextVNode("全部")]}),createVNode(NButton,{quaternary:!0,focusable:!1},{default:()=>[createTextVNode("人教版")]}),createVNode(NButton,{quaternary:!0,focusable:!1},{default:()=>[createTextVNode("声部训练")]}),createVNode(NButton,{quaternary:!0,focusable:!1},{default:()=>[createTextVNode("小曲目")]}),createVNode(NButton,{quaternary:!0,focusable:!1},{default:()=>[createTextVNode("考级曲目")]})]})]}),createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,strong:!0,type:"primary"},{default:()=>[createTextVNode("全部")]}),createVNode(NButton,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[createTextVNode("竖笛")]}),createVNode(NButton,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[createTextVNode("排萧")]}),createVNode(NButton,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[createTextVNode("口风琴")]}),createVNode(NButton,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[createTextVNode("陶笛")]}),createVNode(NButton,{quaternary:!0,focusable:!1,type:"default"},{default:()=>[createTextVNode("葫芦丝")]})]})]})]}),createVNode(TheSearch,{class:styles.inputSearch,round:!0},null)])}}),SelectMusic=defineComponent({name:"select-music",emits:["select"],setup(e,{emit:t}){const i=reactive({list:[],height:"100%"});return(()=>{const s=listData.rows||[];console.log(s);const n=[];s.forEach((a,o)=>{o<=10&&n.push({id:a.id,type:"SONG",title:a.musicSheetName,url:a.fixedTone?a.fixedTone.split(",")[0]:"",isCollect:!(o%3),isSelected:!(o%4)})}),i.list=n||[]})(),()=>createVNode("div",{class:styles.selectMusic},[createVNode(NTabs,{animated:!0,defaultValue:"shareResources",paneClass:styles.paneTitle,justifyContent:"center",paneWrapperClass:styles.paneWrapperContainer},{default:()=>[createVNode(NTabPane,{name:"shareResources",tab:"选择曲目"},{default:()=>[createVNode(SearchGroup,null,null),createVNode(NScrollbar,{class:styles.listContainer},{default:()=>[createVNode("div",{class:styles.list},[i.list.map(s=>createVNode(CardType,{isShowAdd:!0,item:s,onAdd:n=>t("select",n)},null))])]})]})]})])}});function _isSlot$1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const TrainSettings=defineComponent({name:"train-settings",emits:["close"],setup(e,{emit:t}){const i=reactive({editStatus:!1,selectMusicStatus:!1}),r=[{id:22078,src:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-fixed/1675770786664-1.png",type:"practice",name:"彩虹岛",typeList:["1-12小节","速度90","20分钟"]},{id:22048,src:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-fixed/1675839970286-1.png",type:"evaluation",name:"彩云追月",typeList:["入门级","全部小节","速度90","20分钟"]}];return()=>{let s;return createVNode("div",{class:styles$3.trainSettings},[createVNode("div",{class:styles$3.searchGroup},[createVNode(NButton,{onClick:()=>i.selectMusicStatus=!0},{default:()=>[createTextVNode("添加训练")]}),createVNode("div",{class:styles$3.datetime},[createVNode("label",null,[createTextVNode("截止时间:")]),createVNode(NDatePicker,{style:{width:"200px"},"value-format":"yyyy-MM-dd",type:"date",clearable:!0,placeholder:"请选择截止日期"},null)])]),createVNode(NScrollbar,{class:styles$3.trainList},_isSlot$1(s=r.map(n=>createVNode(TrainType,{item:n,onEdit:()=>{console.log("edit"),i.editStatus=!0}},null)))?s:{default:()=>[s]}),createVNode(NSpace,{class:styles$3.trainBtnGroup},{default:()=>[createVNode(NButton,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[createTextVNode("取消布置")]}),createVNode(NButton,{strong:!0,type:"primary",round:!0},{default:()=>[createTextVNode("立即布置")]})]}),createVNode(NModal,{show:i.editStatus,"onUpdate:show":n=>i.editStatus=n,class:["modalTitle background",styles$3.trainEditModal],preset:"card",title:"训练设置"},{default:()=>[createVNode(TrainUpdate,{onClose:()=>i.editStatus=!1},null)]}),createVNode(NModal,{show:i.selectMusicStatus,"onUpdate:show":n=>i.selectMusicStatus=n,class:["modalTitle",styles$3.selectMusicModal],preset:"card",title:"选择曲目"},{default:()=>[createVNode(SelectMusic,{onSelect:()=>{i.selectMusicStatus=!1,i.editStatus=!0}},null)]})])}}});function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const index=defineComponent({name:"CoursewarePlay",setup(){const e=useMessage(),t=reactive({width:"100vw"}),i=()=>{const I=Math.min(screen.width,screen.height),N=Math.max(screen.width,screen.height),B=I*(16/9);if(B>N){t.width="100vw";return}else t.width=B+"px"},r=(I=0)=>{i()};r(),onUnmounted(()=>{r(1)});const s=reactive({detail:null,knowledgePointList:[],itemList:[],showHead:!0,isCourse:!1,isRecordPlay:!1,videoRefs:{},audioRefs:{},modelAttendStatus:!1,modelTrainStatus:!1}),n=reactive({isAutoPlay:!1,nowTime:0,model:!0,isAnimation:!0,videoBtns:!0,currentTime:0,duration:0,timer:null,item:null}),a=async()=>{s.knowledgePointList=[{id:"1",name:"其多列",title:"其多列",type:"VIDEO",content:"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687844560120.mp4",url:"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687844640957.png"},{id:"5",name:"歌曲表演 大鹿",title:"歌曲表演 大鹿",type:"AUDIO",content:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/1686819360752.mp3",url:"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png"},{id:"2",name:"其多列",title:"其多列",type:"IMG",content:"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1688007481564.jpg",url:"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1688007481564.jpg"},{id:"4",name:"歌曲 其多列",title:"其多列",type:"SONG",content:"43541",url:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1687847690372-1.png"}],s.itemList=s.knowledgePointList.map(I=>({...I,iframeRef:null,videoEle:null,audioEle:null,autoPlay:!1,isprepare:!1,isRender:!1}))},o=I=>{var N;((N=I.data)==null?void 0:N.api)==="headerTogge"&&(n.model=I.data.show||I.data.playState!="play")};onMounted(()=>{a()});const l=reactive({open:!1,activeIndex:0,toolOpen:!1}),c=()=>{var I,N;for(let B=0;B<s.itemList.length;B++){const D=s.itemList[B];D.type==="VIDEO"&&D.videoEle&&D.videoEle.stop(),D.type==="AUDIO"&&D.audioEle&&D.audioEle.stop(),D.type==="SONG"&&((N=(I=D.iframeRef)==null?void 0:I.contentWindow)==null||N.postMessage({api:"setPlayState"},"*"))}},g=I=>{const N=s.itemList.findIndex(B=>B.id==I);N>-1&&f(N)},S=()=>{clearTimeout(n.timer),e.destroyAll(),n.timer=setTimeout(()=>{n.model=!1,Object.values(s.videoRefs).map(I=>I.toggleHideControl(!1)),Object.values(s.audioRefs).map(I=>I.toggleHideControl(!1))},4e3)},p=()=>{clearTimeout(n.timer),e.destroyAll(),n.model=!1,Object.values(s.videoRefs).map(I=>I.toggleHideControl(!1)),Object.values(s.audioRefs).map(I=>I.toggleHideControl(!1))},P=(I=!0)=>{n.model=I,Object.values(s.videoRefs).map(N=>N.toggleHideControl(I)),Object.values(s.audioRefs).map(N=>N.toggleHideControl(I))},y=I=>{if(I&&I.type==="VIDEO"){const N=I.videoEle;N&&(N.paused?(e.destroyAll(),N.play()):(e.warning("已暂停"),N.pause()))}};ref(-4);const m=ref(3),A=[{prev:{transform:"translate3d(0, 0, -800px) rotateX(180deg)"},next:{transform:"translate3d(0, 0, -800px) rotateX(-180deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px)"},next:{transform:"translate3d(100%, 0, -800px)"}},{prev:{transform:"translate3d(-50%, 0, -800px) rotateY(80deg)"},next:{transform:"translate3d(50%, 0, -800px) rotateY(-80deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px) rotateY(-120deg)"},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)"}},{prev:{transform:"translate3d(-50%, 50%, -800px) rotateZ(-14deg)",opacity:0},next:{transform:"translate3d(50%, 50%, -800px) rotateZ(14deg)",opacity:0}},{prev:{transform:"translateZ(-800px) rotate3d(0, -1, 0, 90deg)",opacity:0},next:{transform:"translateZ(-800px) rotate3d(0, 1, 0, 90deg)",opacity:0},current:{transitionDelay:"700ms"}}],u=ref(),f=I=>{l.activeIndex!=I&&(c(),clearTimeout(u.value),d(l.activeIndex,I),l.activeIndex=I,u.value=setTimeout(()=>{const N=s.itemList[I];N&&(N.type=="SONG"&&(n.model=!0),N.type==="AUDIO"&&(clearTimeout(n.timer),e.destroyAll()),N.type==="VIDEO"&&(clearTimeout(n.timer),e.destroyAll()))},n.isAnimation?800:0))},d=(I,N)=>{const B=s.itemList[I],D=s.itemList[N];if(D){if(D.knowledgePointId!=B.knowledgePointId){n.isAnimation=!0;return}const $=B.videoEle,O=D.videoEle;$&&$.duration<8&&I<N||O&&O.duration<8&&I>N?n.isAnimation=!1:n.isAnimation=!0}else n.isAnimation=!((B==null?void 0:B.adviseStudyTimeSecond)<8)},b=I=>{f(I==="up"?l.activeIndex-1:l.activeIndex+1)},C=()=>{var N,B;const I=s.itemList[l.activeIndex];(I==null?void 0:I.type)=="VIDEO"&&!((N=I.videoEle)!=null&&N.paused)&&S(),(I==null?void 0:I.type)=="AUDIO"&&!((B=I.audioEle)!=null&&B.paused)&&S()};document.body.addEventListener("keyup",I=>{if(I.code==="ArrowUp"){if(l.activeIndex===0)return;b("up")}else if(I.code==="ArrowDown"){if(l.activeIndex===s.itemList.length-1)return;b("down")}});const x=reactive({type:"",penShow:!1}),M=I=>{var B,D;const N=s.itemList[l.activeIndex];switch(N.type==="VIDEO"&&N.videoEle&&N.videoEle.pause(),N.type==="AUDIO"&&N.audioEle&&N.audioEle.stop(),N.type==="SONG"&&((D=(B=N.iframeRef)==null?void 0:B.contentWindow)==null||D.postMessage({api:"setPlayState"},"*")),p(),l.toolOpen=!1,x.type=I.type,I.type){case"pen":x.penShow=!0;break;case"whiteboard":x.penShow=!0}},k=()=>{x.type="init",P()};return onMounted(()=>{window.addEventListener("message",o)}),()=>{let I;return createVNode("div",{id:"playContent",class:styles$8.playContent},[createVNode("div",{onClick:()=>{clearTimeout(n.timer),n.model=!n.model,Object.values(s.videoRefs).map(N=>N.toggleHideControl(n.model)),Object.values(s.audioRefs).map(N=>N.toggleHideControl(n.model))}},[createVNode("div",{class:styles$8.coursewarePlay,style:{width:t.width},onClick:N=>{N.stopPropagation(),S()}},[createVNode("div",{class:styles$8.wraps},[s.itemList.map((N,B)=>{const D=N.isRender||Math.abs(l.activeIndex-B)<2,$=Math.abs(l.activeIndex-B)>4;return D&&(N.isRender=!0),D?createVNode("div",{key:"index"+B,class:[styles$8.itemDiv,l.activeIndex===B&&styles$8.itemActive,n.isAnimation&&styles$8.acitveAnimation,Math.abs(l.activeIndex-B)<2?styles$8.show:styles$8.hide],style:B<l.activeIndex?A[m.value].prev:B>l.activeIndex?A[m.value].next:{},onClick:O=>{if(O.stopPropagation(),clearTimeout(n.timer),Date.now()-n.nowTime<300){y(N);return}n.nowTime=Date.now(),n.timer=setTimeout(()=>{n.model=!n.model,Object.values(s.videoRefs).map(R=>R.toggleHideControl(n.model)),Object.values(s.audioRefs).map(R=>R.toggleHideControl(n.model)),n.model&&S()},300)}},[N.type==="VIDEO"?createVNode(Fragment,null,[createVNode(VideoPlay,{ref:O=>s.videoRefs[B]=O,item:N,isEmtry:$,onLoadedmetadata:O=>{N.videoEle=O,N.isprepare=!0},onTogglePlay:O=>{N.autoPlay=!1,O||l.open?clearTimeout(n.timer):S()},onEnded:()=>{const O=l.activeIndex+1;O<s.itemList.length&&f(O)},onReset:()=>{var O;(O=N.videoEle)!=null&&O.paused||S()}},null),createVNode(Transition,{name:"van-fade"},{default:()=>[!N.isprepare&&createVNode("div",{class:styles$8.loadWrap},[createVNode(Vue3Lottie,{animationData:playLoadData},null)])]})]):N.type==="IMG"?createVNode("img",{src:N.content},null):N.type==="AUDIO"?createVNode(AudioPay,{item:N,ref:O=>s.audioRefs[B]=O,onLoadedmetadata:O=>{N.audioEle=O,N.isprepare=!0},onTogglePlay:O=>{N.autoPlay=!1,O||l.open?clearTimeout(n.timer):S()},onEnded:()=>{const O=l.activeIndex+1;O<s.itemList.length&&f(O)},onReset:()=>{var O;(O=N.audioEle)!=null&&O.paused||S()}},null):createVNode(MusicScore,{activeModel:n.model,"data-vid":N.id,music:N,onSetIframe:O=>{N.iframeRef=O}},null)]):null})]),createVNode(Transition,{name:"right"},{default:()=>[n.model&&createVNode("div",{class:styles$8.rightFixedBtns,onClick:N=>{N.stopPropagation(),clearTimeout(n.timer)}},[createVNode("div",{class:[styles$8.fullBtn,l.activeIndex===0?styles$8.btnsDisabled:""],onClick:()=>{l.activeIndex!==0&&b("up")}},[createVNode("img",{src:iconUp},null)]),createVNode("div",{class:[styles$8.fullBtn,styles$8.point],onClick:()=>l.open=!0},[createVNode("img",{src:iconMenu},null)]),createVNode("div",{class:[styles$8.fullBtn,l.activeIndex===s.itemList.length-1?styles$8.btnsDisabled:""],onClick:()=>{l.activeIndex!==s.itemList.length-1&&b("down")}},[createVNode("img",{src:iconDown},null)])])]})])]),createVNode("div",{class:[styles$8.assignHomework,n.model?"":styles$8.sectionAnimateUp],onClick:()=>s.modelAttendStatus=!0},[createVNode("img",{src:iconAssignHomework},null)]),createVNode("div",{class:[styles$8.switchDisplaySection,n.model?"":styles$8.sectionAnimate]},[createVNode(NTooltip,{trigger:"hover"},{trigger:()=>createVNode("div",{class:styles$8.displayBtn,onClick:()=>M({type:"pen",icon:iconNote,name:"批注"})},[createVNode("img",{src:iconNote},null)]),default:()=>"批注"}),createVNode(NTooltip,{trigger:"hover"},{trigger:()=>createVNode("div",{class:styles$8.displayBtn,onClick:()=>M({type:"whiteboard",icon:iconWhiteboard,name:"白板"})},[createVNode("img",{src:iconWhiteboard},null)]),default:()=>"白板"})]),createVNode(NDrawer,{show:l.open,"onUpdate:show":N=>l.open=N,class:styles$8.drawerContainer,onAfterLeave:C,showMask:!1},{default:()=>[createVNode(NDrawerContent,{title:"资源列表",closable:!0},_isSlot(I=s.knowledgePointList.map((N,B)=>createVNode(CardType,{item:N,isActive:l.activeIndex===B,isCollect:!1,onClick:D=>{l.open=!1,g(D.id)}},null)))?I:{default:()=>[I]})]}),x.penShow&&createVNode(Pen,{show:x.type==="pen"||x.type==="whiteboard",type:x.type,close:()=>k()},null),createVNode(NModal,{show:s.modelAttendStatus,"onUpdate:show":N=>s.modelAttendStatus=N,preset:"card",class:styles$8.attendClassModal,title:"课后训练"},{default:()=>[createVNode("div",{class:styles$8.modelAttendContent},[createTextVNode("本节课已设置课后训练,是否布置?")]),createVNode(NSpace,{class:styles$8.modelAttendBtnGroup},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{s.modelAttendStatus=!1,window.close()}},{default:()=>[createTextVNode("暂不布置")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{s.modelTrainStatus=!0,s.modelAttendStatus=!1}},{default:()=>[createTextVNode("布置")]})]})]}),createVNode(NModal,{show:s.modelTrainStatus,"onUpdate:show":N=>s.modelTrainStatus=N,preset:"card",class:[styles$8.attendClassModal,styles$8.trainClassModal],title:"训练设置"},{default:()=>[createVNode(TrainSettings,{onClose:()=>s.modelTrainStatus=!1},null)]})])}}});export{index as default};