PageSourceSearch

https://sign-zero.vercel.app/assets/App-58ab7d48-Na5NfmhQ.js

js sign-zero.vercel.app collected 2026-10-03 07:42:37 UTC 455,528 bytes, 1,512 lines download raw bytes

vendor: 22,791 bytes, lines 1-3
1import{C as C$1,s,d,a,l,f as f$1,E as E$1,L as L$1,A as A$1,c}from"./index-BAQhEecR.js";import{g as getDefaultExportFromCjs}from"./index-C71nGj66.js";import"./bowser-BpJZBsE2.js";import"./format-CZxbOUwr.js";var qrCodeStyling$1={exports:{}},qrCodeStyling=qrCodeStyling$1.exports,hasRequiredQrCodeStyling;function requireQrCodeStyling(){return hasRequiredQrCodeStyling||(hasRequiredQrCodeStyling=1,(function(t,e){(function(i,n){t.exports=n()})(qrCodeStyling,(function(){return(()=>{var i={192:(tt,et)=>{var it,rt,ot=(function(){var ut=function(Bt,Dt){var It=Bt,vt=Ct[Dt],wt=null,nt=0,mt=null,Mt=[],At={},Ht=function(Pt,ct){wt=(function(xt){for(var yt=new Array(xt),_t=0;_t<xt;_t+=1){yt[_t]=new Array(xt);for(var Tt=0;Tt<xt;Tt+=1)yt[_t][Tt]=null}return yt})(nt=4*It+17),Wt(0,0),Wt(nt-7,0),Wt(0,nt-7),te(),Yt(),se(Pt,ct),It>=7&&ee(Pt),mt==null&&(mt=fe(It,vt,Mt)),he(mt,ct)},Wt=function(Pt,ct){for(var xt=-1;xt<=7;xt+=1)if(!(Pt+xt<=-1||nt<=Pt+xt))for(var yt=-1;yt<=7;yt+=1)ct+yt<=-1||nt<=ct+yt||(wt[Pt+xt][ct+yt]=0<=xt&&xt<=6&&(yt==0||yt==6)||0<=yt&&yt<=6&&(xt==0||xt==6)||2<=xt&&xt<=4&&2<=yt&&yt<=4)},Yt=function(){for(var Pt=8;Pt<nt-8;Pt+=1)wt[Pt][6]==null&&(wt[Pt][6]=Pt%2==0);for(var ct=8;ct<nt-8;ct+=1)wt[6][ct]==null&&(wt[6][ct]=ct%2==0)},te=function(){for(var Pt=lt.getPatternPosition(It),ct=0;ct<Pt.length;ct+=1)for(var xt=0;xt<Pt.length;xt+=1){var yt=Pt[ct],_t=Pt[xt];if(wt[yt][_t]==null)for(var Tt=-2;Tt<=2;Tt+=1)for(var kt=-2;kt<=2;kt+=1)wt[yt+Tt][_t+kt]=Tt==-2||Tt==2||kt==-2||kt==2||Tt==0&&kt==0}},ee=function(Pt){for(var ct=lt.getBCHTypeNumber(It),xt=0;xt<18;xt+=1){var yt=!Pt&&(ct>>xt&1)==1;wt[Math.floor(xt/3)][xt%3+nt-8-3]=yt}for(xt=0;xt<18;xt+=1)yt=!Pt&&(ct>>xt&1)==1,wt[xt%3+nt-8-3][Math.floor(xt/3)]=yt},se=function(Pt,ct){for(var xt=vt<<3|ct,yt=lt.getBCHTypeInfo(xt),_t=0;_t<15;_t+=1){var Tt=!Pt&&(yt>>_t&1)==1;_t<6?wt[_t][8]=Tt:_t<8?wt[_t+1][8]=Tt:wt[nt-15+_t][8]=Tt}for(_t=0;_t<15;_t+=1)Tt=!Pt&&(yt>>_t&1)==1,_t<8?wt[8][nt-_t-1]=Tt:_t<9?wt[8][15-_t-1+1]=Tt:wt[8][15-_t-1]=Tt;wt[nt-8][8]=!Pt},he=function(Pt,ct){for(var xt=-1,yt=nt-1,_t=7,Tt=0,kt=lt.getMaskFunction(ct),Vt=nt-1;Vt>0;Vt-=2)for(Vt==6&&(Vt-=1);;){for(var zt=0;zt<2;zt+=1)if(wt[yt][Vt-zt]==null){var Gt=!1;Tt<Pt.length&&(Gt=(Pt[Tt]>>>_t&1)==1),kt(yt,Vt-zt)&&(Gt=!Gt),wt[yt][Vt-zt]=Gt,(_t-=1)==-1&&(Tt+=1,_t=7)}if((yt+=xt)<0||nt<=yt){yt-=xt,xt=-xt;break}}},fe=function(Pt,ct,xt){for(var yt=pt.getRSBlocks(Pt,ct),_t=St(),Tt=0;Tt<xt.length;Tt+=1){var kt=xt[Tt];_t.put(kt.getMode(),4),_t.put(kt.getLength(),lt.getLengthInBits(kt.getMode(),Pt)),kt.write(_t)}var Vt=0;for(Tt=0;Tt<yt.length;Tt+=1)Vt+=yt[Tt].dataCount;if(_t.getLengthInBits()>8*Vt)throw"code length overflow. ("+_t.getLengthInBits()+">"+8*Vt+")";for(_t.getLengthInBits()+4<=8*Vt&&_t.put(0,4);_t.getLengthInBits()%8!=0;)_t.putBit(!1);for(;!(_t.getLengthInBits()>=8*Vt||(_t.put(236,8),_t.getLengthInBits()>=8*Vt));)_t.put(17,8);return(function(zt,Gt){for(var Rt=0,Zt=0,Qt=0,Ut=new Array(Gt.length),jt=new Array(Gt.length),qt=0;qt<Gt.length;qt+=1){var ne=Gt[qt].dataCount,oe=Gt[qt].totalCount-ne;Zt=Math.max(Zt,ne),Qt=Math.max(Qt,oe),Ut[qt]=new Array(ne);for(var Jt=0;Jt<Ut[qt].length;Jt+=1)Ut[qt][Jt]=255&zt.getBuffer()[Jt+Rt];Rt+=ne;var ae=lt.getErrorCorrectPolynomial(oe),Kt=at(Ut[qt],ae.getLength()-1).mod(ae);for(jt[qt]=new Array(ae.getLength()-1),Jt=0;Jt<jt[qt].length;Jt+=1){var ie=Jt+Kt.getLength()-jt[qt].length;jt[qt][Jt]=ie>=0?Kt.getAt(ie):0}}var pe=0;for(Jt=0;Jt<Gt.length;Jt+=1)pe+=Gt[Jt].totalCount;var me=new Array(pe),le=0;for(Jt=0;Jt<Zt;Jt+=1)for(qt=0;qt<Gt.length;qt+=1)Jt<Ut[qt].length&&(me[le]=Ut[qt][Jt],le+=1);for(Jt=0;Jt<Qt;Jt+=1)for(qt=0;qt<Gt.length;qt+=1)Jt<jt[qt].length&&(me[le]=jt[qt][Jt],le+=1);return me})(_t,yt)};At.addData=function(Pt,ct){var xt=null;switch(ct=ct||"Byte"){case"Numeric":xt=Et(Pt);break;case"Alphanumeric":xt=Ft(Pt);break;case"Byte":xt=Lt(Pt);break;case"Kanji":xt=Ot(Pt);break;default:throw"mode:"+ct}Mt.push(xt),mt=null},At.isDark=function(Pt,ct){if(Pt<0||nt<=Pt||ct<0||nt<=ct)throw Pt+","+ct;return wt[Pt][ct]},At.getModuleCount=function(){return nt},At.make=function(){if(It<1){for(var Pt=1;Pt<40;Pt++){for(var ct=pt.getRSBlocks(Pt,vt),xt=St(),yt=0;yt<Mt.length;yt++){var _t=Mt[yt];xt.put(_t.getMode(),4),xt.put(_t.getLength(),lt.getLengthInBits(_t.getMode(),Pt)),_t.write(xt)}var Tt=0;for(yt=0;yt<ct.length;yt++)Tt+=ct[yt].dataCount;if(xt.getLengthInBits()<=8*Tt)break}It=Pt}Ht(!1,(function(){for(var kt=0,Vt=0,zt=0;zt<8;zt+=1){Ht(!0,zt);var Gt=lt.getLostPoint(At);(zt==0||kt>Gt)&&(kt=Gt,Vt=zt)}return Vt})())},At.createTableTag=function(Pt,ct){Pt=Pt||2;var xt="";xt+='<table style="',xt+=" border-width: 0px; border-style: none;",xt+=" border-collapse: collapse;",xt+=" padding: 0px; margin: "+(ct=ct===void 0?4*Pt:ct)+"px;",xt+='">',xt+="<tbody>";for(var yt=0;yt<At.getModuleCount();yt+=1){xt+="<tr>";for(var _t=0;_t<At.getModuleCount();_t+=1)xt+='<td style="',xt+=" border-width: 0px; border-style: none;",xt+=" border-collapse: collapse;",xt+=" padding: 0px; margin: 0px;",xt+=" width: "+Pt+"px;",xt+=" height: "+Pt+"px;",xt+=" background-color: ",xt+=At.isDark(yt,_t)?"#000000":"#ffffff",xt+=";",xt+='"/>';xt+="</tr>"}return(xt+="</tbody>")+"</table>"},At.createSvgTag=function(Pt,ct,xt,yt){var _t={};typeof arguments[0]=="object"&&(Pt=(_t=arguments[0]).cellSize,ct=_t.margin,xt=_t.alt,yt=_t.title),Pt=Pt||2,ct=ct===void 0?4*Pt:ct,(xt=typeof xt=="string"?{text:xt}:xt||{}).text=xt.text||null,xt.id=xt.text?xt.id||"qrcode-description":null,(yt=typeof yt=="string"?{text:yt}:yt||{}).text=yt.text||null,yt.id=yt.text?yt.id||"qrcode-title":null;var Tt,kt,Vt,zt,Gt=At.getModuleCount()*Pt+2*ct,Rt="";for(zt="l"+Pt+",0 0,"+Pt+" -"+Pt+",0 0,-"+Pt+"z ",Rt+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Rt+=_t.scalable?"":' width="'+Gt+'px" height="'+Gt+'px"',Rt+=' viewBox="0 0 '+Gt+" "+Gt+'" ',Rt+=' preserveAspectRatio="xMinYMin meet"',Rt+=yt.text||xt.text?' role="img" aria-labelledby="'+re([yt.id,xt.id].join(" ").trim())+'"':"",Rt+=">",Rt+=yt.text?'<title id="'+re(yt.id)+'">'+re(yt.text)+"</title>":"",Rt+=xt.text?'<description id="'+re(xt.id)+'">'+re(xt.text)+"</description>":"",Rt+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Rt+='<path d="',kt=0;kt<At.getModuleCount();kt+=1)for(Vt=kt*Pt+ct,Tt=0;Tt<At.getModuleCount();Tt+=1)At.isDark(kt,Tt)&&(Rt+="M"+(Tt*Pt+ct)+","+Vt+zt);return(Rt+='" stroke="transparent" fill="black"/>')+"</svg>"},At.createDataURL=function(Pt,ct){Pt=Pt||2,ct=ct===void 0?4*Pt:ct;var xt=At.getModuleCount()*Pt+2*ct,yt=ct,_t=xt-ct;return Nt(xt,xt,(function(Tt,kt){if(yt<=Tt&&Tt<_t&&yt<=kt&&kt<_t){var Vt=Math.floor((Tt-yt)/Pt),zt=Math.floor((kt-yt)/Pt);return At.isDark(zt,Vt)?0:1}return 1}))},At.createImgTag=function(Pt,ct,xt){Pt=Pt||2,ct=ct===void 0?4*Pt:ct;var yt=At.getModuleCount()*Pt+2*ct,_t="";return _t+="<img",_t+=' src="',_t+=At.createDataURL(Pt,ct),_t+='"',_t+=' width="',_t+=yt,_t+='"',_t+=' height="',_t+=yt,_t+='"',xt&&(_t+=' alt="',_t+=re(xt),_t+='"'),_t+"/>"};var re=function(Pt){for(var ct="",xt=0;xt<Pt.length;xt+=1){var yt=Pt.charAt(xt);switch(yt){case"<":ct+="&lt;";break;case">":ct+="&gt;";break;case"&":ct+="&amp;";break;case'"':ct+="&quot;";break;default:ct+=yt}}return ct};return At.createASCII=function(Pt,ct){if((Pt=Pt||1)<2)return(function(Ut){Ut=Ut===void 0?2:Ut;var jt,qt,ne,oe,Jt,ae=1*At.getModuleCount()+2*Ut,Kt=Ut,ie=ae-Ut,pe={"██":"█","█ ":"▀"," █":"▄","  ":" "},me={"██":"▀","█ ":"▀"," █":" ","  ":" "},le="";for(jt=0;jt<ae;jt+=2){for(ne=Math.floor((jt-Kt)/1),oe=Math.floor((jt+1-Kt)/1),qt=0;qt<ae;qt+=1)Jt="█",Kt<=qt&&qt<ie&&Kt<=jt&&jt<ie&&At.isDark(ne,Math.floor((qt-Kt)/1))&&(Jt=" "),Kt<=qt&&qt<ie&&Kt<=jt+1&&jt+1<ie&&At.isDark(oe,Math.floor((qt-Kt)/1))?Jt+=" ":Jt+="█",le+=Ut<1&&jt+1>=ie?me[Jt]:pe[Jt];le+=`
2`}return ae%2&&Ut>0?le.substring(0,le.length-ae-1)+Array(ae+1).join("▀"):le.substring(0,le.length-1)})(ct);Pt-=1,ct=ct===void 0?2*Pt:ct;var xt,yt,_t,Tt,kt=At.getModuleCount()*Pt+2*ct,Vt=ct,zt=kt-ct,Gt=Array(Pt+1).join("██"),Rt=Array(Pt+1).join("  "),Zt="",Qt="";for(xt=0;xt<kt;xt+=1){for(_t=Math.floor((xt-Vt)/Pt),Qt="",yt=0;yt<kt;yt+=1)Tt=1,Vt<=yt&&yt<zt&&Vt<=xt&&xt<zt&&At.isDark(_t,Math.floor((yt-Vt)/Pt))&&(Tt=0),Qt+=Tt?Gt:Rt;for(_t=0;_t<Pt;_t+=1)Zt+=Qt+`
3`}return Zt.substring(0,Zt.length-1)},At.renderTo2dContext=function(Pt,ct){ct=ct||2;for(var xt=At.getModuleCount(),yt=0;yt<xt;yt++)for(var _t=0;_t<xt;_t++)Pt.fillStyle=At.isDark(yt,_t)?"black":"white",Pt.fillRect(yt*ct,_t*ct,ct,ct)},At};ut.stringToBytes=(ut.stringToBytesFuncs={default:function(Bt){for(var Dt=[],It=0;It<Bt.length;It+=1){var vt=Bt.charCodeAt(It);Dt.push(255&vt)}return Dt}}).default,ut.createStringToBytes=function(Bt,Dt){var It=(function(){for(var wt=$t(Bt),nt=function(){var Yt=wt.read();if(Yt==-1)throw"eof";return Yt},mt=0,Mt={};;){var At=wt.read();if(At==-1)break;var Ht=nt(),Wt=nt()<<8|nt();Mt[String.fromCharCode(At<<8|Ht)]=Wt,mt+=1}if(mt!=Dt)throw mt+" != "+Dt;return Mt})(),vt=63;return function(wt){for(var nt=[],mt=0;mt<wt.length;mt+=1){var Mt=wt.charCodeAt(mt);if(Mt<128)nt.push(Mt);else{var At=It[wt.charAt(mt)];typeof At=="number"?(255&At)==At?nt.push(At):(nt.push(At>>>8),nt.push(255&At)):nt.push(vt)}}return nt}};var bt,st,gt,dt,ft,Ct={L:1,M:0,Q:3,H:2},lt=(bt=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],st=1335,gt=7973,ft=function(Bt){for(var Dt=0;Bt!=0;)Dt+=1,Bt>>>=1;return Dt},(dt={}).getBCHTypeInfo=function(Bt){for(var Dt=Bt<<10;ft(Dt)-ft(st)>=0;)Dt^=st<<ft(Dt)-ft(st);return 21522^(Bt<<10|Dt)},dt.getBCHTypeNumber=function(Bt){for(var Dt=Bt<<12;ft(Dt)-ft(gt)>=0;)Dt^=gt<<ft(Dt)-ft(gt);return Bt<<12|Dt},dt.getPatternPosition=function(Bt){return bt[Bt-1]},dt.getMaskFunction=function(Bt){switch(Bt){case 0:return function(Dt,It){return(Dt+It)%2==0};case 1:return function(Dt,It){return Dt%2==0};case 2:return function(Dt,It){return It%3==0};case 3:return function(Dt,It){return(Dt+It)%3==0};case 4:return function(Dt,It){return(Math.floor(Dt/2)+Math.floor(It/3))%2==0};case 5:return function(Dt,It){return Dt*It%2+Dt*It%3==0};case 6:return function(Dt,It){return(Dt*It%2+Dt*It%3)%2==0};case 7:return function(Dt,It){return(Dt*It%3+(Dt+It)%2)%2==0};default:throw"bad maskPattern:"+Bt}},dt.getErrorCorrectPolynomial=function(Bt){for(var Dt=at([1],0),It=0;It<Bt;It+=1)Dt=Dt.multiply(at([1,ht.gexp(It)],0));return Dt},dt.getLengthInBits=function(Bt,Dt){if(1<=Dt&&Dt<10)switch(Bt){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+Bt}else if(Dt<27)switch(Bt){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+Bt}else{if(!(Dt<41))throw"type:"+Dt;switch(Bt){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+Bt}}},dt.getLostPoint=function(Bt){for(var Dt=Bt.getModuleCount(),It=0,vt=0;vt<Dt;vt+=1)for(var wt=0;wt<Dt;wt+=1){for(var nt=0,mt=Bt.isDark(vt,wt),Mt=-1;Mt<=1;Mt+=1)if(!(vt+Mt<0||Dt<=vt+Mt))for(var At=-1;At<=1;At+=1)wt+At<0||Dt<=wt+At||Mt==0&&At==0||mt==Bt.isDark(vt+Mt,wt+At)&&(nt+=1);nt>5&&(It+=3+nt-5)}for(vt=0;vt<Dt-1;vt+=1)for(wt=0;wt<Dt-1;wt+=1){var Ht=0;Bt.isDark(vt,wt)&&(Ht+=1),Bt.isDark(vt+1,wt)&&(Ht+=1),Bt.isDark(vt,wt+1)&&(Ht+=1),Bt.isDark(vt+1,wt+1)&&(Ht+=1),Ht!=0&&Ht!=4||(It+=3)}for(vt=0;vt<Dt;vt+=1)for(wt=0;wt<Dt-6;wt+=1)Bt.isDark(vt,wt)&&!Bt.isDark(vt,wt+1)&&Bt.isDark(vt,wt+2)&&Bt.isDark(vt,wt+3)&&Bt.isDark(vt,wt+4)&&!Bt.isDark(vt,wt+5)&&Bt.isDark(vt,wt+6)&&(It+=40);for(wt=0;wt<Dt;wt+=1)for(vt=0;vt<Dt-6;vt+=1)Bt.isDark(vt,wt)&&!Bt.isDark(vt+1,wt)&&Bt.isDark(vt+2,wt)&&Bt.isDark(vt+3,wt)&&Bt.isDark(vt+4,wt)&&!Bt.isDark(vt+5,wt)&&Bt.isDark(vt+6,wt)&&(It+=40);var Wt=0;for(wt=0;wt<Dt;wt+=1)for(vt=0;vt<Dt;vt+=1)Bt.isDark(vt,wt)&&(Wt+=1);return It+Math.abs(100*Wt/Dt/Dt-50)/5*10},dt),ht=(function(){for(var Bt=new Array(256),Dt=new Array(256),It=0;It<8;It+=1)Bt[It]=1<<It;for(It=8;It<256;It+=1)Bt[It]=Bt[It-4]^Bt[It-5]^Bt[It-6]^Bt[It-8];for(It=0;It<255;It+=1)Dt[Bt[It]]=It;return{glog:function(vt){if(vt<1)throw"glog("+vt+")";return Dt[vt]},gexp:function(vt){for(;vt<0;)vt+=255;for(;vt>=256;)vt-=255;return Bt[vt]}}})();function at(Bt,Dt){if(Bt.length===void 0)throw Bt.length+"/"+Dt;var It=(function(){for(var wt=0;wt<Bt.length&&Bt[wt]==0;)wt+=1;for(var nt=new Array(Bt.length-wt+Dt),mt=0;mt<Bt.length-wt;mt+=1)nt[mt]=Bt[mt+wt];return nt})(),vt={getAt:function(wt){return It[wt]},getLength:function(){return It.length},multiply:function(wt){for(var nt=new Array(vt.getLength()+wt.getLength()-1),mt=0;mt<vt.getLength();mt+=1)for(var Mt=0;Mt<wt.getLength();Mt+=1)nt[mt+Mt]^=ht.gexp(ht.glog(vt.getAt(mt))+ht.glog(wt.getAt(Mt)));return at(nt,0)},mod:function(wt){if(vt.getLength()-wt.getLength()<0)return vt;for(var nt=ht.glog(vt.getAt(0))-ht.glog(wt.getAt(0)),mt=new Array(vt.getLength()),Mt=0;Mt<vt.getLength();Mt+=1)mt[Mt]=vt.getAt(Mt);for(Mt=0;Mt<wt.getLength();Mt+=1)mt[Mt]^=ht.gexp(ht.glog(wt.getAt(Mt))+nt);return at(mt,0).mod(wt)}};return vt}var pt=(function(){var Bt=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Dt=function(vt,wt){var nt={};return nt.totalCount=vt,nt.dataCount=wt,nt},It={getRSBlocks:function(vt,wt){var nt=(function(ee,se){switch(se){case Ct.L:return Bt[4*(ee-1)+0];case Ct.M:return Bt[4*(ee-1)+1];case Ct.Q:return Bt[4*(ee-1)+2];case Ct.H:return Bt[4*(ee-1)+3];default:return}})(vt,wt);if(nt===void 0)throw"bad rs block @ typeNumber:"+vt+"/errorCorrectionLevel:"+wt;for(var mt=nt.length/3,Mt=[],At=0;At<mt;At+=1)for(var Ht=nt[3*At+0],Wt=nt[3*At+1],Yt=nt[3*At+2],te=0;te<Ht;te+=1)Mt.push(Dt(Wt,Yt));return Mt}};return It})(),St=function(){var Bt=[],Dt=0,It={getBuffer:function(){return Bt},getAt:function(vt){var wt=Math.floor(vt/8);return(Bt[wt]>>>7-vt%8&1)==1},put:function(vt,wt){for(var nt=0;nt<wt;nt+=1)It.putBit((vt>>>wt-nt-1&1)==1)},getLengthInBits:function(){return Dt},putBit:function(vt){var wt=Math.floor(Dt/8);Bt.length<=wt&&Bt.push(0),vt&&(Bt[wt]|=128>>>Dt%8),Dt+=1}};return It},Et=function(Bt){var Dt=Bt,It={getMode:function(){return 1},getLength:function(nt){return Dt.length},write:function(nt){for(var mt=Dt,Mt=0;Mt+2<mt.length;)nt.put(vt(mt.substring(Mt,Mt+3)),10),Mt+=3;Mt<mt.length&&(mt.length-Mt==1?nt.put(vt(mt.substring(Mt,Mt+1)),4):mt.length-Mt==2&&nt.put(vt(mt.substring(Mt,Mt+2)),7))}},vt=function(nt){for(var mt=0,Mt=0;Mt<nt.length;Mt+=1)mt=10*mt+wt(nt.charAt(Mt));return mt},wt=function(nt){if("0"<=nt&&nt<="9")return nt.charCodeAt(0)-48;throw"illegal char :"+nt};return It},Ft=function(Bt){var Dt=Bt,It={getMode:function(){return 2},getLength:function(wt){return Dt.length},write:function(wt){for(var nt=Dt,mt=0;mt+1<nt.length;)wt.put(45*vt(nt.charAt(mt))+vt(nt.charAt(mt+1)),11),mt+=2;mt<nt.length&&wt.put(vt(nt.charAt(mt)),6)}},vt=function(wt){if("0"<=wt&&wt<="9")return wt.charCodeAt(0)-48;if("A"<=wt&&wt<="Z")return wt.charCodeAt(0)-65+10;switch(wt){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+wt}};return It},Lt=function(Bt){var Dt=ut.stringToBytes(Bt);return{getMode:function(){return 4},getLength:function(It){return Dt.length},write:function(It){for(var vt=0;vt<Dt.length;vt+=1)It.put(Dt[vt],8)}}},Ot=function(Bt){var Dt=ut.stringToBytesFuncs.SJIS;if(!Dt)throw"sjis not supported.";(function(wt,nt){var mt=Dt("友");if(mt.length!=2||(mt[0]<<8|mt[1])!=38726)throw"sjis not supported."})();var It=Dt(Bt),vt={getMode:function(){return 8},getLength:function(wt){return~~(It.length/2)},write:function(wt){for(var nt=It,mt=0;mt+1<nt.length;){var Mt=(255&nt[mt])<<8|255&nt[mt+1];if(33088<=Mt&&Mt<=40956)Mt-=33088;else{if(!(57408<=Mt&&Mt<=60351))throw"illegal char at "+(mt+1)+"/"+Mt;Mt-=49472}Mt=192*(Mt>>>8&255)+(255&Mt),wt.put(Mt,13),mt+=2}if(mt<nt.length)throw"illegal char at "+(mt+1)}};return vt},Xt=function(){var Bt=[],Dt={writeByte:function(It){Bt.push(255&It)},writeShort:function(It){Dt.writeByte(It),Dt.writeByte(It>>>8)},writeBytes:function(It,vt,wt){vt=vt||0,wt=wt||It.length;for(var nt=0;nt<wt;nt+=1)Dt.writeByte(It[nt+vt])},writeString:function(It){for(var vt=0;vt<It.length;vt+=1)Dt.writeByte(It.charCodeAt(vt))},toByteArray:function(){return Bt},toString:function(){var It="";It+="[";for(var vt=0;vt<Bt.length;vt+=1)vt>0&&(It+=","),It+=Bt[vt];return It+"]"}};return Dt},$t=function(Bt){var Dt=Bt,It=0,vt=0,wt=0,nt={read:function(){for(;wt<8;){if(It>=Dt.length){if(wt==0)return-1;throw"unexpected end of file./"+wt}var Mt=Dt.charAt(It);if(It+=1,Mt=="=")return wt=0,-1;Mt.match(/^\s$/)||(vt=vt<<6|mt(Mt.charCodeAt(0)),wt+=6)}var At=vt>>>wt-8&255;return wt-=8,At}},mt=function(Mt){if(65<=Mt&&Mt<=90)return Mt-65;if(97<=Mt&&Mt<=122)return Mt-97+26;if(48<=Mt&&Mt<=57)return Mt-48+52;if(Mt==43)return 62;if(Mt==47)return 63;throw"c:"+Mt};return nt},Nt=function(Bt,Dt,It){for(var vt=(function(Wt,Yt){var te=Wt,ee=Yt,se=new Array(Wt*Yt),he={setPixel:function(Pt,ct,xt){se[ct*te+Pt]=xt},write:function(Pt){Pt.writeString("GIF87a"),Pt.writeShort(te),Pt.writeShort(ee),Pt.writeByte(128),Pt.writeByte(0),Pt.writeByte(0),Pt.writeByte(0),Pt.writeByte(0),Pt.writeByte(0),Pt.writeByte(255),Pt.writeByte(255),Pt.writeByte(255),Pt.writeString(","),Pt.writeShort(0),Pt.writeShort(0),Pt.writeShort(te),Pt.writeShort(ee),Pt.writeByte(0);var ct=fe(2);Pt.writeByte(2);for(var xt=0;ct.length-xt>255;)Pt.writeByte(255),Pt.writeBytes(ct,xt,255),xt+=255;Pt.writeByte(ct.length-xt),Pt.writeBytes(ct,xt,ct.length-xt),Pt.writeByte(0),Pt.writeString(";")}},fe=function(Pt){for(var ct=1<<Pt,xt=1+(1<<Pt),yt=Pt+1,_t=re(),Tt=0;Tt<ct;Tt+=1)_t.add(String.fromCharCode(Tt));_t.add(String.fromCharCode(ct)),_t.add(String.fromCharCode(xt));var kt,Vt,zt,Gt=Xt(),Rt=(kt=Gt,Vt=0,zt=0,{write:function(jt,qt){if(jt>>>qt)throw"length over";for(;Vt+qt>=8;)kt.writeByte(255&(jt<<Vt|zt)),qt-=8-Vt,jt>>>=8-Vt,zt=0,Vt=0;zt|=jt<<Vt,Vt+=qt},flush:function(){Vt>0&&kt.writeByte(zt)}});Rt.write(ct,yt);var Zt=0,Qt=String.fromCharCode(se[Zt]);for(Zt+=1;Zt<se.length;){var Ut=String.fromCharCode(se[Zt]);Zt+=1,_t.contains(Qt+Ut)?Qt+=Ut:(Rt.write(_t.indexOf(Qt),yt),_t.size()<4095&&(_t.size()==1<<yt&&(yt+=1),_t.add(Qt+Ut)),Qt=Ut)}return Rt.write(_t.indexOf(Qt),yt),Rt.write(xt,yt),Rt.flush(),Gt.toByteArray()},re=function(){var Pt={},ct=0,xt={add:function(yt){if(xt.contains(yt))throw"dup key:"+yt;Pt[yt]=ct,ct+=1},size:function(){return ct},indexOf:function(yt){return Pt[yt]},contains:function(yt){return Pt[yt]!==void 0}};return xt};return he})(Bt,Dt),wt=0;wt<Dt;wt+=1)for(var nt=0;nt<Bt;nt+=1)vt.setPixel(nt,wt,It(nt,wt));var mt=Xt();vt.write(mt);for(var Mt=(function(){var Wt=0,Yt=0,te=0,ee="",se={},he=function(re){ee+=String.fromCharCode(fe(63&re))},fe=function(re){if(!(re<0)){if(re<26)return 65+re;if(re<52)return re-26+97;if(re<62)return re-52+48;if(re==62)return 43;if(re==63)return 47}throw"n:"+re};return se.writeByte=function(re){for(Wt=Wt<<8|255&re,Yt+=8,te+=1;Yt>=6;)he(Wt>>>Yt-6),Yt-=6},se.flush=function(){if(Yt>0&&(he(Wt<<6-Yt),Wt=0,Yt=0),te%3!=0)for(var re=3-te%3,Pt=0;Pt<re;Pt+=1)ee+="="},se.toString=function(){return ee},se})(),At=mt.toByteArray(),Ht=0;Ht<At.length;Ht+=1)Mt.writeByte(At[Ht]);return Mt.flush(),"data:image/gif;base64,"+Mt};return ut})();ot.stringToBytesFuncs["UTF-8"]=function(ut){return(function(bt){for(var st=[],gt=0;gt<bt.length;gt++){var dt=bt.charCodeAt(gt);dt<128?st.push(dt):dt<2048?st.push(192|dt>>6,128|63&dt):dt<55296||dt>=57344?st.push(224|dt>>12,128|dt>>6&63,128|63&dt):(gt++,dt=65536+((1023&dt)<<10|1023&bt.charCodeAt(gt)),st.push(240|dt>>18,128|dt>>12&63,128|dt>>6&63,128|63&dt))}return st})(ut)},(rt=typeof(it=function(){return ot}
3)=="function"?it.apply(et,[]):it)===void 0||(tt.exports=rt)},676:(tt,et,it)=>{it.d(et,{default:()=>re});const rt="Numeric",ot="Alphanumeric",ut="Byte";var bt=function(){return bt=Object.assign||function(Pt){for(var ct,xt=1,yt=arguments.length;xt<yt;xt++)for(var _t in ct=arguments[xt])Object.prototype.hasOwnProperty.call(ct,_t)&&(Pt[_t]=ct[_t]);return Pt},bt.apply(this,arguments)},st=function(){for(var Pt=0,ct=0,xt=arguments.length;ct<xt;ct++)Pt+=arguments[ct].length;var yt=Array(Pt),_t=0;for(ct=0;ct<xt;ct++)for(var Tt=arguments[ct],kt=0,Vt=Tt.length;kt<Vt;kt++,_t++)yt[_t]=Tt[kt];return yt},gt=function(Pt){return!!Pt&&typeof Pt=="object"&&!Array.isArray(Pt)};function dt(Pt){for(var ct=[],xt=1;xt<arguments.length;xt++)ct[xt-1]=arguments[xt];if(!ct.length)return Pt;var yt=ct.shift();return yt!==void 0&&gt(Pt)&&gt(yt)?(Pt=bt({},Pt),Object.keys(yt).forEach((function(_t){var Tt=Pt[_t],kt=yt[_t];Array.isArray(Tt)&&Array.isArray(kt)?Pt[_t]=kt:gt(Tt)&&gt(kt)?Pt[_t]=dt(Object.assign({},Tt),kt):Pt[_t]=kt})),dt.apply(void 0,st([Pt],ct))):Pt}function ft(Pt,ct){var xt=document.createElement("a");xt.download=ct,xt.href=Pt,document.body.appendChild(xt),xt.click(),document.body.removeChild(xt)}var Ct=function(Pt,ct,xt,yt){return new(xt||(xt=Promise))((function(_t,Tt){function kt(Gt){try{zt(yt.next(Gt))}catch(Rt){Tt(Rt)}}function Vt(Gt){try{zt(yt.throw(Gt))}catch(Rt){Tt(Rt)}}function zt(Gt){var Rt;Gt.done?_t(Gt.value):(Rt=Gt.value,Rt instanceof xt?Rt:new xt((function(Zt){Zt(Rt)}))).then(kt,Vt)}zt((yt=yt.apply(Pt,[])).next())}))},lt=function(Pt,ct){var xt,yt,_t,Tt,kt={label:0,sent:function(){if(1&_t[0])throw _t[1];return _t[1]},trys:[],ops:[]};return Tt={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(Tt[Symbol.iterator]=function(){return this}),Tt;function Vt(zt){return function(Gt){return(function(Rt){if(xt)throw new TypeError("Generator is already executing.");for(;kt;)try{if(xt=1,yt&&(_t=2&Rt[0]?yt.return:Rt[0]?yt.throw||((_t=yt.return)&&_t.call(yt),0):yt.next)&&!(_t=_t.call(yt,Rt[1])).done)return _t;switch(yt=0,_t&&(Rt=[2&Rt[0],_t.value]),Rt[0]){case 0:case 1:_t=Rt;break;case 4:return kt.label++,{value:Rt[1],done:!1};case 5:kt.label++,yt=Rt[1],Rt=[0];continue;case 7:Rt=kt.ops.pop(),kt.trys.pop();continue;default:if(!((_t=(_t=kt.trys).length>0&&_t[_t.length-1])||Rt[0]!==6&&Rt[0]!==2)){kt=0;continue}if(Rt[0]===3&&(!_t||Rt[1]>_t[0]&&Rt[1]<_t[3])){kt.label=Rt[1];break}if(Rt[0]===6&&kt.label<_t[1]){kt.label=_t[1],_t=Rt;break}if(_t&&kt.label<_t[2]){kt.label=_t[2],kt.ops.push(Rt);break}_t[2]&&kt.ops.pop(),kt.trys.pop();continue}Rt=ct.call(Pt,kt)}catch(Zt){Rt=[6,Zt],yt=0}finally{xt=_t=0}if(5&Rt[0])throw Rt[1];return{value:Rt[0]?Rt[1]:void 0,done:!0}})([zt,Gt])}}};function ht(Pt){return Ct(this,void 0,void 0,(function(){return lt(this,(function(ct){return[2,new Promise((function(xt){var yt=new XMLHttpRequest;yt.onload=function(){var _t=new FileReader;_t.onloadend=function(){xt(_t.result)},_t.readAsDataURL(yt.response)},yt.open("GET",Pt),yt.responseType="blob",yt.send()}))]}))}))}const at={L:.07,M:.15,Q:.25,H:.3};var pt=function(){return pt=Object.assign||function(Pt){for(var ct,xt=1,yt=arguments.length;xt<yt;xt++)for(var _t in ct=arguments[xt])Object.prototype.hasOwnProperty.call(ct,_t)&&(Pt[_t]=ct[_t]);return Pt},pt.apply(this,arguments)},St=(function(){function Pt(ct){var xt=ct.svg,yt=ct.type;this._svg=xt,this._type=yt}return Pt.prototype.draw=function(ct,xt,yt,_t){var Tt;switch(this._type){case"dots":Tt=this._drawDot;break;case"classy":Tt=this._drawClassy;break;case"classy-rounded":Tt=this._drawClassyRounded;break;case"rounded":Tt=this._drawRounded;break;case"extra-rounded":Tt=this._drawExtraRounded;break;default:Tt=this._drawSquare}Tt.call(this,{x:ct,y:xt,size:yt,getNeighbor:_t})},Pt.prototype._rotateFigure=function(ct){var xt,yt=ct.x,_t=ct.y,Tt=ct.size,kt=ct.rotation,Vt=kt===void 0?0:kt,zt=yt+Tt/2,Gt=_t+Tt/2;(0,ct.draw)(),(xt=this._element)===null||xt===void 0||xt.setAttribute("transform","rotate("+180*Vt/Math.PI+","+zt+","+Gt+")")},Pt.prototype._basicDot=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(pt(pt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),xt._element.setAttribute("cx",String(_t+yt/2)),xt._element.setAttribute("cy",String(Tt+yt/2)),xt._element.setAttribute("r",String(yt/2))}}))},Pt.prototype._basicSquare=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(pt(pt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),xt._element.setAttribute("x",String(_t)),xt._element.setAttribute("y",String(Tt)),xt._element.setAttribute("width",String(yt)),xt._element.setAttribute("height",String(yt))}}))},Pt.prototype._basicSideRounded=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(pt(pt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("d","M "+_t+" "+Tt+"v "+yt+"h "+yt/2+"a "+yt/2+" "+yt/2+", 0, 0, 0, 0 "+-yt)}}))},Pt.prototype._basicCornerRounded=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(pt(pt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("d","M "+_t+" "+Tt+"v "+yt+"h "+yt+"v "+-yt/2+"a "+yt/2+" "+yt/2+", 0, 0, 0, "+-yt/2+" "+-yt/2)}}))},Pt.prototype._basicCornerExtraRounded=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(pt(pt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("d","M "+_t+" "+Tt+"v "+yt+"h "+yt+"a "+yt+" "+yt+", 0, 0, 0, "+-yt+" "+-yt)}}))},Pt.prototype._basicCornersRounded=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(pt(pt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("d","M "+_t+" "+Tt+"v "+yt/2+"a "+yt/2+" "+yt/2+", 0, 0, 0, "+yt/2+" "+yt/2+"h "+yt/2+"v "+-yt/2+"a "+yt/2+" "+yt/2+", 0, 0, 0, "+-yt/2+" "+-yt/2)}}))},Pt.prototype._drawDot=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size;this._basicDot({x:xt,y:yt,size:_t,rotation:0})},Pt.prototype._drawSquare=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size;this._basicSquare({x:xt,y:yt,size:_t,rotation:0})},Pt.prototype._drawRounded=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.getNeighbor,kt=Tt?+Tt(-1,0):0,Vt=Tt?+Tt(1,0):0,zt=Tt?+Tt(0,-1):0,Gt
3=Tt?+Tt(0,1):0,Rt=kt+Vt+zt+Gt;if(Rt!==0)if(Rt>2||kt&&Vt||zt&&Gt)this._basicSquare({x:xt,y:yt,size:_t,rotation:0});else{if(Rt===2){var Zt=0;return kt&&zt?Zt=Math.PI/2:zt&&Vt?Zt=Math.PI:Vt&&Gt&&(Zt=-Math.PI/2),void this._basicCornerRounded({x:xt,y:yt,size:_t,rotation:Zt})}if(Rt===1)return Zt=0,zt?Zt=Math.PI/2:Vt?Zt=Math.PI:Gt&&(Zt=-Math.PI/2),void this._basicSideRounded({x:xt,y:yt,size:_t,rotation:Zt})}else this._basicDot({x:xt,y:yt,size:_t,rotation:0})},Pt.prototype._drawExtraRounded=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.getNeighbor,kt=Tt?+Tt(-1,0):0,Vt=Tt?+Tt(1,0):0,zt=Tt?+Tt(0,-1):0,Gt=Tt?+Tt(0,1):0,Rt=kt+Vt+zt+Gt;if(Rt!==0)if(Rt>2||kt&&Vt||zt&&Gt)this._basicSquare({x:xt,y:yt,size:_t,rotation:0});else{if(Rt===2){var Zt=0;return kt&&zt?Zt=Math.PI/2:zt&&Vt?Zt=Math.PI:Vt&&Gt&&(Zt=-Math.PI/2),void this._basicCornerExtraRounded({x:xt,y:yt,size:_t,rotation:Zt})}if(Rt===1)return Zt=0,zt?Zt=Math.PI/2:Vt?Zt=Math.PI:Gt&&(Zt=-Math.PI/2),void this._basicSideRounded({x:xt,y:yt,size:_t,rotation:Zt})}else this._basicDot({x:xt,y:yt,size:_t,rotation:0})},Pt.prototype._drawClassy=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.getNeighbor,kt=Tt?+Tt(-1,0):0,Vt=Tt?+Tt(1,0):0,zt=Tt?+Tt(0,-1):0,Gt
3=Tt?+Tt(0,1):0;kt+Vt+zt+Gt!==0?kt||zt?Vt||Gt?this._basicSquare({x:xt,y:yt,size:_t,rotation:0}):this._basicCornerRounded({x:xt,y:yt,size:_t,rotation:Math.PI/2}):this._basicCornerRounded({x:xt,y:yt,size:_t,rotation:-Math.PI/2}):this._basicCornersRounded({x:xt,y:yt,size:_t,rotation:Math.PI/2})},Pt.prototype._drawClassyRounded=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.getNeighbor,kt=Tt?+Tt(-1,0):0,Vt=Tt?+Tt(1,0):0,zt=Tt?+Tt(0,-1):0,Gt=Tt?+Tt(0,1):0;kt+Vt+zt+Gt!==0?kt||zt?Vt||Gt?this._basicSquare({x:xt,y:yt,size:_t,rotation:0}):this._basicCornerExtraRounded({x:xt,y:yt,size:_t,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:xt,y:yt,size:_t,rotation:-Math.PI/2}):this._basicCornersRounded({x:xt,y:yt,size:_t,rotation:Math.PI/2})},Pt})();const Et=St;var Ft=function(){return Ft=Object.assign||function(Pt){for(var ct,xt=1,yt=arguments.length;xt<yt;xt++)for(var _t in ct=arguments[xt])Object.prototype.hasOwnProperty.call(ct,_t)&&(Pt[_t]=ct[_t]);return Pt},Ft.apply(this,arguments)},Lt=(function(){function Pt(ct){var xt=ct.svg,yt=ct.type;this._svg=xt,this._type=yt}return Pt.prototype.draw=function(ct,xt,yt,_t){var Tt;switch(this._type){case"square":Tt=this._drawSquare;break;case"extra-rounded":Tt=this._drawExtraRounded;break;default:Tt=this._drawDot}Tt.call(this,{x:ct,y:xt,size:yt,rotation:_t})},Pt.prototype._rotateFigure=function(ct){var xt,yt=ct.x,_t=ct.y,Tt=ct.size,kt=ct.rotation,Vt=kt===void 0?0:kt,zt=yt+Tt/2,Gt=_t+Tt/2;(0,ct.draw)(),(xt=this._element)===null||xt===void 0||xt.setAttribute("transform","rotate("+180*Vt/Math.PI+","+zt+","+Gt+")")},Pt.prototype._basicDot=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y,kt=yt/7;this._rotateFigure(Ft(Ft({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("clip-rule","evenodd"),xt._element.setAttribute("d","M "+(_t+yt/2)+" "+Tt+"a "+yt/2+" "+yt/2+" 0 1 0 0.1 0zm 0 "+kt+"a "+(yt/2-kt)+" "+(yt/2-kt)+" 0 1 1 -0.1 0Z")}}))},Pt.prototype._basicSquare=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y,kt=yt/7;this._rotateFigure(Ft(Ft({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("clip-rule","evenodd"),xt._element.setAttribute("d","M "+_t+" "+Tt+"v "+yt+"h "+yt+"v "+-yt+"zM "+(_t+kt)+" "+(Tt+kt)+"h "+(yt-2*kt)+"v "+(yt-2*kt)+"h "+(2*kt-yt)+"z")}}))},Pt.prototype._basicExtraRounded=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y,kt=yt/7;this._rotateFigure(Ft(Ft({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),xt._element.setAttribute("clip-rule","evenodd"),xt._element.setAttribute("d","M "+_t+" "+(Tt+2.5*kt)+"v "+2*kt+"a "+2.5*kt+" "+2.5*kt+", 0, 0, 0, "+2.5*kt+" "+2.5*kt+"h "+2*kt+"a "+2.5*kt+" "+2.5*kt+", 0, 0, 0, "+2.5*kt+" "+2.5*-kt+"v "+-2*kt+"a "+2.5*kt+" "+2.5*kt+", 0, 0, 0, "+2.5*-kt+" "+2.5*-kt+"h "+-2*kt+"a "+2.5*kt+" "+2.5*kt+", 0, 0, 0, "+2.5*-kt+" "+2.5*kt+"M "+(_t+2.5*kt)+" "+(Tt+kt)+"h "+2*kt+"a "+1.5*kt+" "+1.5*kt+", 0, 0, 1, "+1.5*kt+" "+1.5*kt+"v "+2*kt+"a "+1.5*kt+" "+1.5*kt+", 0, 0, 1, "+1.5*-kt+" "+1.5*kt+"h "+-2*kt+"a "+1.5*kt+" "+1.5*kt+", 0, 0, 1, "+1.5*-kt+" "+1.5*-kt+"v "+-2*kt+"a "+1.5*kt+" "+1.5*kt+", 0, 0, 1, "+1.5*kt+" "+1.5*-kt)}}))},Pt.prototype._drawDot=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.rotation;this._basicDot({x:xt,y:yt,size:_t,rotation:Tt})},Pt.prototype._drawSquare=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.rotation;this._basicSquare({x:xt,y:yt,size:_t,rotation:Tt})},Pt.prototype._drawExtraRounded=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.rotation;this._basicExtraRounded({x:xt,y:yt,size:_t,rotation:Tt})},Pt})();const Ot=Lt;var Xt=function(){return Xt=Object.assign||function(Pt){for(var ct,xt=1,yt=arguments.length;xt<yt;xt++)for(var _t in ct=arguments[xt])Object.prototype.hasOwnProperty.call(ct,_t)&&(Pt[_t]=ct[_t]);return Pt},Xt.apply(this,arguments)},$t=(function(){function Pt(ct){var xt=ct.svg,yt=ct.type;this._svg=xt,this._type=yt}return Pt.prototype.draw=function(ct,xt,yt,_t){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:ct,y:xt,size:yt,rotation:_t})},Pt.prototype._rotateFigure=function(ct){var xt,yt=ct.x,_t=ct.y,Tt=ct.size,kt=ct.rotation,Vt=kt===void 0?0:kt,zt=yt+Tt/2,Gt=_t+Tt/2;(0,ct.draw)(),(xt=this._element)===null||xt===void 0||xt.setAttribute("transform","rotate("+180*Vt/Math.PI+","+zt+","+Gt+")")},Pt.prototype._basicDot=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(Xt(Xt({}
3,ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),xt._element.setAttribute("cx",String(_t+yt/2)),xt._element.setAttribute("cy",String(Tt+yt/2)),xt._element.setAttribute("r",String(yt/2))}}))},Pt.prototype._basicSquare=function(ct){var xt=this,yt=ct.size,_t=ct.x,Tt=ct.y;this._rotateFigure(Xt(Xt({},ct),{draw:function(){xt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),xt._element.setAttribute("x",String(_t)),xt._element.setAttribute("y",String(Tt)),xt._element.setAttribute("width",String(yt)),xt._element.setAttribute("height",String(yt))}}))},Pt.prototype._drawDot=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.rotation;this._basicDot({x:xt,y:yt,size:_t,rotation:Tt})},Pt.prototype._drawSquare=function(ct){var xt=ct.x,yt=ct.y,_t=ct.size,Tt=ct.rotation;this._basicSquare({x:xt,y:yt,size:_t,rotation:Tt})},Pt})();const Nt=$t,Bt="circle";var Dt=function(Pt,ct,xt,yt){return new(xt||(xt=Promise))((function(_t,Tt){function kt(Gt){try{zt(yt.next(Gt))}catch(Rt){Tt(Rt)}}function Vt(Gt){try{zt(yt.throw(Gt))}catch(Rt){Tt(Rt)}}function zt(Gt){var Rt;Gt.done?_t(Gt.value):(Rt=Gt.value,Rt instanceof xt?Rt:new xt((function(Zt){Zt(Rt)}))).then(kt,Vt)}zt((yt=yt.apply(Pt,[])).next())}))},It=function(Pt,ct){var xt,yt,_t,Tt,kt={label:0,sent:function(){if(1&_t[0])throw _t[1];return _t[1]},trys:[],ops:[]};return Tt={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(Tt[Symbol.iterator]=function(){return this}),Tt;function Vt(zt){return function(Gt){return(function(Rt){if(xt)throw new TypeError("Generator is already executing.");for(;kt;)try{if(xt=1,yt&&(_t=2&Rt[0]?yt.return:Rt[0]?yt.throw||((_t=yt.return)&&_t.call(yt),0):yt.next)&&!(_t=_t.call(yt,Rt[1])).done)return _t;switch(yt=0,_t&&(Rt=[2&Rt[0],_t.value]),Rt[0]){case 0:case 1:_t=Rt;break;case 4:return kt.label++,{value:Rt[1],done:!1};case 5:kt.label++,yt=Rt[1],Rt=[0];continue;case 7:Rt=kt.ops.pop(),kt.trys.pop();continue;default:if(!((_t=(_t=kt.trys).length>0&&_t[_t.length-1])||Rt[0]!==6&&Rt[0]!==2)){kt=0;continue}if(Rt[0]===3&&(!_t||Rt[1]>_t[0]&&Rt[1]<_t[3])){kt.label=Rt[1];break}if(Rt[0]===6&&kt.label<_t[1]){kt.label=_t[1],_t=Rt;break}if(_t&&kt.label<_t[2]){kt.label=_t[2],kt.ops.push(Rt);break}_t[2]&&kt.ops.pop(),kt.trys.pop();continue}Rt=ct.call(Pt,kt)}catch(Zt){Rt=[6,Zt],yt=0}finally{xt=_t=0}if(5&Rt[0])throw Rt[1];return{value:Rt[0]?Rt[1]:void 0,done:!0}})([zt,Gt])}}},vt=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],wt=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const nt=(function(){function Pt(ct){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(ct.width)),this._element.setAttribute("height",String(ct.height)),this._element.setAttribute("viewBox","0 0 "+ct.width+" "+ct.height),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=Pt.instanceCount++,this._options=ct}return Object.defineProperty(Pt.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),Pt.prototype.getElement=function(){return this._element},Pt.prototype.drawQR=function(ct){return Dt(this,void 0,void 0,(function(){var xt,yt,_t,Tt,kt,Vt,zt,Gt,Rt,Zt,Qt=this;return It(this,(function(Ut){switch(Ut.label){case 0:return xt=ct.getModuleCount(),yt=Math.min(this._options.width,this._options.height)-2*this._options.margin,_t=this._options.shape===Bt?yt/Math.sqrt(2):yt,Tt=_t/xt,kt={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=ct,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ut.sent(),!this._image)return[2];Vt=this._options,zt=Vt.imageOptions,Gt=Vt.qrOptions,Rt=zt.imageSize*at[Gt.errorCorrectionLevel],Zt=Math.floor(Rt*xt*xt),kt=(function(jt){var qt=jt.originalHeight,ne=jt.originalWidth,oe=jt.maxHiddenDots,Jt=jt.maxHiddenAxisDots,ae=jt.dotSize,Kt={x:0,y:0},ie={x:0,y:0};if(qt<=0||ne<=0||oe<=0||ae<=0)return{height:0,width:0,hideYDots:0,hideXDots:0}
3;var pe=qt/ne;return Kt.x=Math.floor(Math.sqrt(oe/pe)),Kt.x<=0&&(Kt.x=1),Jt&&Jt<Kt.x&&(Kt.x=Jt),Kt.x%2==0&&Kt.x--,ie.x=Kt.x*ae,Kt.y=1+2*Math.ceil((Kt.x*pe-1)/2),ie.y=Math.round(ie.x*pe),(Kt.y*Kt.x>oe||Jt&&Jt<Kt.y)&&(Jt&&Jt<Kt.y?(Kt.y=Jt,Kt.y%2==0&&Kt.x--):Kt.y-=2,ie.y=Kt.y*ae,Kt.x=1+2*Math.ceil((Kt.y/pe-1)/2),ie.x=Math.round(ie.y/pe)),{height:ie.y,width:ie.x,hideYDots:Kt.y,hideXDots:Kt.x}})({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Zt,maxHiddenAxisDots:xt-14,dotSize:Tt}),Ut.label=2;case 2:return this.drawBackground(),this.drawDots((function(jt,qt){var ne,oe,Jt,ae,Kt,ie;return!(Qt._options.imageOptions.hideBackgroundDots&&jt>=(xt-kt.hideXDots)/2&&jt<(xt+kt.hideXDots)/2&&qt>=(xt-kt.hideYDots)/2&&qt<(xt+kt.hideYDots)/2||!((ne=vt[jt])===null||ne===void 0)&&ne[qt]||!((oe=vt[jt-xt+7])===null||oe===void 0)&&oe[qt]||!((Jt=vt[jt])===null||Jt===void 0)&&Jt[qt-xt+7]||!((ae=wt[jt])===null||ae===void 0)&&ae[qt]||!((Kt=wt[jt-xt+7])===null||Kt===void 0)&&Kt[qt]||!((ie=wt[jt])===null||ie===void 0)&&ie[qt-xt+7])})),this.drawCorners(),this._options.image?[4,this.drawImage({width:kt.width,height:kt.height,count:xt,dotSize:Tt})]:[3,4];case 3:Ut.sent(),Ut.label=4;case 4:return[2]}}
3))}))},Pt.prototype.drawBackground=function(){var ct,xt,yt,_t=this._element,Tt=this._options;if(_t){var kt=(ct=Tt.backgroundOptions)===null||ct===void 0?void 0:ct.gradient,Vt=(xt=Tt.backgroundOptions)===null||xt===void 0?void 0:xt.color;if((kt||Vt)&&this._createColor({options:kt,color:Vt,additionalRotation:0,x:0,y:0,height:Tt.height,width:Tt.width,name:"background-color"}),(yt=Tt.backgroundOptions)===null||yt===void 0?void 0:yt.round){var zt=Math.min(Tt.width,Tt.height),Gt=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),Gt.setAttribute("x",String((Tt.width-zt)/2)),Gt.setAttribute("y",String((Tt.height-zt)/2)),Gt.setAttribute("width",String(zt)),Gt.setAttribute("height",String(zt)),Gt.setAttribute("rx",String(zt/2*Tt.backgroundOptions.round)),this._backgroundClipPath.appendChild(Gt)}}},Pt.prototype.drawDots=function(ct){var xt,yt,_t=this;if(!this._qr)throw"QR code is not defined";var Tt=this._options,kt=this._qr.getModuleCount();if(kt>Tt.width||kt>Tt.height)throw"The canvas is too small.";var Vt=Math.min(Tt.width,Tt.height)-2*Tt.margin,zt=(Tt.shape===Bt?Vt/Math.sqrt(2):Vt)/kt,Gt=(Tt.width-kt*zt)/2,Rt=(Tt.height-kt*zt)/2,Zt=new Et({svg:this._element,type:Tt.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(xt=Tt.dotsOptions)===null||xt===void 0?void 0:xt.gradient,color:Tt.dotsOptions.color,additionalRotation:0,x:0,y:0,height:Tt.height,width:Tt.width,name:"dot-color-"+this._instanceId});for(var Qt=function(le){for(var ge=function(ce){return ct&&!ct(le,ce)?"continue":!((yt=Ut._qr)===null||yt===void 0)&&yt.isDark(le,ce)?(Zt.draw(Gt+le*zt,Rt+ce*zt,zt,(function(ue,de){return!(le+ue<0||ce+de<0||le+ue>=kt||ce+de>=kt)&&!(ct&&!ct(le+ue,ce+de))&&!!_t._qr&&_t._qr.isDark(le+ue,ce+de)})),void(Zt._element&&Ut._dotsClipPath&&Ut._dotsClipPath.appendChild(Zt._element))):"continue"},ve=0;ve<kt;ve++)ge(ve)},Ut=this,jt=0;jt<kt;jt++)Qt(jt);if(Tt.shape===Bt){var qt=Math.floor((Vt/zt-kt)/2),ne=kt+2*qt,oe=Gt-qt*zt,Jt=Rt-qt*zt,ae=[],Kt=Math.floor(ne/2);for(jt=0;jt<ne;jt++){ae[jt]=[];for(var ie=0;ie<ne;ie++)jt>=qt-1&&jt<=ne-qt&&ie>=qt-1&&ie<=ne-qt||Math.sqrt((jt-Kt)*(jt-Kt)+(ie-Kt)*(ie-Kt))>Kt?ae[jt][ie]=0:ae[jt][ie]=this._qr.isDark(ie-2*qt<0?ie:ie>=kt?ie-2*qt:ie-qt,jt-2*qt<0?jt:jt>=kt?jt-2*qt:jt-qt)?1:0}var pe=function(le){for(var ge=function(ce){if(!ae[le][ce])return"continue";Zt.draw(oe+le*zt,Jt+ce*zt,zt,(function(ue,de){var ye;return!!(!((ye=ae[le+ue])===null||ye===void 0)&&ye[ce+de])})),Zt._element&&me._dotsClipPath&&me._dotsClipPath.appendChild(Zt._element)},ve=0;ve<ne;ve++)ge(ve)},me=this;for(jt=0;jt<ne;jt++)pe(jt)}},Pt.prototype.drawCorners=function(){var ct=this;if(!this._qr)throw"QR code is not defined";var xt=this._element,yt=this._options;if(!xt)throw"Element code is not defined";var _t=this._qr.getModuleCount(),Tt=Math.min(yt.width,yt.height)-2*yt.margin,kt=(yt.shape===Bt?Tt/Math.sqrt(2):Tt)/_t,Vt=7*kt,zt=3*kt,Gt=(yt.width-_t*kt)/2,Rt=(yt.height-_t*kt)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(Zt){var Qt,Ut,jt,qt,ne,oe,Jt,ae,Kt,ie,pe,me,le=Zt[0],ge=Zt[1],ve=Zt[2],ce=Gt+le*kt*(_t-7),ue=Rt+ge*kt*(_t-7),de=ct._dotsClipPath,ye=ct._dotsClipPath;if((!((Qt=yt.cornersSquareOptions)===null||Qt===void 0)&&Qt.gradient||!((Ut=yt.cornersSquareOptions)===null||Ut===void 0)&&Ut.color)&&((de=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+le+"-"+ge+"-"+ct._instanceId),ct._defs.appendChild(de),ct._cornersSquareClipPath=ct._cornersDotClipPath=ye=de,ct._createColor({options:(jt=yt.cornersSquareOptions)===null||jt===void 0?void 0:jt.gradient,color:(qt=yt.cornersSquareOptions)===null||qt===void 0?void 0:qt.color,additionalRotation:ve,x:ce,y:ue,height:Vt,width:Vt,name:"corners-square-color-"+le+"-"+ge+"-"+ct._instanceId})),(ne=yt.cornersSquareOptions)===null||ne===void 0?void 0:ne.type){var Ee=new Ot({svg:ct._element,type:yt.cornersSquareOptions.type});Ee.draw(ce,ue,Vt,ve),Ee._element&&de&&de.appendChild(Ee._element)}else for(var we=new Et({svg:ct._element,type:yt.dotsOptions.type}),Te=function(xe){for(var ke=function(Se){if(!(!((oe=vt[xe])===null||oe===void 0)&&oe[Se]))return"continue";
3we.draw(ce+xe*kt,ue+Se*kt,kt,(function(Ae,Me){var Ce;return!!(!((Ce=vt[xe+Ae])===null||Ce===void 0)&&Ce[Se+Me])})),we._element&&de&&de.appendChild(we._element)},_e=0;_e<vt[xe].length;_e++)ke(_e)},be=0;be<vt.length;be++)Te(be);if((!((Jt=yt.cornersDotOptions)===null||Jt===void 0)&&Jt.gradient||!((ae=yt.cornersDotOptions)===null||ae===void 0)&&ae.color)&&((ye=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+le+"-"+ge+"-"+ct._instanceId),ct._defs.appendChild(ye),ct._cornersDotClipPath=ye,ct._createColor({options:(Kt=yt.cornersDotOptions)===null||Kt===void 0?void 0:Kt.gradient,color:(ie=yt.cornersDotOptions)===null||ie===void 0?void 0:ie.color,additionalRotation:ve,x:ce+2*kt,y:ue+2*kt,height:zt,width:zt,name:"corners-dot-color-"+le+"-"+ge+"-"+ct._instanceId})),(pe=yt.cornersDotOptions)===null||pe===void 0?void 0:pe.type){var Pe=new Nt({svg:ct._element,type:yt.cornersDotOptions.type});Pe.draw(ce+2*kt,ue+2*kt,zt,ve),Pe._element&&ye&&ye.appendChild(Pe._element)}else{we=new Et({svg:ct._element,type:yt.dotsOptions.type});var Fe=function(xe){for(var ke=function(Se){if(!(!((me=wt[xe])===null||me===void 0)&&me[Se]))return"continue";we.draw(ce+xe*kt,ue+Se*kt,kt,(function(Ae,Me){var Ce;return!!(!((Ce=wt[xe+Ae])===null||Ce===void 0)&&Ce[Se+Me])})),we._element&&ye&&ye.appendChild(we._element)},_e=0;_e<wt[xe].length;_e++)ke(_e)};for(be=0;be<wt.length;be++)Fe(be)}}))},Pt.prototype.loadImage=function(){var ct=this;return new Promise((function(xt,yt){var _t=ct._options,Tt=new Image;if(!_t.image)return yt("Image is not defined");typeof _t.imageOptions.crossOrigin=="string"&&(Tt.crossOrigin=_t.imageOptions.crossOrigin),ct._image=Tt,Tt.onload=function(){xt()},Tt.src=_t.image}))},Pt.prototype.drawImage=function(ct){var xt=ct.width,yt=ct.height,_t=ct.count,Tt=ct.dotSize;return Dt(this,void 0,void 0,(function(){var kt,Vt,zt,Gt,Rt,Zt,Qt,Ut,jt;return It(this,(function(qt){switch(qt.label){case 0:return kt=this._options,Vt=(kt.width-_t*Tt)/2,zt=(kt.height-_t*Tt)/2,Gt=Vt+kt.imageOptions.margin+(_t*Tt-xt)/2,Rt=zt+kt.imageOptions.margin+(_t*Tt-yt)/2,Zt=xt-2*kt.imageOptions.margin,Qt=yt-2*kt.imageOptions.margin,(Ut=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(Gt)),Ut.setAttribute("y",String(Rt)),Ut.setAttribute("width",Zt+"px"),Ut.setAttribute("height",Qt+"px"),[4,ht(kt.image||"")];case 1:return jt=qt.sent(),Ut.setAttribute("href",jt||""),this._element.appendChild(Ut),[2]}}))}))},Pt.prototype._createColor=function(ct){var xt=ct.options,yt=ct.color,_t=ct.additionalRotation,Tt=ct.x,kt=ct.y,Vt=ct.height,zt=ct.width,Gt=ct.name,Rt=zt>Vt?zt:Vt,Zt=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Zt.setAttribute("x",String(Tt)),Zt.setAttribute("y",String(kt)),Zt.setAttribute("height",String(Vt)),Zt.setAttribute("width",String(zt)),Zt.setAttribute("clip-path","url('#clip-path-"+Gt+"')"),xt){var Qt;if(xt.type==="radial")(Qt=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Gt),Qt.setAttribute("gradientUnits","userSpaceOnUse"),Qt.setAttribute("fx",String(Tt+zt/2)),Qt.setAttribute("fy",String(kt+Vt/2)),Qt.setAttribute("cx",String(Tt+zt/2)),Qt.setAttribute("cy",String(kt+Vt/2)),Qt.setAttribute("r",String(Rt/2));else{var Ut=((xt.rotation||0)+_t)%(2*Math.PI),jt=(Ut+2*Math.PI)%(2*Math.PI),qt=Tt+zt/2,ne=kt+Vt/2,oe=Tt+zt/2,Jt=kt+Vt/2;jt>=0&&jt<=.25*Math.PI||jt>1.75*Math.PI&&jt<=2*Math.PI?(qt-=zt/2,ne-=Vt/2*Math.tan(Ut),oe+=zt/2,Jt+=Vt/2*Math.tan(Ut)):jt>.25*Math.PI&&jt<=.75*Math.PI?(ne-=Vt/2,qt-=zt/2/Math.tan(Ut),Jt+=Vt/2,oe+=zt/2/Math.tan(Ut)):jt>.75*Math.PI&&jt<=1.25*Math.PI?(qt+=zt/2,ne+=Vt/2*Math.tan(Ut),oe-=zt/2,Jt-=Vt/2*Math.tan(Ut)):jt>1.25*Math.PI&&jt<=1.75*Math.PI&&(ne+=Vt/2,qt+=zt/2/Math.tan(Ut),Jt-=Vt/2,oe-=zt/2/Math.tan(Ut)),(Qt=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Gt),Qt.setAttribute("gradientUnits","userSpaceOnUse"),Qt.setAttribute("x1",String(Math.round(qt))),Qt.setAttribute("y1",String(Math.round(ne))),Qt.setAttribute("x2",String(Math.round(oe))),Qt.setAttribute("y2",String(Math.round(Jt)))}xt.colorStops.forEach((function(ae){var Kt=ae.offset,ie=ae.color,pe=document.createElementNS("http://www.w3.org/2000/svg","stop");pe.setAttribute("offset",100*Kt+"%"),pe.setAttribute("stop-color",ie),Qt.appendChild(pe)})),Zt.setAttribute("fill","url('#"+Gt+"')"),this._defs.appendChild(Qt)}else yt&&Zt.setAttribute("fill",yt);this._element.appendChild(Zt)},Pt.instanceCount=0,Pt})(),mt="canvas";for(var Mt={},At=0;At<=40;At++)Mt[At]=At;const Ht={type:mt,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Mt[0],mode:void 0,errorCorrectionLevel:"Q"}
3,imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var Wt=function(){return Wt=Object.assign||function(Pt){for(var ct,xt=1,yt=arguments.length;xt<yt;xt++)for(var _t in ct=arguments[xt])Object.prototype.hasOwnProperty.call(ct,_t)&&(Pt[_t]=ct[_t]);return Pt},Wt.apply(this,arguments)};function Yt(Pt){var ct=Wt({},Pt);if(!ct.colorStops||!ct.colorStops.length)throw"Field 'colorStops' is required in gradient";return ct.rotation?ct.rotation=Number(ct.rotation):ct.rotation=0,ct.colorStops=ct.colorStops.map((function(xt){return Wt(Wt({},xt),{offset:Number(xt.offset)})})),ct}function te(Pt){var ct=Wt({},Pt);return ct.width=Number(ct.width),ct.height=Number(ct.height),ct.margin=Number(ct.margin),ct.imageOptions=Wt(Wt({},ct.imageOptions),{hideBackgroundDots:!!ct.imageOptions.hideBackgroundDots,imageSize:Number(ct.imageOptions.imageSize),margin:Number(ct.imageOptions.margin)}),ct.margin>Math.min(ct.width,ct.height)&&(ct.margin=Math.min(ct.width,ct.height)),ct.dotsOptions=Wt({},ct.dotsOptions),ct.dotsOptions.gradient&&(ct.dotsOptions.gradient=Yt(ct.dotsOptions.gradient)),ct.cornersSquareOptions&&(ct.cornersSquareOptions=Wt({},ct.cornersSquareOptions),ct.cornersSquareOptions.gradient&&(ct.cornersSquareOptions.gradient=Yt(ct.cornersSquareOptions.gradient))),ct.cornersDotOptions&&(ct.cornersDotOptions=Wt({},ct.cornersDotOptions),ct.cornersDotOptions.gradient&&(ct.cornersDotOptions.gradient=Yt(ct.cornersDotOptions.gradient))),ct.backgroundOptions&&(ct.backgroundOptions=Wt({},ct.backgroundOptions),ct.backgroundOptions.gradient&&(ct.backgroundOptions.gradient=Yt(ct.backgroundOptions.gradient))),ct}var ee=it(192),se=it.n(ee),he=function(Pt,ct,xt,yt){return new(xt||(xt=Promise))((function(_t,Tt){function kt(Gt){try{zt(yt.next(Gt))}catch(Rt){Tt(Rt)}}function Vt(Gt){try{zt(yt.throw(Gt))}catch(Rt){Tt(Rt)}}function zt(Gt){var Rt;Gt.done?_t(Gt.value):(Rt=Gt.value,Rt instanceof xt?Rt:new xt((function(Zt){Zt(Rt)}))).then(kt,Vt)}zt((yt=yt.apply(Pt,[])).next())}))},fe=function(Pt,ct){var xt,yt,_t,Tt,kt={label:0,sent:function(){if(1&_t[0])throw _t[1];return _t[1]},trys:[],ops:[]};return Tt={next:Vt(0),throw:Vt(1),return:Vt(2)},typeof Symbol=="function"&&(Tt[Symbol.iterator]=function(){return this}),Tt;function Vt(zt){return function(Gt){return(function(Rt){if(xt)throw new TypeError("Generator is already executing.");for(;kt;)try{if(xt=1,yt&&(_t=2&Rt[0]?yt.return:Rt[0]?yt.throw||((_t=yt.return)&&_t.call(yt),0):yt.next)&&!(_t=_t.call(yt,Rt[1])).done)return _t;switch(yt=0,_t&&(Rt=[2&Rt[0],_t.value]),Rt[0]){case 0:case 1:_t=Rt;break;case 4:return kt.label++,{value:Rt[1],done:!1};case 5:kt.label++,yt=Rt[1],Rt=[0];continue;case 7:Rt=kt.ops.pop(),kt.trys.pop();continue;default:if(!((_t=(_t=kt.trys).length>0&&_t[_t.length-1])||Rt[0]!==6&&Rt[0]!==2)){kt=0;continue}if(Rt[0]===3&&(!_t||Rt[1]>_t[0]&&Rt[1]<_t[3])){kt.label=Rt[1];break}if(Rt[0]===6&&kt.label<_t[1]){kt.label=_t[1],_t=Rt;break}if(_t&&kt.label<_t[2]){kt.label=_t[2],kt.ops.push(Rt);break}_t[2]&&kt.ops.pop(),kt.trys.pop();continue}Rt=ct.call(Pt,kt)}catch(Zt){Rt=[6,Zt],yt=0}finally{xt=_t=0}if(5&Rt[0])throw Rt[1];return{value:Rt[0]?Rt[1]:void 0,done:!0}})([zt,Gt])}}};const re=(function(){function Pt(ct){this._options=ct?te(dt(Ht,ct)):Ht,this.update()}return Pt._clearContainer=function(ct){ct&&(ct.innerHTML="")},Pt.prototype._setupSvg=function(){var ct=this;if(this._qr){var xt=new nt(this._options);this._svg=xt.getElement(),this._svgDrawingPromise=xt.drawQR(this._qr).then((function(){var yt;ct._svg&&((yt=ct._extension)===null||yt===void 0||yt.call(ct,xt.getElement(),ct._options))}))}},Pt.prototype._setupCanvas=function(){var ct,xt=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(ct=this._svgDrawingPromise)===null||ct===void 0?void 0:ct.then((function(){if(xt._svg){var yt=xt._svg,_t=new XMLSerializer().serializeToString(yt),Tt="data:image/svg+xml;base64,"+btoa(_t),kt=new Image;return new Promise((function(Vt){kt.onload=function(){var zt,Gt;(Gt=(zt=xt._canvas)===null||zt===void 0?void 0:zt.getContext("2d"))===null||Gt===void 0||Gt.drawImage(kt,0,0),Vt()},kt.src=Tt}))}})))},Pt.prototype._getElement=function(ct){return ct===void 0&&(ct="png"),he(this,void 0,void 0,(function(){return fe(this,(function(xt){switch(xt.label){case 0:if(!this._qr)throw"QR code is empty";return ct.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return xt.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return xt.sent(),[2,this._canvas]}}))}))},Pt.prototype.update=function(ct){Pt._clearContainer(this._container),this._options=ct?te(dt(this._options,ct)):this._options,this._options.data&&(this._qr=se()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||(function(xt){switch(!0){case/^[0-9]*$/.test(xt):return rt;case/^[0-9A-Z $%*+\-./:]*$/.test(xt):return ot;default:return ut}})(this._options.data)),this._qr.make(),this._options.type===mt?this._setupCanvas():this._setupSvg(),this.append(this._container))},Pt.prototype.append=function(ct){if(ct){if(typeof ct.appendChild!="function")throw"Container should be a single DOM node";this._options.type===mt?this._canvas&&ct.appendChild(this._canvas):this._svg&&ct.appendChild(this._svg),this._container=ct}},Pt.prototype.applyExtension=function(ct){if(!ct)throw"Extension function should be defined.";this._extension=ct,this.update()},Pt.prototype.deleteExtension=function(){this._extension=void 0,this.update()},Pt.prototype.getRawData=function(ct){return ct===void 0&&(ct="png"),he(this,void 0,void 0,(function(){var xt,yt,_t;return fe(this,(function(Tt){switch(Tt.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(ct)];case 1:return(xt=Tt.sent())?ct.toLowerCase()==="svg"?(yt=new XMLSerializer,_t=yt.serializeToString(xt),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
4`+_t],{type:"image/svg+xml"})]):[2,new Promise((function(kt){return xt.toBlob(kt,"image/"+ct,1)}))]:[2,null]}}))}))},Pt.prototype.download=function(ct){return he(this,void 0,void 0,(function(){var xt,yt,_t,Tt,kt;return fe(this,(function(Vt){switch(Vt.label){case 0:if(!this._qr)throw"QR code is empty";return xt="png",yt="qr",typeof ct=="string"?(xt=ct,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof ct=="object"&&ct!==null&&(ct.name&&(yt=ct.name),ct.extension&&(xt=ct.extension)),[4,this._getElement(xt)];case 1:return(_t=Vt.sent())?(xt.toLowerCase()==="svg"?(Tt=new XMLSerializer,kt=`<?xml version="1.0" standalone="no"?>\r
5`+(kt=Tt.serializeToString(_t)),ft("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(kt),yt+".svg")):ft(_t.toDataURL("image/"+xt),yt+"."+xt),[2]):[2]}}))}))},Pt})()}},n={};function o(tt){if(n[tt])return n[tt].exports;var et=n[tt]={exports:{}};
5return i[tt](et,et.exports,o),et.exports}return o.n=tt=>{var et=tt&&tt.__esModule?()=>tt.default:()=>tt;return o.d(et,{a:et}),et},o.d=(tt,et)=>{for(var it in et)o.o(et,it)&&!o.o(tt,it)&&Object.defineProperty(tt,it,{enumerable:!0,get:et[it]})},o.o=(tt,et)=>Object.prototype.hasOwnProperty.call(tt,et),o(676)})().default}))})(qrCodeStyling$1)),qrCodeStyling$1.exports}var qrCodeStylingExports=requireQrCodeStyling();const r=getDefaultExportFromCjs(qrCodeStylingExports);var lottie$1={exports:{}},lottie=lottie$1.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(t,e){module.exports=e()})(lottie,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,n=t.length,o;for(i=0;i<n;i+=1){o=t[i].prototype;for(var tt in o)Object.prototype.hasOwnProperty.call(o,tt)&&(e.prototype[tt]=o[tt])}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=(function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].pause()},resume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].resume()},setRate:function(i){var n,o=this.audios.length;for(n=0;n<o;n+=1)this.audios[n].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,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}})(),createTypedArray=(function(){function t(i,n){var o=0,tt=[],et;switch(i){case"int16":case"uint8c":et=1;break;default:et=1.1;break}for(o=0;o<n;o+=1)tt.push(et);return tt}function e(i,n){return i==="float32"?new Float32Array(n):i==="int16"?new Int16Array(n):i==="uint8c"?new Uint8ClampedArray(n):t(i,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?e:t})();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(t)}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 t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e,i=t.length;for(e=0;e<i;e+=1)BMMath[t[e]]=Math[t[e]]})(),BMMath.random=Math.random,BMMath.abs=function(t){var e=_typeof$6(t);if(e==="object"&&t.length){var i=createSizedArray(t.length),n,o=t.length;for(n=0;n<o;n+=1)i[n]=Math.abs(t[n]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,n){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(function(){var t=0;return function(){return t+=1,idPrefix$1+"__lottie_element_"+t}})();function HSVtoRGB(t,e,i){var n,o,tt,et,it,rt,ot,ut;switch(et=Math.floor(t*6),it=t*6-et,rt=i*(1-e),ot=i*(1-it*e),ut=i*(1-(1-it)*e),et%6){case 0:n=i,o=ut,tt=rt;break;case 1:n=ot,o=i,tt=rt;break;case 2:n=rt,o=i,tt=ut;break;case 3:n=rt,o=ot,tt=i;break;case 4:n=ut,o=rt,tt=i;break;case 5:n=i,o=rt,tt=ot;break}return[n,o,tt]}
vendor: 130,089 bytes, lines 5-6
5function RGBtoHSV(t,e,i){var n=Math.max(t,e,i),o=Math.min(t,e,i),tt=n-o,et,it=n===0?0:tt/n,rt=n/255;switch(n){case o:et=0;break;case t:et=e-i+tt*(e<i?6:0),et/=6*tt;break;case e:et=i-t+tt*2,et/=6*tt;break;case i:et=t-e+tt*4,et/=6*tt;break}return[et,it,rt]}function addSaturationToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=(function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(n,o,tt){return n<0&&(n=0),o<0&&(o=0),tt<0&&(tt=0),"#"+t[n]+t[o]+t[tt]}})(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=(function(){var t=1,e=[],i,n,o={onmessage:function(){},postMessage:function(gt){i({data:gt})}},tt={postMessage:function(gt){o.onmessage({data:gt})}};function et(st){if(window.Worker&&window.Blob&&getWebWorker()){var gt=new Blob(["var _workerSelf = self; self.onmessage = ",st.toString()],{type:"text/javascript"}),dt=URL.createObjectURL(gt);return new Worker(dt)}return i=st,o}function it(){n||(n=et(function(gt){function dt(){function Ct(It,vt){var wt,nt,mt=It.length,Mt,At,Ht,Wt;for(nt=0;nt<mt;nt+=1)if(wt=It[nt],"ks"in wt&&!wt.completed){if(wt.completed=!0,wt.hasMask){var Yt=wt.masksProperties;for(At=Yt.length,Mt=0;Mt<At;Mt+=1)if(Yt[Mt].pt.k.i)St(Yt[Mt].pt.k);else for(Wt=Yt[Mt].pt.k.length,Ht=0;Ht<Wt;Ht+=1)Yt[Mt].pt.k[Ht].s&&St(Yt[Mt].pt.k[Ht].s[0]),Yt[Mt].pt.k[Ht].e&&St(Yt[Mt].pt.k[Ht].e[0])}wt.ty===0?(wt.layers=at(wt.refId,vt),Ct(wt.layers,vt)):wt.ty===4?pt(wt.shapes):wt.ty===5&&Bt(wt)}}function lt(It,vt){if(It){var wt=0,nt=It.length;for(wt=0;wt<nt;wt+=1)It[wt].t===1&&(It[wt].data.layers=at(It[wt].data.refId,vt),Ct(It[wt].data.layers,vt))}}function ht(It,vt){for(var wt=0,nt=vt.length;wt<nt;){if(vt[wt].id===It)return vt[wt];wt+=1}return null}function at(It,vt){var wt=ht(It,vt);return wt?wt.layers.__used?JSON.parse(JSON.stringify(wt.layers)):(wt.layers.__used=!0,wt.layers):null}function pt(It){var vt,wt=It.length,nt,mt;for(vt=wt-1;vt>=0;vt-=1)if(It[vt].ty==="sh")if(It[vt].ks.k.i)St(It[vt].ks.k);else for(mt=It[vt].ks.k.length,nt=0;nt<mt;nt+=1)It[vt].ks.k[nt].s&&St(It[vt].ks.k[nt].s[0]),It[vt].ks.k[nt].e&&St(It[vt].ks.k[nt].e[0]);else It[vt].ty==="gr"&&pt(It[vt].it)}function St(It){var vt,wt=It.i.length;for(vt=0;vt<wt;vt+=1)It.i[vt][0]+=It.v[vt][0],It.i[vt][1]+=It.v[vt][1],It.o[vt][0]+=It.v[vt][0],It.o[vt][1]+=It.v[vt][1]}function Et(It,vt){var wt=vt?vt.split("."):[100,100,100];return It[0]>wt[0]?!0:wt[0]>It[0]?!1:It[1]>wt[1]?!0:wt[1]>It[1]?!1:It[2]>wt[2]?!0:wt[2]>It[2]?!1:null}var Ft=(function(){var It=[4,4,14];function vt(nt){var mt=nt.t.d;nt.t.d={k:[{s:mt,t:0}]}}function wt(nt){var mt,Mt=nt.length;for(mt=0;mt<Mt;mt+=1)nt[mt].ty===5&&vt(nt[mt])}return function(nt){if(Et(It,nt.v)&&(wt(nt.layers),nt.assets)){var mt,Mt=nt.assets.length;for(mt=0;mt<Mt;mt+=1)nt.assets[mt].layers&&wt(nt.assets[mt].layers)}}})(),Lt=(function(){var It=[4,7,99];return function(vt){if(vt.chars&&!Et(It,vt.v)){var wt,nt=vt.chars.length;for(wt=0;wt<nt;wt+=1){var mt=vt.chars[wt];mt.data&&mt.data.shapes&&(pt(mt.data.shapes),mt.data.ip=0,mt.data.op=99999,mt.data.st=0,mt.data.sr=1,mt.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}},vt.chars[wt].t||(mt.data.shapes.push({ty:"no"}),mt.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"})))}}}})(),Ot=(function(){var It=[5,7,15];function vt(nt){var mt=nt.t.p;typeof mt.a=="number"&&(mt.a={a:0,k:mt.a}),typeof mt.p=="number"&&(mt.p={a:0,k:mt.p}),typeof mt.r=="number"&&(mt.r={a:0,k:mt.r})}function wt(nt){var mt,Mt=nt.length;for(mt=0;mt<Mt;mt+=1)nt[mt].ty===5&&vt(nt[mt])}return function(nt){if(Et(It,nt.v)&&(wt(nt.layers),nt.assets)){var mt,Mt=nt.assets.length;for(mt=0;mt<Mt;mt+=1)nt.assets[mt].layers&&wt(nt.assets[mt].layers)}}})(),Xt=(function(){var It=[4,1,9];function vt(nt){var mt,Mt=nt.length,At,Ht;for(mt=0;mt<Mt;mt+=1)if(nt[mt].ty==="gr")vt(nt[mt].it);else if(nt[mt].ty==="fl"||nt[mt].ty==="st")if(nt[mt].c.k&&nt[mt].c.k[0].i)for(Ht=nt[mt].c.k.length,At=0;At<Ht;At+=1)nt[mt].c.k[At].s&&(nt[mt].c.k[At].s[0]/=255,nt[mt].c.k[At].s[1]/=255,nt[mt].c.k[At].s[2]/=255,nt[mt].c.k[At].s[3]/=255),nt[mt].c.k[At].e&&(nt[mt].c.k[At].e[0]/=255,nt[mt].c.k[At].e[1]/=255,nt[mt].c.k[At].e[2]/=255,nt[mt].c.k[At].e[3]/=255);else nt[mt].c.k[0]/=255,nt[mt].c.k[1]/=255,nt[mt].c.k[2]/=255,nt[mt].c.k[3]/=255}function wt(nt){var mt,Mt=nt.length;for(mt=0;mt<Mt;mt+=1)nt[mt].ty===4&&vt(nt[mt].shapes)}return function(nt){if(Et(It,nt.v)&&(wt(nt.layers),nt.assets)){var mt,Mt=nt.assets.length;for(mt=0;mt<Mt;mt+=1)nt.assets[mt].layers&&wt(nt.assets[mt].layers)}}})(),$t=(function(){var It=[4,4,18];function vt(nt){var mt,Mt=nt.length,At,Ht;for(mt=Mt-1;mt>=0;mt-=1)if(nt[mt].ty==="sh")if(nt[mt].ks.k.i)nt[mt].ks.k.c=nt[mt].closed;else for(Ht=nt[mt].ks.k.length,At=0;At<Ht;At+=1)nt[mt].ks.k[At].s&&(nt[mt].ks.k[At].s[0].c=nt[mt].closed),nt[mt].ks.k[At].e&&(nt[mt].ks.k[At].e[0].c=nt[mt].closed);else nt[mt].ty==="gr"&&vt(nt[mt].it)}function wt(nt){var mt,Mt,At=nt.length,Ht,Wt,Yt,te;for(Mt=0;Mt<At;Mt+=1){if(mt=nt[Mt],mt.hasMask){var ee=mt.masksProperties;for(Wt=ee.length,Ht=0;Ht<Wt;Ht+=1)if(ee[Ht].pt.k.i)ee[Ht].pt.k.c=ee[Ht].cl;else for(te=ee[Ht].pt.k.length,Yt=0;Yt<te;Yt+=1)ee[Ht].pt.k[Yt].s&&(ee[Ht].pt.k[Yt].s[0].c=ee[Ht].cl),ee[Ht].pt.k[Yt].e&&(ee[Ht].pt.k[Yt].e[0].c=ee[Ht].cl)}mt.ty===4&&vt(mt.shapes)}}return function(nt){if(Et(It,nt.v)&&(wt(nt.layers),nt.assets)){var mt,Mt=nt.assets.length;for(mt=0;mt<Mt;mt+=1)nt.assets[mt].layers&&wt(nt.assets[mt].layers)}}})();function Nt(It){It.__complete||(Xt(It),Ft(It),Lt(It),Ot(It),$t(It),Ct(It.layers,It.assets),lt(It.chars,It.assets),It.__complete=!0)}function Bt(It){It.t.a.length===0&&"m"in It.t.p}var Dt={};return Dt.completeData=Nt,Dt.checkColors=Xt,Dt.checkChars=Lt,Dt.checkPathProperties=Ot,Dt.checkShapes=$t,Dt.completeLayers=Ct,Dt}if(tt.dataManager||(tt.dataManager=dt()),tt.assetLoader||(tt.assetLoader=(function(){function Ct(ht){var at=ht.getResponseHeader("content-type");return at&&ht.responseType==="json"&&at.indexOf("json")!==-1||ht.response&&_typeof$5(ht.response)==="object"?ht.response:ht.response&&typeof ht.response=="string"?JSON.parse(ht.response):ht.responseText?JSON.parse(ht.responseText):null}function lt(ht,at,pt,St){var Et,Ft=new XMLHttpRequest;try{Ft.responseType="json"}catch{}Ft.onreadystatechange=function(){if(Ft.readyState===4)if(Ft.status===200)Et=Ct(Ft),pt(Et);else try{Et=Ct(Ft),pt(Et)}catch(Lt){St&&St(Lt)}};try{Ft.open(["G","E","T"].join(""),ht,!0)}catch{Ft.open(["G","E","T"].join(""),at+"/"+ht,!0)}Ft.send()}return{load:lt}})()),gt.data.type==="loadAnimation")tt.assetLoader.load(gt.data.path,gt.data.fullPath,function(Ct){tt.dataManager.completeData(Ct),tt.postMessage({id:gt.data.id,payload:Ct,status:"success"})},function(){tt.postMessage({id:gt.data.id,status:"error"})});else if(gt.data.type==="complete"){var ft=gt.data.animation;tt.dataManager.completeData(ft),tt.postMessage({id:gt.data.id,payload:ft,status:"success"})}else gt.data.type==="loadData"&&tt.assetLoader.load(gt.data.path,gt.data.fullPath,function(Ct){tt.postMessage({id:gt.data.id,payload:Ct,status:"success"})},function(){tt.postMessage({id:gt.data.id,status:"error"})})}),n.onmessage=function(st){var gt=st.data,dt=gt.id,ft=e[dt];e[dt]=null,gt.status==="success"?ft.onComplete(gt.payload):ft.onError&&ft.onError()})}function rt(st,gt){t+=1;var dt="processId_"+t;return e[dt]={onComplete:st,onError:gt},dt}function ot(st,gt,dt){it();var ft=rt(gt,dt);n.postMessage({type:"loadAnimation",path:st,fullPath:window.location.origin+window.location.pathname,id:ft})}function ut(st,gt,dt){it();var ft=rt(gt,dt);n.postMessage({type:"loadData",path:st,fullPath:window.location.origin+window.location.pathname,id:ft})}function bt(st,gt,dt){it();var ft=rt(gt,dt);n.postMessage({type:"complete",animation:st,id:ft})}return{loadAnimation:ot,loadData:ut,completeAnimation:bt}})(),ImagePreloader=(function(){var t=(function(){var lt=createTag("canvas");lt.width=1,lt.height=1;var ht=lt.getContext("2d");return ht.fillStyle="rgba(0,0,0,0)",ht.fillRect(0,0,1,1),lt})();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(lt,ht,at){var pt="";if(lt.e)pt=lt.p;else if(ht){var St=lt.p;St.indexOf("images/")!==-1&&(St=St.split("/")[1]),pt=ht+St}else pt=at,pt+=lt.u?lt.u:"",pt+=lt.p;return pt}function o(lt){var ht=0,at=setInterval((function(){var pt=lt.getBBox();(pt.width||ht>500)&&(this._imageLoaded(),clearInterval(at)),ht+=1}).bind(this),50)}function tt(lt){var ht=n(lt,this.assetsPath,this.path),at=createNS("image");isSafari?this.testImageLoaded(at):at.addEventListener("load",this._imageLoaded,!1),at.addEventListener("error",(function(){pt.img=t,this._imageLoaded()}).bind(this),!1),at.setAttributeNS("http://www.w3.org/1999/xlink","href",ht),this._elementHelper.append?this._elementHelper.append(at):this._elementHelper.appendChild(at);var pt={img:at,assetData:lt};return pt}function et(lt){var ht=n(lt,this.assetsPath,this.path),at=createTag("img");at.crossOrigin="anonymous",at.addEventListener("load",this._imageLoaded,!1),at.addEventListener("error",(function(){pt.img=t,this._imageLoaded()}).bind(this),!1),at.src=ht;var pt={img:at,assetData:lt};return pt}function it(lt){var ht={assetData:lt},at=n(lt,this.assetsPath,this.path);return dataManager.loadData(at,(function(pt){ht.img=pt,this._footageLoaded()}).bind(this),(function(){ht.img={},this._footageLoaded()}).bind(this)),ht}function rt(lt,ht){this.imagesLoadedCb=ht;var at,pt=lt.length;for(at=0;at<pt;at+=1)lt[at].layers||(!lt[at].t||lt[at].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(lt[at]))):lt[at].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(lt[at]))))}function ot(lt){this.path=lt||""}function ut(lt){this.assetsPath=lt||""}function bt(lt){for(var ht=0,at=this.images.length;ht<at;){if(this.images[ht].assetData===lt)return this.images[ht].img;ht+=1}return null}function st(){this.imagesLoadedCb=null,this.images.length=0}function gt(){return this.totalImages===this.loadedAssets}function dt(){return this.totalFootages===this.loadedFootagesCount}function ft(lt,ht){lt==="svg"?(this._elementHelper=ht,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Ct(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=it.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Ct.prototype={loadAssets:rt,setAssetsPath:ut,setPath:ot,loadedImages:gt,loadedFootages:dt,destroy:st,getAsset:bt,createImgData:et,createImageData:tt,imageLoaded:e,footageLoaded:i,setCacheType:ft},Ct})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,i){if(this._cbs[e])for(var n=this._cbs[e],o=0;o<n.length;o+=1)n[o](i)},addEventListener:function(e,i){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(i),(function(){this.removeEventListener(e,i)}).bind(this)},removeEventListener:function(e,i){if(!i)this._cbs[e]=null;else if(this._cbs[e]){for(var n=0,o=this._cbs[e].length;n<o;)this._cbs[e][n]===i&&(this._cbs[e].splice(n,1),n-=1,o-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}};var markerParser=(function(){function t(e){for(var i=e.split(`\r
6`),n={},o,tt=0,et=0;et<i.length;et+=1)o=i[et].split(":"),o.length===2&&(n[o[0]]=o[1].trim(),tt+=1);if(tt===0)throw new Error;return n}return function(e){for(var i=[],n=0;n<e.length;n+=1){var o=e[n],tt={time:o.tm,duration:o.dr};try{tt.payload=JSON.parse(e[n].cm)}catch{try{tt.payload=t(e[n].cm)}catch{tt.payload={name:e[n].cm}}}i.push(tt)}return i}})(),ProjectInterface=(function(){function t(e){this.compositions.push(e)}return function(){function e(i){for(var n=0,o=this.compositions.length;n<o;){if(this.compositions[n].data&&this.compositions[n].data.nm===i)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}})(),renderers={},registerRenderer=function(e,i){renderers[e]=i};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";o==="false"?i.loop=!1:o==="true"?i.loop=!0:o!==""&&(i.loop=parseInt(o,10));var tt=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;i.autoplay=tt!=="false",i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var et=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";et==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,n=e.length,o=t.layers,tt,et=o.length;for(tt=0;tt<et;tt+=1)for(i=0;i<n;){if(e[i].id===o[tt].id){e[i]=o[tt];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,i=0;i<n;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i=typeof t=="number"?t:void 0,n=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(i,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if(e=this.markers[i],e.payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!(i&&this.name!==i)){var n=Number(t);if(isNaN(n)){var o=this.getMarkerData(t);o&&this.goToAndStop(o.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!(i&&this.name!==i)){var n=Number(t);if(isNaN(n)){var o=this.getMarkerData(t);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(n,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{var n=this.renderer.getElementByPath(t);n.updateDocumentData(e,i)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=(function(){var t={},e=[],i=0,n=0,o=0,tt=!0,et=!1;function it(vt){for(var wt=0,nt=vt.target;wt<n;)e[wt].animation===nt&&(e.splice(wt,1),wt-=1,n-=1,nt.isPaused||bt()),wt+=1}function rt(vt,wt){if(!vt)return null;for(var nt=0;nt<n;){if(e[nt].elem===vt&&e[nt].elem!==null)return e[nt].animation;nt+=1}var mt=new AnimationItem;return st(mt,vt),mt.setData(vt,wt),mt}function ot(){var vt,wt=e.length,nt=[];for(vt=0;vt<wt;vt+=1)nt.push(e[vt].animation);return nt}function ut(){o+=1,Xt()}function bt(){o-=1}function st(vt,wt){vt.addEventListener("destroy",it),vt.addEventListener("_active",ut),vt.addEventListener("_idle",bt),e.push({elem:wt,animation:vt}),n+=1}function gt(vt){var wt=new AnimationItem;return st(wt,null),wt.setParams(vt),wt}function dt(vt,wt){var nt;for(nt=0;nt<n;nt+=1)e[nt].animation.setSpeed(vt,wt)}function ft(vt,wt){var nt;for(nt=0;nt<n;nt+=1)e[nt].animation.setDirection(vt,wt)}function Ct(vt){var wt;for(wt=0;wt<n;wt+=1)e[wt].animation.play(vt)}function lt(vt){var wt=vt-i,nt;for(nt=0;nt<n;nt+=1)e[nt].animation.advanceTime(wt);i=vt,o&&!et?window.requestAnimationFrame(lt):tt=!0}function ht(vt){i=vt,window.requestAnimationFrame(lt)}function at(vt){var wt;for(wt=0;wt<n;wt+=1)e[wt].animation.pause(vt)}function pt(vt,wt,nt){var mt;for(mt=0;mt<n;mt+=1)e[mt].animation.goToAndStop(vt,wt,nt)}function St(vt){var wt;for(wt=0;wt<n;wt+=1)e[wt].animation.stop(vt)}function Et(vt){var wt;for(wt=0;wt<n;wt+=1)e[wt].animation.togglePause(vt)}function Ft(vt){var wt;for(wt=n-1;wt>=0;wt-=1)e[wt].animation.destroy(vt)}function Lt(vt,wt,nt){var mt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Mt,At=mt.length;for(Mt=0;Mt<At;Mt+=1)nt&&mt[Mt].setAttribute("data-bm-type",nt),rt(mt[Mt],vt);if(wt&&At===0){nt||(nt="svg");var Ht=document.getElementsByTagName("body")[0];Ht.innerText="";var Wt=createTag("div");Wt.style.width="100%",Wt.style.height="100%",Wt.setAttribute("data-bm-type",nt),Ht.appendChild(Wt),rt(Wt,vt)}}function Ot(){var vt;for(vt=0;vt<n;vt+=1)e[vt].animation.resize()}function Xt(){!et&&o&&tt&&(window.requestAnimationFrame(ht),tt=!1)}function $t(){et=!0}function Nt(){et=!1,Xt()}function Bt(vt,wt){var nt;for(nt=0;nt<n;nt+=1)e[nt].animation.setVolume(vt,wt)}function Dt(vt){var wt;for(wt=0;wt<n;wt+=1)e[wt].animation.mute(vt)}function It(vt){var wt;for(wt=0;wt<n;wt+=1)e[wt].animation.unmute(vt)}return t.registerAnimation=rt,t.loadAnimation=gt,t.setSpeed=dt,t.setDirection=ft,t.play=Ct,t.pause=at,t.stop=St,t.togglePause=Et,t.searchAnimations=Lt,t.resize=Ot,t.goToAndStop=pt,t.destroy=Ft,t.freeze=$t,t.unfreeze=Nt,t.setVolume=Bt,t.mute=Dt,t.unmute=It,t.getRegisteredAnimations=ot,t})(),BezierFactory=(function(){var t={};t.getBezierEasing=i;var e={};function i(ht,at,pt,St,Et){var Ft=Et||("bez_"+ht+"_"+at+"_"+pt+"_"+St).replace(/\./g,"p");if(e[Ft])return e[Ft];var Lt=new lt([ht,at,pt,St]);return e[Ft]=Lt,Lt}var n=4,o=.001,tt=1e-7,et=10,it=11,rt=1/(it-1),ot=typeof Float32Array=="function";function ut(ht,at){return 1-3*at+3*ht}function bt(ht,at){return 3*at-6*ht}function st(ht){return 3*ht}function gt(ht,at,pt){return((ut(at,pt)*ht+bt(at,pt))*ht+st(at))*ht}function dt(ht,at,pt){return 3*ut(at,pt)*ht*ht+2*bt(at,pt)*ht+st(at)}function ft(ht,at,pt,St,Et){var Ft,Lt,Ot=0;do Lt=at+(pt-at)/2,Ft=gt(Lt,St,Et)-ht,Ft>0?pt=Lt:at=Lt;while(Math.abs(Ft)>tt&&++Ot<et);return Lt}function Ct(ht,at,pt,St){for(var Et=0;Et<n;++Et){var Ft=dt(at,pt,St);if(Ft===0)return at;var Lt=gt(at,pt,St)-ht;at-=Lt/Ft}return at}function lt(ht){this._p=ht,this._mSampleValues=ot?new Float32Array(it):new Array(it),this._precomputed=!1,this.get=this.get.bind(this)}return lt.prototype={get:function(at){var pt=this._p[0],St=this._p[1],Et=this._p[2],Ft=this._p[3];return this._precomputed||this._precompute(),pt===St&&Et===Ft?at:at===0?0:at===1?1:gt(this._getTForX(at),St,Ft)},_precompute:function(){var at=this._p[0],pt=this._p[1],St=this._p[2],Et=this._p[3];this._precomputed=!0,(at!==pt||St!==Et)&&this._calcSampleValues()},_calcSampleValues:function(){for(var at=this._p[0],pt=this._p[2],St=0;St<it;++St)this._mSampleValues[St]=gt(St*rt,at,pt)},_getTForX:function(at){for(var pt=this._p[0],St=this._p[2],Et=this._mSampleValues,Ft=0,Lt=1,Ot=it-1;Lt!==Ot&&Et[Lt]<=at;++Lt)Ft+=rt;--Lt;var Xt=(at-Et[Lt])/(Et[Lt+1]-Et[Lt]),$t=Ft+Xt*rt,Nt=dt($t,pt,St);return Nt>=o?Ct(at,$t,pt,St):Nt===0?$t:ft(at,Ft,Ft+rt,pt,St)}},t})(),pooling=(function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}})(),poolFactory=(function(){return function(t,e,i){var n=0,o=t,tt=createSizedArray(o),et={newElement:it,release:rt};function it(){var ot;return n?(n-=1,ot=tt[n]):ot=e(),ot}function rt(ot){n===o&&(tt=pooling.double(tt),o*=2),i&&i(ot),tt[n]=ot,n+=1}return et}})(),bezierLengthPool=(function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)})(),segmentsLengthPool=(function(){function t(){return{lengths:[],totalLength:0}}function e(i){var n,o=i.lengths.length;for(n=0;n<o;n+=1)bezierLengthPool.release(i.lengths[n]);i.lengths.length=0}return poolFactory(8,t,e)})();function bezFunction(){var t=Math;function e(st,gt,dt,ft,Ct,lt){var ht=st*ft+gt*Ct+dt*lt-Ct*ft-lt*st-dt*gt;return ht>-.001&&ht<.001}function i(st,gt,dt,ft,Ct,lt,ht,at,pt){if(dt===0&&lt===0&&pt===0)return e(st,gt,ft,Ct,ht,at);var St=t.sqrt(t.pow(ft-st,2)+t.pow(Ct-gt,2)+t.pow(lt-dt,2)),Et=t.sqrt(t.pow(ht-st,2)+t.pow(at-gt,2)+t.pow(pt-dt,2)),Ft=t.sqrt(t.pow(ht-ft,2)+t.pow(at-Ct,2)+t.pow(pt-lt,2)),Lt;return St>Et?St>Ft?Lt=St-Et-Ft:Lt=Ft-Et-St:Ft>Et?Lt=Ft-Et-St:Lt=Et-St-Ft,Lt>-1e-4&&Lt<1e-4}var n=(function(){return function(st,gt,dt,ft){var Ct=getDefaultCurveSegments(),lt,ht,at,pt,St,Et=0,Ft,Lt=[],Ot=[],Xt=bezierLengthPool.newElement();for(at=dt.length,lt=0;lt<Ct;lt+=1){for(St=lt/(Ct-1),Ft=0,ht=0;ht<at;ht+=1)pt=bmPow(1-St,3)*st[ht]+3*bmPow(1-St,2)*St*dt[ht]+3*(1-St)*bmPow(St,2)*ft[ht]+bmPow(St,3)*gt[ht],Lt[ht]=pt,Ot[ht]!==null&&(Ft+=bmPow(Lt[ht]-Ot[ht],2)),Ot[ht]=Lt[ht];Ft&&(Ft=bmSqrt(Ft),Et+=Ft),Xt.percents[lt]=St,Xt.lengths[lt]=Et}return Xt.addedLength=Et,Xt}})();function o(st){var gt=segmentsLengthPool.newElement(),dt=st.c,ft=st.v,Ct=st.o,lt=st.i,ht,at=st._length,pt=gt.lengths,St=0;for(ht=0;ht<at-1;ht+=1)pt[ht]=n(ft[ht],ft[ht+1],Ct[ht],lt[ht+1]),St+=pt[ht].addedLength;return dt&&at&&(pt[ht]=n(ft[ht],ft[0],Ct[ht],lt[0]),St+=pt[ht].addedLength),gt.totalLength=St,gt}function tt(st){this.segmentLength=0,this.points=new Array(st)}function et(st,gt){this.partialLength=st,this.point=gt}var it=(function(){var st={};return function(gt,dt,ft,Ct){var lt=(gt[0]+"_"+gt[1]+"_"+dt[0]+"_"+dt[1]+"_"+ft[0]+"_"+ft[1]+"_"+Ct[0]+"_"+Ct[1]).replace(/\./g,"p");if(!st[lt]){var ht=getDefaultCurveSegments(),at,pt,St,Et,Ft,Lt=0,Ot,Xt,$t=null;gt.length===2&&(gt[0]!==dt[0]||gt[1]!==dt[1])&&e(gt[0],gt[1],dt[0],dt[1],gt[0]+ft[0],gt[1]+ft[1])&&e(gt[0],gt[1],dt[0],dt[1],dt[0]+Ct[0],dt[1]+Ct[1])&&(ht=2);var Nt=new tt(ht);for(St=ft.length,at=0;at<ht;at+=1){for(Xt=createSizedArray(St),Ft=at/(ht-1),Ot=0,pt=0;pt<St;pt+=1)Et=bmPow(1-Ft,3)*gt[pt]+3*bmPow(1-Ft,2)*Ft*(gt[pt]+ft[pt])+3*(1-Ft)*bmPow(Ft,2)*(dt[pt]+Ct[pt])+bmPow(Ft,3)*dt[pt],Xt[pt]=Et,$t!==null&&(Ot+=bmPow(Xt[pt]-$t[pt],2));Ot=bmSqrt(Ot),Lt+=Ot,Nt.points[at]=new et(Ot,Xt),$t=Xt}Nt.segmentLength=Lt,st[lt]=Nt}return st[lt]}})();function rt(st,gt){var dt=gt.percents,ft=gt.lengths,Ct=dt.length,lt=bmFloor((Ct-1)*st),ht=st*gt.addedLength,at=0;if(lt===Ct-1||lt===0||ht===ft[lt])return dt[lt];for(var pt=ft[lt]>ht?-1:1,St=!0;St;)if(ft[lt]<=ht&&ft[lt+1]>ht?(at=(ht-ft[lt])/(ft[lt+1]-ft[lt]),St=!1):lt+=pt,lt<0||lt>=Ct-1){if(lt===Ct-1)return dt[lt];St=!1}return dt[lt]+(dt[lt+1]-dt[lt])*at}function ot(st,gt,dt,ft,Ct,lt){var ht=rt(Ct,lt),at=1-ht,pt=t.round((at*at*at*st[0]+(ht*at*at+at*ht*at+at*at*ht)*dt[0]+(ht*ht*at+at*ht*ht+ht*at*ht)*ft[0]+ht*ht*ht*gt[0])*1e3)/1e3,St=t.round((at*at*at*st[1]+(ht*at*at+at*ht*at+at*at*ht)*dt[1]+(ht*ht*at+at*ht*ht+ht*at*ht)*ft[1]+ht*ht*ht*gt[1])*1e3)/1e3;return[pt,St]}var ut=createTypedArray("float32",8);function bt(st,gt,dt,ft,Ct,lt,ht){Ct<0?Ct=0:Ct>1&&(Ct=1);var at=rt(Ct,ht);lt=lt>1?1:lt;var pt=rt(lt,ht),St,Et=st.length,Ft=1-at,Lt=1-pt,Ot=Ft*Ft*Ft,Xt=at*Ft*Ft*3,$t=at*at*Ft*3,Nt=at*at*at,Bt=Ft*Ft*Lt,Dt=at*Ft*Lt+Ft*at*Lt+Ft*Ft*pt,It=at*at*Lt+Ft*at*pt+at*Ft*pt,vt=at*at*pt,wt=Ft*Lt*Lt,nt=at*Lt*Lt+Ft*pt*Lt+Ft*Lt*pt,mt=at*pt*Lt+Ft*pt*pt+at*Lt*pt,Mt=at*pt*pt,At=Lt*Lt*Lt,Ht=pt*Lt*Lt+Lt*pt*Lt+Lt*Lt*pt,Wt=pt*pt*Lt+Lt*pt*pt+pt*Lt*pt,Yt=pt*pt*pt;for(St=0;St<Et;St+=1)ut[St*4]=t.round((Ot*st[St]+Xt*dt[St]+$t*ft[St]+Nt*gt[St])*1e3)/1e3,ut[St*4+1]=t.round((Bt*st[St]+Dt*dt[St]+It*ft[St]+vt*gt[St])*1e3)/1e3,ut[St*4+2]=t.round((wt*st[St]+nt*dt[St]+mt*ft[St]+Mt*gt[St])*1e3)/1e3,ut[St*4+3]=t.round((At*st[St]+Ht*dt[St]+Wt*ft[St]+Yt*gt[St])*1e3)/1e3;return ut}return{getSegmentsLength:o,getNewSegment:bt,getPointInSegment:ot,buildBezierData:it,pointOnLine2D:e,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i=this.offsetTime,n;this.propType==="multidimensional"&&(n=createTypedArray("float32",this.pv.length));for(var o=e.lastIndex,tt=o,et=this.keyframes.length-1,it=!0,rt,ot,ut;it;){if(rt=this.keyframes[tt],ot=this.keyframes[tt+1],tt===et-1&&t>=ot.t-i){rt.h&&(rt=ot),o=0;break}if(ot.t-i>t){o=tt;break}tt<et-1?tt+=1:(o=0,it=!1)}ut=this.keyframesMetadata[tt]||{};var bt,st,gt,dt,ft,Ct,lt=ot.t-i,ht=rt.t-i,at;if(rt.to){ut.bezierData||(ut.bezierData=bez.buildBezierData(rt.s,ot.s||rt.e,rt.to,rt.ti));var pt=ut.bezierData;if(t>=lt||t<ht){var St=t>=lt?pt.points.length-1:0;for(st=pt.points[St].point.length,bt=0;bt<st;bt+=1)n[bt]=pt.points[St].point[bt]}else{ut.__fnct?Ct=ut.__fnct:(Ct=BezierFactory.getBezierEasing(rt.o.x,rt.o.y,rt.i.x,rt.i.y,rt.n).get,ut.__fnct=Ct),gt=Ct((t-ht)/(lt-ht));var Et=pt.segmentLength*gt,Ft,Lt=e.lastFrame<t&&e._lastKeyframeIndex===tt?e._lastAddedLength:0;for(ft=e.lastFrame<t&&e._lastKeyframeIndex===tt?e._lastPoint:0,it=!0,dt=pt.points.length;it;){if(Lt+=pt.points[ft].partialLength,Et===0||gt===0||ft===pt.points.length-1){for(st=pt.points[ft].point.length,bt=0;bt<st;bt+=1)n[bt]=pt.points[ft].point[bt];break}else if(Et>=Lt&&Et<Lt+pt.points[ft+1].partialLength){for(Ft=(Et-Lt)/pt.points[ft+1].partialLength,st=pt.points[ft].point.length,bt=0;bt<st;bt+=1)n[bt]=pt.points[ft].point[bt]+(pt.points[ft+1].point[bt]-pt.points[ft].point[bt])*Ft;break}ft<dt-1?ft+=1:it=!1}e._lastPoint=ft,e._lastAddedLength=Lt-pt.points[ft].partialLength,e._lastKeyframeIndex=tt}}else{var Ot,Xt,$t,Nt,Bt;if(et=rt.s.length,at=ot.s||rt.e,this.sh&&rt.h!==1)if(t>=lt)n[0]=at[0],n[1]=at[1],n[2]=at[2];else if(t<=ht)n[0]=rt.s[0],n[1]=rt.s[1],n[2]=rt.s[2];else{var Dt=createQuaternion(rt.s),It=createQuaternion(at),vt=(t-ht)/(lt-ht);quaternionToEuler(n,slerp(Dt,It,vt))}else for(tt=0;tt<et;tt+=1)rt.h!==1&&(t>=lt?gt=1:t<ht?gt=0:(rt.o.x.constructor===Array?(ut.__fnct||(ut.__fnct=[]),ut.__fnct[tt]?Ct=ut.__fnct[tt]:(Ot=rt.o.x[tt]===void 0?rt.o.x[0]:rt.o.x[tt],Xt=rt.o.y[tt]===void 0?rt.o.y[0]:rt.o.y[tt],$t=rt.i.x[tt]===void 0?rt.i.x[0]:rt.i.x[tt],Nt=rt.i.y[tt]===void 0?rt.i.y[0]:rt.i.y[tt],Ct=BezierFactory.getBezierEasing(Ot,Xt,$t,Nt).get,ut.__fnct[tt]=Ct)):ut.__fnct?Ct=ut.__fnct:(Ot=rt.o.x,Xt=rt.o.y,$t=rt.i.x,Nt=rt.i.y,Ct=BezierFactory.getBezierEasing(Ot,Xt,$t,Nt).get,rt.keyframeMetadata=Ct),gt=Ct((t-ht)/(lt-ht)))),at=ot.s||rt.e,Bt=rt.h===1?rt.s[tt]:rt.s[tt]+(at[tt]-rt.s[tt])*gt,this.propType==="multidimensional"?n[tt]=Bt:n=Bt}return e.lastIndex=o,n}function slerp(t,e,i){var n=[],o=t[0],tt=t[1],et=t[2],it=t[3],rt=e[0],ot=e[1],ut=e[2],bt=e[3],st,gt,dt,ft,Ct;return gt=o*rt+tt*ot+et*ut+it*bt,gt<0&&(gt=-gt,rt=-rt,ot=-ot,ut=-ut,bt=-bt),1-gt>1e-6?(st=Math.acos(gt),dt=Math.sin(st),ft=Math.sin((1-i)*st)/dt,Ct=Math.sin(i*st)/dt):(ft=1-i,Ct=i),n[0]=ft*o+Ct*rt,n[1]=ft*tt+Ct*ot,n[2]=ft*et+Ct*ut,n[3]=ft*it+Ct*bt,n}function quaternionToEuler(t,e){var i=e[0],n=e[1],o=e[2],tt=e[3],et=Math.atan2(2*n*tt-2*i*o,1-2*n*n-2*o*o),it=Math.asin(2*i*n+2*o*tt),rt=Math.atan2(2*i*tt-2*n*o,1-2*i*i-2*o*o);t[0]=et/degToRads,t[1]=it/degToRads,t[2]=rt/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,o=Math.cos(e/2),tt=Math.cos(i/2),et=Math.cos(n/2),it=Math.sin(e/2),rt=Math.sin(i/2),ot=Math.sin(n/2),ut=o*tt*et-it*rt*ot,bt=it*rt*et+o*tt*ot,st=it*tt*et+o*rt*ot,gt=o*rt*et-it*tt*ot;return[bt,st,gt,ut]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,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 t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,n){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.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(t,e,i,n){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,tt=e.k.length;for(this.v=createTypedArray("float32",tt),this.pv=createTypedArray("float32",tt),this.vel=createTypedArray("float32",tt),o=0;o<tt;o+=1)this.v[o]=e.k[o]*this.mult,this.pv[o]=e.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,n){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.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(t,e,i,n){this.propType="multidimensional";var o,tt=e.k.length,et,it,rt,ot;for(o=0;o<tt-1;o+=1)e.k[o].to&&e.k[o].s&&e.k[o+1]&&e.k[o+1].s&&(et=e.k[o].s,it=e.k[o+1].s,rt=e.k[o].to,ot=e.k[o].ti,(et.length===2&&!(et[0]===it[0]&&et[1]===it[1])&&bez.pointOnLine2D(et[0],et[1],it[0],it[1],et[0]+rt[0],et[1]+rt[1])&&bez.pointOnLine2D(et[0],et[1],it[0],it[1],it[0]+ot[0],it[1]+ot[1])||et.length===3&&!(et[0]===it[0]&&et[1]===it[1]&&et[2]===it[2])&&bez.pointOnLine3D(et[0],et[1],et[2],it[0],it[1],it[2],et[0]+rt[0],et[1]+rt[1],et[2]+rt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],it[0],it[1],it[2],it[0]+ot[0],it[1]+ot[1],it[2]+ot[2]))&&(e.k[o].to=null,e.k[o].ti=null),et[0]===it[0]&&et[1]===it[1]&&rt[0]===0&&rt[1]===0&&ot[0]===0&&ot[1]===0&&(et.length===2||et[2]===it[2]&&rt[2]===0&&ot[2]===0)&&(e.k[o].to=null,e.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var ut=e.k[0].s.length;for(this.v=createTypedArray("float32",ut),this.pv=createTypedArray("float32",ut),o=0;o<ut;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",ut)},this.addEffect=addEffect}var PropertyFactory=(function(){function t(i,n,o,tt,et){n.sid&&(n=i.globalData.slotManager.getProp(n));var it;if(!n.k.length)it=new ValueProperty(i,n,tt,et);else if(typeof n.k[0]=="number")it=new MultiDimensionalProperty(i,n,tt,et);else switch(o){case 0:it=new KeyframedValueProperty(i,n,tt,et);break;case 1:it=new KeyframedMultidimensionalProperty(i,n,tt,et);break}return it.effectsSequence.length&&et.addDynamicProperty(it),it}var e={getProp:t};return e})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var e,i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function t(){return createTypedArray("float32",2)}return poolFactory(8,t)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,n,o){var tt;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":tt=this.v;break;case"i":tt=this.i;break;case"o":tt=this.o;break;default:tt=[];break}(!tt[n]||tt[n]&&!o)&&(tt[n]=pointPool.newElement()),tt[n][0]=t,tt[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,o,tt,et,it){this.setXYAt(t,e,"v",et,it),this.setXYAt(i,n,"o",et,it),this.setXYAt(o,tt,"i",et,it)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),o=1);var tt=this._length-1,et=this._length,it;for(it=o;it<et;it+=1)t.setTripleAt(e[tt][0],e[tt][1],n[tt][0],n[tt][1],i[tt][0],i[tt][1],it,!1),tt-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function t(){return new ShapePath}function e(o){var tt=o._length,et;for(et=0;et<tt;et+=1)pointPool.release(o.v[et]),pointPool.release(o.i[et]),pointPool.release(o.o[et]),o.v[et]=null,o.i[et]=null,o.o[et]=null;o._length=0,o.c=!1}function i(o){var tt=n.newElement(),et,it=o._length===void 0?o.v.length:o._length;for(tt.setLength(it),tt.c=o.c,et=0;et<it;et+=1)tt.setTripleAt(o.v[et][0],o.v[et][1],o.o[et][0],o.o[et][1],o.i[et][0],o.i[et][1],et);return tt}var n=poolFactory(4,t,e);return n.clone=i,n})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(function(){var t={newShapeCollection:o,release:tt},e=0,i=4,n=createSizedArray(i);function o(){var et;return e?(e-=1,et=n[e]):et=new ShapeCollection,et}function tt(et){var it,rt=et._length;for(it=0;it<rt;it+=1)shapePool.release(et.shapes[it]);et._length=0,e===i&&(n=pooling.double(n),i*=2),n[e]=et,e+=1}return t})(),ShapePropertyFactory=(function(){var t=-999999;function e(lt,ht,at){var pt=at.lastIndex,St,Et,Ft,Lt,Ot,Xt,$t,Nt,Bt,Dt=this.keyframes;if(lt<Dt[0].t-this.offsetTime)St=Dt[0].s[0],Ft=!0,pt=0;else if(lt>=Dt[Dt.length-1].t-this.offsetTime)St=Dt[Dt.length-1].s?Dt[Dt.length-1].s[0]:Dt[Dt.length-2].e[0],Ft=!0;else{for(var It=pt,vt=Dt.length-1,wt=!0,nt,mt,Mt;wt&&(nt=Dt[It],mt=Dt[It+1],!(mt.t-this.offsetTime>lt));)It<vt-1?It+=1:wt=!1;if(Mt=this.keyframesMetadata[It]||{},Ft=nt.h===1,pt=It,!Ft){if(lt>=mt.t-this.offsetTime)Nt=1;else if(lt<nt.t-this.offsetTime)Nt=0;else{var At;Mt.__fnct?At=Mt.__fnct:(At=BezierFactory.getBezierEasing(nt.o.x,nt.o.y,nt.i.x,nt.i.y).get,Mt.__fnct=At),Nt=At((lt-(nt.t-this.offsetTime))/(mt.t-this.offsetTime-(nt.t-this.offsetTime)))}Et=mt.s?mt.s[0]:nt.e[0]}St=nt.s[0]}for(Xt=ht._length,$t=St.i[0].length,at.lastIndex=pt,Lt=0;Lt<Xt;Lt+=1)for(Ot=0;Ot<$t;Ot+=1)Bt=Ft?St.i[Lt][Ot]:St.i[Lt][Ot]+(Et.i[Lt][Ot]-St.i[Lt][Ot])*Nt,ht.i[Lt][Ot]=Bt,Bt=Ft?St.o[Lt][Ot]:St.o[Lt][Ot]+(Et.o[Lt][Ot]-St.o[Lt][Ot])*Nt,ht.o[Lt][Ot]=Bt,Bt=Ft?St.v[Lt][Ot]:St.v[Lt][Ot]+(Et.v[Lt][Ot]-St.v[Lt][Ot])*Nt,ht.v[Lt][Ot]=Bt}function i(){var lt=this.comp.renderedFrame-this.offsetTime,ht=this.keyframes[0].t-this.offsetTime,at=this.keyframes[this.keyframes.length-1].t-this.offsetTime,pt=this._caching.lastFrame;return pt!==t&&(pt<ht&&lt<ht||pt>at&&lt>at)||(this._caching.lastIndex=pt<lt?this._caching.lastIndex:0,this.interpolateShape(lt,this.pv,this._caching)),this._caching.lastFrame=lt,this.pv}function n(){this.paths=this.localShapeCollection}function o(lt,ht){if(lt._length!==ht._length||lt.c!==ht.c)return!1;var at,pt=lt._length;for(at=0;at<pt;at+=1)if(lt.v[at][0]!==ht.v[at][0]||lt.v[at][1]!==ht.v[at][1]||lt.o[at][0]!==ht.o[at][0]||lt.o[at][1]!==ht.o[at][1]||lt.i[at][0]!==ht.i[at][0]||lt.i[at][1]!==ht.i[at][1])return!1;return!0}function tt(lt){o(this.v,lt)||(this.v=shapePool.clone(lt),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function et(){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 lt;this.kf?lt=this.pv:this.data.ks?lt=this.data.ks.k:lt=this.data.pt.k;var ht,at=this.effectsSequence.length;for(ht=0;ht<at;ht+=1)lt=this.effectsSequence[ht](lt);this.setVValue(lt),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function it(lt,ht,at){this.propType="shape",this.comp=lt.comp,this.container=lt,this.elem=lt,this.data=ht,this.k=!1,this.kf=!1,this._mdf=!1;var pt=at===3?ht.pt.k:ht.ks.k;this.v=shapePool.clone(pt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function rt(lt){this.effectsSequence.push(lt),this.container.addDynamicProperty(this)}it.prototype.interpolateShape=e,it.prototype.getValue=et,it.prototype.setVValue=tt,it.prototype.addEffect=rt;function ot(lt,ht,at){this.propType="shape",this.comp=lt.comp,this.elem=lt,this.container=lt,this.offsetTime=lt.data.st,this.keyframes=at===3?ht.pt.k:ht.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var pt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,pt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}ot.prototype.getValue=et,ot.prototype.interpolateShape=e,ot.prototype.setVValue=tt,ot.prototype.addEffect=rt;var ut=(function(){var lt=roundCorner;function ht(at,pt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=pt.d,this.elem=at,this.comp=at.comp,this.frameId=-1,this.initDynamicPropertyContainer(at),this.p=PropertyFactory.getProp(at,pt.p,1,0,this),this.s=PropertyFactory.getProp(at,pt.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ht.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var pt=this.p.v[0],St=this.p.v[1],Et=this.s.v[0]/2,Ft=this.s.v[1]/2,Lt=this.d!==3,Ot=this.v;Ot.v[0][0]=pt,Ot.v[0][1]=St-Ft,Ot.v[1][0]=Lt?pt+Et:pt-Et,Ot.v[1][1]=St,Ot.v[2][0]=pt,Ot.v[2][1]=St+Ft,Ot.v[3][0]=Lt?pt-Et:pt+Et,Ot.v[3][1]=St,Ot.i[0][0]=Lt?pt-Et*lt:pt+Et*lt,Ot.i[0][1]=St-Ft,Ot.i[1][0]=Lt?pt+Et:pt-Et,Ot.i[1][1]=St-Ft*lt,Ot.i[2][0]=Lt?pt+Et*lt:pt-Et*lt,Ot.i[2][1]=St+Ft,Ot.i[3][0]=Lt?pt-Et:pt+Et,Ot.i[3][1]=St+Ft*lt,Ot.o[0][0]=Lt?pt+Et*lt:pt-Et*lt,Ot.o[0][1]=St-Ft,Ot.o[1][0]=Lt?pt+Et:pt-Et,Ot.o[1][1]=St+Ft*lt,Ot.o[2][0]=Lt?pt-Et*lt:pt+Et*lt,Ot.o[2][1]=St+Ft,Ot.o[3][0]=Lt?pt-Et:pt+Et,Ot.o[3][1]=St-Ft*lt}},extendPrototype([DynamicPropertyContainer],ht),ht})(),bt=(function(){function lt(ht,at){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ht,this.comp=ht.comp,this.data=at,this.frameId=-1,this.d=at.d,this.initDynamicPropertyContainer(ht),at.sy===1?(this.ir=PropertyFactory.getProp(ht,at.ir,0,0,this),this.is=PropertyFactory.getProp(ht,at.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ht,at.pt,0,0,this),this.p=PropertyFactory.getProp(ht,at.p,1,0,this),this.r=PropertyFactory.getProp(ht,at.r,0,degToRads,this),this.or=PropertyFactory.getProp(ht,at.or,0,0,this),this.os=PropertyFactory.getProp(ht,at.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 lt.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var at=Math.floor(this.pt.v)*2,pt=Math.PI*2/at,St=!0,Et=this.or.v,Ft=this.ir.v,Lt=this.os.v,Ot=this.is.v,Xt=2*Math.PI*Et/(at*2),$t=2*Math.PI*Ft/(at*2),Nt,Bt,Dt,It,vt=-Math.PI/2;vt+=this.r.v;var wt=this.data.d===3?-1:1;for(this.v._length=0,Nt=0;Nt<at;Nt+=1){Bt=St?Et:Ft,Dt=St?Lt:Ot,It=St?Xt:$t;var nt=Bt*Math.cos(vt),mt=Bt*Math.sin(vt),Mt=nt===0&&mt===0?0:mt/Math.sqrt(nt*nt+mt*mt),At=nt===0&&mt===0?0:-nt/Math.sqrt(nt*nt+mt*mt);nt+=+this.p.v[0],mt+=+this.p.v[1],this.v.setTripleAt(nt,mt,nt-Mt*It*Dt*wt,mt-At*It*Dt*wt,nt+Mt*It*Dt*wt,mt+At*It*Dt*wt,Nt,!0),St=!St,vt+=pt*wt}},convertPolygonToPath:function(){var at=Math.floor(this.pt.v),pt=Math.PI*2/at,St=this.or.v,Et=this.os.v,Ft=2*Math.PI*St/(at*4),Lt,Ot=-Math.PI*.5,Xt=this.data.d===3?-1:1;for(Ot+=this.r.v,this.v._length=0,Lt=0;Lt<at;Lt+=1){var $t=St*Math.cos(Ot),Nt=St*Math.sin(Ot),Bt=$t===0&&Nt===0?0:Nt/Math.sqrt($t*$t+Nt*Nt),Dt=$t===0&&Nt===0?0:-$t/Math.sqrt($t*$t+Nt*Nt);$t+=+this.p.v[0],Nt+=+this.p.v[1],this.v.setTripleAt($t,Nt,$t-Bt*Ft*Et*Xt,Nt-Dt*Ft*Et*Xt,$t+Bt*Ft*Et*Xt,Nt+Dt*Ft*Et*Xt,Lt,!0),Ot+=pt*Xt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],lt),lt})(),st=(function(){function lt(ht,at){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ht,this.comp=ht.comp,this.frameId=-1,this.d=at.d,this.initDynamicPropertyContainer(ht),this.p=PropertyFactory.getProp(ht,at.p,1,0,this),this.s=PropertyFactory.getProp(ht,at.s,1,0,this),this.r=PropertyFactory.getProp(ht,at.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return lt.prototype={convertRectToPath:function(){var at=this.p.v[0],pt=this.p.v[1],St=this.s.v[0]/2,Et=this.s.v[1]/2,Ft=bmMin(St,Et,this.r.v),Lt=Ft*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(at+St,pt-Et+Ft,at+St,pt-Et+Ft,at+St,pt-Et+Lt,0,!0),this.v.setTripleAt(at+St,pt+Et-Ft,at+St,pt+Et-Lt,at+St,pt+Et-Ft,1,!0),Ft!==0?(this.v.setTripleAt(at+St-Ft,pt+Et,at+St-Ft,pt+Et,at+St-Lt,pt+Et,2,!0),this.v.setTripleAt(at-St+Ft,pt+Et,at-St+Lt,pt+Et,at-St+Ft,pt+Et,3,!0),this.v.setTripleAt(at-St,pt+Et-Ft,at-St,pt+Et-Ft,at-St,pt+Et-Lt,4,!0),this.v.setTripleAt(at-St,pt-Et+Ft,at-St,pt-Et+Lt,at-St,pt-Et+Ft,5,!0),this.v.setTripleAt(at-St+Ft,pt-Et,at-St+Ft,pt-Et,at-St+Lt,pt-Et,6,!0),this.v.setTripleAt(at+St-Ft,pt-Et,at+St-Lt,pt-Et,at+St-Ft,pt-Et,7,!0)):(this.v.setTripleAt(at-St,pt+Et,at-St+Lt,pt+Et,at-St,pt+Et,2),this.v.setTripleAt(at-St,pt-Et,at-St,pt-Et+Lt,at-St,pt-Et,3))):(this.v.setTripleAt(at+St,pt-Et+Ft,at+St,pt-Et+Lt,at+St,pt-Et+Ft,0,!0),Ft!==0?(this.v.setTripleAt(at+St-Ft,pt-Et,at+St-Ft,pt-Et,at+St-Lt,pt-Et,1,!0),this.v.setTripleAt(at-St+Ft,pt-Et,at-St+Lt,pt-Et,at-St+Ft,pt-Et,2,!0),this.v.setTripleAt(at-St,pt-Et+Ft,at-St,pt-Et+Ft,at-St,pt-Et+Lt,3,!0),this.v.setTripleAt(at-St,pt+Et-Ft,at-St,pt+Et-Lt,at-St,pt+Et-Ft,4,!0),this.v.setTripleAt(at-St+Ft,pt+Et,at-St+Ft,pt+Et,at-St+Lt,pt+Et,5,!0),this.v.setTripleAt(at+St-Ft,pt+Et,at+St-Lt,pt+Et,at+St-Ft,pt+Et,6,!0),this.v.setTripleAt(at+St,pt+Et-Ft,at+St,pt+Et-Ft,at+St,pt+Et-Lt,7,!0)):(this.v.setTripleAt(at-St,pt-Et,at-St+Lt,pt-Et,at-St,pt-Et,1,!0),this.v.setTripleAt(at-St,pt+Et,at-St,pt+Et-Lt,at-St,pt+Et,2,!0),this.v.setTripleAt(at+St,pt+Et,at+St-Lt,pt+Et,at+St,pt+Et,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],lt),lt})();function gt(lt,ht,at){var pt;if(at===3||at===4){var St=at===3?ht.pt:ht.ks,Et=St.k;Et.length?pt=new ot(lt,ht,at):pt=new it(lt,ht,at)}else at===5?pt=new st(lt,ht):at===6?pt=new ut(lt,ht):at===7&&(pt=new bt(lt,ht));return pt.k&&lt.addDynamicProperty(pt),pt}function dt(){return it}function ft(){return ot}var Ct={};return Ct.getShapeProp=gt,Ct.getConstructorFunction=dt,Ct.getKeyframedConstructorFunction=ft,Ct})();var Matrix=(function(){var t=Math.cos,e=Math.sin,i=Math.tan,n=Math.round;function o(){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 tt(nt){if(nt===0)return this;var mt=t(nt),Mt=e(nt);return this._t(mt,-Mt,0,0,Mt,mt,0,0,0,0,1,0,0,0,0,1)}function et(nt){if(nt===0)return this;var mt=t(nt),Mt=e(nt);return this._t(1,0,0,0,0,mt,-Mt,0,0,Mt,mt,0,0,0,0,1)}function it(nt){if(nt===0)return this;var mt=t(nt),Mt=e(nt);return this._t(mt,0,Mt,0,0,1,0,0,-Mt,0,mt,0,0,0,0,1)}function rt(nt){if(nt===0)return this;var mt=t(nt),Mt=e(nt);return this._t(mt,-Mt,0,0,Mt,mt,0,0,0,0,1,0,0,0,0,1)}function ot(nt,mt){return this._t(1,mt,nt,1,0,0)}function ut(nt,mt){return this.shear(i(nt),i(mt))}function bt(nt,mt){var Mt=t(mt),At=e(mt);return this._t(Mt,At,0,0,-At,Mt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(nt),1,0,0,0,0,1,0,0,0,0,1)._t(Mt,-At,0,0,At,Mt,0,0,0,0,1,0,0,0,0,1)}function st(nt,mt,Mt){return!Mt&&Mt!==0&&(Mt=1),nt===1&&mt===1&&Mt===1?this:this._t(nt,0,0,0,0,mt,0,0,0,0,Mt,0,0,0,0,1)}function gt(nt,mt,Mt,At,Ht,Wt,Yt,te,ee,se,he,fe,re,Pt,ct,xt){return this.props[0]=nt,this.props[1]=mt,this.props[2]=Mt,this.props[3]=At,this.props[4]=Ht,this.props[5]=Wt,this.props[6]=Yt,this.props[7]=te,this.props[8]=ee,this.props[9]=se,this.props[10]=he,this.props[11]=fe,this.props[12]=re,this.props[13]=Pt,this.props[14]=ct,this.props[15]=xt,this}function dt(nt,mt,Mt){return Mt=Mt||0,nt!==0||mt!==0||Mt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,nt,mt,Mt,1):this}function ft(nt,mt,Mt,At,Ht,Wt,Yt,te,ee,se,he,fe,re,Pt,ct,xt){var yt=this.props;if(nt===1&&mt===0&&Mt===0&&At===0&&Ht===0&&Wt===1&&Yt===0&&te===0&&ee===0&&se===0&&he===1&&fe===0)return yt[12]=yt[12]*nt+yt[15]*re,yt[13]=yt[13]*Wt+yt[15]*Pt,yt[14]=yt[14]*he+yt[15]*ct,yt[15]*=xt,this._identityCalculated=!1,this;var _t=yt[0],Tt=yt[1],kt=yt[2],Vt=yt[3],zt=yt[4],Gt=yt[5],Rt=yt[6],Zt=yt[7],Qt=yt[8],Ut=yt[9],jt=yt[10],qt=yt[11],ne=yt[12],oe=yt[13],Jt=yt[14],ae=yt[15];return yt[0]=_t*nt+Tt*Ht+kt*ee+Vt*re,yt[1]=_t*mt+Tt*Wt+kt*se+Vt*Pt,yt[2]=_t*Mt+Tt*Yt+kt*he+Vt*ct,yt[3]=_t*At+Tt*te+kt*fe+Vt*xt,yt[4]=zt*nt+Gt*Ht+Rt*ee+Zt*re,yt[5]=zt*mt+Gt*Wt+Rt*se+Zt*Pt,yt[6]=zt*Mt+Gt*Yt+Rt*he+Zt*ct,yt[7]=zt*At+Gt*te+Rt*fe+Zt*xt,yt[8]=Qt*nt+Ut*Ht+jt*ee+qt*re,yt[9]=Qt*mt+Ut*Wt+jt*se+qt*Pt,yt[10]=Qt*Mt+Ut*Yt+jt*he+qt*ct,yt[11]=Qt*At+Ut*te+jt*fe+qt*xt,yt[12]=ne*nt+oe*Ht+Jt*ee+ae*re,yt[13]=ne*mt+oe*Wt+Jt*se+ae*Pt,yt[14]=ne*Mt+oe*Yt+Jt*he+ae*ct,yt[15]=ne*At+oe*te+Jt*fe+ae*xt,this._identityCalculated=!1,this}function Ct(nt){var mt=nt.props;return this.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15])}function lt(){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 ht(nt){for(var mt=0;mt<16;){if(nt.props[mt]!==this.props[mt])return!1;mt+=1}return!0}function at(nt){var mt;for(mt=0;mt<16;mt+=1)nt.props[mt]=this.props[mt];return nt}function pt(nt){var mt;for(mt=0;mt<16;mt+=1)this.props[mt]=nt[mt]}function St(nt,mt,Mt){return{x:nt*this.props[0]+mt*this.props[4]+Mt*this.props[8]+this.props[12],y:nt*this.props[1]+mt*this.props[5]+Mt*this.props[9]+this.props[13],z:nt*this.props[2]+mt*this.props[6]+Mt*this.props[10]+this.props[14]}}function Et(nt,mt,Mt){return nt*this.props[0]+mt*this.props[4]+Mt*this.props[8]+this.props[12]}function Ft(nt,mt,Mt){return nt*this.props[1]+mt*this.props[5]+Mt*this.props[9]+this.props[13]}function Lt(nt,mt,Mt){return nt*this.props[2]+mt*this.props[6]+Mt*this.props[10]+this.props[14]}function Ot(){var nt=this.props[0]*this.props[5]-this.props[1]*this.props[4],mt=this.props[5]/nt,Mt=-this.props[1]/nt,At=-this.props[4]/nt,Ht=this.props[0]/nt,Wt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/nt,Yt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/nt,te=new Matrix;return te.props[0]=mt,te.props[1]=Mt,te.props[4]=At,te.props[5]=Ht,te.props[12]=Wt,te.props[13]=Yt,te}function Xt(nt){var mt=this.getInverseMatrix();return mt.applyToPointArray(nt[0],nt[1],nt[2]||0)}function $t(nt){var mt,Mt=nt.length,At=[];for(mt=0;mt<Mt;mt+=1)At[mt]=Xt(nt[mt]);return At}function Nt(nt,mt,Mt){var At=createTypedArray("float32",6);if(this.isIdentity())At[0]=nt[0],At[1]=nt[1],At[2]=mt[0],At[3]=mt[1],At[4]=Mt[0],At[5]=Mt[1];else{var Ht=this.props[0],Wt=this.props[1],Yt=this.props[4],te=this.props[5],ee=this.props[12],se=this.props[13];At[0]=nt[0]*Ht+nt[1]*Yt+ee,At[1]=nt[0]*Wt+nt[1]*te+se,At[2]=mt[0]*Ht+mt[1]*Yt+ee,At[3]=mt[0]*Wt+mt[1]*te+se,At[4]=Mt[0]*Ht+Mt[1]*Yt+ee,At[5]=Mt[0]*Wt+Mt[1]*te+se}return At}function Bt(nt,mt,Mt){var At;return this.isIdentity()?At=[nt,mt,Mt]:At=[nt*this.props[0]+mt*this.props[4]+Mt*this.props[8]+this.props[12],nt*this.props[1]+mt*this.props[5]+Mt*this.props[9]+this.props[13],nt*this.props[2]+mt*this.props[6]+Mt*this.props[10]+this.props[14]],At}function Dt(nt,mt){if(this.isIdentity())return nt+","+mt;var Mt=this.props;return Math.round((nt*Mt[0]+mt*Mt[4]+Mt[12])*100)/100+","+Math.round((nt*Mt[1]+mt*Mt[5]+Mt[13])*100)/100}function It(){for(var nt=0,mt=this.props,Mt="matrix3d(",At=1e4;nt<16;)Mt+=n(mt[nt]*At)/At,Mt+=nt===15?")":",",nt+=1;return Mt}function vt(nt){var mt=1e4;return nt<1e-6&&nt>0||nt>-1e-6&&nt<0?n(nt*mt)/mt:nt}function wt(){var nt=this.props,mt=vt(nt[0]),Mt=vt(nt[1]),At=vt(nt[4]),Ht=vt(nt[5]),Wt=vt(nt[12]),Yt=vt(nt[13]);return"matrix("+mt+","+Mt+","+At+","+Ht+","+Wt+","+Yt+")"}return function(){this.reset=o,this.rotate=tt,this.rotateX=et,this.rotateY=it,this.rotateZ=rt,this.skew=ut,this.skewFromAxis=bt,this.shear=ot,this.scale=st,this.setTransform=gt,this.translate=dt,this.transform=ft,this.multiply=Ct,this.applyToPoint=St,this.applyToX=Et,this.applyToY=Ft,this.applyToZ=Lt,this.applyToPointArray=Bt,this.applyToTriplePoints=Nt,this.applyToPointStringified=Dt,this.toCSS=It,this.to2dCSS=wt,this.clone=at,this.cloneFromProps=pt,this.equals=ht,this.inversePoints=$t,this.inversePoint=Xt,this.getInverseMatrix=Ot,this._t=this.transform,this.isIdentity=lt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(t){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(function(){var t={},e={};t.registerModifier=i,t.getModifier=n;function i(o,tt){e[o]||(e[o]=tt)}function n(o,tt,et){return new e[o](tt,et)}return t})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,n,o){var tt=[];e<=1?tt.push({s:t,e}):t>=1?tt.push({s:t-1,e:e-1}):(tt.push({s:t,e:1}),tt.push({s:0,e:e-1}));var et=[],it,rt=tt.length,ot;for(it=0;it<rt;it+=1)if(ot=tt[it],!(ot.e*o<n||ot.s*o>n+i)){var ut,bt;ot.s*o<=n?ut=0:ut=(ot.s*o-n)/i,ot.e*o>=n+i?bt=1:bt=(ot.e*o-n)/i,et.push([ut,bt])}return et.length||et.push([0,0]),et},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?e=1+n:this.s.v<0?e=0+n:e=this.s.v+n,this.e.v>1?i=1+n:this.e.v<0?i=0+n:i=this.e.v+n,e>i){var o=e;e=i,i=o}e=Math.round(e*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var tt,et,it=this.shapes.length,rt,ot,ut,bt,st,gt=0;if(i===e)for(et=0;et<it;et+=1)this.shapes[et].localShapeCollection.releaseShapes(),this.shapes[et].shape._mdf=!0,this.shapes[et].shape.paths=this.shapes[et].localShapeCollection,this._mdf&&(this.shapes[et].pathsData.length=0);else if(i===1&&e===0||i===0&&e===1){if(this._mdf)for(et=0;et<it;et+=1)this.shapes[et].pathsData.length=0,this.shapes[et].shape._mdf=!0}else{var dt=[],ft,Ct;for(et=0;et<it;et+=1)if(ft=this.shapes[et],!ft.shape._mdf&&!this._mdf&&!t&&this.m!==2)ft.shape.paths=ft.localShapeCollection;else{if(tt=ft.shape.paths,ot=tt._length,st=0,!ft.shape._mdf&&ft.pathsData.length)st=ft.totalShapeLength;else{for(ut=this.releasePathsData(ft.pathsData),rt=0;rt<ot;rt+=1)bt=bez.getSegmentsLength(tt.shapes[rt]),ut.push(bt),st+=bt.totalLength;ft.totalShapeLength=st,ft.pathsData=ut}gt+=st,ft.shape._mdf=!0}var lt=e,ht=i,at=0,pt;for(et=it-1;et>=0;et-=1)if(ft=this.shapes[et],ft.shape._mdf){for(Ct=ft.localShapeCollection,Ct.releaseShapes(),this.m===2&&it>1?(pt=this.calculateShapeEdges(e,i,ft.totalShapeLength,at,gt),at+=ft.totalShapeLength):pt=[[lt,ht]],ot=pt.length,rt=0;rt<ot;rt+=1){lt=pt[rt][0],ht=pt[rt][1],dt.length=0,ht<=1?dt.push({s:ft.totalShapeLength*lt,e:ft.totalShapeLength*ht}):lt>=1?dt.push({s:ft.totalShapeLength*(lt-1),e:ft.totalShapeLength*(ht-1)}):(dt.push({s:ft.totalShapeLength*lt,e:ft.totalShapeLength}),dt.push({s:0,e:ft.totalShapeLength*(ht-1)}));var St=this.addShapes(ft,dt[0]);if(dt[0].s!==dt[0].e){if(dt.length>1){var Et=ft.shape.paths.shapes[ft.shape.paths._length-1];if(Et.c){var Ft=St.pop();this.addPaths(St,Ct),St=this.addShapes(ft,dt[1],Ft)}else this.addPaths(St,Ct),St=this.addShapes(ft,dt[1])}this.addPaths(St,Ct)}}ft.shape.paths=Ct}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,n,o,tt,et){o.setXYAt(e[0],e[1],"o",tt),o.setXYAt(i[0],i[1],"i",tt+1),et&&o.setXYAt(t[0],t[1],"v",tt),o.setXYAt(n[0],n[1],"v",tt+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,n){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),n&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var n=t.pathsData,o=t.shape.paths.shapes,tt,et=t.shape.paths._length,it,rt,ot=0,ut,bt,st,gt,dt=[],ft,Ct=!0;for(i?(bt=i._length,ft=i._length):(i=shapePool.newElement(),bt=0,ft=0),dt.push(i),tt=0;tt<et;tt+=1){for(st=n[tt].lengths,i.c=o[tt].c,rt=o[tt].c?st.length:st.length+1,it=1;it<rt;it+=1)if(ut=st[it-1],ot+ut.addedLength<e.s)ot+=ut.addedLength,i.c=!1;else if(ot>e.e){i.c=!1;break}else e.s<=ot&&e.e>=ot+ut.addedLength?(this.addSegment(o[tt].v[it-1],o[tt].o[it-1],o[tt].i[it],o[tt].v[it],i,bt,Ct),Ct=!1):(gt=bez.getNewSegment(o[tt].v[it-1],o[tt].v[it],o[tt].o[it-1],o[tt].i[it],(e.s-ot)/ut.addedLength,(e.e-ot)/ut.addedLength,st[it-1]),this.addSegmentFromArray(gt,i,bt,Ct),Ct=!1,i.c=!1),ot+=ut.addedLength,bt+=1;if(o[tt].c&&st.length){if(ut=st[it-1],ot<=e.e){var lt=st[it-1].addedLength;e.s<=ot&&e.e>=ot+lt?(this.addSegment(o[tt].v[it-1],o[tt].o[it-1],o[tt].i[0],o[tt].v[0],i,bt,Ct),Ct=!1):(gt=bez.getNewSegment(o[tt].v[it-1],o[tt].v[0],o[tt].o[it-1],o[tt].i[0],(e.s-ot)/lt,(e.e-ot)/lt,st[it-1]),this.addSegmentFromArray(gt,i,bt,Ct),Ct=!1,i.c=!1)}else i.c=!1;ot+=ut.addedLength,bt+=1}if(i._length&&(i.setXYAt(i.v[ft][0],i.v[ft][1],"i",ft),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),ot>e.e)break;tt<et-1&&(i=shapePool.newElement(),Ct=!0,dt.push(i),bt=0)}return dt};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,n=[0,0],o=t._length,tt=0;for(tt=0;tt<o;tt+=1)n[0]+=t.v[tt][0],n[1]+=t.v[tt][1];n[0]/=o,n[1]/=o;var et=shapePool.newElement();et.c=t.c;var it,rt,ot,ut,bt,st;for(tt=0;tt<o;tt+=1)it=t.v[tt][0]+(n[0]-t.v[tt][0])*i,rt=t.v[tt][1]+(n[1]-t.v[tt][1])*i,ot=t.o[tt][0]+(n[0]-t.o[tt][0])*-i,ut=t.o[tt][1]+(n[1]-t.o[tt][1])*-i,bt=t.i[tt][0]+(n[0]-t.i[tt][0])*-i,st=t.i[tt][1]+(n[1]-t.i[tt][1])*-i,et.setTripleAt(it,rt,ot,ut,bt,st,tt);return et},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,n=this.shapes.length,o,tt,et=this.amount.v;if(et!==0){var it,rt;for(i=0;i<n;i+=1){if(it=this.shapes[i],rt=it.localShapeCollection,!(!it.shape._mdf&&!this._mdf&&!t))for(rt.releaseShapes(),it.shape._mdf=!0,e=it.shape.paths.shapes,tt=it.shape.paths._length,o=0;o<tt;o+=1)rt.addShape(this.processPath(e[o],et));it.shape.paths=it.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var t=[0,0];function e(rt){var ot=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ot,this.a&&rt.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&rt.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&rt.skewFromAxis(-this.sk.v,this.sa.v),this.r?rt.rotate(-this.r.v):rt.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?rt.translate(this.px.v,this.py.v,-this.pz.v):rt.translate(this.px.v,this.py.v,0):rt.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(rt){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||rt){var ot;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 ut,bt;if(ot=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(ut=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/ot,0),bt=this.p.getValueAtTime(this.p.keyframes[0].t/ot,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(ut=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ot,0),bt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ot,0)):(ut=this.p.pv,bt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ot,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){ut=[],bt=[];var st=this.px,gt=this.py;st._caching.lastFrame+st.offsetTime<=st.keyframes[0].t?(ut[0]=st.getValueAtTime((st.keyframes[0].t+.01)/ot,0),ut[1]=gt.getValueAtTime((gt.keyframes[0].t+.01)/ot,0),bt[0]=st.getValueAtTime(st.keyframes[0].t/ot,0),bt[1]=gt.getValueAtTime(gt.keyframes[0].t/ot,0)):st._caching.lastFrame+st.offsetTime>=st.keyframes[st.keyframes.length-1].t?(ut[0]=st.getValueAtTime(st.keyframes[st.keyframes.length-1].t/ot,0),ut[1]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/ot,0),bt[0]=st.getValueAtTime((st.keyframes[st.keyframes.length-1].t-.01)/ot,0),bt[1]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/ot,0)):(ut=[st.pv,gt.pv],bt[0]=st.getValueAtTime((st._caching.lastFrame+st.offsetTime-.01)/ot,st.offsetTime),bt[1]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/ot,gt.offsetTime))}else bt=t,ut=bt;this.v.rotate(-Math.atan2(ut[1]-bt[1],ut[0]-bt[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 n(){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 o(){}function tt(rt){this._addDynamicProperty(rt),this.elem.addDynamicProperty(rt),this._isDirty=!0}function et(rt,ot,ut){if(this.elem=rt,this.frameId=-1,this.propType="transform",this.data=ot,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(ut||rt),ot.p&&ot.p.s?(this.px=PropertyFactory.getProp(rt,ot.p.x,0,0,this),this.py=PropertyFactory.getProp(rt,ot.p.y,0,0,this),ot.p.z&&(this.pz=PropertyFactory.getProp(rt,ot.p.z,0,0,this))):this.p=PropertyFactory.getProp(rt,ot.p||{k:[0,0,0]},1,0,this),ot.rx){if(this.rx=PropertyFactory.getProp(rt,ot.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(rt,ot.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(rt,ot.rz,0,degToRads,this),ot.or.k[0].ti){var bt,st=ot.or.k.length;for(bt=0;bt<st;bt+=1)ot.or.k[bt].to=null,ot.or.k[bt].ti=null}this.or=PropertyFactory.getProp(rt,ot.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(rt,ot.r||{k:0},0,degToRads,this);ot.sk&&(this.sk=PropertyFactory.getProp(rt,ot.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(rt,ot.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(rt,ot.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(rt,ot.s||{k:[100,100,100]},1,.01,this),ot.o?this.o=PropertyFactory.getProp(rt,ot.o,0,.01,rt):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}et.prototype={applyToMatrix:e,getValue:i,precalculateMatrix:n,autoOrient:o},extendPrototype([DynamicPropertyContainer],et),et.prototype.addDynamicProperty=tt,et.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function it(rt,ot,ut){return new et(rt,ot,ut)}return{getTransformProperty:it}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,n,o,tt){var et=tt?-1:1,it=n.s.v[0]+(1-n.s.v[0])*(1-o),rt=n.s.v[1]+(1-n.s.v[1])*(1-o);t.translate(n.p.v[0]*et*o,n.p.v[1]*et*o,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*et*o),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(tt?1/it:it,tt?1/rt:rt),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,n){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,t[i].ty==="gr"&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,n,o,tt,et=!1;if(this._mdf||t){var it=Math.ceil(this.c.v);if(this._groups.length<it){for(;this._groups.length<it;){var rt={it:this.cloneElements(this._elements),ty:"gr"};rt.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,rt),this._groups.splice(0,0,rt),this._currentCopies+=1}this.elem.reloadShapes(),et=!0}tt=0;var ot;for(n=0;n<=this._groups.length-1;n+=1){if(ot=tt<it,this._groups[n]._render=ot,this.changeGroupRender(this._groups[n].it,ot),!ot){var ut=this.elemsData[n].it,bt=ut[ut.length-1];bt.transform.op.v!==0?(bt.transform.op._mdf=!0,bt.transform.op.v=0):bt.transform.op._mdf=!1}tt+=1}this._currentCopies=it;var st=this.o.v,gt=st%1,dt=st>0?Math.floor(st):Math.ceil(st),ft=this.pMatrix.props,Ct=this.rMatrix.props,lt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ht=0;if(st>0){for(;ht<dt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ht+=1;gt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,gt,!1),ht+=gt)}else if(st<0){for(;ht>dt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ht-=1;gt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-gt,!0),ht-=gt)}n=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,tt=this._currentCopies;for(var at,pt;tt;){if(e=this.elemsData[n].it,i=e[e.length-1].transform.mProps.v.props,pt=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),ht!==0){for((n!==0&&o===1||n!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Ct[0],Ct[1],Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],Ct[8],Ct[9],Ct[10],Ct[11],Ct[12],Ct[13],Ct[14],Ct[15]),this.matrix.transform(lt[0],lt[1],lt[2],lt[3],lt[4],lt[5],lt[6],lt[7],lt[8],lt[9],lt[10],lt[11],lt[12],lt[13],lt[14],lt[15]),this.matrix.transform(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],ft[8],ft[9],ft[10],ft[11],ft[12],ft[13],ft[14],ft[15]),at=0;at<pt;at+=1)i[at]=this.matrix.props[at];this.matrix.reset()}else for(this.matrix.reset(),at=0;at<pt;at+=1)i[at]=this.matrix.props[at];ht+=1,tt-=1,n+=o}}else for(tt=this._currentCopies,n=0,o=1;tt;)e=this.elemsData[n].it,i=e[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,tt-=1,n+=o;return et},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i=shapePool.newElement();i.c=t.c;var n,o=t._length,tt,et,it,rt,ot,ut,bt=0,st,gt,dt,ft,Ct,lt;for(n=0;n<o;n+=1)tt=t.v[n],it=t.o[n],et=t.i[n],tt[0]===it[0]&&tt[1]===it[1]&&tt[0]===et[0]&&tt[1]===et[1]?(n===0||n===o-1)&&!t.c?(i.setTripleAt(tt[0],tt[1],it[0],it[1],et[0],et[1],bt),bt+=1):(n===0?rt=t.v[o-1]:rt=t.v[n-1],ot=Math.sqrt(Math.pow(tt[0]-rt[0],2)+Math.pow(tt[1]-rt[1],2)),ut=ot?Math.min(ot/2,e)/ot:0,Ct=tt[0]+(rt[0]-tt[0])*ut,st=Ct,lt=tt[1]-(tt[1]-rt[1])*ut,gt=lt,dt=st-(st-tt[0])*roundCorner,ft=gt-(gt-tt[1])*roundCorner,i.setTripleAt(st,gt,dt,ft,Ct,lt,bt),bt+=1,n===o-1?rt=t.v[0]:rt=t.v[n+1],ot=Math.sqrt(Math.pow(tt[0]-rt[0],2)+Math.pow(tt[1]-rt[1],2)),ut=ot?Math.min(ot/2,e)/ot:0,dt=tt[0]+(rt[0]-tt[0])*ut,st=dt,ft=tt[1]+(rt[1]-tt[1])*ut,gt=ft,Ct=st-(st-tt[0])*roundCorner,lt=gt-(gt-tt[1])*roundCorner,i.setTripleAt(st,gt,dt,ft,Ct,lt,bt),bt+=1):(i.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],bt),bt+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,i,n=this.shapes.length,o,tt,et=this.rd.v;if(et!==0){var it,rt;for(i=0;i<n;i+=1){if(it=this.shapes[i],rt=it.localShapeCollection,!(!it.shape._mdf&&!this._mdf&&!t))for(rt.releaseShapes(),it.shape._mdf=!0,e=it.shape.paths.shapes,tt=it.shape.paths._length,o=0;o<tt;o+=1)rt.addShape(this.processPath(e[o],et));it.shape.paths=it.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(t,e){return Math.abs(t-e)*1e5<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(t===0)return[];var n=e*e-4*t*i;if(n<0)return[];var o=-e/(2*t);if(n===0)return[o];var tt=Math.sqrt(n)/(2*t);return[o-tt,o+tt]}function polynomialCoefficients(t,e,i,n){return[-t+3*e-3*i+n,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,n,o){o&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),o&&pointEqual(i,n)&&(i=lerpPoint(t,n,2/3));var tt=polynomialCoefficients(t[0],e[0],i[0],n[0]),et=polynomialCoefficients(t[1],e[1],i[1],n[1]);this.a=[tt[0],et[0]],this.b=[tt[1],et[1]],this.c=[tt[2],et[2]],this.d=[tt[3],et[3]],this.points=[t,e,i,n]}PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var n=Math.sqrt(i);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter(function(o){return o>0&&o<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),o=lerpPoint(e,i,t),tt=lerpPoint(i,n,t),et=lerpPoint(o,tt,t);return[new PolynomialBezier(this.points[0],e,o,et,!0),new PolynomialBezier(et,tt,n,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],n=t.points[t.points.length-1][e];if(i>n){var o=n;n=i,i=o}for(var tt=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),et=0;et<tt.length;et+=1)if(tt[et]>0&&tt[et]<1){var it=t.point(tt[et])[e];it<i?i=it:it>n&&(n=it)}return{min:i,max:n}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,i){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2<t.width+e.width&&Math.abs(t.cy-e.cy)*2<t.height+e.height}function intersectsImpl(t,e,i,n,o,tt){if(boxIntersect(t,e)){if(i>=tt||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n){o.push([t.t,e.t]);return}var et=splitData(t),it=splitData(e);intersectsImpl(et[0],it[0],i+1,n,o,tt),intersectsImpl(et[0],it[1],i+1,n,o,tt),intersectsImpl(et[1],it[0],i+1,n,o,tt),intersectsImpl(et[1],it[1],i+1,n,o,tt)}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,i),n},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,n){var o=[t[0],t[1],1],tt=[e[0],e[1],1],et=[i[0],i[1],1],it=[n[0],n[1],1],rt=crossProduct(crossProduct(o,tt),crossProduct(et,it));return floatZero(rt[2])?null:[rt[0]/rt[2],rt[1]/rt[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,i,n,o,tt,et){var it=i-Math.PI/2,rt=i+Math.PI/2,ot=e[0]+Math.cos(i)*n*o,ut=e[1]-Math.sin(i)*n*o;t.setTripleAt(ot,ut,ot+Math.cos(it)*tt,ut-Math.sin(it)*tt,ot+Math.cos(rt)*et,ut-Math.sin(rt)*et,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],n=-Math.PI*.5,o=[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]];return o}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,n=(e+1)%t.length(),o=t.v[i],tt=t.v[n],et=getPerpendicularVector(o,tt);return Math.atan2(0,1)-Math.atan2(et[1],et[0])}function zigZagCorner(t,e,i,n,o,tt,et){var it=getProjectingAngle(e,i),rt=e.v[i%e._length],ot=e.v[i===0?e._length-1:i-1],ut=e.v[(i+1)%e._length],bt=tt===2?Math.sqrt(Math.pow(rt[0]-ot[0],2)+Math.pow(rt[1]-ot[1],2)):0,st=tt===2?Math.sqrt(Math.pow(rt[0]-ut[0],2)+Math.pow(rt[1]-ut[1],2)):0;setPoint(t,e.v[i%e._length],it,et,n,st/((o+1)*2),bt/((o+1)*2))}function zigZagSegment(t,e,i,n,o,tt){for(var et=0;et<n;et+=1){var it=(et+1)/(n+1),rt=o===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,ot=e.normalAngle(it),ut=e.point(it);setPoint(t,ut,ot,tt,i,rt/((n+1)*2),rt/((n+1)*2)),tt=-tt}return tt}ZigZagModifier.prototype.processPath=function(t,e,i,n){var o=t._length,tt=shapePool.newElement();if(tt.c=t.c,t.c||(o-=1),o===0)return tt;var et=-1,it=PolynomialBezier.shapeSegment(t,0);zigZagCorner(tt,t,0,e,i,n,et);for(var rt=0;rt<o;rt+=1)et=zigZagSegment(tt,it,e,i,n,-et),rt===o-1&&!t.c?it=null:it=PolynomialBezier.shapeSegment(t,(rt+1)%o),zigZagCorner(tt,t,rt+1,e,i,n,et);return tt},ZigZagModifier.prototype.processShapes=function(t){var e,i,n=this.shapes.length,o,tt,et=this.amplitude.v,it=Math.max(0,Math.round(this.frequency.v)),rt=this.pointsType.v;if(et!==0){var ot,ut;for(i=0;i<n;i+=1){if(ot=this.shapes[i],ut=ot.localShapeCollection,!(!ot.shape._mdf&&!this._mdf&&!t))for(ut.releaseShapes(),ot.shape._mdf=!0,e=ot.shape.paths.shapes,tt=ot.shape.paths._length,o=0;o<tt;o+=1)ut.addShape(this.processPath(e[o],et,it,rt));ot.shape.paths=ot.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(t,e,i){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,i),polarOffset(e,n,i)]}function offsetSegment(t,e){var i,n,o,tt,et,it,rt;rt=linearOffset(t.points[0],t.points[1],e),i=rt[0],n=rt[1],rt=linearOffset(t.points[1],t.points[2],e),o=rt[0],tt=rt[1],rt=linearOffset(t.points[2],t.points[3],e),et=rt[0],it=rt[1];var ot=lineIntersection(i,n,o,tt);ot===null&&(ot=n);var ut=lineIntersection(et,it,o,tt);return ut===null&&(ut=et),new PolynomialBezier(i,ot,ut,it)}function joinLines(t,e,i,n,o){var tt=e.points[3],et=i.points[0];if(n===3||pointEqual(tt,et))return tt;if(n===2){var it=-e.tangentAngle(1),rt=-i.tangentAngle(0)+Math.PI,ot=lineIntersection(tt,polarOffset(tt,it+Math.PI/2,100),et,polarOffset(et,it+Math.PI/2,100)),ut=ot?pointDistance(ot,tt):pointDistance(tt,et)/2,bt=polarOffset(tt,it,2*ut*roundCorner);return t.setXYAt(bt[0],bt[1],"o",t.length()-1),bt=polarOffset(et,rt,2*ut*roundCorner),t.setTripleAt(et[0],et[1],et[0],et[1],bt[0],bt[1],t.length()),et}var st=pointEqual(tt,e.points[2])?e.points[0]:e.points[2],gt=pointEqual(et,i.points[1])?i.points[3]:i.points[1],dt=lineIntersection(st,tt,et,gt);return dt&&pointDistance(dt,tt)<o?(t.setTripleAt(dt[0],dt[1],dt[0],dt[1],dt[0],dt[1],t.length()),dt):tt}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),n=e.slice(),o=getIntersection(t[t.length-1],e[0]);return o&&(i[t.length-1]=t[t.length-1].split(o[0])[0],n[0]=e[0].split(o[1])[1]),t.length>1&&e.length>1&&(o=getIntersection(t[0],e[e.length-1]),o)?[[t[0].split(o[0])[0]],[e[e.length-1].split(o[1])[1]]]:[i,n]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i=t.inflectionPoints(),n,o,tt,et;if(i.length===0)return[offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return tt=t.split(i[0]),n=tt[0],o=tt[1],[offsetSegment(n,e),offsetSegment(o,e)];tt=t.split(i[0]),n=tt[0];var it=(i[1]-i[0])/(1-i[0]);return tt=tt[1].split(it),et=tt[0],o=tt[1],[offsetSegment(n,e),offsetSegment(et,e),offsetSegment(o,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,i,n){var o=shapePool.newElement();o.c=t.c;var tt=t.length();t.c||(tt-=1);var et,it,rt,ot=[];for(et=0;et<tt;et+=1)rt=PolynomialBezier.shapeSegment(t,et),ot.push(offsetSegmentSplit(rt,e));if(!t.c)for(et=tt-1;et>=0;et-=1)rt=PolynomialBezier.shapeSegmentInverted(t,et),ot.push(offsetSegmentSplit(rt,e));ot=pruneIntersections(ot);var ut=null,bt=null;for(et=0;et<ot.length;et+=1){var st=ot[et];for(bt&&(ut=joinLines(o,bt,st[0],i,n)),bt=st[st.length-1],it=0;it<st.length;it+=1)rt=st[it],ut&&pointEqual(rt.points[0],ut)?o.setXYAt(rt.points[1][0],rt.points[1][1],"o",o.length()-1):o.setTripleAt(rt.points[0][0],rt.points[0][1],rt.points[1][0],rt.points[1][1],rt.points[0][0],rt.points[0][1],o.length()),o.setTripleAt(rt.points[3][0],rt.points[3][1],rt.points[3][0],rt.points[3][1],rt.points[2][0],rt.points[2][1],o.length()),ut=rt.points[3]}return ot.length&&joinLines(o,bt,ot[0][0],i,n),o},OffsetPathModifier.prototype.processShapes=function(t){var e,i,n=this.shapes.length,o,tt,et=this.amount.v,it=this.miterLimit.v,rt=this.lineJoin;if(et!==0){var ot,ut;for(i=0;i<n;i+=1){if(ot=this.shapes[i],ut=ot.localShapeCollection,!(!ot.shape._mdf&&!this._mdf&&!t))for(ut.releaseShapes(),ot.shape._mdf=!0,e=ot.shape.paths.shapes,tt=ot.shape.paths._length,o=0;o<tt;o+=1)ut.addShape(this.processPath(e[o],et,rt,it));ot.shape.paths=ot.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",o=e.length,tt,et=0;et<o;et+=1)switch(tt=e[et].toLowerCase(),tt){case"italic":n="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:n,weight:t.fWeight||i}}var FontManager=(function(){var t=5e3,e={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 n=127988,o=917631,tt=917601,et=917626,it=65039,rt=8205,ot=127462,ut=127487,bt=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function st(vt){var wt=vt.split(","),nt,mt=wt.length,Mt=[];for(nt=0;nt<mt;nt+=1)wt[nt]!=="sans-serif"&&wt[nt]!=="monospace"&&Mt.push(wt[nt]);return Mt.join(",")}function gt(vt,wt){var nt=createTag("span");nt.setAttribute("aria-hidden",!0),nt.style.fontFamily=wt;var mt=createTag("span");mt.innerText="giItT1WQy@!-/#",nt.style.position="absolute",nt.style.left="-10000px",nt.style.top="-10000px",nt.style.fontSize="300px",nt.style.fontVariant="normal",nt.style.fontStyle="normal",nt.style.fontWeight="normal",nt.style.letterSpacing="0",nt.appendChild(mt),document.body.appendChild(nt);var Mt=mt.offsetWidth;return mt.style.fontFamily=st(vt)+", "+wt,{node:mt,w:Mt,parent:nt}}function dt(){var vt,wt=this.fonts.length,nt,mt,Mt=wt;for(vt=0;vt<wt;vt+=1)this.fonts[vt].loaded?Mt-=1:this.fonts[vt].fOrigin==="n"||this.fonts[vt].origin===0?this.fonts[vt].loaded=!0:(nt=this.fonts[vt].monoCase.node,mt=this.fonts[vt].monoCase.w,nt.offsetWidth!==mt?(Mt-=1,this.fonts[vt].loaded=!0):(nt=this.fonts[vt].sansCase.node,mt=this.fonts[vt].sansCase.w,nt.offsetWidth!==mt&&(Mt-=1,this.fonts[vt].loaded=!0)),this.fonts[vt].loaded&&(this.fonts[vt].sansCase.parent.parentNode.removeChild(this.fonts[vt].sansCase.parent),this.fonts[vt].monoCase.parent.parentNode.removeChild(this.fonts[vt].monoCase.parent)));Mt!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function ft(vt,wt){var nt=document.body&&wt?"svg":"canvas",mt,Mt=getFontProperties(vt);if(nt==="svg"){var At=createNS("text");At.style.fontSize="100px",At.setAttribute("font-family",vt.fFamily),At.setAttribute("font-style",Mt.style),At.setAttribute("font-weight",Mt.weight),At.textContent="1",vt.fClass?(At.style.fontFamily="inherit",At.setAttribute("class",vt.fClass)):At.style.fontFamily=vt.fFamily,wt.appendChild(At),mt=At}else{var Ht=new OffscreenCanvas(500,500).getContext("2d");Ht.font=Mt.style+" "+Mt.weight+" 100px "+vt.fFamily,mt=Ht}function Wt(Yt){return nt==="svg"?(mt.textContent=Yt,mt.getComputedTextLength()):mt.measureText(Yt).width}return{measureText:Wt}}function Ct(vt,wt){if(!vt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=vt.list;return}if(!document.body){this.isLoaded=!0,vt.list.forEach(function(he){he.helper=ft(he),he.cache={}}),this.fonts=vt.list;return}var nt=vt.list,mt,Mt=nt.length,At=Mt;for(mt=0;mt<Mt;mt+=1){var Ht=!0,Wt,Yt;if(nt[mt].loaded=!1,nt[mt].monoCase=gt(nt[mt].fFamily,"monospace"),nt[mt].sansCase=gt(nt[mt].fFamily,"sans-serif"),!nt[mt].fPath)nt[mt].loaded=!0,At-=1;else if(nt[mt].fOrigin==="p"||nt[mt].origin===3){if(Wt=document.querySelectorAll('style[f-forigin="p"][f-family="'+nt[mt].fFamily+'"], style[f-origin="3"][f-family="'+nt[mt].fFamily+'"]'),Wt.length>0&&(Ht=!1),Ht){var te=createTag("style");te.setAttribute("f-forigin",nt[mt].fOrigin),te.setAttribute("f-origin",nt[mt].origin),te.setAttribute("f-family",nt[mt].fFamily),te.type="text/css",te.innerText="@font-face {font-family: "+nt[mt].fFamily+"; font-style: normal; src: url('"+nt[mt].fPath+"');}",wt.appendChild(te)}}else if(nt[mt].fOrigin==="g"||nt[mt].origin===1){for(Wt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Yt=0;Yt<Wt.length;Yt+=1)Wt[Yt].href.indexOf(nt[mt].fPath)!==-1&&(Ht=!1);if(Ht){var ee=createTag("link");ee.setAttribute("f-forigin",nt[mt].fOrigin),ee.setAttribute("f-origin",nt[mt].origin),ee.type="text/css",ee.rel="stylesheet",ee.href=nt[mt].fPath,document.body.appendChild(ee)}}else if(nt[mt].fOrigin==="t"||nt[mt].origin===2){for(Wt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Yt=0;Yt<Wt.length;Yt+=1)nt[mt].fPath===Wt[Yt].src&&(Ht=!1);if(Ht){var se=createTag("link");se.setAttribute("f-forigin",nt[mt].fOrigin),se.setAttribute("f-origin",nt[mt].origin),se.setAttribute("rel","stylesheet"),se.setAttribute("href",nt[mt].fPath),wt.appendChild(se)}}nt[mt].helper=ft(nt[mt],wt),nt[mt].cache={},this.fonts.push(nt[mt])}At===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function lt(vt){if(vt){this.chars||(this.chars=[]);var wt,nt=vt.length,mt,Mt=this.chars.length,At;for(wt=0;wt<nt;wt+=1){for(mt=0,At=!1;mt<Mt;)this.chars[mt].style===vt[wt].style&&this.chars[mt].fFamily===vt[wt].fFamily&&this.chars[mt].ch===vt[wt].ch&&(At=!0),mt+=1;At||(this.chars.push(vt[wt]),Mt+=1)}}}function ht(vt,wt,nt){for(var mt=0,Mt=this.chars.length;mt<Mt;){if(this.chars[mt].ch===vt&&this.chars[mt].style===wt&&this.chars[mt].fFamily===nt)return this.chars[mt];mt+=1}return(typeof vt=="string"&&vt.charCodeAt(0)!==13||!vt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",vt,wt,nt)),e}function at(vt,wt,nt){var mt=this.getFontByName(wt),Mt=vt;if(!mt.cache[Mt]){var At=mt.helper;if(vt===" "){var Ht=At.measureText("|"+vt+"|"),Wt=At.measureText("||");mt.cache[Mt]=(Ht-Wt)/100}else mt.cache[Mt]=At.measureText(vt)/100}return mt.cache[Mt]*nt}function pt(vt){for(var wt=0,nt=this.fonts.length;wt<nt;){if(this.fonts[wt].fName===vt)return this.fonts[wt];wt+=1}return this.fonts[0]}function St(vt){var wt=0,nt=vt.charCodeAt(0);if(nt>=55296&&nt<=56319){var mt=vt.charCodeAt(1);mt>=56320&&mt<=57343&&(wt=(nt-55296)*1024+mt-56320+65536)}return wt}function Et(vt,wt){var nt=vt.toString(16)+wt.toString(16);return bt.indexOf(nt)!==-1}function Ft(vt){return vt===rt}function Lt(vt){return vt===it}function Ot(vt){var wt=St(vt);return wt>=ot&&wt<=ut}function Xt(vt){return Ot(vt.substr(0,2))&&Ot(vt.substr(2,2))}function $t(vt){return i.indexOf(vt)!==-1}function Nt(vt,wt){var nt=St(vt.substr(wt,2));if(nt!==n)return!1;var mt=0;for(wt+=2;mt<5;){if(nt=St(vt.substr(wt,2)),nt<tt||nt>et)return!1;mt+=1,wt+=2}return St(vt.substr(wt,2))===o}function Bt(){this.isLoaded=!0}var Dt=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)};Dt.isModifier=Et,Dt.isZeroWidthJoiner=Ft,Dt.isFlagEmoji=Xt,Dt.isRegionalCode=Ot,Dt.isCombinedCharacter=$t,Dt.isRegionalFlag=Nt,Dt.isVariationSelector=Lt,Dt.BLACK_FLAG_CODE_POINT=n;var It={addChars:lt,addFonts:Ct,getCharData:ht,getFontByName:pt,measureText:at,checkLoadedFonts:dt,setIsLoaded:Bt};return Dt.prototype=It,Dt})();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?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 e,i=this.renderableComponents.length;for(e=0;e<i;e+=1)this.renderableComponents[e].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 t={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(e){return t[e]||""}})();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i=t.ef||[];this.effectElements=[];var n,o=i.length,tt;for(n=0;n<o;n+=1)tt=new GroupEffect(i[n],e),this.effectElements.push(tt)}function GroupEffect(t,e){this.init(t,e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,o,tt=this.data.ef;for(i=0;i<n;i+=1){switch(o=null,tt[i].ty){case 0:o=new SliderEffect(tt[i],e,this);break;case 1:o=new AngleEffect(tt[i],e,this);break;case 2:o=new ColorEffect(tt[i],e,this);break;case 3:o=new PointEffect(tt[i],e,this);break;case 4:case 7:o=new CheckboxEffect(tt[i],e,this);break;case 10:o=new LayerIndexEffect(tt[i],e,this);break;case 11:o=new MaskIndexEffect(tt[i],e,this);break;case 5:o=new EffectsManager(tt[i],e);break;default:o=new NoValueEffect(tt[i]);break}o&&this.effectElements.push(o)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,i=this.data.masksProperties.length;e<i;){if(this.data.masksProperties[e].mode!=="n"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var i=e("layer"),n=e("effects"),o=e("shape"),tt=e("text"),et=e("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var it=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(it),this.data.ty===0||this.data.xt?this.compInterface=et(this):this.data.ty===4?(this.layerInterface.shapeInterface=o(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=tt(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=e},initBaseData:function(e,i,n){this.globalData=i,this.comp=n,this.data=e,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(e,i){var n,o=this.dynamicProperties.length;for(n=0;n<o;n+=1)(i||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}};function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,i=this.layers.length,n;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e],n.ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i=t.length,n,o=this.layers.length;for(e=0;e<i;e+=1)for(n=0;n<o;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var n=this.elements,o=this.layers,tt=0,et=o.length;tt<et;)o[tt].ind==e&&(!n[tt]||n[tt]===!0?(this.buildItem(tt),this.addPendingElement(t)):(i.push(n[tt]),n[tt].setAsParent(),o[tt].parent!==void 0?this.buildElementParenting(t,o[tt].parent,i):t.setHierarchy(i))),tt+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift(),i;if(typeof e=="number")i=this.elements[e];else{var n,o=this.elements.length;for(n=0;n<o;n+=1)if(this.elements[n].data.nm===e){i=this.elements[n];break}}return t.length===0?i:i.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,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 e,i=this.finalTransform.mat,n=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<o;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e),n=0;n<o;n+=1)i.multiply(this.hierarchy[n].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<i;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<i;e+=1){var o=this.localTransforms[e].matrix;n.multiply(o)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var tt=this.finalTransform.localOpacity;for(e=0;e<i;e+=1)tt*=this.localTransforms[e].opacity*.01;this.finalTransform.localOpacity=tt}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,n=e.length;for(i=0;i<n;i+=1)this.localTransforms.push(e[i])}}},globalToLocal:function(e){var i=[];i.push(this.finalTransform);for(var n=!0,o=this.comp;n;)o.finalTransform?(o.data.hasMask&&i.splice(0,0,o.finalTransform),o=o.comp):n=!1;var tt,et=i.length,it;for(tt=0;tt<et;tt+=1)it=i[tt].mat.applyToPointArray(0,0,0),e=[e[0]-it[0],e[1]-it[1],0];return e},mHelper:new Matrix};function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,o,tt=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(tt),this.solidPath="";var et,it=this.masksProperties,rt=0,ot=[],ut,bt,st=createElementID(),gt,dt,ft,Ct,lt="clipPath",ht="clip-path";for(o=0;o<tt;o+=1)if((it[o].mode!=="a"&&it[o].mode!=="n"||it[o].inv||it[o].o.k!==100||it[o].o.x)&&(lt="mask",ht="mask"),(it[o].mode==="s"||it[o].mode==="i")&&rt===0?(gt=createNS("rect"),gt.setAttribute("fill","#ffffff"),gt.setAttribute("width",this.element.comp.data.w||0),gt.setAttribute("height",this.element.comp.data.h||0),ot.push(gt)):gt=null,et=createNS("path"),it[o].mode==="n")this.viewData[o]={op:PropertyFactory.getProp(this.element,it[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,it[o],3),elem:et,lastPath:""},n.appendChild(et);else{rt+=1,et.setAttribute("fill",it[o].mode==="s"?"#000000":"#ffffff"),et.setAttribute("clip-rule","nonzero");var at;if(it[o].x.k!==0?(lt="mask",ht="mask",Ct=PropertyFactory.getProp(this.element,it[o].x,0,null,this.element),at=createElementID(),dt=createNS("filter"),dt.setAttribute("id",at),ft=createNS("feMorphology"),ft.setAttribute("operator","erode"),ft.setAttribute("in","SourceGraphic"),ft.setAttribute("radius","0"),dt.appendChild(ft),n.appendChild(dt),et.setAttribute("stroke",it[o].mode==="s"?"#000000":"#ffffff")):(ft=null,Ct=null),this.storedData[o]={elem:et,x:Ct,expan:ft,lastPath:"",lastOperator:"",filterId:at,lastRadius:0},it[o].mode==="i"){bt=ot.length;var pt=createNS("g");for(ut=0;ut<bt;ut+=1)pt.appendChild(ot[ut]);var St=createNS("mask");St.setAttribute("mask-type","alpha"),St.setAttribute("id",st+"_"+rt),St.appendChild(et),n.appendChild(St),pt.setAttribute("mask","url("+getLocationHref()+"#"+st+"_"+rt+")"),ot.length=0,ot.push(pt)}else ot.push(et);it[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:et,lastPath:"",op:PropertyFactory.getProp(this.element,it[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,it[o],3),invRect:gt},this.viewData[o].prop.k||this.drawPath(it[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=createNS(lt),tt=ot.length,o=0;o<tt;o+=1)this.maskElement.appendChild(ot[o]);rt>0&&(this.maskElement.setAttribute("id",st),this.element.maskedElement.setAttribute(ht,"url("+getLocationHref()+"#"+st+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var o=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+")")),o.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 t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},MaskElement.prototype.drawPath=function(t,e,i){var n=" M"+e.v[0][0]+","+e.v[0][1],o,tt;for(tt=e._length,o=1;o<tt;o+=1)n+=" C"+e.o[o-1][0]+","+e.o[o-1][1]+" "+e.i[o][0]+","+e.i[o][1]+" "+e.v[o][0]+","+e.v[o][1];if(e.c&&tt>1&&(n+=" C"+e.o[o-1][0]+","+e.o[o-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==n){var et="";i.elem&&(e.c&&(et=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",et)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(n,o){var tt=createNS("filter");return tt.setAttribute("id",n),o!==!0&&(tt.setAttribute("filterUnits","objectBoundingBox"),tt.setAttribute("x","0%"),tt.setAttribute("y","0%"),tt.setAttribute("width","100%"),tt.setAttribute("height","100%")),tt}function i(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),n}return t})(),featureSupport=(function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,o=createElementID(),tt=filtersFactory.createFilter(o,!0),et=0;this.filters=[];var it;for(e=0;e<n;e+=1){it=null;var rt=t.data.ef[e].ty;if(registeredEffects$1[rt]){var ot=registeredEffects$1[rt].effect;it=new ot(tt,t.effectsManager.effectElements[e],t,idPrefix+et,i),i=idPrefix+et,registeredEffects$1[rt].countsAsEffect&&(et+=1)}it&&this.filters.push(it)}et&&(t.globalData.defs.appendChild(tt),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,n=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n};function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,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 e=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),e=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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 n=createNS("clipPath"),o=createNS("path");o.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var tt=createElementID();if(n.setAttribute("id",tt),n.appendChild(o),this.globalData.defs.appendChild(n),this.checkMasks()){var et=createNS("g");et.setAttribute("clip-path","url("+getLocationHref()+"#"+tt+")"),et.appendChild(this.layerElement),this.transformedElement=et,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+tt+")")}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("op
6acity",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(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var i=this.layerId+"_"+e,n,o,tt,et;if(e===1||e===3){var it=createNS("mask");it.setAttribute("id",i),it.setAttribute("mask-type",e===3?"luminance":"alpha"),tt=createNS("use"),tt.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),it.appendChild(tt),this.globalData.defs.appendChild(it),!featureSupport.maskType&&e===1&&(it.setAttribute("mask-type","luminance"),n=createElementID(),o=filtersFactory.createFilter(n),this.globalData.defs.appendChild(o),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),et.appendChild(tt),it.appendChild(et),et.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(e===2){var rt=createNS("mask");rt.setAttribute("id",i),rt.setAttribute("mask-type","alpha");var ot=createNS("g");rt.appendChild(ot),n=createElementID(),o=filtersFactory.createFilter(n);var ut=createNS("feComponentTransfer");ut.setAttribute("in","SourceGraphic"),o.appendChild(ut);var bt=createNS("feFuncA");bt.setAttribute("type","table"),bt.setAttribute("tableValues","1.0 0.0"),ut.appendChild(bt),this.globalData.defs.appendChild(o);var st=createNS("rect");st.setAttribute("width",this.comp.data.w),st.setAttribute("height",this.comp.data.h),st.setAttribute("x","0"),st.setAttribute("y","0"),st.setAttribute("fill","#ffffff"),st.setAttribute("opacity","0"),ot.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),ot.appendChild(st),tt=createNS("use"),tt.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ot.appendChild(tt),featureSupport.maskType||(rt.setAttribute("mask-type","luminance"),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),ot.appendChild(st),et.appendChild(this.layerElement),ot.appendChild(et)),this.globalData.defs.appendChild(rt)}this.matteMasks[e]=i}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var t={initElement:function(i,n,o){this.initFrame(),this.initBaseData(i,n,o),this.initTransform(i,n,o),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(t)],RenderableDOMElement)})();function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,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 t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(e){var i,n=this.shapeModifiers.length;for(i=0;i<n;i+=1)this.shapeModifiers[i].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var i=0,n=this.shapeModifiers.length;i<n;)if(this.shapeModifiers[i].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,i=this.shapes.length;for(e=0;e<i;e+=1)this.shapes[e].sh.reset();i=this.shapeModifiers.length;var n;for(e=i-1;e>=0&&(n=this.shapeModifiers[e].processShapes(this._isFirstFrame),!n);e-=1);}},searchProcessedElement:function(e){for(var i=this.processedElements,n=0,o=i.length;n<o;){if(i[n].elem===e)return i[n].pos;n+=1}return 0},addProcessedElement:function(e,i){for(var n=this.processedElements,o=n.length;o;)if(o-=1,n[o].elem===e){n[o].pos=i;return}n.push(new ProcessedElement(e,i))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};
vendor: 42,935 bytes, line 6
6function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var n=0,o=t.length;n<o;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(t,e,i,n){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,tt=e.length||0,et;for(o=0;o<tt;o+=1)et=PropertyFactory.getProp(t,e[o].v,0,0,this),this.k=et.k||this.k,this.dataProps[o]={n:e[o].n,p:et};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<i;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",e.p*4);var n=e.k.k[0].s?e.k.k[0].s.length-e.p*4:e.k.k.length-e.p*4;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2,o;i<n;){if(o=Math.abs(t[i*4]-t[e*4+i*2]),o>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i=this.data.p*4,n,o;for(e=0;e<i;e+=1)n=e%4===0?100:255,o=Math.round(this.prop.v[e]*n),this.c[e]!==o&&(this.c[e]=o,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=this.data.p*4;e<i;e+=1)n=e%2===0?100:1,o=e%2===0?Math.round(this.prop.v[e]*100):this.prop.v[e],this.o[e-this.data.p*4]!==o&&(this.o[e-this.data.p*4]=o,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),n=createNS(e.t===1?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var o=[],tt,et,it;for(it=e.g.p*4,et=0;et<it;et+=4)tt=createNS("stop"),n.appendChild(tt),o.push(tt);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=n,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,o,tt=createNS("mask"),et=createNS("path");tt.appendChild(et);var it=createElementID(),rt=createElementID();tt.setAttribute("id",rt);var ot=createNS(t.t===1?"linearGradient":"radialGradient");ot.setAttribute("id",it),ot.setAttribute("spreadMethod","pad"),ot.setAttribute("gradientUnits","userSpaceOnUse"),o=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var ut=this.stops;for(n=t.g.p*4;n<o;n+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),ot.appendChild(i),ut.push(i);et.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+it+")"),t.ty==="gs"&&(et.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),et.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&et.setAttribute("stroke-miterlimit",t.ml)),this.of=ot,this.ms=tt,this.ost=ut,this.maskId=rt,e.msElem=et}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(e,i,n,o){if(i===0)return"";var tt=e.o,et=e.i,it=e.v,rt,ot=" M"+o.applyToPointStringified(it[0][0],it[0][1]);for(rt=1;rt<i;rt+=1)ot+=" C"+o.applyToPointStringified(tt[rt-1][0],tt[rt-1][1])+" "+o.applyToPointStringified(et[rt][0],et[rt][1])+" "+o.applyToPointStringified(it[rt][0],it[rt][1]);return n&&i&&(ot+=" C"+o.applyToPointStringified(tt[rt-1][0],tt[rt-1][1])+" "+o.applyToPointStringified(et[0][0],et[0][1])+" "+o.applyToPointStringified(it[0][0],it[0][1]),ot+="z"),ot},SVGElementsRenderer=(function(){var t=new Matrix,e=new Matrix,i={createRenderFunction:n};function n(bt){switch(bt.ty){case"fl":return it;case"gf":return ot;case"gs":return rt;case"st":return ut;case"sh":case"el":case"rc":case"sr":return et;case"tr":return o;case"no":return tt;default:return null}}function o(bt,st,gt){(gt||st.transform.op._mdf)&&st.transform.container.setAttribute("opacity",st.transform.op.v),(gt||st.transform.mProps._mdf)&&st.transform.container.setAttribute("transform",st.transform.mProps.v.to2dCSS())}function tt(){}function et(bt,st,gt){var dt,ft,Ct,lt,ht,at,pt=st.styles.length,St=st.lvl,Et,Ft,Lt,Ot;for(at=0;at<pt;at+=1){if(lt=st.sh._mdf||gt,st.styles[at].lvl<St){for(Ft=e.reset(),Lt=St-st.styles[at].lvl,Ot=st.transformers.length-1;!lt&&Lt>0;)lt=st.transformers[Ot].mProps._mdf||lt,Lt-=1,Ot-=1;if(lt)for(Lt=St-st.styles[at].lvl,Ot=st.transformers.length-1;Lt>0;)Ft.multiply(st.transformers[Ot].mProps.v),Lt-=1,Ot-=1}else Ft=t;if(Et=st.sh.paths,ft=Et._length,lt){for(Ct="",dt=0;dt<ft;dt+=1)ht=Et.shapes[dt],ht&&ht._length&&(Ct+=buildShapeString(ht,ht._length,ht.c,Ft));st.caches[at]=Ct}else Ct=st.caches[at];st.styles[at].d+=bt.hd===!0?"":Ct,st.styles[at]._mdf=lt||st.styles[at]._mdf}}function it(bt,st,gt){var dt=st.style;(st.c._mdf||gt)&&dt.pElem.setAttribute("fill","rgb("+bmFloor(st.c.v[0])+","+bmFloor(st.c.v[1])+","+bmFloor(st.c.v[2])+")"),(st.o._mdf||gt)&&dt.pElem.setAttribute("fill-opacity",st.o.v)}function rt(bt,st,gt){ot(bt,st,gt),ut(bt,st,gt)}function ot(bt,st,gt){var dt=st.gf,ft=st.g._hasOpacity,Ct=st.s.v,lt=st.e.v;if(st.o._mdf||gt){var ht=bt.ty==="gf"?"fill-opacity":"stroke-opacity";st.style.pElem.setAttribute(ht,st.o.v)}if(st.s._mdf||gt){var at=bt.t===1?"x1":"cx",pt=at==="x1"?"y1":"cy";dt.setAttribute(at,Ct[0]),dt.setAttribute(pt,Ct[1]),ft&&!st.g._collapsable&&(st.of.setAttribute(at,Ct[0]),st.of.setAttribute(pt,Ct[1]))}var St,Et,Ft,Lt;if(st.g._cmdf||gt){St=st.cst;var Ot=st.g.c;for(Ft=St.length,Et=0;Et<Ft;Et+=1)Lt=St[Et],Lt.setAttribute("offset",Ot[Et*4]+"%"),Lt.setAttribute("stop-color","rgb("+Ot[Et*4+1]+","+Ot[Et*4+2]+","+Ot[Et*4+3]+")")}if(ft&&(st.g._omdf||gt)){var Xt=st.g.o;for(st.g._collapsable?St=st.cst:St=st.ost,Ft=St.length,Et=0;Et<Ft;Et+=1)Lt=St[Et],st.g._collapsable||Lt.setAttribute("offset",Xt[Et*2]+"%"),Lt.setAttribute("stop-opacity",Xt[Et*2+1])}if(bt.t===1)(st.e._mdf||gt)&&(dt.setAttribute("x2",lt[0]),dt.setAttribute("y2",lt[1]),ft&&!st.g._collapsable&&(st.of.setAttribute("x2",lt[0]),st.of.setAttribute("y2",lt[1])));else{var $t;if((st.s._mdf||st.e._mdf||gt)&&($t=Math.sqrt(Math.pow(Ct[0]-lt[0],2)+Math.pow(Ct[1]-lt[1],2)),dt.setAttribute("r",$t),ft&&!st.g._collapsable&&st.of.setAttribute("r",$t)),st.s._mdf||st.e._mdf||st.h._mdf||st.a._mdf||gt){$t||($t=Math.sqrt(Math.pow(Ct[0]-lt[0],2)+Math.pow(Ct[1]-lt[1],2)));var Nt=Math.atan2(lt[1]-Ct[1],lt[0]-Ct[0]),Bt=st.h.v;Bt>=1?Bt=.99:Bt<=-1&&(Bt=-.99);var Dt=$t*Bt,It=Math.cos(Nt+st.a.v)*Dt+Ct[0],vt=Math.sin(Nt+st.a.v)*Dt+Ct[1];dt.setAttribute("fx",It),dt.setAttribute("fy",vt),ft&&!st.g._collapsable&&(st.of.setAttribute("fx",It),st.of.setAttribute("fy",vt))}}}function ut(bt,st,gt){var dt=st.style,ft=st.d;ft&&(ft._mdf||gt)&&ft.dashStr&&(dt.pElem.setAttribute("stroke-dasharray",ft.dashStr),dt.pElem.setAttribute("stroke-dashoffset",ft.dashoffset[0])),st.c&&(st.c._mdf||gt)&&dt.pElem.setAttribute("stroke","rgb("+bmFloor(st.c.v[0])+","+bmFloor(st.c.v[1])+","+bmFloor(st.c.v[2])+")"),(st.o._mdf||gt)&&dt.pElem.setAttribute("stroke-opacity",st.o.v),(st.w._mdf||gt)&&(dt.pElem.setAttribute("stroke-width",st.w.v),dt.msElem&&dt.msElem.setAttribute("stroke-width",st.w.v))}return i})();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,i,n,o=this.stylesList.length,tt,et=[],it=!1;for(n=0;n<o;n+=1){for(tt=this.stylesList[n],it=!1,et.length=0,t=0;t<e;t+=1)i=this.shapes[t],i.styles.indexOf(tt)!==-1&&(et.push(i),it=i._isAnimated||it);et.length>1&&it&&this.setShapesAsAnimated(et)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,n=new SVGStyleData(t,e),o=n.pElem;if(t.ty==="st")i=new SVGStrokeStyleData(this,t,n);else if(t.ty==="fl")i=new SVGFillStyleData(this,t,n);else if(t.ty==="gf"||t.ty==="gs"){var tt=t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new tt(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),o.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new SVGNoStyleData(this,t,n));return(t.ty==="st"||t.ty==="gs")&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),o.setAttribute("fill-opacity","0"),t.lj===1&&o.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&o.setAttribute("fill-rule","evenodd"),t.ln&&o.setAttribute("id",t.ln),t.cl&&o.setAttribute("class",t.cl),t.bm&&(o.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7);var o=ShapePropertyFactory.getShapeProp(this,t,n,this),tt=new SVGShapeData(e,i,o);return this.shapes.push(tt),this.addShapeToModifiers(tt),this.addToAnimatedContents(t,tt),tt},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e=t.styles,i,n=this.stylesList.length;for(i=0;i<n;i+=1)e.indexOf(this.stylesList[i])===-1&&!this.stylesList[i].closed&&e.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,n,o,tt,et){var it=[].concat(tt),rt,ot=t.length-1,ut,bt,st=[],gt=[],dt,ft,Ct;for(rt=ot;rt>=0;rt-=1){if(Ct=this.searchProcessedElement(t[rt]),Ct?e[rt]=i[Ct-1]:t[rt]._render=et,t[rt].ty==="fl"||t[rt].ty==="st"||t[rt].ty==="gf"||t[rt].ty==="gs"||t[rt].ty==="no")Ct?e[rt].style.closed=t[rt].hd:e[rt]=this.createStyleElement(t[rt],o),t[rt]._render&&e[rt].style.pElem.parentNode!==n&&n.appendChild(e[rt].style.pElem),st.push(e[rt].style);else if(t[rt].ty==="gr"){if(!Ct)e[rt]=this.createGroupElement(t[rt]);else for(bt=e[rt].it.length,ut=0;ut<bt;ut+=1)e[rt].prevViewData[ut]=e[rt].it[ut];this.searchShapes(t[rt].it,e[rt].it,e[rt].prevViewData,e[rt].gr,o+1,it,et),t[rt]._render&&e[rt].gr.parentNode!==n&&n.appendChild(e[rt].gr)}else t[rt].ty==="tr"?(Ct||(e[rt]=this.createTransformElement(t[rt],n)),dt=e[rt].transform,it.push(dt)):t[rt].ty==="sh"||t[rt].ty==="rc"||t[rt].ty==="el"||t[rt].ty==="sr"?(Ct||(e[rt]=this.createShapeElement(t[rt],it,o)),this.setElementStyles(e[rt])):t[rt].ty==="tm"||t[rt].ty==="rd"||t[rt].ty==="ms"||t[rt].ty==="pb"||t[rt].ty==="zz"||t[rt].ty==="op"?(Ct?(ft=e[rt],ft.closed=!1):(ft=ShapeModifiers.getModifier(t[rt].ty),ft.init(this,t[rt]),e[rt]=ft,this.shapeModifiers.push(ft)),gt.push(ft)):t[rt].ty==="rp"&&(Ct?(ft=e[rt],ft.closed=!0):(ft=ShapeModifiers.getModifier(t[rt].ty),e[rt]=ft,ft.init(this,t,rt,e),this.shapeModifiers.push(ft),et=!1),gt.push(ft));this.addProcessedElement(t[rt],rt+1)}for(ot=st.length,rt=0;rt<ot;rt+=1)st[rt].closed=!0;for(ot=gt.length,rt=0;rt<ot;rt+=1)gt[rt].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e=this.animatedContents.length,i;for(t=0;t<e;t+=1)i=this.animatedContents[t],(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(t,e,i,n,o,tt){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=o,this.p=tt,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(t,e,i,n,o,tt){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 et=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,et=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,et=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,et=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,et=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,et=!0),tt.length&&(this.p[0]!==tt[0]||this.p[1]!==tt[1]||this.p[4]!==tt[4]||this.p[5]!==tt[5]||this.p[12]!==tt[12]||this.p[13]!==tt[13])&&(this.p=tt,this._mdf.p=!0,et=!0),et};function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,o=this.effectsSequence.length,tt=t||this.data.d.k[this.keysIndex].s;for(n=0;n<o;n+=1)i!==this.keysIndex?tt=this.effectsSequence[n](tt,tt.t):tt=this.effectsSequence[n](this.currentData,tt.t);e!==tt&&this.setCurrentData(tt),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],i=0,n=t.length,o,tt,et=!1,it=!1,rt="";i<n;)et=it,it=!1,o=t.charCodeAt(i),rt=t.charAt(i),FontManager.isCombinedCharacter(o)?et=!0:o>=55296&&o<=56319?FontManager.isRegionalFlag(t,i)?rt=t.substr(i,14):(tt=t.charCodeAt(i+1),tt>=56320&&tt<=57343&&(FontManager.isModifier(o,tt)?(rt=t.substr(i,2),et=!0):FontManager.isFlagEmoji(t.substr(i,4))?rt=t.substr(i,4):rt=t.substr(i,2))):o>56319?(tt=t.charCodeAt(i+1),FontManager.isVariationSelector(o)&&(et=!0)):FontManager.isZeroWidthJoiner(o)&&(et=!0,it=!0),et?(e[e.length-1]+=rt,et=!1):e.push(rt),i+=rt.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,n=[],o,tt,et,it=0,rt,ot=i.m.g,ut=0,bt=0,st=0,gt=[],dt=0,ft=0,Ct,lt,ht=e.getFontByName(t.f),at,pt=0,St=getFontProperties(ht);t.fWeight=St.weight,t.fStyle=St.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),tt=t.finalText.length,t.finalLineHeight=t.lh;var Et=t.tr/1e3*t.finalSize,Ft;if(t.sz)for(var Lt=!0,Ot=t.sz[0],Xt=t.sz[1],$t,Nt;Lt;){Nt=this.buildFinalText(t.t),$t=0,dt=0,tt=Nt.length,Et=t.tr/1e3*t.finalSize;var Bt=-1;for(o=0;o<tt;o+=1)Ft=Nt[o].charCodeAt(0),et=!1,Nt[o]===" "?Bt=o:(Ft===13||Ft===3)&&(dt=0,et=!0,$t+=t.finalLineHeight||t.finalSize*1.2),e.chars?(at=e.getCharData(Nt[o],ht.fStyle,ht.fFamily),pt=et?0:at.w*t.finalSize/100):pt=e.measureText(Nt[o],t.f,t.finalSize),dt+pt>Ot&&Nt[o]!==" "?(Bt===-1?tt+=1:o=Bt,$t+=t.finalLineHeight||t.finalSize*1.2,Nt.splice(o,Bt===o?1:0,"\r"),Bt=-1,dt=0):(dt+=pt,dt+=Et);$t+=ht.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Xt<$t?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Nt,tt=t.finalText.length,Lt=!1)}dt=-Et,pt=0;var Dt=0,It;for(o=0;o<tt;o+=1)if(et=!1,It=t.finalText[o],Ft=It.charCodeAt(0),Ft===13||Ft===3?(Dt=0,gt.push(dt),ft=dt>ft?dt:ft,dt=-2*Et,rt="",et=!0,st+=1):rt=It,e.chars?(at=e.getCharData(It,ht.fStyle,e.getFontByName(t.f).fFamily),pt=et?0:at.w*t.finalSize/100):pt=e.measureText(rt,t.f,t.finalSize),It===" "?Dt+=pt+Et:(dt+=pt+Et+Dt,Dt=0),n.push({l:pt,an:pt,add:ut,n:et,anIndexes:[],val:rt,line:st,animatorJustifyOffset:0}),ot==2){if(ut+=pt,rt===""||rt===" "||o===tt-1){for((rt===""||rt===" ")&&(ut-=pt);bt<=o;)n[bt].an=ut,n[bt].ind=it,n[bt].extra=pt,bt+=1;it+=1,ut=0}}else if(ot==3){if(ut+=pt,rt===""||o===tt-1){for(rt===""&&(ut-=pt);bt<=o;)n[bt].an=ut,n[bt].ind=it,n[bt].extra=pt,bt+=1;ut=0,it+=1}}else n[it].ind=it,n[it].extra=0,it+=1;if(t.l=n,ft=dt>ft?dt:ft,gt.push(dt),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=ft,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=gt;var vt=i.a,wt,nt;lt=vt.length;var mt,Mt,At=[];for(Ct=0;Ct<lt;Ct+=1){for(wt=vt[Ct],wt.a.sc&&(t.strokeColorAnim=!0),wt.a.sw&&(t.strokeWidthAnim=!0),(wt.a.fc||wt.a.fh||wt.a.fs||wt.a.fb)&&(t.fillColorAnim=!0),Mt=0,mt=wt.s.b,o=0;o<tt;o+=1)nt=n[o],nt.anIndexes[Ct]=Mt,(mt==1&&nt.val!==""||mt==2&&nt.val!==""&&nt.val!==" "||mt==3&&(nt.n||nt.val==" "||o==tt-1)||mt==4&&(nt.n||o==tt-1))&&(wt.s.rn===1&&At.push(Mt),Mt+=1);i.a[Ct].s.totalChars=Mt;var Ht=-1,Wt;if(wt.s.rn===1)for(o=0;o<tt;o+=1)nt=n[o],Ht!=nt.anIndexes[Ct]&&(Ht=nt.anIndexes[Ct],Wt=At.splice(Math.floor(Math.random()*At.length),1)[0]),nt.anIndexes[Ct]=Wt}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=ht.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var t=Math.max,e=Math.min,i=Math.floor;function n(tt,et){this._currentTextLength=-1,this.k=!1,this.data=et,this.elem=tt,this.comp=tt.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(tt),this.s=PropertyFactory.getProp(tt,et.s||{k:0},0,0,this),"e"in et?this.e=PropertyFactory.getProp(tt,et.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(tt,et.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(tt,et.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(tt,et.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(tt,et.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(tt,et.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(et){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var it=0,rt=0,ot=1,ut=1;this.ne.v>0?it=this.ne.v/100:rt=-this.ne.v/100,this.xe.v>0?ot=1-this.xe.v/100:ut=1+this.xe.v/100;var bt=BezierFactory.getBezierEasing(it,rt,ot,ut).get,st=0,gt=this.finalS,dt=this.finalE,ft=this.data.sh;if(ft===2)dt===gt?st=et>=dt?1:0:st=t(0,e(.5/(dt-gt)+(et-gt)/(dt-gt),1)),st=bt(st);else if(ft===3)dt===gt?st=et>=dt?0:1:st=1-t(0,e(.5/(dt-gt)+(et-gt)/(dt-gt),1)),st=bt(st);else if(ft===4)dt===gt?st=0:(st=t(0,e(.5/(dt-gt)+(et-gt)/(dt-gt),1)),st<.5?st*=2:st=1-2*(st-.5)),st=bt(st);else if(ft===5){if(dt===gt)st=0;else{var Ct=dt-gt;et=e(t(0,et+.5-gt),dt-gt);var lt=-Ct/2+et,ht=Ct/2;st=Math.sqrt(1-lt*lt/(ht*ht))}st=bt(st)}else ft===6?(dt===gt?st=0:(et=e(t(0,et+.5-gt),dt-gt),st=(1+Math.cos(Math.PI+Math.PI*2*et/(dt-gt)))/2),st=bt(st)):(et>=i(gt)&&(et-gt<0?st=t(0,e(e(dt,1)-(gt-et),1)):st=t(0,e(dt-et,1))),st=bt(st));if(this.sm.v!==100){var at=this.sm.v*.01;at===0&&(at=1e-8);var pt=.5-at*.5;st<pt?st=0:(st=(st-pt)/at,st>1&&(st=1))}return st*this.a.v},getValue:function(et){this.iterateDynamicProperties(),this._mdf=et||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,et&&this.data.r===2&&(this.e.v=this._currentTextLength);var it=this.data.r===2?1:100/this.data.totalChars,rt=this.o.v/it,ot=this.s.v/it+rt,ut=this.e.v/it+rt;if(ot>ut){var bt=ot;ot=ut,ut=bt}this.finalS=ot,this.finalE=ut}},extendPrototype([DynamicPropertyContainer],n);function o(tt,et,it){return new n(tt,et)}return{getTextSelectorProp:o}})();function TextAnimatorDataProperty(t,e,i){var n={propType:!1},o=PropertyFactory.getProp,tt=e.a;this.a={r:tt.r?o(t,tt.r,0,degToRads,i):n,rx:tt.rx?o(t,tt.rx,0,degToRads,i):n,ry:tt.ry?o(t,tt.ry,0,degToRads,i):n,sk:tt.sk?o(t,tt.sk,0,degToRads,i):n,sa:tt.sa?o(t,tt.sa,0,degToRads,i):n,s:tt.s?o(t,tt.s,1,.01,i):n,a:tt.a?o(t,tt.a,1,0,i):n,o:tt.o?o(t,tt.o,0,.01,i):n,p:tt.p?o(t,tt.p,1,0,i):n,sw:tt.sw?o(t,tt.sw,0,0,i):n,sc:tt.sc?o(t,tt.sc,1,0,i):n,fc:tt.fc?o(t,tt.fc,1,0,i):n,fh:tt.fh?o(t,tt.fh,0,0,i):n,fs:tt.fs?o(t,tt.fs,0,.01,i):n,fb:tt.fb?o(t,tt.fb,0,.01,i):n,t:tt.t?o(t,tt.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,i,n=PropertyFactory.getProp;for(t=0;t<e;t+=1)i=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(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=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,!(!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,o=this._textData,tt=this.mHelper,et=this._renderType,it=this.renderedLetters.length,rt,ot,ut,bt,st=t.l,gt,dt,ft,Ct,lt,ht,at,pt,St,Et,Ft,Lt,Ot,Xt,$t;if(this._hasMaskedPath){if($t=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Nt=$t.v;this._pathData.r.v&&(Nt=Nt.reverse()),gt={tLength:0,segments:[]},bt=Nt._length-1;var Bt;for(Lt=0,ut=0;ut<bt;ut+=1)Bt=bez.buildBezierData(Nt.v[ut],Nt.v[ut+1],[Nt.o[ut][0]-Nt.v[ut][0],Nt.o[ut][1]-Nt.v[ut][1]],[Nt.i[ut+1][0]-Nt.v[ut+1][0],Nt.i[ut+1][1]-Nt.v[ut+1][1]]),gt.tLength+=Bt.segmentLength,gt.segments.push(Bt),Lt+=Bt.segmentLength;ut=bt,$t.v.c&&(Bt=bez.buildBezierData(Nt.v[ut],Nt.v[0],[Nt.o[ut][0]-Nt.v[ut][0],Nt.o[ut][1]-Nt.v[ut][1]],[Nt.i[0][0]-Nt.v[0][0],Nt.i[0][1]-Nt.v[0][1]]),gt.tLength+=Bt.segmentLength,gt.segments.push(Bt),Lt+=Bt.segmentLength),this._pathData.pi=gt}if(gt=this._pathData.pi,dt=this._pathData.f.v,at=0,ht=1,Ct=0,lt=!0,Et=gt.segments,dt<0&&$t.v.c)for(gt.tLength<Math.abs(dt)&&(dt=-Math.abs(dt)%gt.tLength),at=Et.length-1,St=Et[at].points,ht=St.length-1;dt<0;)dt+=St[ht].partialLength,ht-=1,ht<0&&(at-=1,St=Et[at].points,ht=St.length-1);St=Et[at].points,pt=St[ht-1],ft=St[ht],Ft=ft.partialLength}bt=st.length,rt=0,ot=0;var Dt=t.finalSize*1.2*.714,It=!0,vt,wt,nt,mt,Mt;mt=n.length;var At,Ht=-1,Wt,Yt,te,ee=dt,se=at,he=ht,fe=-1,re,Pt,ct,xt,yt,_t,Tt,kt,Vt="",zt=this.defaultPropsArray,Gt;if(t.j===2||t.j===1){var Rt=0,Zt=0,Qt=t.j===2?-.5:-1,Ut=0,jt=!0;for(ut=0;ut<bt;ut+=1)if(st[ut].n){for(Rt&&(Rt+=Zt);Ut<ut;)st[Ut].animatorJustifyOffset=Rt,Ut+=1;Rt=0,jt=!0}else{for(nt=0;nt<mt;nt+=1)vt=n[nt].a,vt.t.propType&&(jt&&t.j===2&&(Zt+=vt.t.v*Qt),wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),At.length?Rt+=vt.t.v*At[0]*Qt:Rt+=vt.t.v*At*Qt);jt=!1}for(Rt&&(Rt+=Zt);Ut<ut;)st[Ut].animatorJustifyOffset=Rt,Ut+=1}for(ut=0;ut<bt;ut+=1){if(tt.reset(),re=1,st[ut].n)rt=0,ot+=t.yOffset,ot+=It?1:0,dt=ee,It=!1,this._hasMaskedPath&&(at=se,ht=he,St=Et[at].points,pt=St[ht-1],ft=St[ht],Ft=ft.partialLength,Ct=0),Vt="",kt="",_t="",Gt="",zt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(fe!==st[ut].line){switch(t.j){case 1:dt+=Lt-t.lineWidths[st[ut].line];break;case 2:dt+=(Lt-t.lineWidths[st[ut].line])/2;break}fe=st[ut].line}Ht!==st[ut].ind&&(st[Ht]&&(dt+=st[Ht].extra),dt+=st[ut].an/2,Ht=st[ut].ind),dt+=i[0]*st[ut].an*.005;var qt=0;for(nt=0;nt<mt;nt+=1)vt=n[nt].a,vt.p.propType&&(wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),At.length?qt+=vt.p.v[0]*At[0]:qt+=vt.p.v[0]*At),vt.a.propType&&(wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),At.length?qt+=vt.a.v[0]*At[0]:qt+=vt.a.v[0]*At);for(lt=!0,this._pathData.a.v&&(dt=st[0].an*.5+(Lt-this._pathData.f.v-st[0].an*.5-st[st.length-1].an*.5)*Ht/(bt-1),dt+=this._pathData.f.v);lt;)Ct+Ft>=dt+qt||!St?(Ot=(dt+qt-Ct)/ft.partialLength,Yt=pt.point[0]+(ft.point[0]-pt.point[0])*Ot,te=pt.point[1]+(ft.point[1]-pt.point[1])*Ot,tt.translate(-i[0]*st[ut].an*.005,-(i[1]*Dt)*.01),lt=!1):St&&(Ct+=ft.partialLength,ht+=1,ht>=St.length&&(ht=0,at+=1,Et[at]?St=Et[at].points:$t.v.c?(ht=0,at=0,St=Et[at].points):(Ct-=ft.partialLength,St=null)),St&&(pt=ft,ft=St[ht],Ft=ft.partialLength));Wt=st[ut].an/2-st[ut].add,tt.translate(-Wt,0,0)}else Wt=st[ut].an/2-st[ut].add,tt.translate(-Wt,0,0),tt.translate(-i[0]*st[ut].an*.005,-i[1]*Dt*.01,0);for(nt=0;nt<mt;nt+=1)vt=n[nt].a,vt.t.propType&&(wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),(rt!==0||t.j!==0)&&(this._hasMaskedPath?At.length?dt+=vt.t.v*At[0]:dt+=vt.t.v*At:At.length?rt+=vt.t.v*At[0]:rt+=vt.t.v*At));for(t.strokeWidthAnim&&(ct=t.sw||0),t.strokeColorAnim&&(t.sc?Pt=[t.sc[0],t.sc[1],t.sc[2]]:Pt=[0,0,0]),t.fillColorAnim&&t.fc&&(xt=[t.fc[0],t.fc[1],t.fc[2]]),nt=0;nt<mt;nt+=1)vt=n[nt].a,vt.a.propType&&(wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),At.length?tt.translate(-vt.a.v[0]*At[0],-vt.a.v[1]*At[1],vt.a.v[2]*At[2]):tt.translate(-vt.a.v[0]*At,-vt.a.v[1]*At,vt.a.v[2]*At));for(nt=0;nt<mt;nt+=1)vt=n[nt].a,vt.s.propType&&(wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),At.length?tt.scale(1+(vt.s.v[0]-1)*At[0],1+(vt.s.v[1]-1)*At[1],1):tt.scale(1+(vt.s.v[0]-1)*At,1+(vt.s.v[1]-1)*At,1));for(nt=0;nt<mt;nt+=1){if(vt=n[nt].a,wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),vt.sk.propType&&(At.length?tt.skewFromAxis(-vt.sk.v*At[0],vt.sa.v*At[1]):tt.skewFromAxis(-vt.sk.v*At,vt.sa.v*At)),vt.r.propType&&(At.length?tt.rotateZ(-vt.r.v*At[2]):tt.rotateZ(-vt.r.v*At)),vt.ry.propType&&(At.length?tt.rotateY(vt.ry.v*At[1]):tt.rotateY(vt.ry.v*At)),vt.rx.propType&&(At.length?tt.rotateX(vt.rx.v*At[0]):tt.rotateX(vt.rx.v*At)),vt.o.propType&&(At.length?re+=(vt.o.v*At[0]-re)*At[0]:re+=(vt.o.v*At-re)*At),t.strokeWidthAnim&&vt.sw.propType&&(At.length?ct+=vt.sw.v*At[0]:ct+=vt.sw.v*At),t.strokeColorAnim&&vt.sc.propType)for(yt=0;yt<3;yt+=1)At.length?Pt[yt]+=(vt.sc.v[yt]-Pt[yt])*At[0]:Pt[yt]+=(vt.sc.v[yt]-Pt[yt])*At;if(t.fillColorAnim&&t.fc){if(vt.fc.propType)for(yt=0;yt<3;yt+=1)At.length?xt[yt]+=(vt.fc.v[yt]-xt[yt])*At[0]:xt[yt]+=(vt.fc.v[yt]-xt[yt])*At;vt.fh.propType&&(At.length?xt=addHueToRGB(xt,vt.fh.v*At[0]):xt=addHueToRGB(xt,vt.fh.v*At)),vt.fs.propType&&(At.length?xt=addSaturationToRGB(xt,vt.fs.v*At[0]):xt=addSaturationToRGB(xt,vt.fs.v*At)),vt.fb.propType&&(At.length?xt=addBrightnessToRGB(xt,vt.fb.v*At[0]):xt=addBrightnessToRGB(xt,vt.fb.v*At))}}for(nt=0;nt<mt;nt+=1)vt=n[nt].a,vt.p.propType&&(wt=n[nt].s,At=wt.getMult(st[ut].anIndexes[nt],o.a[nt].s.totalChars),this._hasMaskedPath?At.length?tt.translate(0,vt.p.v[1]*At[0],-vt.p.v[2]*At[1]):tt.translate(0,vt.p.v[1]*At,-vt.p.v[2]*At):At.length?tt.translate(vt.p.v[0]*At[0],vt.p.v[1]*At[1],-vt.p.v[2]*At[2]):tt.translate(vt.p.v[0]*At,vt.p.v[1]*At,-vt.p.v[2]*At));if(t.strokeWidthAnim&&(_t=ct<0?0:ct),t.strokeColorAnim&&(Tt="rgb("+Math.round(Pt[0]*255)+","+Math.round(Pt[1]*255)+","+Math.round(Pt[2]*255)+")"),t.fillColorAnim&&t.fc&&(kt="rgb("+Math.round(xt[0]*255)+","+Math.round(xt[1]*255)+","+Math.round(xt[2]*255)+")"),this._hasMaskedPath){if(tt.translate(0,-t.ls),tt.translate(0,i[1]*Dt*.01+ot,0),this._pathData.p.v){Xt=(ft.point[1]-pt.point[1])/(ft.point[0]-pt.point[0]);var ne=Math.atan(Xt)*180/Math.PI;ft.point[0]<pt.point[0]&&(ne+=180),tt.rotate(-ne*Math.PI/180)}tt.translate(Yt,te,0),dt-=i[0]*st[ut].an*.005,st[ut+1]&&Ht!==st[ut+1].ind&&(dt+=st[ut].an/2,dt+=t.tr*.001*t.finalSize)}else{switch(tt.translate(rt,ot,0),t.ps&&tt.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:tt.translate(st[ut].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[st[ut].line]),0,0);break;case 2:tt.translate(st[ut].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[st[ut].line])/2,0,0);break}tt.translate(0,-t.ls),tt.translate(Wt,0,0),tt.translate(i[0]*st[ut].an*.005,i[1]*Dt*.01,0),rt+=st[ut].l+t.tr*.001*t.finalSize}et==="html"?Vt=tt.toCSS():et==="svg"?Vt=tt.to2dCSS():zt=[tt.props[0],tt.props[1],tt.props[2],tt.props[3],tt.props[4],tt.props[5],tt.props[6],tt.props[7],tt.props[8],tt.props[9],tt.props[10],tt.props[11],tt.props[12],tt.props[13],tt.props[14],tt.props[15]],Gt=re}it<=ut?(Mt=new LetterProps(Gt,_t,Tt,kt,Vt,zt),this.renderedLetters.push(Mt),it+=1,this.lettersChangedFlag=!0):(Mt=this.renderedLetters[ut],this.lettersChangedFlag=Mt.update(Gt,_t,Tt,kt,Vt,zt)||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(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,n=e.length,o,tt="";for(i=0;i<n;i+=1)e[i].ty==="sh"&&(o=e[i].ks.k,tt+=buildShapeString(o,o.i.length,!0,t));return tt},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,n,o){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0);break}e.translate(n,o,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[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(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,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(t){for(var e=0,i=t.length,n=[],o="";e<i;)t[e]==="\r"||t[e]==="�"?(n.push(o),o=""):o+=t[e],e+=1;return n.push(o),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,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 n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var o=i.fWeight,tt=i.fStyle;this.layerElement.setAttribute("font-style",tt),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",i.t);var et=i.l||[],it=!!this.globalData.fontManager.chars;e=et.length;var rt,ot=this.mHelper,ut="",bt=this.data.singleShape,st=0,gt=0,dt=!0,ft=i.tr*.001*i.finalSize;if(bt&&!it&&!i.sz){var Ct=this.textContainer,lt="start";switch(i.j){case 1:lt="end";break;case 2:lt="middle";break;default:lt="start";break}Ct.setAttribute("text-anchor",lt),Ct.setAttribute("letter-spacing",ft);var ht=this.buildTextContents(i.finalText);for(e=ht.length,gt=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)rt=this.textSpans[t].span||createNS("tspan"),rt.textContent=ht[t],rt.setAttribute("x",0),rt.setAttribute("y",gt),rt.style.display="inherit",Ct.appendChild(rt),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=rt,gt+=i.finalLineHeight;this.layerElement.appendChild(Ct)}else{var at=this.textSpans.length,pt;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!it||!bt||t===0){if(rt=at>t?this.textSpans[t].span:createNS(it?"g":"text"),at<=t){if(rt.setAttribute("stroke-linecap","butt"),rt.setAttribute("stroke-linejoin","round"),rt.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=rt,it){var St=createNS("g");rt.appendChild(St),this.textSpans[t].childSpan=St}this.textSpans[t].span=rt,this.layerElement.appendChild(rt)}rt.style.display="inherit"}if(ot.reset(),bt&&(et[t].n&&(st=-ft,gt+=i.yOffset,gt+=dt?1:0,dt=!1),this.applyTextPropertiesToMatrix(i,ot,et[t].line,st,gt),st+=et[t].l||0,st+=ft),it){pt=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var Et;if(pt.t===1)Et=new SVGCompElement(pt.data,this.globalData,this);else{var Ft=emptyShapeData;pt.data&&pt.data.shapes&&(Ft=this.buildShapeData(pt.data,i.finalSize)),Et=new SVGShapeElement(Ft,this.globalData,this)}if(this.textSpans[t].glyph){var Lt=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(Lt.layerElement),Lt.destroy()}this.textSpans[t].glyph=Et,Et._debug=!0,Et.prepareFrame(0),Et.renderFrame(),this.textSpans[t].childSpan.appendChild(Et.layerElement),pt.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else bt&&rt.setAttribute("transform","translate("+ot.props[12]+","+ot.props[13]+")"),rt.textContent=et[t].val,rt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}bt&&rt&&rt.setAttribute("d",ut)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<e;t+=1)i=this.textSpans[t].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 t,e,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;e=n.length;var o,tt,et;for(t=0;t<e;t+=1)n[t].n||(o=i[t],tt=this.textSpans[t].span,et=this.textSpans[t].glyph,et&&et.renderFrame(),o._mdf.m&&tt.setAttribute("transform",o.m),o._mdf.o&&tt.setAttribute("op
6acity",o.o),o._mdf.sw&&tt.setAttribute("stroke-width",o.sw),o._mdf.sc&&tt.setAttribute("stroke",o.sc),o._mdf.fc&&tt.setAttribute("fill",o.fc))}};function ISolidElement(t,e,i){this.initElement(t,e,i)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var o=createElementID();i.setAttribute("id",o),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(i);else{var o=e[n],tt=o.getMatte(this.layers[t].tt);i.setMatte(tt)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,o=this.elements[n],tt=o.getMatte(this.layers[e].tt);t.setMatte(tt);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var n=0,o;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&
vendor: 5,450 bytes, line 6
6(o=this.elements[n].getBaseElement()),n+=1;o?this.layerElement.insertBefore(i,o):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(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var n=createNS("title"),o=createElementID();n.setAttribute("id",o),n.textContent=e.title,this.svgElement.appendChild(n),i+=o}if(e&&e.description){var tt=createNS("desc"),et=createElementID();tt.setAttribute("id",et),tt.textContent=e.description,this.svgElement.appendChild(tt),i+=" "+et}i&&this.svgElement.setAttribute("aria-labelledby",i);var it=createNS("defs");this.svgElement.appendChild(it);var rt=createNS("g");this.svgElement.appendChild(rt),this.layerElement=rt,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:it,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(e){var i,n=e.length,o="_";for(i=0;i<n;i+=1)o+=e[i].transform.key+"_";var tt=this.sequences[o];return tt||(tt={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[o]=tt,this.sequenceList.push(tt)),tt},processSequence:function(e,i){for(var n=0,o=e.transforms.length,tt=i;n<o&&!i;){if(e.transforms[n].transform.mProps._mdf){tt=!0;break}n+=1}if(tt)for(e.finalTransform.reset(),n=o-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=tt},processSequences:function(e){var i,n=this.sequenceList.length;for(i=0;i<n;i+=1)this.processSequence(this.sequenceList[i],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",i=null,n=null,o=null;function tt(){var rt=createNS("svg"),ot=createNS("filter"),ut=createNS("feColorMatrix");return ot.setAttribute("id",e),ut.setAttribute("type","matrix"),ut.setAttribute("color-interpolation-filters","sRGB"),ut.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"),ot.appendChild(ut),rt.appendChild(ot),rt.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(rt.style.display="none"),rt}function et(){i||(o=tt(),document.body.appendChild(o),i=createTag("canvas"),n=i.getContext("2d"),n.filter="url
6(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function it(rt){return i||et(),i.width=rt.width,i.height=rt.height,n.filter="url(#"+e+")",i}return{load:et,get:it}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(t){var e,i=t.data.ef?t.data.ef.length:0;this.filters=[];var n;for(e=0;e<i;e+=1){n=null;var o=t.data.ef[e].ty;if(registeredEffects[o]){var tt=registeredEffects[o].effect;n=new tt(t.effectsManager.effectElements[e],t)}n&&this.filters.push(n)}this.filters.length&&t.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,n=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n};function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,n=this.masksProperties.length,o=!1;for(i=0;i<n;i+=1)this.masksProperties[i].mode!=="n"&&(o=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,i,n=this.masksProperties.length,o,tt,et;for(e.beginPath(),i=0;i<n;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),et=this.viewData[i].v,o=t.applyToPointArray(et.v[0][0],et.v[0][1],0),e.moveTo(o[0],o[1]);var it,rt=et._length;for(it=1;it<rt;it+=1)tt=t.applyToTriplePoints(et.o[it-1],et.i[it],et.v[it]),e.bezierCurveTo(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5]);tt=t.applyToTriplePoints(et.o[it-1],et.i[0],et.v[0]),e.bezierCurveTo(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5])}this.element.globalData.renderer.save(!0),e.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 e=this.globalData.canvasContext,i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),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 e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);e.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(e){e.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 e=this.buffers[0],i=e.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 e=this.buffers[1],i=e.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 n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var o=assetLoader.getLumaCanvas(this.canvasContext.canvas),tt=o.getContext("2d");tt.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(o,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,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(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){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;
vendor: 117,456 bytes, line 6
6function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o=4;e.ty==="rc"?o=5:e.ty==="el"?o=6:e.ty==="sr"&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,o,t);var tt,et=i.length,it;for(tt=0;tt<et;tt+=1)i[tt].closed||(it={transforms:n.addTransformSequence(i[tt].transforms),trNodes:[]},this.styledShapes.push(it),i[tt].elements.push(it))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},n={};if(t.ty==="fl"||t.ty==="st"?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(t.ty==="gf"||t.ty==="gs")&&(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],t.lj==1&&(i.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(i.wi=n.w.v),t.d){var o=new DashProperty(this,t.d,"canvas",this);n.d=o,n.d.k||(i.da=n.d.dashArray,i.do=n.d.dashoffset[0])}}else i.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(i),n.style=i,n},CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t},CVShapeElement.prototype.createTransformElement=function(t){var e={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return e},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,n,o){var tt,et=t.length-1,it,rt,ot=[],ut=[],bt,st,gt,dt=[].concat(o);for(tt=et;tt>=0;tt-=1){if(bt=this.searchProcessedElement(t[tt]),bt?e[tt]=i[bt-1]:t[tt]._shouldRender=n,t[tt].ty==="fl"||t[tt].ty==="st"||t[tt].ty==="gf"||t[tt].ty==="gs")bt?e[tt].style.closed=!1:e[tt]=this.createStyleElement(t[tt],dt),ot.push(e[tt].style);else if(t[tt].ty==="gr"){if(!bt)e[tt]=this.createGroupElement(t[tt]);else for(rt=e[tt].it.length,it=0;it<rt;it+=1)e[tt].prevViewData[it]=e[tt].it[it];this.searchShapes(t[tt].it,e[tt].it,e[tt].prevViewData,n,dt)}else t[tt].ty==="tr"?(bt||(gt=this.createTransformElement(t[tt]),e[tt]=gt),dt.push(e[tt]),this.addTransformToStyleList(e[tt])):t[tt].ty==="sh"||t[tt].ty==="rc"||t[tt].ty==="el"||t[tt].ty==="sr"?bt||(e[tt]=this.createShapeElement(t[tt])):t[tt].ty==="tm"||t[tt].ty==="rd"||t[tt].ty==="pb"||t[tt].ty==="zz"||t[tt].ty==="op"?(bt?(st=e[tt],st.closed=!1):(st=ShapeModifiers.getModifier(t[tt].ty),st.init(this,t[tt]),e[tt]=st,this.shapeModifiers.push(st)),ut.push(st)):t[tt].ty==="rp"&&(bt?(st=e[tt],st.closed=!0):(st=ShapeModifiers.getModifier(t[tt].ty),e[tt]=st,st.init(this,t,tt,e),this.shapeModifiers.push(st),n=!1),ut.push(st));this.addProcessedElement(t[tt],tt+1)}for(this.removeTransformFromStyleList(),this.closeStyles(ot),et=ut.length,tt=0;tt<et;tt+=1)ut[tt].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e=this.stylesList.length,i,n,o,tt,et,it,rt=this.globalData.renderer,ot=this.globalData.canvasContext,ut,bt;for(t=0;t<e;t+=1)if(bt=this.stylesList[t],ut=bt.type,!((ut==="st"||ut==="gs")&&bt.wi===0||!bt.data._shouldRender||bt.coOp===0||this.globalData.currentGlobalAlpha===0)){for(rt.save(),et=bt.elements,ut==="st"||ut==="gs"?(rt.ctxStrokeStyle(ut==="st"?bt.co:bt.grd),rt.ctxLineWidth(bt.wi),rt.ctxLineCap(bt.lc),rt.ctxLineJoin(bt.lj),rt.ctxMiterLimit(bt.ml||0)):rt.ctxFillStyle(ut==="fl"?bt.co:bt.grd),rt.ctxOpacity(bt.coOp),ut!=="st"&&ut!=="gs"&&ot.beginPath(),rt.ctxTransform(bt.preTransforms.finalTransform.props),n=et.length,i=0;i<n;i+=1){for((ut==="st"||ut==="gs")&&(ot.beginPath(),bt.da&&(ot.setLineDash(bt.da),ot.lineDashOffset=bt.do)),it=et[i].trNodes,tt=it.length,o=0;o<tt;o+=1)it[o].t==="m"?ot.moveTo(it[o].p[0],it[o].p[1]):it[o].t==="c"?ot.bezierCurveTo(it[o].pts[0],it[o].pts[1],it[o].pts[2],it[o].pts[3],it[o].pts[4],it[o].pts[5]):ot.closePath();(ut==="st"||ut==="gs")&&(rt.ctxStroke(),bt.da&&ot.setLineDash(this.dashResetter))}ut!=="st"&&ut!=="gs"&&this.globalData.renderer.ctxFill(bt.r),rt.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,n){var o,tt=e.length-1,et;for(et=t,o=tt;o>=0;o-=1)e[o].ty==="tr"?(et=i[o].transform,this.renderShapeTransform(t,et)):e[o].ty==="sh"||e[o].ty==="el"||e[o].ty==="rc"||e[o].ty==="sr"?this.renderPath(e[o],i[o]):e[o].ty==="fl"?this.renderFill(e[o],i[o],et):e[o].ty==="st"?this.renderStroke(e[o],i[o],et):e[o].ty==="gf"||e[o].ty==="gs"?this.renderGradientFill(e[o],i[o],et):e[o].ty==="gr"?this.renderShape(et,e[o].it,i[o].it):e[o].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i=t.trNodes,n=e.paths,o,tt,et,it=n._length;i.length=0;var rt=t.transforms.finalTransform;for(et=0;et<it;et+=1){var ot=n.shapes[et];if(ot&&ot.v){for(tt=ot._length,o=1;o<tt;o+=1)o===1&&i.push({t:"m",p:rt.applyToPointArray(ot.v[0][0],ot.v[0][1],0)}),i.push({t:"c",pts:rt.applyToTriplePoints(ot.o[o-1],ot.i[o],ot.v[o])});tt===1&&i.push({t:"m",p:rt.applyToPointArray(ot.v[0][0],ot.v[0][1],0)}),ot.c&&tt&&(i.push({t:"c",pts:rt.applyToTriplePoints(ot.o[o-1],ot.i[0],ot.v[0])}),i.push({t:"z"}))}}t.trNodes=i}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var i,n=e.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var n=e.style,o;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var tt=this.globalData.canvasContext,et=e.s.v,it=e.e.v;if(t.t===1)o=tt.createLinearGradient(et[0],et[1],it[0],it[1]);else{var rt=Math.sqrt(Math.pow(et[0]-it[0],2)+Math.pow(et[1]-it[1],2)),ot=Math.atan2(it[1]-et[1],it[0]-et[0]),ut=e.h.v;ut>=1?ut=.99:ut<=-1&&(ut=-.99);var bt=rt*ut,st=Math.cos(ot+e.a.v)*bt+et[0],gt=Math.sin(ot+e.a.v)*bt+et[1];o=tt.createRadialGradient(st,gt,0,et[0],et[1],rt)}var dt,ft=t.g.p,Ct=e.g.c,lt=1;for(dt=0;dt<ft;dt+=1)e.g._hasOpacity&&e.g._collapsable&&(lt=e.g.o[dt*2+1]),o.addColorStop(Ct[dt*4]/100,"rgba("+Ct[dt*4+1]+","+Ct[dt*4+2]+","+Ct[dt*4+3]+","+lt+")");n.grd=o}n.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var n=e.style,o=e.d;o&&(o._mdf||this._isFirstFrame)&&(n.da=o.dashArray,n.do=o.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n=this.globalData.fontManager.getFontByName(t.f),o,tt,et=t.l,it=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,tt=t.finalText.length;var rt,ot,ut,bt,st,gt,dt,ft,Ct,lt,ht=this.data.singleShape,at=t.tr*.001*t.finalSize,pt=0,St=0,Et=!0,Ft=0;for(o=0;o<tt;o+=1){rt=this.globalData.fontManager.getCharData(t.finalText[o],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),ot=rt&&rt.data||{},it.reset(),ht&&et[o].n&&(pt=-at,St+=t.yOffset,St+=Et?1:0,Et=!1),st=ot.shapes?ot.shapes[0].it:[],dt=st.length,it.scale(t.finalSize/100,t.finalSize/100),ht&&this.applyTextPropertiesToMatrix(t,it,et[o].line,pt,St),Ct=createSizedArray(dt-1);var Lt=0;for(gt=0;gt<dt;gt+=1)if(st[gt].ty==="sh"){for(bt=st[gt].ks.k.i.length,ft=st[gt].ks.k,lt=[],ut=1;ut<bt;ut+=1)ut===1&&lt.push(it.applyToX(ft.v[0][0],ft.v[0][1],0),it.applyToY(ft.v[0][0],ft.v[0][1],0)),lt.push(it.applyToX(ft.o[ut-1][0],ft.o[ut-1][1],0),it.applyToY(ft.o[ut-1][0],ft.o[ut-1][1],0),it.applyToX(ft.i[ut][0],ft.i[ut][1],0),it.applyToY(ft.i[ut][0],ft.i[ut][1],0),it.applyToX(ft.v[ut][0],ft.v[ut][1],0),it.applyToY(ft.v[ut][0],ft.v[ut][1],0));lt.push(it.applyToX(ft.o[ut-1][0],ft.o[ut-1][1],0),it.applyToY(ft.o[ut-1][0],ft.o[ut-1][1],0),it.applyToX(ft.i[0][0],ft.i[0][1],0),it.applyToY(ft.i[0][0],ft.i[0][1],0),it.applyToX(ft.v[0][0],ft.v[0][1],0),it.applyToY(ft.v[0][0],ft.v[0][1],0)),Ct[Lt]=lt,Lt+=1}ht&&(pt+=et[o].l,pt+=at),this.textSpans[Ft]?this.textSpans[Ft].elem=Ct:this.textSpans[Ft]={elem:Ct},Ft+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t=this.canvasContext;t.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 e,i,n,o,tt,et,it=this.textAnimator.renderedLetters,rt=this.textProperty.currentData.l;i=rt.length;var ot,ut=null,bt=null,st=null,gt,dt,ft=this.globalData.renderer;for(e=0;e<i;e+=1)if(!rt[e].n){if(ot=it[e],ot&&(ft.save(),ft.ctxTransform(ot.p),ft.ctxOpacity(ot.o)),this.fill){for(ot&&ot.fc?ut!==ot.fc&&(ft.ctxFillStyle(ot.fc),ut=ot.fc):ut!==this.values.fill&&(ut=this.values.fill,ft.ctxFillStyle(this.values.fill)),gt=this.textSpans[e].elem,o=gt.length,this.globalData.canvasContext.beginPath(),n=0;n<o;n+=1)for(dt=gt[n],et=dt.length,this.globalData.canvasContext.moveTo(dt[0],dt[1]),tt=2;tt<et;tt+=6)this.globalData.canvasContext.bezierCurveTo(dt[tt],dt[tt+1],dt[tt+2],dt[tt+3],dt[tt+4],dt[tt+5]);this.globalData.canvasContext.closePath(),ft.ctxFill()}if(this.stroke){for(ot&&ot.sw?st!==ot.sw&&(st=ot.sw,ft.ctxLineWidth(ot.sw)):st!==this.values.sWidth&&(st=this.values.sWidth,ft.ctxLineWidth(this.values.sWidth)),ot&&ot.sc?bt!==ot.sc&&(bt=ot.sc,ft.ctxStrokeStyle(ot.sc)):bt!==this.values.stroke&&(bt=this.values.stroke,ft.ctxStrokeStyle(this.values.stroke)),gt=this.textSpans[e].elem,o=gt.length,this.globalData.canvasContext.beginPath(),n=0;n<o;n+=1)for(dt=gt[n],et=dt.length,this.globalData.canvasContext.moveTo(dt[0],dt[1]),tt=2;tt<et;tt+=6)this.globalData.canvasContext.bezierCurveTo(dt[tt],dt[tt+1],dt[tt+2],dt[tt+3],dt[tt+4],dt[tt+5]);this.globalData.canvasContext.closePath(),ft.ctxStroke()}ot&&this.globalData.renderer.restore()}};function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e=t.getContext("2d"),i=this.img.width,n=this.img.height,o=i/n,tt=this.assetData.w/this.assetData.h,et,it,rt=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>tt&&rt==="xMidYMid slice"||o<tt&&rt!=="xMidYMid slice"?(it=n,et=it*tt):(et=i,it=et/tt),e.drawImage(this.img,(i-et)/2,(n-it)/2,et,it,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,e,i){this.initElement(t,e,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(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,n){this.canvasContext.fillRect(t,e,i,n)},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(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){this.reset();var i,n;t?(i=t,n=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var o,tt;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var et=this.renderConfig.preserveAspectRatio.split(" "),it=et[1]||"meet",rt=et[0]||"xMidYMid",ot=rt.substr(0,4),ut=rt.substr(4);o=i/n,tt=this.transformCanvas.w/this.transformCanvas.h,tt>o&&it==="meet"||tt<o&&it==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),ot==="xMid"&&(tt<o&&it==="meet"||tt>o&&it==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:ot==="xMax"&&(tt<o&&it==="meet"||tt>o&&it==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,ut==="YMid"&&(tt>o&&it==="meet"||tt<o&&it==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:ut==="YMax"&&(tt>o&&it==="meet"||tt<o&&it==="slice")?this.transformCanvas.ty=(n-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=n/(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 t,e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-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=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.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 t,e=15;for(t=0;t<e;t+=1){var i=new CanvasContext;this.stack[t]=i}this._length=e,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 t=this._length*2,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e=this.stack[this.cArrPos],i=e.transform,n,o=this.cTr.props;for(n=0;n<16;n+=1)o[n]=i[n];if(t){this.nativeContext.restore();var tt=this.stack[this.cArrPos+1];this.appliedFillStyle=tt.fillStyle,this.appliedStrokeStyle=tt.strokeStyle,this.appliedLineWidth=tt.lineWidth,this.appliedLineCap=tt.lineCap,this.appliedLineJoin=tt.lineJoin,this.appliedMiterLimit=tt.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(t||e.opacity!==-1&&this.currentOpacity!==e.opacity)&&(this.nativeContext.globalAlpha=e.opacity,this.currentOpacity=e.opacity),this.currentFillStyle=e.fillStyle,this.currentStrokeStyle=e.strokeStyle,this.currentLineWidth=e.lineWidth,this.currentLineCap=e.lineCap,this.currentLineJoin=e.lineJoin,this.currentMiterLimit=e.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],n;for(n=0;n<16;n+=1)i.transform[n]=e[n];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=i.opacity,o.fillStyle=i.fillStyle,o.strokeStyle=i.strokeStyle,o.lineWidth=i.lineWidth,o.lineCap=i.lineCap,o.lineJoin=i.lineJoin,o.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,n)},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(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,i=this.layers.length;for(e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",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(t){return new CVCompElement(t,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 e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();e.transform=i,e.webkitTransform=i}this.finalTransform._opMdf&&(e.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(t,e,i){this.initElement(t,e,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,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 t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i=t.sh.v,n=t.transformers,o,tt=i._length,et,it,rt,ot;if(!(tt<=1)){for(o=0;o<tt-1;o+=1)et=this.getTransformedPoint(n,i.v[o]),it=this.getTransformedPoint(n,i.o[o]),rt=this.getTransformedPoint(n,i.i[o+1]),ot=this.getTransformedPoint(n,i.v[o+1]),this.checkBounds(et,it,rt,ot,e);i.c&&(et=this.getTransformedPoint(n,i.v[o]),it=this.getTransformedPoint(n,i.o[o]),rt=this.getTransformedPoint(n,i.i[0]),ot=this.getTransformedPoint(n,i.v[0]),this.checkBounds(et,it,rt,ot,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,n,o){this.getBoundsOfCurve(t,e,i,n);var tt=this.shapeBoundingBox;o.x=bmMin(tt.left,o.x),o.xMax=bmMax(tt.right,o.xMax),o.y=bmMin(tt.top,o.y),o.yMax=bmMax(tt.bottom,o.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(t,e,i,n){for(var o=[[t[0],n[0]],[t[1],n[1]]],tt,et,it,rt,ot,ut,bt,st=0;st<2;++st)et=6*t[st]-12*e[st]+6*i[st],tt=-3*t[st]+9*e[st]-9*i[st]+3*n[st],it=3*e[st]-3*t[st],et|=0,tt|=0,it|=0,tt===0&&et===0||(tt===0?(rt=-it/et,rt>0&&rt<1&&o[st].push(this.calculateF(rt,t,e,i,n,st))):(ot=et*et-4*it*tt,ot>=0&&(ut=(-et+bmSqrt(ot))/(2*tt),ut>0&&ut<1&&o[st].push(this.calculateF(ut,t,e,i,n,st)),bt=(-et-bmSqrt(ot))/(2*tt),bt>0&&bt<1&&o[st].push(this.calculateF(bt,t,e,i,n,st)))));this.shapeBoundingBox.left=bmMin.apply(null,o[0]),this.shapeBoundingBox.top=bmMin.apply(null,o[1]),this.shapeBoundingBox.right=bmMax.apply(null,o[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,o[1])},HShapeElement.prototype.calculateF=function(t,e,i,n,o,tt){return bmPow(1-t,3)*e[tt]+3*bmPow(1-t,2)*t*i[tt]+3*(1-t)*bmPow(t,2)*n[tt]+bmPow(t,3)*o[tt]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var n=0;n<t.keyframes.length;n+=1){var o=t.keyframes[n].s;o>i&&(i=o)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=o,n.webkitTransform=o}}};function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{e.fontFamily=n.fFamily;var o=t.fWeight,tt=t.fStyle;e.fontStyle=tt,e.fontWeight=o}var et,it,rt=t.l;it=rt.length;var ot,ut,bt,st=this.mHelper,gt,dt="",ft=0;for(et=0;et<it;et+=1){if(this.globalData.fontManager.chars?(this.textPaths[ft]?ot=this.textPaths[ft]:(ot=createNS("path"),ot.setAttribute("stroke-linecap",lineCapEnum[1]),ot.setAttribute("stroke-linejoin",lineJoinEnum[2]),ot.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[ft]?(ut=this.textSpans[ft],bt=ut.children[0]):(ut=createTag("div"),ut.style.lineHeight=0,bt=createNS("svg"),bt.appendChild(ot),styleDiv(ut)))):this.isMasked?ot=this.textPaths[ft]?this.textPaths[ft]:createNS("text"):this.textSpans[ft]?(ut=this.textSpans[ft],ot=this.textPaths[ft]):(ut=createTag("span"),styleDiv(ut),ot=createTag("span"),styleDiv(ot),ut.appendChild(ot)),this.globalData.fontManager.chars){var Ct=this.globalData.fontManager.getCharData(t.finalText[et],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),lt;if(Ct?lt=Ct.data:lt=null,st.reset(),lt&&lt.shapes&&lt.shapes.length&&(gt=lt.shapes[0].it,st.scale(t.finalSize/100,t.finalSize/100),dt=this.createPathShape(st,gt),ot.setAttribute("d",dt)),this.isMasked)this.innerElem.appendChild(ot);else{if(this.innerElem.appendChild(ut),lt&&lt.shapes){document.body.appendChild(bt);var ht=bt.getBBox();bt.setAttribute("width",ht.width+2),bt.setAttribute("height",ht.height+2),bt.setAttribute("viewBox",ht.x-1+" "+(ht.y-1)+" "+(ht.width+2)+" "+(ht.height+2));var at=bt.style,pt="translate("+(ht.x-1)+"px,"+(ht.y-1)+"px)";at.transform=pt,at.webkitTransform=pt,rt[et].yOffset=ht.y-1}else bt.setAttribute("width",1),bt.setAttribute("height",1);ut.appendChild(bt)}}else if(ot.textContent=rt[et].val,ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(ot);else{this.innerElem.appendChild(ut);var St=ot.style,Et="translate3d(0,"+-t.finalSize/1.2+"px,0)";St.transform=Et,St.webkitTransform=Et}this.isMasked?this.textSpans[ft]=ot:this.textSpans[ft]=ut,this.textSpans[ft].style.display="block",this.textPaths[ft]=ot,ft+=1}for(;ft<this.textSpans.length;)this.textSpans[ft].style.display="none",ft+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var t;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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,n,o=0,tt=this.textAnimator.renderedLetters,et=this.textProperty.currentData.l;n=et.length;var it,rt,ot;for(i=0;i<n;i+=1)et[i].n?o+=1:(rt=this.textSpans[i],ot=this.textPaths[i],it=tt[o],o+=1,it._mdf.m&&(this.isMasked?rt.setAttribute("transform",it.m):(rt.style.webkitTransform=it.m,rt.style.transform=it.m)),rt.style.opacity=it.o,it.sw&&it._mdf.sw&&ot.setAttribute("stroke-width",it.sw),it.sc&&it._mdf.sc&&ot.setAttribute("stroke",it.sc),it.fc&&it._mdf.fc&&(ot.setAttribute("fill",it.fc),ot.style.color=it.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var ut=this.innerElem.getBBox();this.currentBBox.w!==ut.width&&(this.currentBBox.w=ut.width,this.svgElement.setAttribute("width",ut.width)),this.currentBBox.h!==ut.height&&(this.currentBBox.h=ut.height,this.svgElement.setAttribute("height",ut.height));var bt=1;if(this.currentBBox.w!==ut.width+bt*2||this.currentBBox.h!==ut.height+bt*2||this.currentBBox.x!==ut.x-bt||this.currentBBox.y!==ut.y-bt){this.currentBBox.w=ut.width+bt*2,this.currentBBox.h=ut.height+bt*2,this.currentBBox.x=ut.x-bt,this.currentBBox.y=ut.y-bt,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var st="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=st,t.webkitTransform=st}}}};function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var o,tt=t.ks.or.k.length;for(o=0;o<tt;o+=1)t.ks.or.k[o].to=null,t.ks.or.k[o].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.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 t,e=this.comp.threeDElements.length,i,n,o;for(t=0;t<e;t+=1)if(i=this.comp.threeDElements[t],i.type==="3d"){n=i.perspectiveElem.style,o=i.container.style;var tt=this.pe.v+"px",et="0px 0px 0px",it="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=tt,n.webkitPerspective=tt,o.transformOrigin=et,o.mozTransformOrigin=et,o.webkitTransformOrigin=et,n.transform=it,n.webkitTransform=it}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame,e,i;if(this.hierarchy)for(i=this.hierarchy.length,e=0;e<i;e+=1)t=this.hierarchy[e].finalTransform.mProp._mdf||t;if(t||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,e=i;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.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 o;this.p?o=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:o=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var tt=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),et=[o[0]/tt,o[1]/tt,o[2]/tt],it=Math.sqrt(et[2]*et[2]+et[0]*et[0]),rt=Math.atan2(et[1],it),ot=Math.atan2(et[0],-et[2]);this.mat.rotateY(ot).rotateX(-rt)}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 ut=!this._prevMat.equals(this.mat);if((ut||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var bt,st,gt;for(e=0;e<i;e+=1)if(bt=this.comp.threeDElements[e],bt.type==="3d"){if(ut){var dt=this.mat.toCSS();gt=bt.container.style,gt.transform=dt,gt.webkitTransform=dt}this.pe._mdf&&(st=bt.perspectiveElem.style,st.perspective=this.pe.v+"px",st.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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 t=this.pendingElements.pop();t.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var o=0,tt,et,it;o<e;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(et=this.elements[o],it=this.layers[o].ddd?this.getThreeDContainerByPos(o):et.getBaseElement(),tt=it||tt),o+=1;tt?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,tt):(!n.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,e)}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i=createTag("div"),n,o;styleDiv(i);var tt=createTag("div");if(styleDiv(tt),e==="3d"){n=i.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var et="50% 50%";n.webkitTransformOrigin=et,n.mozTransformOrigin=et,n.transformOrigin=et,o=tt.style;var it="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";o.transform=it,o.webkitTransform=it}i.appendChild(tt);var rt={container:tt,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(rt),rt},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,i,n="";for(t=0;t<e;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(n!=="3d"&&(n="3d",i=this.createThreeDContainer(t,"3d")),i.endPos=Math.max(i.endPos,t)):(n!=="2d"&&(n="2d",i=this.createThreeDContainer(t,"2d")),i.endPos=Math.max(i.endPos,t));for(e=this.threeDElements.length,t=e-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,n=this.threeDElements.length;i<n;){if(e<=this.threeDElements[i].endPos){for(var o=this.threeDElements[i].startPos,tt;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(tt=this.elements[o].getBaseElement()),o+=1;tt?this.threeDElements[i].container.insertBefore(t,tt):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),n.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var tt=createNS("defs");o.appendChild(tt),this.data=t,this.setupGlobalData(t,o),this.globalData.defs=tt,this.layers=t.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 t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,i=t/e,n=this.globalData.compSize.w/this.globalData.compSize.h,o,tt,et,it;n>i?(o=t/this.globalData.compSize.w,tt=t/this.globalData.compSize.w,et=0,it=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(o=e/this.globalData.compSize.h,tt=e/this.globalData.compSize.h,et=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,it=0);var rt=this.resizerElem.style;rt.webkitTransform="matrix3d("+o+",0,0,0,0,"+tt+",0,0,0,0,1,0,"+et+","+it+",0,1)",rt.transform=rt.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 t=this.globalData.compSize.w,e=this.globalData.compSize.h,i,n=this.threeDElements.length;for(i=0;i<n;i+=1){var o=this.threeDElements[i].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,n=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var o=this.createComp(t[e],n,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}};function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}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(t,e){for(var i=0,n;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(t,n):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||e.runExpressions===void 0||e.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(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=(function(){return function(t){function e(i){for(var n=0,o=t.layers.length;n<o;){if(t.layers[n].nm===i||t.layers[n].ind===i)return t.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}})();function _typeof$2(t){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(t)}function seedRandom(t,e){var i=this,n=256,o=6,tt=52,et="random",it=e.pow(n,o),rt=e.pow(2,tt),ot=rt*2,ut=n-1,bt;function st(at,pt,St){var Et=[];pt=pt===!0?{entropy:!0}:pt||{};var Ft=Ct(ft(pt.entropy?[at,ht(t)]:at===null?lt():at,3),Et),Lt=new gt(Et),Ot=function(){for(var $t=Lt.g(o),Nt=it,Bt=0;$t<rt;)$t=($t+Bt)*n,Nt*=n,Bt=Lt.g(1);for(;$t>=ot;)$t/=2,Nt/=2,Bt>>>=1;return($t+Bt)/Nt};return Ot.int32=function(){return Lt.g(4)|0},Ot.quick=function(){return Lt.g(4)/4294967296},Ot.double=Ot,Ct(ht(Lt.S),t),(pt.pass||St||function(Xt,$t,Nt,Bt){return Bt&&(Bt.S&&dt(Bt,Lt),Xt.state=function(){return dt(Lt,{})}),Nt?(e[et]=Xt,$t):Xt})(Ot,Ft,"global"in pt?pt.global:this==e,pt.state)}e["seed"+et]=st;function gt(at){var pt,St=at.length,Et=this,Ft=0,Lt=Et.i=Et.j=0,Ot=Et.S=[];for(St||(at=[St++]);Ft<n;)Ot[Ft]=Ft++;for(Ft=0;Ft<n;Ft++)Ot[Ft]=Ot[Lt=ut&Lt+at[Ft%St]+(pt=Ot[Ft])],Ot[Lt]=pt;Et.g=function(Xt){for(var $t,Nt=0,Bt=Et.i,Dt=Et.j,It=Et.S;Xt--;)$t=It[Bt=ut&Bt+1],Nt=Nt*n+It[ut&(It[Bt]=It[Dt=ut&Dt+$t])+(It[Dt]=$t)];return Et.i=Bt,Et.j=Dt,Nt}}function dt(at,pt){return pt.i=at.i,pt.j=at.j,pt.S=at.S.slice(),pt}function ft(at,pt){var St=[],Et=_typeof$2(at),Ft;if(pt&&Et=="object")for(Ft in at)try{St.push(ft(at[Ft],pt-1))}catch{}return St.length?St:Et=="string"?at:at+"\0"}function Ct(at,pt){for(var St=at+"",Et,Ft=0;Ft<St.length;)pt[ut&Ft]=ut&(Et^=pt[ut&Ft]*19)+St.charCodeAt(Ft++);return ht(pt)}function lt(){try{var at=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(at),ht(at)}catch{var pt=i.navigator,St=pt&&pt.plugins;return[+new Date,i,St,i.screen,ht(t)]}}function ht(at){return String.fromCharCode.apply(0,at)}Ct(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(t)}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(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||e instanceof Number||t==="boolean"||t==="string"}function $bm_neg(t){var e=_typeof$1(t);if(e==="number"||t instanceof Number||e==="boolean")return-t;if($bm_isInstanceOfArray(t)){var i,n=t.length,o=[];for(i=0;i<n;i+=1)o[i]=-t[i];return o}return t.propType?t.v:-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),n=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(n,e)||i==="string"||n==="string")return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var o=0,tt=t.length,et=e.length,it=[];o<tt||o<et;)(typeof t[o]=="number"||t[o]instanceof Number)&&(typeof e[o]=="number"||e[o]instanceof Number)?it[o]=t[o]+e[o]:it[o]=e[o]===void 0?t[o]:t[o]||e[o],o+=1;return it}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),n=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(n,e))return i==="string"&&(t=parseInt(t,10)),n==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var o=0,tt=t.length,et=e.length,it=[];o<tt||o<et;)(typeof t[o]=="number"||t[o]instanceof Number)&&(typeof e[o]=="number"||e[o]instanceof Number)?it[o]=t[o]-e[o]:it[o]=e[o]===void 0?t[o]:t[o]||e[o],o+=1;return it}return 0}function mul(t,e){var i=_typeof$1(t),n=_typeof$1(e),o;if(isNumerable(i,t)&&isNumerable(n,e))return t*e;var tt,et;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(et=t.length,o=createTypedArray("float32",et),tt=0;tt<et;tt+=1)o[tt]=t[tt]*e;return o}if(isNumerable(i,t)&&$bm_isInstanceOfArray(e)){for(et=e.length,o=createTypedArray("float32",et),tt=0;tt<et;tt+=1)o[tt]=t*e[tt];return o}return 0}function div(t,e){var i=_typeof$1(t),n=_typeof$1(e),o;if(isNumerable(i,t)&&isNumerable(n,e))return t/e;var tt,et;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(et=t.length,o=createTypedArray("float32",et),tt=0;tt<et;tt+=1)o[tt]=t[tt]/e;return o}if(isNumerable(i,t)&&$bm_isInstanceOfArray(e)){for(et=e.length,o=createTypedArray("float32",et),tt=0;tt<et;tt+=1)o[tt]=t/e[tt];return o}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,n=Math.min(t.length,e.length),o=0;for(i=0;i<n;i+=1)o+=Math.pow(e[i]-t[i],2);return Math.sqrt(o)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e=t[0],i=t[1],n=t[2],o=Math.max(e,i,n),tt=Math.min(e,i,n),et,it,rt=(o+tt)/2;if(o===tt)et=0,it=0;else{var ot=o-tt;switch(it=rt>.5?ot/(2-o-tt):ot/(o+tt),o){case e:et=(i-n)/ot+(i<n?6:0);break;case i:et=(n-e)/ot+2;break;case n:et=(e-i)/ot+4;break}et/=6}return[et,it,rt,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e=t[0],i=t[1],n=t[2],o,tt,et;if(i===0)o=n,et=n,tt=n;else{var it=n<.5?n*(1+i):n+i-n*i,rt=2*n-it;o=hue2rgb(rt,it,e+1/3),tt=hue2rgb(rt,it,e),et=hue2rgb(rt,it,e-1/3)}return[o,tt,et,t[3]]}function linear(t,e,i,n,o){if((n===void 0||o===void 0)&&(n=e,o=i,e=0,i=1),i<e){var tt=i;i=e,e=tt}if(t<=e)return n;if(t>=i)return o;var et=i===e?0:(t-e)/(i-e);if(!n.length)return n+(o-n)*et;var it,rt=n.length,ot=createTypedArray("float32",rt);for(it=0;it<rt;it+=1)ot[it]=n[it]+(o[it]-n[it])*et;return ot}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var i,n=e.length;t||(t=createTypedArray("float32",n));var o=createTypedArray("float32",n),tt=BMMath.random();for(i=0;i<n;i+=1)o[i]=t[i]+tt*(e[i]-t[i]);return o}t===void 0&&(t=0);var et=BMMath.random();return t+et*(e-t)}function createPath(t,e,i,n){var o,tt=t.length,et=shapePool.newElement();et.setPathData(!!n,tt);var it=[0,0],rt,ot;for(o=0;o<tt;o+=1)rt=e&&e[o]?e[o]:it,ot=i&&i[o]?i[o]:it,et.setTripleAt(t[o][0],t[o][1],ot[0]+t[o][0],ot[1]+t[o][1],rt[0]+t[o][0],rt[1]+t[o][1],o,!0);return et}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function t(e,i){var n,o,tt=this.pv.length?this.pv.length:1,et=createTypedArray("float32",tt);e=5;var it=Math.floor(time*e);for(n=0,o=0;n<it;){for(o=0;o<tt;o+=1)et[o]+=-i+i*2*BMMath.random();n+=1}var rt=time*e,ot=rt-Math.floor(rt),ut=createTypedArray("float32",tt);if(tt>1){for(o=0;o<tt;o+=1)ut[o]=this.pv[o]+et[o]+(-i+i*2*BMMath.random())*ot;return ut}return this.pv+et[0]+(-i+i*2*BMMath.random())*ot}).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(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,o=-Math.atan2(i[1],i[2])/degToRads;return[o,n,0]}function easeOut(t,e,i,n,o){return applyEase(easeOutBez,t,e,i,n,o)}function easeIn(t,e,i,n,o){return applyEase(easeInBez,t,e,i,n,o)}function ease(t,e,i,n,o){return applyEase(easeInOutBez,t,e,i,n,o)}function applyEase(t,e,i,n,o,tt){o===void 0?(o=i,tt=n):e=(e-i)/(n-i),e>1?e=1:e<0&&(e=0);var et=t(e);if($bm_isInstanceOfArray(o)){var it,rt=o.length,ot=createTypedArray("float32",rt);for(it=0;it<rt;it+=1)ot[it]=(tt[it]-o[it])*et+o[it];return ot}return(tt-o)*et+o}function nearestKey(t){var e,i=data.k.length,n,o;if(!data.k.length||typeof data.k[0]=="number")n=0,o=0;else if(n=-1,t*=elem.comp.globalData.frameRate,t<data.k[0].t)n=1,o=data.k[0].t;else{for(e=0;e<i-1;e+=1)if(t===data.k[e].t){n=e+1,o=data.k[e].t;break}else if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(n=e+2,o=data.k[e+1].t):(n=e+1,o=data.k[e].t);break}n===-1&&(n=e+1,o=data.k[e].t)}var tt={};return tt.index=n,tt.time=o/elem.comp.globalData.frameRate,tt}function key(t){var e,i,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=o.length,i=0;i<n;i+=1)e[i]=o[i],e.value[i]=o[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return!t&&t!==0&&(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,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(t){return value=t,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 t={};t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame;function e(i){var n=0,o=[];function tt(){n+=1}function et(){n-=1,n===0&&rt()}function it(ot){o.indexOf(ot)===-1&&o.push(ot)}function rt(){var ot,ut=o.length;for(ot=0;ot<ut;ot+=1)o[ot].release();o.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=tt,i.renderer.globalData.popExpression=et,i.renderer.globalData.registerExpressionProperty=it}return t})(),MaskManagerInterface=(function(){function t(i,n){this._mask=i,this._data=n}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var e=function(n){var o=createSizedArray(n.viewData.length),tt,et=n.viewData.length;for(tt=0;tt<et;tt+=1)o[tt]=new t(n.viewData[tt],n.masksProperties[tt]);var it=function(ot){for(tt=0;tt<et;){if(n.masksProperties[tt].nm===ot)return o[tt];tt+=1}return null};return it};return e})(),ExpressionPropertyInterface=(function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(et,it,rt){Object.defineProperty(et,"velocity",{get:function(){return it.getVelocityAtTime(it.comp.currentFrame)}}),et.numKeys=it.keyframes?it.keyframes.length:0,et.key=function(ot){if(!et.numKeys)return 0;var ut="";"s"in it.keyframes[ot-1]?ut=it.keyframes[ot-1].s:"e"in it.keyframes[ot-2]?ut=it.keyframes[ot-2].e:ut=it.keyframes[ot-2].s;var bt=rt==="unidimensional"?new Number(ut):Object.assign({},ut);return bt.time=it.keyframes[ot-1].t/it.elem.comp.globalData.frameRate,bt.value=rt==="unidimensional"?ut[0]:ut,bt},et.valueAtTime=it.getValueAtTime,et.speedAtTime=it.getSpeedAtTime,et.velocityAtTime=it.getVelocityAtTime,et.propertyGroup=it.propertyGroup}function n(et){(!et||!("pv"in et))&&(et=t);var it=1/et.mult,rt=et.pv*it,ot=new Number(rt);return ot.value=rt,i(ot,et,"unidimensional"),function(){return et.k&&et.getValue(),rt=et.v*it,ot.value!==rt&&(ot=new Number(rt),ot.value=rt,ot[0]=rt,i(ot,et,"unidimensional")),ot}}function o(et){(!et||!("pv"in et))&&(et=e);var it=1/et.mult,rt=et.data&&et.data.l||et.pv.length,ot=createTypedArray("float32",rt),ut=createTypedArray("float32",rt);return ot.value=ut,i(ot,et,"multidimensional"),function(){et.k&&et.getValue();for(var bt=0;bt<rt;bt+=1)ut[bt]=et.v[bt]*it,ot[bt]=ut[bt];return ot}}function tt(){return t}return function(et){return et?et.propType==="unidimensional"?n(et):o(et):tt}})(),TransformExpressionInterface=(function(){return function(t){function e(et){switch(et){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)});var i,n,o,tt;return t.p?tt=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(o=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?tt():[i(),n(),o?o():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e}})(),LayerExpressionInterface=(function(){function t(ot){var ut=new Matrix;if(ot!==void 0){var bt=this._elem.finalTransform.mProp.getValueAtTime(ot);bt.clone(ut)}else{var st=this._elem.finalTransform.mProp;st.applyToMatrix(ut)}return ut}function e(ot,ut){var bt=this.getMatrix(ut);return bt.props[12]=0,bt.props[13]=0,bt.props[14]=0,this.applyPoint(bt,ot)}function i(ot,ut){var bt=this.getMatrix(ut);return this.applyPoint(bt,ot)}function n(ot,ut){var bt=this.getMatrix(ut);return bt.props[12]=0,bt.props[13]=0,bt.props[14]=0,this.invertPoint(bt,ot)}function o(ot,ut){var bt=this.getMatrix(ut);return this.invertPoint(bt,ot)}function tt(ot,ut){if(this._elem.hierarchy&&this._elem.hierarchy.length){var bt,st=this._elem.hierarchy.length;for(bt=0;bt<st;bt+=1)this._elem.hierarchy[bt].finalTransform.mProp.applyToMatrix(ot)}return ot.applyToPointArray(ut[0],ut[1],ut[2]||0)}function et(ot,ut){if(this._elem.hierarchy&&this._elem.hierarchy.length){var bt,st=this._elem.hierarchy.length;for(bt=0;bt<st;bt+=1)this._elem.hierarchy[bt].finalTransform.mProp.applyToMatrix(ot)}return ot.inversePoint(ut)}function it(ot){var ut=new Matrix;if(ut.reset(),this._elem.finalTransform.mProp.applyToMatrix(ut),this._elem.hierarchy&&this._elem.hierarchy.length){var bt,st=this._elem.hierarchy.length;for(bt=0;bt<st;bt+=1)this._elem.hierarchy[bt].finalTransform.mProp.applyToMatrix(ut);return ut.inversePoint(ot)}return ut.inversePoint(ot)}function rt(){return[1,1,1,1]}return function(ot){var ut;function bt(ft){gt.mask=new MaskManagerInterface(ft,ot)}function st(ft){gt.effect=ft}function gt(ft){switch(ft){case"ADBE Root Vectors Group":case"Contents":case 2:return gt.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return ut;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return gt.effect;case"ADBE Text Properties":return gt.textInterface;default:return null}}gt.getMatrix=t,gt.invertPoint=et,gt.applyPoint=tt,gt.toWorld=i,gt.toWorldVec=e,gt.fromWorld=o,gt.fromWorldVec=n,gt.toComp=i,gt.fromComp=it,gt.sampleImage=rt,gt.sourceRectAtTime=ot.sourceRectAtTime.bind(ot),gt._elem=ot,ut=TransformExpressionInterface(ot.finalTransform.mProp);var dt=getDescriptor(ut,"anchorPoint");return Object.defineProperties(gt,{hasParent:{get:function(){return ot.hierarchy.length}},parent:{get:function(){return ot.hierarchy[0].layerInterface}},rotation:getDescriptor(ut,"rotation"),scale:getDescriptor(ut,"scale"),position:getDescriptor(ut,"position"),opacity:getDescriptor(ut,"opacity"),anchorPoint:dt,anchor_point:dt,transform:{get:function(){return ut}},active:{get:function(){return ot.isInRange}}}),gt.startTime=ot.data.st,gt.index=ot.data.ind,gt.source=ot.data.refId,gt.height=ot.data.ty===0?ot.data.h:100,gt.width=ot.data.ty===0?ot.data.w:100,gt.inPoint=ot.data.ip/ot.comp.globalData.frameRate,gt.outPoint=ot.data.op/ot.comp.globalData.frameRate,gt._name=ot.data.nm,gt.registerMaskInterface=bt,gt.registerEffectsInterface=st,gt}})(),propertyGroupFactory=(function(){return function(t,e){return function(i){return i=i===void 0?1:i,i<=0?t:e(i-1)}}})(),PropertyInterface=(function(){return function(t,e){var i={_name:t};function n(o){return o=o===void 0?1:o,o<=0?i:e(o-1)}return n}})(),EffectsExpressionInterface=(function(){var t={createEffectsInterface:e};function e(o,tt){if(o.effectsManager){var et=[],it=o.data.ef,rt,ot=o.effectsManager.effectElements.length;for(rt=0;rt<ot;rt+=1)et.push(i(it[rt],o.effectsManager.effectElements[rt],tt,o));var ut=o.data.ef||[],bt=function(gt){for(rt=0,ot=ut.length;rt<ot;){if(gt===ut[rt].nm||gt===ut[rt].mn||gt===ut[rt].ix)return et[rt];rt+=1}return null};return Object.defineProperty(bt,"numProperties",{get:function(){return ut.length}}),bt}return null}function i(o,tt,et,it){function rt(gt){for(var dt=o.ef,ft=0,Ct=dt.length;ft<Ct;){if(gt===dt[ft].nm||gt===dt[ft].mn||gt===dt[ft].ix)return dt[ft].ty===5?ut[ft]:ut[ft]();ft+=1}throw new Error}var ot=propertyGroupFactory(rt,et),ut=[],bt,st=o.ef.length;for(bt=0;bt<st;bt+=1)o.ef[bt].ty===5?ut.push(i(o.ef[bt],tt.effectElements[bt],tt.effectElements[bt].propertyGroup,it)):ut.push(n(tt.effectElements[bt],o.ef[bt].ty,it,ot));return o.mn==="ADBE Color Control"&&Object.defineProperty(rt,"color",{get:function(){return ut[0]()}}),Object.defineProperties(rt,{numProperties:{get:function(){return o.np}},_name:{value:o.nm},propertyGroup:{value:ot}}),rt.enabled=o.en!==0,rt.active=rt.enabled,rt}function n(o,tt,et,it){var rt=ExpressionPropertyInterface(o.p);function ot(){return tt===10?et.comp.compInterface(o.p.v):rt()}return o.p.setGroupProperty&&o.p.setGroupProperty(PropertyInterface("",it)),ot}return t})(),ShapePathInterface=(function(){return function(e,i,n){var o=i.sh;function tt(it){return it==="Shape"||it==="shape"||it==="Path"||it==="path"||it==="ADBE Vector Shape"||it===2?tt.path:null}var et=propertyGroupFactory(tt,n);return o.setGroupProperty(PropertyInterface("Path",et)),Object.defineProperties(tt,{path:{get:function(){return o.k&&o.getValue(),o}},shape:{get:function(){return o.k&&o.getValue(),o}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),tt}})(),ShapeExpressionInterface=(function(){function t(dt,ft,Ct){var lt=[],ht,at=dt?dt.length:0;for(ht=0;ht<at;ht+=1)dt[ht].ty==="gr"?lt.push(i(dt[ht],ft[ht],Ct)):dt[ht].ty==="fl"?lt.push(n(dt[ht],ft[ht],Ct)):dt[ht].ty==="st"?lt.push(et(dt[ht],ft[ht],Ct)):dt[ht].ty==="tm"?lt.push(it(dt[ht],ft[ht],Ct)):dt[ht].ty==="tr"||(dt[ht].ty==="el"?lt.push(ot(dt[ht],ft[ht],Ct)):dt[ht].ty==="sr"?lt.push(ut(dt[ht],ft[ht],Ct)):dt[ht].ty==="sh"?lt.push(ShapePathInterface(dt[ht],ft[ht],Ct)):dt[ht].ty==="rc"?lt.push(bt(dt[ht],ft[ht],Ct)):dt[ht].ty==="rd"?lt.push(st(dt[ht],ft[ht],Ct)):dt[ht].ty==="rp"?lt.push(gt(dt[ht],ft[ht],Ct)):dt[ht].ty==="gf"?lt.push(o(dt[ht],ft[ht],Ct)):lt.push(tt(dt[ht],ft[ht])));return lt}function e(dt,ft,Ct){var lt,ht=function(St){for(var Et=0,Ft=lt.length;Et<Ft;){if(lt[Et]._name===St||lt[Et].mn===St||lt[Et].propertyIndex===St||lt[Et].ix===St||lt[Et].ind===St)return lt[Et];Et+=1}return typeof St=="number"?lt[St-1]:null};ht.propertyGroup=propertyGroupFactory(ht,Ct),lt=t(dt.it,ft.it,ht.propertyGroup),ht.numProperties=lt.length;var at=rt(dt.it[dt.it.length-1],ft.it[ft.it.length-1],ht.propertyGroup);return ht.transform=at,ht.propertyIndex=dt.cix,ht._name=dt.nm,ht}function i(dt,ft,Ct){var lt=function(St){switch(St){case"ADBE Vectors Group":case"Contents":case 2:return lt.content;default:return lt.transform}};lt.propertyGroup=propertyGroupFactory(lt,Ct);var ht=e(dt,ft,lt.propertyGroup),at=rt(dt.it[dt.it.length-1],ft.it[ft.it.length-1],lt.propertyGroup);return lt.content=ht,lt.transform=at,Object.defineProperty(lt,"_name",{get:function(){return dt.nm}}),lt.numProperties=dt.np,lt.propertyIndex=dt.ix,lt.nm=dt.nm,lt.mn=dt.mn,lt}function n(dt,ft,Ct){function lt(ht){return ht==="Color"||ht==="color"?lt.color:ht==="Opacity"||ht==="opacity"?lt.opacity:null}return Object.defineProperties(lt,{color:{get:ExpressionPropertyInterface(ft.c)},opacity:{get:ExpressionPropertyInterface(ft.o)},_name:{value:dt.nm},mn:{value:dt.mn}}),ft.c.setGroupProperty(PropertyInterface("Color",Ct)),ft.o.setGroupProperty(PropertyInterface("Opacity",Ct)),lt}function o(dt,ft,Ct){function lt(ht){return ht==="Start Point"||ht==="start point"?lt.startPoint:ht==="End Point"||ht==="end point"?lt.endPoint:ht==="Opacity"||ht==="opacity"?lt.opacity:null}return Object.defineProperties(lt,{startPoint:{get:ExpressionPropertyInterface(ft.s)},endPoint:{get:ExpressionPropertyInterface(ft.e)},opacity:{get:ExpressionPropertyInterface(ft.o)},type:{get:function(){return"a"}},_name:{value:dt.nm},mn:{value:dt.mn}}),ft.s.setGroupProperty(PropertyInterface("Start Point",Ct)),ft.e.setGroupProperty(PropertyInterface("End Point",Ct)),ft.o.setGroupProperty(PropertyInterface("Opacity",Ct)),lt}function tt(){function dt(){return null}return dt}function et(dt,ft,Ct){var lt=propertyGroupFactory(Ft,Ct),ht=propertyGroupFactory(Et,lt);function at(Lt){Object.defineProperty(Et,dt.d[Lt].nm,{get:ExpressionPropertyInterface(ft.d.dataProps[Lt].p)})}var pt,St=dt.d?dt.d.length:0,Et={};for(pt=0;pt<St;pt+=1)at(pt),ft.d.dataProps[pt].p.setGroupProperty(ht);function Ft(Lt){return Lt==="Color"||Lt==="color"?Ft.color:Lt==="Opacity"||Lt==="opacity"?Ft.opacity:Lt==="Stroke Width"||Lt==="stroke width"?Ft.strokeWidth:null}return Object.defineProperties(Ft,{color:{get:ExpressionPropertyInterface(ft.c)},opacity:{get:ExpressionPropertyInterface(ft.o)},strokeWidth:{get:ExpressionPropertyInterface(ft.w)},dash:{get:function(){return Et}},_name:{value:dt.nm},mn:{value:dt.mn}}),ft.c.setGroupProperty(PropertyInterface("Color",lt)),ft.o.setGroupProperty(PropertyInterface("Opacity",lt)),ft.w.setGroupProperty(PropertyInterface("Stroke Width",lt)),Ft}function it(dt,ft,Ct){function lt(at){return at===dt.e.ix||at==="End"||at==="end"?lt.end:at===dt.s.ix?lt.start:at===dt.o.ix?lt.offset:null}var ht=propertyGroupFactory(lt,Ct);return lt.propertyIndex=dt.ix,ft.s.setGroupProperty(PropertyInterface("Start",ht)),ft.e.setGroupProperty(PropertyInterface("End",ht)),ft.o.setGroupProperty(PropertyInterface("Offset",ht)),lt.propertyIndex=dt.ix,lt.propertyGroup=Ct,Object.defineProperties(lt,{start:{get:ExpressionPropertyInterface(ft.s)},end:{get:ExpressionPropertyInterface(ft.e)},offset:{get:ExpressionPropertyInterface(ft.o)},_name:{value:dt.nm}}),lt.mn=dt.mn,lt}function rt(dt,ft,Ct){function lt(at){return dt.a.ix===at||at==="Anchor Point"?lt.anchorPoint:dt.o.ix===at||at==="Opacity"?lt.opacity:dt.p.ix===at||at==="Position"?lt.position:dt.r.ix===at||at==="Rotation"||at==="ADBE Vector Rotation"?lt.rotation:dt.s.ix===at||at==="Scale"?lt.scale:dt.sk&&dt.sk.ix===at||at==="Skew"?lt.skew:dt.sa&&dt.sa.ix===at||at==="Skew Axis"?lt.skewAxis:null}var ht=propertyGroupFactory(lt,Ct);return ft.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ht)),ft.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ht)),ft.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ht)),ft.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ht)),ft.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ht)),ft.transform.mProps.sk&&(ft.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ht)),ft.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ht))),ft.transform.op.setGroupProperty(PropertyInterface("Opacity",ht)),Object.defineProperties(lt,{opacity:{get:ExpressionPropertyInterface(ft.transform.mProps.o)},position:{get:ExpressionPropertyInterface(ft.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(ft.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(ft.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(ft.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(ft.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(ft.transform.mProps.sa)},_name:{value:dt.nm}}),lt.ty="tr",lt.mn=dt.mn,lt.propertyGroup=Ct,lt}function ot(dt,ft,Ct){function lt(pt){return dt.p.ix===pt?lt.position:dt.s.ix===pt?lt.size:null}var ht=propertyGroupFactory(lt,Ct);lt.propertyIndex=dt.ix;var at=ft.sh.ty==="tm"?ft.sh.prop:ft.sh;return at.s.setGroupProperty(PropertyInterface("Size",ht)),at.p.setGroupProperty(PropertyInterface("Position",ht)),Object.defineProperties(lt,{size:{get:ExpressionPropertyInterface(at.s)},position:{get:ExpressionPropertyInterface(at.p)},_name:{value:dt.nm}}),lt.mn=dt.mn,lt}function ut(dt,ft,Ct){function lt(pt){return dt.p.ix===pt?lt.position:dt.r.ix===pt?lt.rotation:dt.pt.ix===pt?lt.points:dt.or.ix===pt||pt==="ADBE Vector Star Outer Radius"?lt.outerRadius:dt.os.ix===pt?lt.outerRoundness:dt.ir&&(dt.ir.ix===pt||pt==="ADBE Vector Star Inner Radius")?lt.innerRadius:dt.is&&dt.is.ix===pt?lt.innerRoundness:null}var ht=propertyGroupFactory(lt,Ct),at=ft.sh.ty==="tm"?ft.sh.prop:ft.sh;return lt.propertyIndex=dt.ix,at.or.setGroupProperty(PropertyInterface("Outer Radius",ht)),at.os.setGroupProperty(PropertyInterface("Outer Roundness",ht)),at.pt.setGroupProperty(PropertyInterface("Points",ht)),at.p.setGroupProperty(PropertyInterface("Position",ht)),at.r.setGroupProperty(PropertyInterface("Rotation",ht)),dt.ir&&(at.ir.setGroupProperty(PropertyInterface("Inner Radius",ht)),at.is.setGroupProperty(PropertyInterface("Inner Roundness",ht))),Object.defineProperties(lt,{position:{get:ExpressionPropertyInterface(at.p)},rotation:{get:ExpressionPropertyInterface(at.r)},points:{get:ExpressionPropertyInterface(at.pt)},outerRadius:{get:ExpressionPropertyInterface(at.or)},outerRoundness:{get:ExpressionPropertyInterface(at.os)},innerRadius:{get:ExpressionPropertyInterface(at.ir)},innerRoundness:{get:ExpressionPropertyInterface(at.is)},_name:{value:dt.nm}}),lt.mn=dt.mn,lt}function bt(dt,ft,Ct){function lt(pt){return dt.p.ix===pt?lt.position:dt.r.ix===pt?lt.roundness:dt.s.ix===pt||pt==="Size"||pt==="ADBE Vector Rect Size"?lt.size:null}var ht=propertyGroupFactory(lt,Ct),at=ft.sh.ty==="tm"?ft.sh.prop:ft.sh;return lt.propertyIndex=dt.ix,at.p.setGroupProperty(PropertyInterface("Position",ht)),at.s.setGroupProperty(PropertyInterface("Size",ht)),at.r.setGroupProperty(PropertyInterface("Rotation",ht)),Object.defineProperties(lt,{position:{get:ExpressionPropertyInterface(at.p)},roundness:{get:ExpressionPropertyInterface(at.r)},size:{get:ExpressionPropertyInterface(at.s)},_name:{value:dt.nm}}),lt.mn=dt.mn,lt}function st(dt,ft,Ct){function lt(pt){return dt.r.ix===pt||pt==="Round Corners 1"?lt.radius:null}var ht=propertyGroupFactory(lt,Ct),at=ft;return lt.propertyIndex=dt.ix,at.rd.setGroupProperty(PropertyInterface("Radius",ht)),Object.defineProperties(lt,{radius:{get:ExpressionPropertyInterface(at.rd)},_name:{value:dt.nm}}),lt.mn=dt.mn,lt}function gt(dt,ft,Ct){function lt(pt){return dt.c.ix===pt||pt==="Copies"?lt.copies:dt.o.ix===pt||pt==="Offset"?lt.offset:null}var ht=propertyGroupFactory(lt,Ct),at=ft;return lt.propertyIndex=dt.ix,at.c.setGroupProperty(PropertyInterface("Copies",ht)),at.o.setGroupProperty(PropertyInterface("Offset",ht)),Object.defineProperties(lt,{copies:{get:ExpressionPropertyInterface(at.c)},offset:{get:ExpressionPropertyInterface(at.o)},_name:{value:dt.nm}}),lt.mn=dt.mn,lt}return function(dt,ft,Ct){var lt;function ht(pt){if(typeof pt=="number")return pt=pt===void 0?1:pt,pt===0?Ct:lt[pt-1];for(var St=0,Et=lt.length;St<Et;){if(lt[St]._name===pt)return lt[St];St+=1}return null}function at(){return Ct}return ht.propertyGroup=propertyGroupFactory(ht,at),lt=t(dt,ft,ht.propertyGroup),ht.numProperties=lt.length,ht._name="Contents",ht}})(),TextExpressionInterface=(function(){return function(t){var e;function i(n){return n==="ADBE Text Document"?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var o=t.textProperty.currentData.t;return(!e||o!==e.value)&&(e=new String(o),e.value=o||new String(o),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i}})();function _typeof(t){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}var FootageInterface=(function(){var t=function(n){var o="",tt=n.getFootageData();function et(){return o="",tt=n.getFootageData(),it}function it(rt){if(tt[rt])return o=rt,tt=tt[rt],_typeof(tt)==="object"?it:tt;var ot=rt.indexOf(o);if(ot!==-1){var ut=parseInt(rt.substr(ot+o.length),10);return tt=tt[ut],_typeof(tt)==="object"?it:tt}return""}return et},e=function(n){function o(tt){return tt==="Outline"?o.outlineInterface():null}return o._name="Outline",o.outlineInterface=t(n),o};return function(i){function n(o){return o==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=e(i),n}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=(function(){function t(et,it,rt){it.x&&(rt.k=!0,rt.x=!0,rt.initiateExpression=ExpressionManager.initiateExpression,rt.effectsSequence.push(rt.initiateExpression(et,it,rt).bind(rt)))}function e(et){return et*=this.elem.globalData.frameRate,et-=this.offsetTime,et!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<et?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(et,this._cachingAtTime),this._cachingAtTime.lastFrame=et),this._cachingAtTime.value}function i(et){var it=-.01,rt=this.getValueAtTime(et),ot=this.getValueAtTime(et+it),ut=0;if(rt.length){var bt;for(bt=0;bt<rt.length;bt+=1)ut+=Math.pow(ot[bt]-rt[bt],2);ut=Math.sqrt(ut)*100}else ut=0;return ut}function n(et){if(this.vel!==void 0)return this.vel;var it=-.001,rt=this.getValueAtTime(et),ot=this.getValueAtTime(et+it),ut;if(rt.length){ut=createTypedArray("float32",rt.length);var bt;for(bt=0;bt<rt.length;bt+=1)ut[bt]=(ot[bt]-rt[bt])/it}else ut=(ot-rt)/it;return ut}function o(){return this.pv}function tt(et){this.propertyGroup=et}return{searchExpressions:t,getSpeedAtTime:i,getVelocityAtTime:n,getValueAtTime:e,getStaticValueAtTime:o,setGroupProperty:tt}})();function addPropertyDecorator(){function t(st,gt,dt){if(!this.k||!this.keyframes)return this.pv;st=st?st.toLowerCase():"";var ft=this.comp.renderedFrame,Ct=this.keyframes,lt=Ct[Ct.length-1].t;if(ft<=lt)return this.pv;var ht,at;dt?(gt?ht=Math.abs(lt-this.elem.comp.globalData.frameRate*gt):ht=Math.max(0,lt-this.elem.data.ip),at=lt-ht):((!gt||gt>Ct.length-1)&&(gt=Ct.length-1),at=Ct[Ct.length-1-gt].t,ht=lt-at);var pt,St,Et;if(st==="pingpong"){var Ft=Math.floor((ft-at)/ht);if(Ft%2!==0)return this.getValueAtTime((ht-(ft-at)%ht+at)/this.comp.globalData.frameRate,0)}else if(st==="offset"){var Lt=this.getValueAtTime(at/this.comp.globalData.frameRate,0),Ot=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Xt=this.getValueAtTime(((ft-at)%ht+at)/this.comp.globalData.frameRate,0),$t=Math.floor((ft-at)/ht);if(this.pv.length){for(Et=new Array(Lt.length),St=Et.length,pt=0;pt<St;pt+=1)Et[pt]=(Ot[pt]-Lt[pt])*$t+Xt[pt];return Et}return(Ot-Lt)*$t+Xt}else if(st==="continue"){var Nt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Bt=this.getValueAtTime((lt-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Et=new Array(Nt.length),St=Et.length,pt=0;pt<St;pt+=1)Et[pt]=Nt[pt]+(Nt[pt]-Bt[pt])*((ft-lt)/this.comp.globalData.frameRate)/5e-4;return Et}return Nt+(Nt-Bt)*((ft-lt)/.001)}return this.getValueAtTime(((ft-at)%ht+at)/this.comp.globalData.frameRate,0)}function e(st,gt,dt){if(!this.k)return this.pv;st=st?st.toLowerCase():"";var ft=this.comp.renderedFrame,Ct=this.keyframes,lt=Ct[0].t;if(ft>=lt)return this.pv;var ht,at;dt?(gt?ht=Math.abs(this.elem.comp.globalData.frameRate*gt):ht=Math.max(0,this.elem.data.op-lt),at=lt+ht):((!gt||gt>Ct.length-1)&&(gt=Ct.length-1),at=Ct[gt].t,ht=at-lt);var pt,St,Et;if(st==="pingpong"){var Ft=Math.floor((lt-ft)/ht);if(Ft%2===0)return this.getValueAtTime(((lt-ft)%ht+lt)/this.comp.globalData.frameRate,0)}else if(st==="offset"){var Lt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Ot=this.getValueAtTime(at/this.comp.globalData.frameRate,0),Xt=this.getValueAtTime((ht-(lt-ft)%ht+lt)/this.comp.globalData.frameRate,0),$t=Math.floor((lt-ft)/ht)+1;if(this.pv.length){for(Et=new Array(Lt.length),St=Et.length,pt=0;pt<St;pt+=1)Et[pt]=Xt[pt]-(Ot[pt]-Lt[pt])*$t;return Et}return Xt-(Ot-Lt)*$t}else if(st==="continue"){var Nt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Bt=this.getValueAtTime((lt+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Et=new Array(Nt.length),St=Et.length,pt=0;pt<St;pt+=1)Et[pt]=Nt[pt]+(Nt[pt]-Bt[pt])*(lt-ft)/.001;return Et}return Nt+(Nt-Bt)*(lt-ft)/.001}return this.getValueAtTime((ht-((lt-ft)%ht+lt))/this.comp.globalData.frameRate,0)}function i(st,gt){if(!this.k)return this.pv;if(st=(st||.4)*.5,gt=Math.floor(gt||5),gt<=1)return this.pv;var dt=this.comp.renderedFrame/this.comp.globalData.frameRate,ft=dt-st,Ct=dt+st,lt=gt>1?(Ct-ft)/(gt-1):1,ht=0,at=0,pt;this.pv.length?pt=createTypedArray("float32",this.pv.length):pt=0;for(var St;ht<gt;){if(St=this.getValueAtTime(ft+ht*lt),this.pv.length)for(at=0;at<this.pv.length;at+=1)pt[at]+=St[at];else pt+=St;ht+=1}if(this.pv.length)for(at=0;at<this.pv.length;at+=1)pt[at]/=gt;else pt/=gt;return pt}function n(st){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var gt=this._transformCachingAtTime.v;if(gt.cloneFromProps(this.pre.props),this.appliedTransformations<1){var dt=this.a.getValueAtTime(st);gt.translate(-dt[0]*this.a.mult,-dt[1]*this.a.mult,dt[2]*this.a.mult)}if(this.appliedTransformations<2){var ft=this.s.getValueAtTime(st);gt.scale(ft[0]*this.s.mult,ft[1]*this.s.mult,ft[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Ct=this.sk.getValueAtTime(st),lt=this.sa.getValueAtTime(st);gt.skewFromAxis(-Ct*this.sk.mult,lt*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ht=this.r.getValueAtTime(st);gt.rotate(-ht*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var at=this.rz.getValueAtTime(st),pt=this.ry.getValueAtTime(st),St=this.rx.getValueAtTime(st),Et=this.or.getValueAtTime(st);gt.rotateZ(-at*this.rz.mult).rotateY(pt*this.ry.mult).rotateX(St*this.rx.mult).rotateZ(-Et[2]*this.or.mult).rotateY(Et[1]*this.or.mult).rotateX(Et[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Ft=this.px.getValueAtTime(st),Lt=this.py.getValueAtTime(st);if(this.data.p.z){var Ot=this.pz.getValueAtTime(st);gt.translate(Ft*this.px.mult,Lt*this.py.mult,-Ot*this.pz.mult)}else gt.translate(Ft*this.px.mult,Lt*this.py.mult,0)}else{var Xt=this.p.getValueAtTime(st);gt.translate(Xt[0]*this.p.mult,Xt[1]*this.p.mult,-Xt[2]*this.p.mult)}return gt}function o(){return this.v.clone(new Matrix)}var tt=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(st,gt,dt){var ft=tt(st,gt,dt);return ft.dynamicProperties.length?ft.getValueAtTime=n.bind(ft):ft.getValueAtTime=o.bind(ft),ft.setGroupProperty=expressionHelpers.setGroupProperty,ft};var et=PropertyFactory.getProp;PropertyFactory.getProp=function(st,gt,dt,ft,Ct){var lt=et(st,gt,dt,ft,Ct);lt.kf?lt.getValueAtTime=expressionHelpers.getValueAtTime.bind(lt):lt.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(lt),lt.setGroupProperty=expressionHelpers.setGroupProperty,lt.loopOut=t,lt.loopIn=e,lt.smooth=i,lt.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(lt),lt.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(lt),lt.numKeys=gt.a===1?gt.k.length:0,lt.propertyIndex=gt.ix;var ht=0;return dt!==0&&(ht=createTypedArray("float32",gt.a===1?gt.k[0].s.length:gt.k.length)),lt._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ht},expressionHelpers.searchExpressions(st,gt,lt),lt.k&&Ct.addDynamicProperty(lt),lt};function it(st){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),st*=this.elem.globalData.frameRate,st-=this.offsetTime,st!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<st?this._caching.lastIndex:0,this._cachingAtTime.lastTime=st,this.interpolateShape(st,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var rt=ShapePropertyFactory.getConstructorFunction(),ot=ShapePropertyFactory.getKeyframedConstructorFunction();function ut(){}ut.prototype={vertices:function(gt,dt){this.k&&this.getValue();var ft=this.v;dt!==void 0&&(ft=this.getValueAtTime(dt,0));var Ct,lt=ft._length,ht=ft[gt],at=ft.v,pt=createSizedArray(lt);for(Ct=0;Ct<lt;Ct+=1)gt==="i"||gt==="o"?pt[Ct]=[ht[Ct][0]-at[Ct][0],ht[Ct][1]-at[Ct][1]]:pt[Ct]=[ht[Ct][0],ht[Ct][1]];return pt},points:function(gt){return this.vertices("v",gt)},inTangents:function(gt){return this.vertices("i",gt)},outTangents:function(gt){return this.vertices("o",gt)},isClosed:function(){return this.v.c},pointOnPath:function(gt,dt){var ft=this.v;dt!==void 0&&(ft=this.getValueAtTime(dt,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(ft));for(var Ct=this._segmentsLength,lt=Ct.lengths,ht=Ct.totalLength*gt,at=0,pt=lt.length,St=0,Et;at<pt;){if(St+lt[at].addedLength>ht){var Ft=at,Lt=ft.c&&at===pt-1?0:at+1,Ot=(ht-St)/lt[at].addedLength;Et=bez.getPointInSegment(ft.v[Ft],ft.v[Lt],ft.o[Ft],ft.i[Lt],Ot,lt[at]);break}else St+=lt[at].addedLength;at+=1}return Et||(Et=ft.c?[ft.v[0][0],ft.v[0][1]]:[ft.v[ft._length-1][0],ft.v[ft._length-1][1]]),Et},vectorOnPath:function(gt,dt,ft){gt==1?gt=this.v.c:gt==0&&(gt=.999);var Ct=this.pointOnPath(gt,dt),lt=this.pointOnPath(gt+.001,dt),ht=lt[0]-Ct[0],at=lt[1]-Ct[1],pt=Math.sqrt(Math.pow(ht,2)+Math.pow(at,2));if(pt===0)return[0,0];var St=ft==="tangent"?[ht/pt,at/pt]:[-at/pt,ht/pt];return St},tangentOnPath:function(gt,dt){return this.vectorOnPath(gt,dt,"tangent")},normalOnPath:function(gt,dt){return this.vectorOnPath(gt,dt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([ut],rt),extendPrototype([ut],ot),ot.prototype.getValueAtTime=it,ot.prototype.initiateExpression=ExpressionManager.initiateExpression;var bt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(st,gt,dt,ft,Ct){var lt=bt(st,gt,dt,ft,Ct);return lt.propertyIndex=gt.ix,lt.lock=!1,dt===3?expressionHelpers.searchExpressions(st,gt.pt,lt):dt===4&&expressionHelpers.searchExpressions(st,gt.ks,lt),lt.k&&st.addDynamicProperty(lt),lt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){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(e,i){var n=this.calculateExpression(i);if(e.t!==n){var o={};return this.copyData(o,e),o.t=n.toString(),o.__complete=!1,o}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),i=this.searchExpressions();return this.kf=e||i,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,i){var n=createNS("feMerge");n.setAttribute("result",e);var o,tt;for(tt=0;tt<i.length;tt+=1)o=createNS("feMergeNode"),o.setAttribute("in",i[tt]),n.appendChild(o),n.appendChild(o);return n}};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(t,e,i,n,o){this.filterManager=e;var tt=createNS("feColorMatrix");tt.setAttribute("type","matrix"),tt.setAttribute("color-interpolation-filters","linearRGB"),tt.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=tt,tt.setAttribute("result",n+"_tint_1"),t.appendChild(tt),tt=createNS("feColorMatrix"),tt.setAttribute("type","matrix"),tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),tt.setAttribute("result",n+"_tint_2"),t.appendChild(tt),this.matrixFilter=tt;var et=this.createMergeNode(n,[o,n+"_tint_1",n+"_tint_2"]);t.appendChild(et)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}};function SVGFillFilter(t,e,i,n){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n),t.appendChild(o),this.matrixFilter=o}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes,e,i,n,o;for(this.filterManager.effectElements[1].p.v===1?(o=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,o=n+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),n;n<o;n+=1)e=createNS("path"),i.appendChild(e),this.paths.push({p:e,m:n});if(this.filterManager.effectElements[10].p.v===3){var tt=createNS("mask"),et=createElementID();tt.setAttribute("id",et),tt.setAttribute("mask-type","alpha"),tt.appendChild(i),this.elem.globalData.defs.appendChild(tt);var it=createNS("g");for(it.setAttribute("mask","url("+getLocationHref()+"#"+et+")");t[0];)it.appendChild(t[0]);this.elem.layerElement.appendChild(it),this.masker=tt,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(t=this.elem.layerElement.children||this.elem.layerElement.childNodes;t.length;)this.elem.layerElement.removeChild(t[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,i=this.paths.length,n,o;for(e=0;e<i;e+=1)if(this.paths[e].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[e].m],o=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&o.setAttribute("d",n.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var tt;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var et=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,it=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,rt=o.getTotalLength();tt="0 0 0 "+rt*et+" ";var ot=rt*(it-et),ut=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,bt=Math.floor(ot/ut),st;for(st=0;st<bt;st+=1)tt+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";tt+="0 "+rt*10+" 0 0"}else tt="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;o.setAttribute("stroke-dasharray",tt)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(t||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)&&(t||this.filterManager.effectElements[3].p._mdf)){var gt=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(gt[0]*255)+","+bmFloor(gt[1]*255)+","+bmFloor(gt[2]*255)+")")}};function SVGTritoneFilter(t,e,i,n){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.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"),t.appendChild(o);var tt=createNS("feComponentTransfer");tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("result",n),this.matrixFilter=tt;var et=createNS("feFuncR");et.setAttribute("type","table"),tt.appendChild(et),this.feFuncR=et;var it=createNS("feFuncG");it.setAttribute("type","table"),tt.appendChild(it),this.feFuncG=it;var rt=createNS("feFuncB");rt.setAttribute("type","table"),tt.appendChild(rt),this.feFuncB=rt,t.appendChild(tt)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,o=n[0]+" "+i[0]+" "+e[0],tt=n[1]+" "+i[1]+" "+e[1],et=n[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",tt),this.feFuncB.setAttribute("tableValues",et)}};function SVGProLevelsFilter(t,e,i,n){this.filterManager=e;var o=this.filterManager.effectElements,tt=createNS("feComponentTransfer");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",tt)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",tt)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",tt)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",tt)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(tt.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(tt)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&(tt=createNS("feComponentTransfer"),tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("result",n),t.appendChild(tt),this.feFuncRComposed=this.createFeFunc("feFuncR",tt),this.feFuncGComposed=this.createFeFunc("feFuncG",tt),this.feFuncBComposed=this.createFeFunc("feFuncB",tt))}SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,n,o){for(var tt=0,et=256,it,rt=Math.min(t,e),ot=Math.max(t,e),ut=Array.call(null,{length:et}),bt,st=0,gt=o-n,dt=e-t;tt<=256;)it=tt/256,it<=rt?bt=dt<0?o:n:it>=ot?bt=dt<0?n:o:bt=n+gt*Math.pow((it-t)/dt,1/i),ut[st]=bt,st+=1,tt+=256/(et-1);return ut.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}};function SVGDropShadowEffect(t,e,i,n,o){var tt=e.container.globalData.renderConfig.filterSize,et=e.data.fs||tt;t.setAttribute("x",et.x||tt.x),t.setAttribute("y",et.y||tt.y),t.setAttribute("width",et.width||tt.width),t.setAttribute("height",et.height||tt.height),this.filterManager=e;var it=createNS("feGaussianBlur");it.setAttribute("in","SourceAlpha"),it.setAttribute("result",n+"_drop_shadow_1"),it.setAttribute("stdDeviation","0"),this.feGaussianBlur=it,t.appendChild(it);var rt=createNS("feOffset");rt.setAttribute("dx","25"),rt.setAttribute("dy","0"),rt.setAttribute("in",n+"_drop_shadow_1"),rt.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=rt,t.appendChild(rt);var ot=createNS("feFlood");ot.setAttribute("flood-color","#00ff00"),ot.setAttribute("flood-opacity","1"),ot.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=ot,t.appendChild(ot);var ut=createNS("feComposite");ut.setAttribute("in",n+"_drop_shadow_3"),ut.setAttribute("in2",n+"_drop_shadow_2"),ut.setAttribute("operator","in"),ut.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(ut);var bt=this.createMergeNode(n,[n+"_drop_shadow_4",o]);t.appendChild(bt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=i*Math.cos(n),tt=i*Math.sin(n);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",tt)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,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(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var n=i.children,o=0,tt=n.length;o<tt&&n[o]!==t.layerElement;)o+=1;var et;o<=tt-2&&(et=n[o+1]);var it=createNS("use");it.setAttribute("href","#"+e),et?i.insertBefore(it,et):i.appendChild(it)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var o=t.globalData.defs;o.appendChild(n);var tt=createNS("symbol");tt.setAttribute("id",i),this.replaceInParent(e,i),tt.appendChild(e.layerElement),o.appendChild(tt);var et=createNS("use");et.setAttribute("href","#"+i),n.appendChild(et),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,n=e.length;i<n;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(t,e,i,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("result",n),t.appendChild(o),this.feGaussianBlur=o}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,i=this.filterManager.effectElements[0].p.v*e,n=this.filterManager.effectElements[1].p.v,o=n==3?0:i,tt=n==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",o+" "+tt);var et=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",et)}};function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,n=e[1].p.v,o=e[2].p.v===1,tt=e[3].p.v,et=o?tt:e[4].p.v,it=e[5].p.v,rt=e[6].p.v,ot=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(et*.01,tt*.01,1),this.matrix.rotate(-ot*degToRads),this.matrix.skewFromAxis(-it*degToRads,(rt+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(t,e){this.init(e)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(t){this.init(t)}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}))}
6)(lottie$1,lottie$1.exports)),lottie$1.exports}var lottieExports=requireLottie();const p=getDefaultExportFromCjs(lottieExports);function m(t,e){e===void 0&&(e={});var i=e.insertAt;if(t&&typeof document<"u"){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",i==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var f=`.defly-wallet-modal-header {
7  position: absolute;
8  top: -44px;
9  right: 0px;
10  left: 0;
11  display: flex;
12  align-items: center;
13  justify-content: space-between;
14}
15.defly-wallet-modal-header--mobile {
16  position: static;
17}
18.defly-wallet-modal-header--mobile .defly-wallet-modal-header__close-button {
19  width: 24px;
20  height: 24px;
21  margin: 0;
22  padding: 0;
23  background: transparent;
24  border: unset;
25  box-shadow: unset;
26}
27
28.defly-wallet-modal-header__brand {
29  display: flex;
30  align-items: center;
31  gap: 10px;
32  font-size: 15px;
33  font-weight: 600;
34  line-height: 18px;
35  letter-spacing: -0.13px;
36  color: #ffffff;
37}
38
39.defly-wallet-button {
40  display: flex;
41  align-items: center;
42  justify-content: center;
43  width: auto;
44  height: 48px;
45  padding: 14px;
46  border: none;
47  border-radius: 12px;
48  outline: none;
49  cursor: pointer;
50  font-family: var(--defly-wallet-modal-font-family);
51  font-size: 14px;
52}
53
54.defly-wallet-modal-header__close-button {
55  width: 40px;
56  height: 40px;
57  margin: 0;
58  padding: 0;
59  background: #333333;
60  border: 1.5px solid rgba(255, 255, 255, 0.08);
61  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
62  border-radius: 100%;
63}
64
65.defly-wallet-modal-header__close-button__close-icon {
66  width: 20px;
67  height: 20px;
68}`;m(f);const w=935;function x(){return document.documentElement.clientWidth<=w}function y(){document.documentElement.style.setProperty("--defly-wallet-vh",.01*window.innerHeight+"px")}const h=document.createElement("template"),g=C$1()?"defly-wallet-modal-header defly-wallet-modal-header--mobile":"defly-wallet-modal-header defly-wallet-modal-header--desktop";h.innerHTML=`
69  <div class="${g}">
70      ${x()&&C$1()?"":`<div class="defly-wallet-modal-header__brand">
71              <img src="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3e %3cg transform='translate(18090 -8429)'%3e %3cg transform='translate(-18227.732 8408.374)'%3e %3cpath d='M168.632%2c47.566%2c155.742%2c26l-12.89%2c21.566%2c12.89-7.354Z' transform='translate(0)' fill='white'/%3e %3cpath d='M191.634%2c257.081l-10.639-5.607-10.639%2c5.607%2c10.639-3.464Z' transform='translate(-25.252 -207.321)' fill='white'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e" />
72
73              Defly Connect
74            </div>
75            `} 
76
77      <button
78        id="defly-wallet-modal-header-close-button"
79        class="defly-wallet-button defly-wallet-modal-header__close-button">
80        <img
81          class="defly-wallet-modal-header__close-button__close-icon"
82          src="${x()&&C$1()?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6' stroke='%23999999' stroke-width='2'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6' stroke='white' stroke-width='2'/%3e%3c/svg%3e"}"
83        />
84      </button>
85    </div>
86`;class u extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=f,this.shadowRoot.append(h.content.cloneNode(!0),e),this.onClose()}}onClose(){var e;const i=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-modal-header-close-button"),n=this.getAttribute("modal-id");i&&n===s&&i.addEventListener("click",(()=>{f$1(s)}))}}var k="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3e%3cg transform='translate(18090 -8429)'%3e%3cg transform='translate(-18090 8428)'%3e%3crect width='36' height='36' rx='18' transform='translate(0 1)'/%3e%3c/g%3e%3cg transform='translate(-18227.732 8408.374)'%3e%3cpath d='M168.632%2c47.566%2c155.742%2c26l-12.89%2c21.566%2c12.89-7.354Z' transform='translate(0)' fill='white'/%3e%3cpath d='M191.634%2c257.081l-10.639-5.607-10.639%2c5.607%2c10.639-3.464Z' transform='translate(-25.252 -207.321)' fill='white'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",v=`.defly-wallet-download-qr-code-wrapper {
87  width: fit-content;
88  margin: 0 auto;
89  display: flex;
90  background-color: #ffffff;
91  box-shadow: 0 12px 32px rgba(26, 35, 91, 0.1);
92  border-radius: 30px;
93  align-items: center;
94  justify-content: center;
95  padding: 15px;
96}
97
98@media (max-width: 935px) {
99  .defly-wallet-download-qr-code-wrapper {
100    margin-top: 32px;
101  }
102}`;m(v);const _=A$1()?"algorand://":"defly-wc://",b=document.createElement("template");b.innerHTML=`
103  <div id="defly-wallet-download-qr-code-wrapper" class="defly-wallet-download-qr-code-wrapper"></div>  
104`;class C extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=v,this.shadowRoot.append(b.content.cloneNode(!0),e)}}connectedCallback(){var e;const i=new r({width:250,height:250,type:"svg",data:"https://defly.app/",image:k,dotsOptions:{color:"#000",type:"dots"},imageOptions:{crossOrigin:"anonymous",margin:10},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}}),n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-download-qr-code-wrapper");
104n&&i.append(n)}}var E=`.defly-wallet-connect-modal-desktop-mode {
105  display: grid;
106  grid-template-columns: 50% auto;
107  gap: 24px;
108  align-items: center;
109}
110.defly-wallet-connect-modal-desktop-mode--default .defly-wallet-connect-modal-desktop-mode__default-view {
111  display: block;
112}
113.defly-wallet-connect-modal-desktop-mode--default .defly-wallet-connect-modal-desktop-mode__download-view {
114  display: none;
115}
116.defly-wallet-connect-modal-desktop-mode--download .defly-wallet-connect-modal-desktop-mode__default-view {
117  display: none;
118}
119.defly-wallet-connect-modal-desktop-mode--download .defly-wallet-connect-modal-desktop-mode__download-view {
120  display: block;
121}
122.defly-wallet-connect-modal-desktop-mode--download .defly-wallet-connect-modal-desktop-mode__download-view .defly-wallet-connect-modal-download-defly-view__footer a {
123  display: flex;
124  cursor: pointer;
125}
126.defly-wallet-connect-modal-desktop-mode--select-account {
127  width: 100%;
128  height: 100%;
129}
130.defly-wallet-connect-modal-desktop-mode--select-account.defly-wallet-connect-modal-desktop-mode--default {
131  overflow: hidden;
132}
133.defly-wallet-connect-modal-desktop-mode--select-account .defly-wallet-accordion {
134  overflow: hidden;
135}
136.defly-wallet-connect-modal-desktop-mode--select-account #defly-wallet-iframe {
137  position: absolute;
138  top: 0;
139  left: 0;
140  z-index: 3;
141  width: 100%;
142  height: 100%;
143  border-radius: 16px;
144}
145
146.defly-wallet-connect-modal-desktop-mode__accordion__description,
147.defly-wallet-connect-modal-desktop-mode__connect-button-wrapper {
148  padding: 0 40px 20px 64px;
149}
150
151.defly-wallet-connect-modal-desktop-mode__connect-button {
152  display: block;
153  width: 100%;
154  height: 48px;
155  border: unset;
156  border-radius: 6px;
157  background-color: #333333;
158  color: white;
159  cursor: pointer;
160  font-family: var(--defly-wallet-modal-font-family);
161  font-size: 13px;
162}
163
164.defly-wallet-connect-qr-code-wrapper {
165  width: fit-content;
166  padding: 10px;
167  margin: 0 auto;
168  display: flex;
169  background-color: #ffffff;
170  box-shadow: 0 12px 32px rgba(26, 35, 91, 0.1);
171  border-radius: 30px;
172}
173
174.defly-wallet-connect-qr-code-wrapper {
175  margin-top: 30px;
176  cursor: pointer;
177}
178
179.defly-wallet-download-qr-code__image {
180  width: 300px;
181  height: 300px;
182}
183
184.defly-wallet-accordion-copy-button {
185  display: block;
186  width: 100%;
187  color: #696868;
188  text-align: center;
189  margin-top: 15px;
190  cursor: pointer;
191  font-size: 12px;
192  line-height: 16px;
193  letter-spacing: -0.1px;
194  font-weight: 400;
195  transition: all ease-in 0.2s;
196}
197.defly-wallet-accordion-copy-button:hover {
198  color: #999999;
199}
200
201.defly-wallet-connect-modal-desktop-mode__scan-defly-description {
202  color: #999999;
203  text-align: center;
204  margin: 15px 0 12px;
205  font-size: 22px;
206  font-weight: 600;
207  line-height: 26px;
208  letter-spacing: 0.2px;
209}
210.defly-wallet-connect-modal-desktop-mode__scan-defly-description a {
211  color: #999999;
212}
213.defly-wallet-connect-modal-desktop-mode__scan-defly-description a:hover {
214  color: #696868;
215}
216
217.defly-wallet-connect-modal-desktop-mode__download-defly-description {
218  color: #696868;
219  text-align: center;
220  margin: 32px 0 12px;
221  font-size: 13px;
222  font-weight: 500;
223  line-height: 20px;
224  letter-spacing: -0.04px;
225}
226
227.defly-wallet-connect-modal-download-defly-view__back-button {
228  display: flex;
229  align-items: center;
230  gap: 16px;
231  margin-bottom: 14px;
232  padding: 12px 24px;
233  color: #3c3c49;
234  background-color: #ffffff;
235  outline: none;
236  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);
237  border: unset;
238  border-radius: 24px;
239  font-size: 14px;
240  font-weight: 600;
241  line-height: 24px;
242  letter-spacing: -0.1px;
243  cursor: pointer;
244}
245
246.defly-wallet-connect-modal-download-defly-view {
247  padding: 20px;
248  background-color: #333333;
249  border-radius: 30px;
250}
251
252.defly-wallet-connect-modal-download-defly-view__title {
253  margin-bottom: 15px;
254  color: #999999;
255  font-weight: 600;
256  font-size: 22px;
257  line-height: 24px;
258  text-align: center;
259  letter-spacing: 0.2px;
260}
261
262.defly-wallet-connect-modal-download-defly-view__footer {
263  display: flex;
264  align-items: center;
265  justify-content: center;
266  gap: 12px;
267  margin-top: 20px;
268}
269
270.defly-wallet-connect-modal-download-defly-view__footer__button {
271  display: flex;
272  align-items: center;
273  justify-content: center;
274  gap: 8px;
275  padding: 8px 16px;
276  color: #6a6a81;
277  background-color: #ffffff;
278  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);
279  text-decoration: none;
280  border-radius: 12px;
281  font-weight: 500;
282  font-size: 13px;
283  line-height: 200%;
284  letter-spacing: -0.04px;
285  cursor: pointer;
286}
287
288#defly-wallet-iframe {
289  width: 285px;
290  height: 376px;
291  margin: 0 auto;
292  border: none;
293}
294
295@media (max-width: 935px) {
296  .defly-wallet-connect-modal-desktop-mode {
297    grid-template-columns: 1fr;
298    gap: 24px;
299  }
300  .defly-wallet-connect-qr-code-wrapper {
301    margin-top: 16px;
302  }
303  .defly-wallet-connect-modal-download-defly-view {
304    padding: 24px;
305  }
306  .defly-wallet-connect-modal-download-defly-view__footer {
307    margin-top: 40px;
308  }
309}`;m(E);var D=`.defly-wallet-accordion-item:not(:last-of-type) {
310  margin-bottom: 20px;
311}
312.defly-wallet-accordion-item:not(:last-of-type) .defly-wallet-accordion-panel {
313  display: flex;
314  align-items: center;
315  justify-content: center;
316}
317.defly-wallet-accordion-item .defly-wallet-accordion-item__content {
318  height: 0;
319  overflow: hidden;
320  color: #696868;
321  font-size: 12px;
322  font-weight: 500;
323  line-height: 16px;
324  letter-spacing: -0.1px;
325  transition: height ease-in 0.2s;
326}
327.defly-wallet-accordion-item--active .defly-wallet-accordion-item__content {
328  height: 494px;
329  transition: height ease-in 0.2s;
330}
331
332.defly-wallet-accordion-toggle {
333  position: relative;
334  display: flex;
335  align-items: center;
336  gap: 16px;
337  padding: 12px 24px;
338  color: #2c3559;
339  background-color: #ffffff;
340  border: none;
341  border-radius: 24px;
342  outline: none;
343  cursor: pointer;
344  font-size: 16px;
345  line-height: 18px;
346  letter-spacing: -0.1px;
347  font-weight: 600;
348  transition: all ease-in 0.2s;
349}
350.defly-wallet-accordion-toggle__text, .defly-wallet-accordion-toggle__content-with-label__text {
351  color: #6a6a81;
352}
353
354.defly-wallet-accordion-toggle__bold-color {
355  color: #3c3c49;
356  font-weight: 600;
357}
358
359.defly-wallet-accordion-toggle__content-with-label {
360  display: flex;
361  align-items: center;
362  gap: 12px;
363}
364
365.defly-wallet-accordion-toggle__label {
366  padding: 4px 9px;
367  color: #00b19e;
368  background: rgba(0, 177, 158, 0.08);
369  border-radius: 12px;
370  font-size: 11px;
371  font-weight: 600;
372  line-height: 18px;
373  letter-spacing: 0.01px;
374}
375
376.defly-wallet-accordion-toggle__button {
377  position: absolute;
378  z-index: 2;
379  width: 100%;
380  height: 100%;
381  background: transparent;
382  box-shadow: none;
383  outline: none;
384  border: none;
385  cursor: pointer;
386}
387
388@media (max-width: 935px) {
389  .defly-wallet-accordion-toggle {
390    font-size: 14px;
391    font-weight: 500;
392    line-height: 24px;
393    letter-spacing: -0.1px;
394  }
395}`;m(D);const L=document.createElement("template"),S=document.createElement("style"),B=document.createElement("style");S.textContent=E,B.textContent=D;L.innerHTML=`
396  <div id="defly-wallet-connect-modal-desktop-mode" class="defly-wallet-connect-modal-desktop-mode defly-wallet-connect-modal-desktop-mode--default">
397      <defly-wallet-connect-modal-information-section></defly-wallet-connect-modal-information-section>
398
399      <div class="defly-wallet-connect-modal-desktop-mode__default-view">
400
401        <div class="defly-wallet-accordion-item defly-wallet-accordion-item--active">
402
403          <div class="defly-wallet-accordion-item__content">
404            <div id="defly-wallet-connect-modal-connect-qr-code" class="defly-wallet-connect-qr-code-wrapper f_copy-button"></div>
405
406            <div class="defly-wallet-accordion-copy-button f_copy-button">Tap to copy</div>
407            <p class="defly-wallet-connect-modal-desktop-mode__scan-defly-description">
408                Scan with <a href="https://defly.app/">Defly Wallet</a>
409            </p>
410
411            
412          </div>
413        </div>
414      </div>
415
416      <div class="defly-wallet-connect-modal-desktop-mode__download-view">
417        <button id="defly-wallet-connect-modal-download-defly-view-back-button" class="defly-wallet-connect-modal-download-defly-view__back-button">
418          <img src="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.7071 6.29387C11.0976 6.68439 11.0976 7.31756 10.7071 7.70808L7.41421 11.001L19 11.001C19.5523 11.001 20 11.4487 20 12.001C20 12.5533 19.5523 13.001 19 13.001L7.41421 13.001L10.7071 16.2939C11.0976 16.6844 11.0976 17.3176 10.7071 17.7081C10.3166 18.0986 9.68342 18.0986 9.29289 17.7081L4.29289 12.7081C4.10536 12.5205 4 12.2662 4 12.001C4 11.7358 4.10536 11.4814 4.29289 11.2939L9.29289 6.29387C9.68342 5.90335 10.3166 5.90335 10.7071 6.29387Z' fill='%233C3C49'/%3e%3c/svg%3e" alt="Back Arrow" /> Back
419        </button>
420
421        <div class="defly-wallet-connect-modal-download-defly-view">
422          <h1 class="defly-wallet-connect-modal-download-defly-view__title">
423            Download Defly Wallet
424          </h1>
425
426          <defly-wallet-download-qr-code></defly-wallet-download-qr-code>
427
428          <div class="defly-wallet-connect-modal-download-defly-view__footer">
429            <a
430              href="https://apps.apple.com/us/app/defly/id1602672723"
431              target="_blank"
432              rel="noopener noreferrer">
433              <img src="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='40' height='40' rx='12' fill='black'/%3e%3cpath d='M25.6308 20.3011C25.6416 19.4664 25.8633 18.6481 26.2753 17.9221C26.6873 17.1962 27.2763 16.5863 27.9873 16.1491C27.5356 15.5039 26.9397 14.973 26.2469 14.5984C25.554 14.2239 24.7834 14.016 23.99
43363 13.9914C22.317 13.8151 20.6891 14.9962 19.8333 14.9962C18.9611 14.9962 17.6436 14.0089 16.2249 14.0381C15.3072 14.0677 14.4128 14.3346 13.6289 14.8126C12.8451 15.2906 12.1984 15.9636 11.7519 16.7659C9.81789 20.1144 11.2605 25.0354 13.1132 27.742C14.0401 29.0674 15.1233 30.5478 16.5408 30.4953C17.9278 30.4378 18.4458 29.6108 20.1202 29.6108C21.779 29.6108 22.265 30.4953 23.7112 30.4619C25.1995 30.4378 26.1372 29.1307 27.0316 27.7928C27.6976 26.8484 28.2101 25.8047 28.55 24.7003C27.6853 24.3345 26.9474 23.7224 26.4283 22.9401C25.9092 22.1578 25.6318 21.2399 25.6308 20.3011ZM22.8993 12.2113C23.7108 11.2371 24.1106 9.98492 24.0138 8.7207C22.7739 8.85092 21.6287 9.44347 20.8062 10.3803C20.404 10.838 20.096 11.3704 19.8998 11.9472C19.7035 12.5239 19.6229 13.1337 19.6625 13.7417C20.2826 13.7481 20.8961 13.6137 21.4568 13.3486C22.0175 13.0835 22.5107 12.6946 22.8993 12.2113Z' fill='white'/%3e%3c/svg%3e" alt="App Store icon" />
434            </a>
435
436            <a
437              href="https://play.google.com/store/apps/details?id=io.blockshake.defly.app"
438              target="_blank"
439              rel="noopener noreferrer">
440              <img src="data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='40' height='40' rx='12' fill='black'/%3e%3cpath d='M12.41 9.7719C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922V10.8671V29.1294V29.0091C11.9683 29.5202 12.1099 29.9149 12.3497 30.169L12.4109 30.2277V30.228C12.6051 30.4035 12.854 30.4966 13.1393 30.4963C13.418 30.4963 13.7316 30.4073 14.0626 30.2194L26.0264 23.4107L30.1359 21.0717C30.6578 20.7748 30.9508 20.3917 30.9998 20.0014V19.9998C30.9508 19.6087 30.6578 19.2259 30.1359 18.9289L26.0261 16.5902L14.0627 9.78154C13.731 9.59325 13.4171 9.50391 13.1376 9.50391C12.8527 9.50391 12.6041 9.59677 12.41 9.7719H12.41Z' fill='%2300C1FF'/%3e%3cpath d='M12.411 30.2285L12.3497 30.1698C12.1099 29.9157 11.9683 29.5209 11.9683 29.0098V29.1301V10.8724V10.993C11.9683 10.4396 12.1334 10.0226 12.41 9.77268L22.622 20.0009L12.411 30.2285Z' fill='url(%23paint0_linear_173_14441)'/%3e%3cpath d='M26.0256 23.4102L22.6211 19.9996L26.0253 16.5896L30.1351 18.9283C30.657 19.2253 30.95 19.6081 30.9989 19.9993V20.0008C30.95 20.3911 30.657 20.7742 30.1351 21.0712L26.0256 23.4101' fill='url(%23paint1_linear_173_14441)'/%3e%3cpath d='M13.1374 30.4961C12.8522 30.4964 12.6033 30.4032 12.4092 30.2277V30.2275L22.6202 19.9999L26.0246 23.4104L14.0608 30.2191C13.7298 30.4071 13.4162 30.4961 13.1374 30.4961Z' fill='url(%23paint2_linear_173_14441)'/%3e%3cpath d='M22.6212 20.002L12.4092 9.7737C12.6033 9.59858 12.8519 9.50571 13.1368 9.50571C13.4163 9.50571 13.7302 9.59501 14.0618 9.78335L26.0253 16.592L22.6212 20.002' fill='url(%23paint3_linear_173_14441)'/%3e%3cpath d='M13.1394 30.6172C12.8542 30.6172 12.6049 30.524 12.4108 30.3486L12.4105 30.3489C12.4097 30.3481 12.4088 30.3473 12.4079 30.3466L12.3548 30.2947C12.3531 30.2931 12.3516 30.2912 12.3496 30.2893L12.4108 30.2279C12.6049 30.4034 12.8538 30.4966 13.1392 30.4962C13.4179 30.4962 13.7315 30.4073 14.0625 30.2193L26.0263 23.4106L26.1029 23.4874L26.0253 23.5316L14.0625 30.3398C13.7608 30.5111 13.4739 30.6004 13.2147 30.6153C13.1896 30.6165 13.1645 30.6171 13.1394 30.6172' fill='url(%23paint4_linear_173_14441)'/%3e%3cpath d='M12.3497 30.2891C12.1099 30.0349 11.9683 29.6406 11.9683 29.1292V29.0089C11.9683 29.52 12.1099 29.9146 12.3497 30.1688L12.4109 30.2275L12.3497 30.2891Z' fill='url(%23paint5_linear_173_14441)'/%3e%3cpath d='M26.1025 23.4882L26.0259 23.4114L30.1349 21.0727C30.6568 20.7758 30.9498 20.3927 30.9987 20.0025C30.9987 20.1457 30.9668 20.2889 30.9035 20.4282C30.7756 20.7091 30.5194 20.9744 30.135 21.1934L26.1025 23.4883' fill='url(%23paint6_linear_173_14441)'/%3e%3cpath d='M30.9991 20C30.9501 19.6089 30.6571 19.2261 30.1353 18.9291L26.0259 16.5907L26.1025 16.5139H26.1029L30.1353 18.8088C30.7106 19.1365 30.9987 19.5682 30.9991 20Z' fill='url(%23paint7_linear_173_14441)'/%3e%3cpath d='M11.9683 10.9922V10.8661C11.9683 10.8206 11.9695 10.7761 11.9718 10.7329V10.7309C11.9718 10.7303 11.9718 10.7297 11.972 10.729V10.7242C11.9969 10.284 12.1334 9.94066 12.3497 9.71139L12.4099 9.77198C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922Z' fill='url(%23paint8_linear_173_14441)'/%3e%3cpath d='M26.026 16.5898L14.0625 9.78115C13.7308 9.59285 13.417 9.50355 13.1375 9.50355C12.8525 9.50355 12.6039 9.59642 12.4099 9.77154L12.3496 9.71091C12.3684 9.69096 12.388 9.67172 12.4082 9.65322C12.4089 9.65255 12.4099 9.65188 12.4105 9.65125C12.6031 9.47747 12.849 9.3846 13.1314 9.38293H13.1375C13.417 9.38293 13.7308 9.47227 14.0625 9.66064L26.1029 16.5128L26.1026 16.513L26.026 16.5898Z' fill='url(%23paint9_linear_173_14441)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_173_14441' x1='18.4943' y1='10.6794' x2='9.69389' y2='19.494' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2300A0FF'/%3e%3cstop offset='0.00657' stop-color='%2300A1FF'/%3e%3cstop offset='0.2601' stop-color='%2300BEFF'/%3e%3cstop offset='0.5122' stop-color='%2300D2FF'/%3e%3cstop offset='0.7604' stop-color='%2300DFFF'/%3e%3cstop offset='1' stop-color='%2300E3FF'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_173_14441' x1='31.6348' y1='19.9407' x2='11.691' y2='19.9407' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FFE000'/%3e%3cstop offset='0.4087' stop-color='%23FFBD00'/%3e%3cstop offset='0.7
440754' stop-color='orange'/%3e%3cstop offset='1' stop-color='%23FF9C00'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear_173_14441' x1='24.2172' y1='23.2425' x2='9.30414' y2='38.0705' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FF3A44'/%3e%3cstop offset='1' stop-color='%23C31162'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear_173_14441' x1='9.77725' y1='8.25731' x2='16.4237' y2='14.876' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2332A071'/%3e%3cstop offset='0.0685' stop-color='%232DA771'/%3e%3cstop offset='0.4762' stop-color='%2315CF74'/%3e%3cstop offset='0.8009' stop-color='%2306E775'/%3e%3cstop offset='1' stop-color='%2300F076'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear_173_14441' x1='24.2114' y1='25.6084' x2='12.2683' y2='37.5709' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23CC2E36'/%3e%3cstop offset='1' stop-color='%239C0E4E'/%3e%3c/linearGradient%3e%3clinearGradient id='paint5_linear_173_14441' x1='13.3285' y1='10.6804' x2='5.57625' y2='18.4453' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23008DE0'/%3e%3cstop offset='0.00657' stop-color='%23008DE0'/%3e%3cstop offset='0.2601' stop-color='%2300A7E0'/%3e%3cstop offset='0.5122' stop-color='%2300B8E0'/%3e%3cstop offset='0.7604' stop-color='%2300C4E0'/%3e%3cstop offset='1' stop-color='%2300C7E0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint6_linear_173_14441' x1='31.6346' y1='20.0018' x2='11.6929' y2='20.0018' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23E0C500'/%3e%3cstop offset='0.4087' stop-color='%23E0A600'/%3e%3cstop offset='0.7754' stop-color='%23E09100'/%3e%3cstop offset='1' stop-color='%23E08900'/%3e%3c/linearGradient%3e%3clinearGradient id='paint7_linear_173_14441' x1='31.6349' y1='20.0008' x2='11.6933' y2='20.0008' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FFE840'/%3e%3cstop offset='0.4087' stop-color='%23FFCE40'/%3e%3cstop offset='0.7754' stop-color='%23FFBC40'/%3e%3cstop offset='1' stop-color='%23FFB540'/%3e%3c/linearGradient%3e%3clinearGradient id='paint8_linear_173_14441' x1='13.3201' y1='10.6927' x2='5.8533' y2='17.8475' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2340B8FF'/%3e%3cstop offset='0.00657' stop-color='%2340B9FF'/%3e%3cstop offset='0.2601' stop-color='%2340CEFF'/%3e%3cstop offset='0.5122' stop-color='%2340DDFF'/%3e%3cstop offset='0.7604' stop-color='%2340E7FF'/%3e%3cstop offset='1' stop-color='%2340EAFF'/%3e%3c/linearGradient%3e%3clinearGradient id='paint9_linear_173_14441' x1='9.76302' y1='10.4182' x2='15.0961' y2='15.76' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2365B895'/%3e%3cstop offset='0.0685' stop-color='%2362BD95'/%3e%3cstop offset='0.4762' stop-color='%2350DB97'/%3e%3cstop offset='0.8009' stop-color='%2344ED98'/%3e%3cstop offset='1' stop-color='%2340F498'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e" alt="Play Store icon" />
441            </a>
442
443          </div>
444        </div>
445      </div>
446    </div>
447  `;class A extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot&&(this.shadowRoot.append(L.content.cloneNode(!0),S,B),this.shadowRoot.addEventListener("click",(e=>{this.handleAccordion(e)})))}connectedCallback(){this.handleChangeView()}handleChangeView(){var e,i,n;const o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-connect-modal-desktop-mode-download-defly-button"),tt=(i=this.shadowRoot)===null||i===void 0?void 0:i.getElementById("defly-wallet-connect-modal-download-defly-view-back-button"),et=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll(".f_copy-button");o&&o.addEventListener("click",(()=>{this.onClickDownload()})),tt&&tt.addEventListener("click",(()=>{this.onClickBack()})),et&&et.length&&et.forEach((it=>{it.addEventListener("click",(()=>{this.onClickCopy()}))})),this.renderQRCode()}handleAccordion(e){var i,n;if(e.target instanceof Element){if(!e.target.classList.contains("defly-wallet-accordion-toggle__button"))return;if(this.shadowRoot&&(!((i=e.target.parentElement)===null||i===void 0)&&i.parentElement)){const o=(n=e.target.parentElement)===null||n===void 0?void 0:n.parentElement;if(!o||o.classList.contains("defly-wallet-accordion-item--active"))return;const tt=this.shadowRoot.querySelectorAll(".defly-wallet-accordion-item.defly-wallet-accordion-item--active");for(let et=0;et<tt.length;et++)tt[et].classList.remove("defly-wallet-accordion-item--active");o.classList.toggle("defly-wallet-accordion-item--active")}}}renderQRCode(){var e;const i=this.getAttribute("uri");if(i){const n=new r({width:330,height:330,type:"svg",data:i,image:k,dotsOptions:{color:"#000",type:"dots"},imageOptions:{imageSize:.21,crossOrigin:"anonymous"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}}),o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-connect-modal-connect-qr-code");o&&n.append(o)}}onClickDownload(){if(this.shadowRoot){const e=this.shadowRoot.getElementById("defly-wallet-connect-modal-desktop-mode");e&&(e.classList.remove("defly-wallet-connect-modal-desktop-mode--default"),e.classList.add("defly-wallet-connect-modal-desktop-mode--download"))}}onClickCopy(){if(this.shadowRoot){const e=this.getAttribute("uri");if(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=e,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}}}onClickBack(){if(this.shadowRoot){const e=this.shadowRoot.getElementById("defly-wallet-connect-modal-desktop-mode");e&&(e.classList.add("defly-wallet-connect-modal-desktop-mode--default"),e.classList.remove("defly-wallet-connect-modal-desktop-mode--download"))}}}function M(t=!0){let e=_;const i=L$1();return t&&i&&(e=`${e}?browser=${encodeURIComponent(i)}`),e}var F=`.defly-wallet-connect-modal-touch-screen-mode {
448  display: grid;
449  grid-template-columns: 1fr;
450  gap: 46px;
451  padding: 4px;
452}
453
454.defly-wallet-connect-modal-touch-screen-mode--pending-message-view {
455  gap: 56px;
456  grid-template-rows: auto 48px;
457  height: 100%;
458  padding-bottom: 70px;
459}
460
461.defly-wallet-connect-modal-touch-screen-mode__launch-defly-wallet-button,
462.defly-wallet-connect-modal-touch-screen-mode__install-defly-wallet-button {
463  display: block;
464  padding: 14px;
465  border-radius: 12px;
466  text-decoration: none;
467  text-align: center;
468  font-size: 15px;
469  line-height: 26px;
470  letter-spacing: -0.09px;
471  font-weight: 500;
472  margin: 0 40px;
473}
474
475.defly-wallet-connect-modal-touch-screen-mode__launch-defly-wallet-button {
476  margin-bottom: 45px;
477  background: linear-gradient(90deg, #3E38B9, #413AAA);
478  color: #ffffff;
479}
480
481.defly-wallet-connect-modal-touch-screen-mode__install-defly-wallet-button {
482  margin-bottom: 20px;
483  background-color: #494949;
484  color: #ffffff;
485}
486
487.defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box {
488  position: relative;
489  margin-bottom: 5px;
490}
491
492.defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box__text {
493  color: #999999;
494  font-size: 16px;
495  font-weight: 500;
496  line-height: 24px;
497  letter-spacing: -0.04px;
498  text-align: center;
499}
500.defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box__text a {
501  color: inherit;
502}`;m(F);const R=document.createElement("template");class z extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:"open"}),R.innerHTML=`
503  <div class="defly-wallet-connect-modal-touch-screen-mode">
504    <defly-wallet-connect-modal-information-section></defly-wallet-connect-modal-information-section>
505
506    <div>
507      <a
508        id="defly-wallet-connect-modal-touch-screen-mode-launch-defly-wallet-button"
509        class="defly-wallet-connect-modal-touch-screen-mode__launch-defly-wallet-button"
510        rel="noopener noreferrer"
511        target="_blank">
512        Launch Defly Wallet
513      </a>
514
515      <div
516        class="defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box">
517        <p class="defly-wallet-connect-modal-touch-screen-mode__new-to-defly-box__text">
518          New to <a href="https://defly.app/">Defly Wallet</a>?
519        </p>
520      </div>
521
522      <a
523        href="https://defly.app/download.html"
524        class="defly-wallet-connect-modal-touch-screen-mode__install-defly-wallet-button"
525        rel="noopener noreferrer"
526        target="_blank">
527        Install Defly Wallet
528      </a>
529    </div>
530  </div>
531`,this.shadowRoot){const i=document.createElement("style");i.textContent=F,this.shadowRoot.append(R.content.cloneNode(!0),i);const n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-connect-modal-touch-screen-mode-launch-defly-wallet-button"),o=this.getAttribute("uri");n&&o&&(n.setAttribute("href",(function(tt){let et=M(!1);E$1()&&!et.includes("-wc")&&(et=et.replace("://","-wc://"));let it=`${et}wc?uri=${encodeURIComponent(tt)}`;const rt=L$1();return A$1()&&(it=tt),rt&&(it=`${it}&browser=${encodeURIComponent(rt)}`),it})(o)),n.addEventListener("click",(()=>{this.onClickLaunch()})))}}onClickLaunch(){if(R.innerHTML=`
532    <div class="defly-wallet-connect-modal-touch-screen-mode defly-wallet-connect-modal-touch-screen-mode--pending-message-view">
533      <defly-wallet-connect-modal-pending-message-section should-use-sound="${this.getAttribute("should-use-sound")}"></defly-wallet-connect-modal-pending-message-section>
534    </div>
535  `,this.shadowRoot){const e=document.createElement("style");e.textContent=F,this.shadowRoot.innerHTML="",this.shadowRoot.append(R.content.cloneNode(!0),e)}}}var H=`@import url("https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap");
536@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap");
537.defly-wallet-modal {
538  --defly-wallet-modal-font-family: "Spline Sans", sans-serif;
539  --defly-wallet-connect-modal-headline-family: "Hanken Grotesk", sans-serif;
540  position: fixed;
541  top: 0;
542  right: 0;
543  left: 0;
544  bottom: 0;
545  z-index: 999999;
546  width: 100vw;
547  height: 100vh;
548  background-color: rgba(0, 0, 0, 0.7);
549}
550.defly-wallet-modal--select-account .defly-wallet-modal__body {
551  width: 480px;
552  height: 578px;
553}
554.defly-wallet-modal--mobile .defly-wallet-modal__body {
555  top: 40px;
556  bottom: 0;
557  left: 20px;
558  width: calc(100% - 40px);
559  max-width: unset;
560  height: calc(100 * var(--defly-wallet-vh));
561  padding: 20px;
562  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
563  border-radius: 20px 20px 0px 0px;
564  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;
565  overflow-y: auto;
566  transform: unset;
567}
568.defly-wallet-modal--mobile .defly-wallet-modal__body::before {
569  background-image: unset;
570}
571.defly-wallet-modal * {
572  box-sizing: border-box;
573  margin: 0;
574  padding: 0;
575  font-family: var(--defly-wallet-modal-font-family);
576  font-smooth: antialiased;
577  -webkit-font-smoothing: antialiased;
578  -moz-osx-font-smoothing: grayscale;
579}
580.defly-wallet-modal ul,
581.defly-wallet-modal ol,
582.defly-wallet-modal li {
583  list-style-type: none;
584}
585
586.defly-wallet-button {
587  display: flex;
588  align-items: center;
589  justify-content: center;
590  width: auto;
591  height: 48px;
592  padding: 14px;
593  border: none;
594  border-radius: 12px;
595  outline: none;
596  cursor: pointer;
597  font-family: var(--defly-wallet-modal-font-family);
598  font-size: 14px;
599}
600
601.defly-wallet-modal__logo img {
602  display: block;
603  width: 32px;
604}
605
606.defly-wallet-modal__body {
607  position: relative;
608  top: 50%;
609  left: 50%;
610  width: 979px;
611  max-width: calc(100vw - 80px);
612  padding: 28px;
613  background-color: #131313;
614  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);
615  border-radius: 40px;
616  animation: 0.3s DeflyWalletConnectSlideIn ease-out;
617  transform: translate(-50%, -50%);
618}
619
620@media (max-width: 935px) {
621  .defly-wallet-modal--desktop .defly-wallet-modal__body {
622    width: 100%;
623    max-width: calc(100vw - 32px);
624    padding: 24px;
625  }
626}
627@keyframes DeflyWalletConnectSlideIn {
628  0% {
629    opacity: 0;
630    transform: translate(-50%, calc(-50% + 24px));
631  }
632  100% {
633    opacity: 1;
634    transform: translate(-50%, -50%);
635  }
636}
637@keyframes DeflyWalletConnectMobileSlideIn {
638  0% {
639    top: 30%;
640    opacity: 0;
641  }
642  100% {
643    top: 40px;
644    opacity: 1;
645  }
646}`;m(H);const I=document.createElement("template"),V=C$1()?`${d} ${d}--mobile`:`${d} ${d}--desktop`;class G extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=H,C$1()?(I.innerHTML=`
647        <div class="${V}">
648          <div class="defly-wallet-modal__body" part="body">
649            <defly-wallet-modal-header modal-id="${l}"></defly-wallet-modal-header/>
650      
651            <defly-wallet-modal-touch-screen-mode uri="${this.getAttribute("uri")}" should-use-sound="${this.getAttribute("should-use-sound")}"></defly-wallet-modal-touch-screen-mode>
652          </div>
653        </div>
654      `,this.shadowRoot.append(I.content.cloneNode(!0),e)):(I.innerHTML=`
655          <div class="${V}">
656            <div class="defly-wallet-modal__body">
657              <defly-wallet-modal-header modal-id="${l}"></defly-wallet-modal-header/>
658        
659              <defly-wallet-modal-desktop-mode id="defly-wallet-modal-desktop-mode" uri="${this.getAttribute("uri")}">
660              </defly-wallet-modal-desktop-mode>
661            </div>
662          </div>
663        `,this.shadowRoot.append(I.content.cloneNode(!0),e))}}}var T=`@import url("https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap");
664@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap");
665.defly-wallet-modal {
666  --defly-wallet-modal-font-family: "Spline Sans", sans-serif;
667  --defly-wallet-connect-modal-headline-family: "Hanken Grotesk", sans-serif;
668  position: fixed;
669  top: 0;
670  right: 0;
671  left: 0;
672  bottom: 0;
673  z-index: 999999;
674  width: 100vw;
675  height: 100vh;
676  background-color: rgba(0, 0, 0, 0.7);
677}
678.defly-wallet-modal--select-account .defly-wallet-modal__body {
679  width: 480px;
680  height: 578px;
681}
682.defly-wallet-modal--mobile .defly-wallet-modal__body {
683  top: 40px;
684  bottom: 0;
685  left: 20px;
686  width: calc(100% - 40px);
687  max-width: unset;
688  height: calc(100 * var(--defly-wallet-vh));
689  padding: 20px;
690  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
691  border-radius: 20px 20px 0px 0px;
692  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;
693  overflow-y: auto;
694  transform: unset;
695}
696.defly-wallet-modal--mobile .defly-wallet-modal__body::before {
697  background-image: unset;
698}
699.defly-wallet-modal * {
700  box-sizing: border-box;
701  margin: 0;
702  padding: 0;
703  font-family: var(--defly-wallet-modal-font-family);
704  font-smooth: antialiased;
705  -webkit-font-smoothing: antialiased;
706  -moz-osx-font-smoothing: grayscale;
707}
708.defly-wallet-modal ul,
709.defly-wallet-modal ol,
710.defly-wallet-modal li {
711  list-style-type: none;
712}
713
714.defly-wallet-button {
715  display: flex;
716  align-items: center;
717  justify-content: center;
718  width: auto;
719  height: 48px;
720  padding: 14px;
721  border: none;
722  border-radius: 12px;
723  outline: none;
724  cursor: pointer;
725  font-family: var(--defly-wallet-modal-font-family);
726  font-size: 14px;
727}
728
729.defly-wallet-modal__logo img {
730  display: block;
731  width: 32px;
732}
733
734.defly-wallet-modal__body {
735  position: relative;
736  top: 50%;
737  left: 50%;
738  width: 979px;
739  max-width: calc(100vw - 80px);
740  padding: 28px;
741  background-color: #131313;
742  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);
743  border-radius: 40px;
744  animation: 0.3s DeflyWalletConnectSlideIn ease-out;
745  transform: translate(-50%, -50%);
746}
747
748@media (max-width: 935px) {
749  .defly-wallet-modal--desktop .defly-wallet-modal__body {
750    width: 100%;
751    max-width: calc(100vw - 32px);
752    padding: 24px;
753  }
754}
755@keyframes DeflyWalletConnectSlideIn {
756  0% {
757    opacity: 0;
758    transform: translate(-50%, calc(-50% + 24px));
759  }
760  100% {
761    opacity: 1;
762    transform: translate(-50%, -50%);
763  }
764}
765@keyframes DeflyWalletConnectMobileSlideIn {
766  0% {
767    top: 30%;
768    opacity: 0;
769  }
770  100% {
771    top: 40px;
772    opacity: 1;
773  }
774}
775.defly-wallet-redirect-modal {
776  display: grid;
777  grid-template-columns: 1fr;
778  gap: 56px;
779  grid-template-rows: auto 48px;
780  height: 100%;
781  padding: 4px;
782  padding-bottom: 70px;
783}
784
785.defly-wallet-redirect-modal__content {
786  display: flex;
787  align-items: center;
788  justify-content: center;
789  flex-direction: column;
790}
791
792.defly-wallet-redirect-modal__content__title {
793  margin: 20px 0 8px;
794  color: #3c3c49;
795  font-size: 18px;
796  font-weight: 600;
797  line-height: 22px;
798  letter-spacing: -0.26px;
799}
800
801.defly-wallet-redirect-modal__content__description,
802.defly-wallet-redirect-modal__content__install-defly-text {
803  color: #3c3c49;
804  max-width: 271px;
805  font-size: 14px;
806  font-weight: 400;
807  line-height: 24px;
808  letter-spacing: -0.09px;
809  text-align: center;
810}
811
812.defly-wallet-redirect-modal__content__description {
813  margin-bottom: 24px;
814}
815
816.defly-wallet-redirect-modal__content__install-defly-text__link {
817  color: #6b46fe;
818  font-size: 14px;
819  font-weight: 400;
820  line-height: 24px;
821  letter-spacing: -0.09px;
822  text-align: center;
823}
824
825.defly-wallet-redirect-modal__launch-defly-wallet-button {
826  display: block;
827  padding: 14px;
828  color: #ffffff;
829  background-color: #6b46fe;
830  border-radius: 12px;
831  text-decoration: none;
832  text-align: center;
833  font-size: 14px;
834  line-height: 20px;
835  letter-spacing: -0.09px;
836  font-weight: 500;
837}`;m(T);const W=document.createElement("template");W.innerHTML=`
838  <div class="defly-wallet-modal defly-wallet-modal--mobile">
839    <div class="defly-wallet-modal__body">
840    <defly-wallet-modal-header modal-id="${s}"></pera-wallet-modal-header/>
841      <div class="defly-wallet-redirect-modal">
842        <div class="defly-wallet-redirect-modal__content">
843          <img src="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='120' height='38' viewBox='0 0 120 38'%3e %3cdefs%3e %3cclipPath id='a'%3e %3crect width='120' height='38' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e %3cg transform='translate(18090 -8428)'%3e %3cg transform='translate(-18090 8428)' clip-path='url(%23a)'%3e %3crect width='36' height='36' rx='7.768' transform='translate(0 1)' fill='%23222222'/%3e %3cpath d='M112.25%2c37h-11.5A5.976%2c5.976%2c0%2c0%2c1%2c95%2c30.818V9.182A5.976%2c5.976%2c0%2c0%2c1%2c100.75%2c3h11.5A5.976%2c5.976%2c0%2c0%2c1%2c118%2c9.182V30.818A5.976%2c5.976%2c0%2c0%2c1%2c112.25%2c37Z' transform='translate(0 -1)' fill='rgba(107%2c70%2c254%2c0.1)'/%3e %3cpath d='M112.25%2c38.5h-11.5a7.484%2c7.484%2c0%2c0%2c1-7.25-7.682V9.182A7.484%2c7.484%2c0%2c0%2c1%2c100.75%2c1.5h11.5a7.484%2c7.484%2c0%2c0%2c1%2c7.25%2c7.682V30.818A7.484%2c7.484%2c0%2c0%2c1%2c112.25%2c38.5Zm-11.5-34A4.487%2c4.487%2c0%2c0%2c0%2c96.5%2c9.182V30.818a4.487%2c4.487%2c0%2c0%2c0%2c4.25%2c4.682h11.5a4.487%2c4.487%2c0%2c0%2c0%2c4.25-4.682V9.182A4.487%2c4.487%2c0%2c0%2c0%2c112.25%2c4.5Z' transform='translate(0 -1)' fill='white'/%3e %3cpath d='M78.927%2c16.594H52v-3H71.683l-2.534-2.534L71.27%2c8.939Z' fill='white'/%3e %3cpath d='M59.73%2c30.655%2c52.073%2c23H79v3H59.317l2.534%2c2.534Z' fill='white'/%3e %3cpath d='M109.565%2c30.175h-5.826a1.5%2c1.5%2c0%2c1%2c1%2c0-3h5.826a1.5%2c1.5%2c0%2c0%2c1%2c0%2c3Z' fill='white'/%3e %3c/g%3e %3cg transform='translate(-18227.544 8408.866)'%3e %3cpath d='M168.632%2c47.566%2c155.742%2c26l-12.89%2c21.566%2c12.89-7.354Z' transform='translate(0)' fill='white'/%3e %3cpath d='M191.634%2c257.081l-10.639-5.607-10.639%2c5.607%2c10.639-3.464Z' transform='translate(-25.252 -207.321)' fill='white'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e" />
844
845          <h1 class="defly-wallet-redirect-modal__content__title">
846            Can't Launch Defly
847          </h1>
848
849          <p class="defly-wallet-redirect-modal__content__description">
850            We couldn't redirect you to Defly Wallet automatically. Please try again.
851          </p>
852
853          <p class="defly-wallet-redirect-modal__content__install-defly-text">
854            Don't have Defly Wallet installed yet?
855            <br />
856            
857            <a
858              id="defly-wallet-redirect-modal-download-defly-link"
859              class="defly-wallet-redirect-modal__content__install-defly-text__link"
860              href="https://defly.app/ "
861              rel="noopener noreferrer"
862              target="_blank">
863              Tap here to install.
864            </a>
865          </p>
866        </div>
867
868        <a
869          id="defly-wallet-redirect-modal-launch-defly-link"
870          class="defly-wallet-redirect-modal__launch-defly-wallet-button"
871          rel="noopener noreferrer"
872          target="_blank">
873          Launch Defly Wallet
874        </a>
875      </div>
876    </div>
877  </div>
878`;class O extends HTMLElement{constructor(){var e,i;if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const n=document.createElement("style");n.textContent=T,this.shadowRoot.append(W.content.cloneNode(!0),n);const o=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-redirect-modal-download-defly-link");o?.addEventListener("click",(()=>{this.onClose()}));const tt=(i=this.shadowRoot)===null||i===void 0?void 0:i.getElementById("defly-wallet-redirect-modal-launch-defly-link");tt?.addEventListener("click",(()=>{this.onClose(),window.open(M(),"_blank")}))}}connectedCallback(){const e=window.open(M(),"_blank");e&&!e.closed&&this.onClose()}onClose(){f$1(s)}}var Z="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='101.962' height='90.114' viewBox='0 0 101.962 90.114'%3e %3cg transform='translate(0.004)'%3e %3cpath d='M244.81%2c107.44%2c193.834%2c26l-50.986%2c81.44%2c50.986-27.77Z' transform='translate(-142.852 -26)' fill='white'/%3e %3cpath d='M254.505%2c273.648l-42.072-22.175-42.076%2c22.175%2c42.076-13.7Z' transform='translate(-161.446 -183.534)' fill='white'/%3e %3c/g%3e%3c/svg%3e",j=`.defly-wallet-connect-modal-information-section {
879  padding: 12px;
880  display: flex;
881  align-items: center;
882  flex-flow: column;
883  justify-content: center;
884}
885.defly-wallet-connect-modal-information-section--mobile {
886  padding: 0;
887  margin-top: 20px;
888}
889.defly-wallet-connect-modal-information-section--mobile .defly-wallet-connect-modal-information-section__defly-icon {
890  margin-bottom: 21px;
891  max-width: 70px;
892}
893.defly-wallet-connect-modal-information-section--mobile .defly-wallet-connect-modal-information-section__title {
894  font-size: 34px;
895  line-height: 32px;
896}
897
898.defly-wallet-connect-modal-information-section__defly-icon {
899  margin-bottom: 32px;
900}
901
902.defly-wallet-connect-modal-information-section__title {
903  margin-top: 0;
904  margin-bottom: 0;
905  color: #fff;
906  font-size: 52px;
907  line-height: 48px;
908  font-weight: 900;
909  white-space: pre-line;
910  text-align: center;
911  letter-spacing: 0;
912  font-family: var(--defly-wallet-connect-modal-headline-family), sans-serif;
913}
914
915.defly-wallet-connect-modal-information-section__down
915load-defly-button {
916  display: flex;
917  align-items: center;
918  gap: 8px;
919  margin: 20px auto 0;
920  padding: 0;
921  color: #999999;
922  background-color: transparent;
923  outline: none;
924  border: none;
925  font-weight: 600;
926  font-size: 13px;
927  line-height: 20px;
928  letter-spacing: 0.01px;
929  cursor: pointer;
930}
931.defly-wallet-connect-modal-information-section__download-defly-button:hover {
932  opacity: 0.8;
933}
934
935@media (max-width: 935px) {
936  .defly-wallet-connect-modal-information-section--desktop {
937    padding: 0;
938  }
939  .defly-wallet-connect-modal-information-section--desktop .defly-wallet-connect-modal-information-section__defly-icon {
940    max-width: 70px;
941    margin-bottom: 21px;
942  }
943  .defly-wallet-connect-modal-information-section--desktop .defly-wallet-connect-modal-information-section__title {
944    font-size: 34px;
945    line-height: 32px;
946  }
947  .defly-wallet-connect-modal-information-section__download-defly-button {
948    display: none;
949  }
950}`;m(j);const $=document.createElement("template"),U=C$1()?"defly-wallet-connect-modal-information-section defly-wallet-connect-modal-information-section--mobile":"defly-wallet-connect-modal-information-section defly-wallet-connect-modal-information-section--desktop";$.innerHTML=`
951  <section class="${U}">
952    <img src="${Z}" class="defly-wallet-connect-modal-information-section__defly-icon" alt="Defly Wallet" />
953    <h1 class="defly-wallet-connect-modal-information-section__title">Secure 
954 wallet & 
955 trading</h1>
956 
957    <button
958        id="defly-wallet-connect-modal-information-section-download-defly-button"
959        class="defly-wallet-connect-modal-information-section__download-defly-button">
960        <img src="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='2' y='2' width='4.66667' height='4.66667' rx='1.2' stroke='%23999999' stroke-width='1.5'/%3e%3crect x='2' y='9.33203' width='4.66667' height='4.66667' rx='1.2' stroke='%23999999' stroke-width='1.5'/%3e%3crect x='9.33325' y='2' width='4.66667' height='4.66667' rx='1.2' stroke='%23999999' stroke-width='1.5'/%3e%3cpath d='M8.70581 9.5293H10.9411' stroke='%23999999' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M13.1765 12.668L14.6667 12.668' stroke='%23999999' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M13.1765 14L14.6667 14' stroke='%23999999' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M11.686 14L13.1762 14' stroke='%23999999' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M12.4314 9.5293H14.6667' stroke='%23999999' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M8.70581 10.2754H12.4313' stroke='%23999999' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M10.196 11.7656H11.6862' stroke='%23999999' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M10.196 12.5117H11.6862' stroke='%23999999' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M8.70581 13.2539H10.196' stroke='%23999999' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M8.70581 14H10.196' stroke='%23999999' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M10.196 11.0195H12.4313' stroke='%23999999' stroke-width='1.25' stroke-linejoin='round'/%3e%3c/svg%3e" alt="QR Icon" />
961        Download
962      </button>
963  </section>
964`;class q extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const i=document.createElement("style");i.textContent=j,this.shadowRoot.append($.content.cloneNode(!0),i);const n=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-connect-modal-information-section-download-defly-button");n&&n.addEventListener("click",(()=>{this.onClickDownload()}))}}onClickDownload(){if(this.shadowRoot){const e=this.shadowRoot.host.parentElement;e&&(e.classList.remove("defly-wallet-connect-modal-desktop-mode--default"),e.classList.add("defly-wallet-connect-modal-desktop-mode--download"))}}}var P=`@import url("https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap");
965@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap");
966.defly-wallet-modal {
967  --defly-wallet-modal-font-family: "Spline Sans", sans-serif;
968  --defly-wallet-connect-modal-headline-family: "Hanken Grotesk", sans-serif;
969  position: fixed;
970  top: 0;
971  right: 0;
972  left: 0;
973  bottom: 0;
974  z-index: 999999;
975  width: 100vw;
976  height: 100vh;
977  background-color: rgba(0, 0, 0, 0.7);
978}
979.defly-wallet-modal--select-account .defly-wallet-modal__body {
980  width: 480px;
981  height: 578px;
982}
983.defly-wallet-modal--mobile .defly-wallet-modal__body {
984  top: 40px;
985  bottom: 0;
986  left: 20px;
987  width: calc(100% - 40px);
988  max-width: unset;
989  height: calc(100 * var(--defly-wallet-vh));
990  padding: 20px;
991  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
992  border-radius: 20px 20px 0px 0px;
993  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;
994  overflow-y: auto;
995  transform: unset;
996}
997.defly-wallet-modal--mobile .defly-wallet-modal__body::before {
998  background-image: unset;
999}
1000.defly-wallet-modal * {
1001  box-sizing: border-box;
1002  margin: 0;
1003  padding: 0;
1004  font-family: var(--defly-wallet-modal-font-family);
1005  font-smooth: antialiased;
1006  -webkit-font-smoothing: antialiased;
1007  -moz-osx-font-smoothing: grayscale;
1008}
1009.defly-wallet-modal ul,
1010.defly-wallet-modal ol,
1011.defly-wallet-modal li {
1012  list-style-type: none;
1013}
1014
1015.defly-wallet-button {
1016  display: flex;
1017  align-items: center;
1018  justify-content: center;
1019  width: auto;
1020  height: 48px;
1021  padding: 14px;
1022  border: none;
1023  border-radius: 12px;
1024  outline: none;
1025  cursor: pointer;
1026  font-family: var(--defly-wallet-modal-font-family);
1027  font-size: 14px;
1028}
1029
1030.defly-wallet-modal__logo img {
1031  display: block;
1032  width: 32px;
1033}
1034
1035.defly-wallet-modal__body {
1036  position: relative;
1037  top: 50%;
1038  left: 50%;
1039  width: 979px;
1040  max-width: calc(100vw - 80px);
1041  padding: 28px;
1042  background-color: #131313;
1043  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);
1044  border-radius: 40px;
1045  animation: 0.3s DeflyWalletConnectSlideIn ease-out;
1046  transform: translate(-50%, -50%);
1047}
1048
1049@media (max-width: 935px) {
1050  .defly-wallet-modal--desktop .defly-wallet-modal__body {
1051    width: 100%;
1052    max-width: calc(100vw - 32px);
1053    padding: 24px;
1054  }
1055}
1056@keyframes DeflyWalletConnectSlideIn {
1057  0% {
1058    opacity: 0;
1059    transform: translate(-50%, calc(-50% + 24px));
1060  }
1061  100% {
1062    opacity: 1;
1063    transform: translate(-50%, -50%);
1064  }
1065}
1066@keyframes DeflyWalletConnectMobileSlideIn {
1067  0% {
1068    top: 30%;
1069    opacity: 0;
1070  }
1071  100% {
1072    top: 40px;
1073    opacity: 1;
1074  }
1075}
1076.defly-wallet-connect-modal-pending-message-section {
1077  display: grid;
1078  grid-template-columns: 1fr;
1079  grid-template-rows: auto 48px;
1080  gap: 56px;
1081  height: 100%;
1082  padding: 4px;
1083  padding-bottom: 70px;
1084}
1085
1086.defly-wallet-connect-modal-pending-message {
1087  display: flex;
1088  align-items: center;
1089  justify-content: center;
1090  flex-direction: column;
1091  text-align: center;
1092}
1093.defly-wallet-connect-modal-pending-message--try-again-view {
1094  display: flex;
1095  justify-content: space-between;
1096  flex-direction: column;
1097  height: 100%;
1098  margin-top: 10px;
1099}
1100.defly-wallet-connect-modal-pending-message--try-again-view__image {
1101  margin: 0 auto;
1102  display: block;
1103}
1104.defly-wallet-connect-modal-pending-message--try-again-view__title {
1105  margin: 16px 0 12px;
1106  color: #ffffff;
1107  text-align: center;
1108  font-size: 18px;
1109  font-weight: 500;
1110  line-height: 24px;
1111  letter-spacing: -0.26px;
1112}
1113.defly-wallet-connect-modal-pending-message--try-again-view__description {
1114  color: #999999;
1115  font-size: 14px;
1116  text-align: center;
1117  font-weight: 400;
1118  line-height: 24px;
1119  letter-spacing: -0.01px;
1120}
1121.defly-wallet-connect-modal-pending-message--try-again-view__button {
1122  display: block;
1123  width: 100%;
1124  padding: 14px;
1125  border-radius: 12px;
1126  text-decoration: none;
1127  text-align: center;
1128  font-size: 14px;
1129  line-height: 20px;
1130  letter-spacing: -0.09px;
1131  font-weight: 500;
1132  color: #ffffff;
1133  background-color: #6b46fe;
1134  border: none;
1135}
1136.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor {
1137  display: flex;
1138  gap: 12px;
1139  margin-bottom: 20px;
1140  padding: 16px;
1141  background: #ffffff;
1142  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);
1143  border-radius: 12px;
1144  text-decoration: none;
1145}
1146.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image {
1147  width: 24px;
1148  height: 24px;
1149}
1150.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper {
1151  display: flex;
1152  align-items: center;
1153  justify-content: space-between;
1154  margin-bottom: 4px;
1155}
1156.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title {
1157  margin: 0;
1158  font-size: 14px;
1159  font-weight: 500;
1160  line-height: 20px;
1161  letter-spacing: -0.1px;
1162  color: #3c3c49;
1163}
1164.defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description {
1165  /* stylelint-disable value-no-vendor-prefix */
1166  /* stylelint-disable  property-no-vendor-prefix */
1167  display: -webkit-box;
1168  max-width: 100%;
1169  -webkit-line-clamp: 2;
1170  /* autoprefixer: ignore next */
1171  -webkit-box-orient: vertical;
1172  overflow: hidden;
1173  /* stylelint-enable value-no-vendor-prefix */
1174  /* stylelint-enable property-no-vendor-prefix */
1175  margin: 0;
1176  font-size: 12px;
1177  font-weight: 400;
1178  line-height: 18px;
1179  letter-spacing: 0.01px;
1180  color: #9d9dae;
1181}
1182
1183.defly-wallet-connect-modal-pending-message__animation-wrapper {
1184  width: 56px;
1185  height: 56px;
1186  background-color: #6b46fe;
1187  border-radius: 50%;
1188}
1189
1190.defly-wallet-connect-modal-pending-message__text {
1191  max-width: 271px;
1192  margin-top: 20px;
1193  color: #ffffff;
1194  font-size: 18px;
1195  font-weight: 500;
1196  line-height: 28px;
1197  letter-spacing: -0.26px;
1198}
1199
1200.defly-wallet-connect-modal-pending-message__cancel-button {
1201  display: flex;
1202  align-items: center;
1203  justify-content: center;
1204  width: 100%;
1205  padding: 14px;
1206  color: #6a6a81;
1207  background-color: #ffffff;
1208  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);
1209  border-radius: 12px;
1210  text-decoration: none;
1211  text-align: center;
1212  font-size: 14px;
1213  line-height: 20px;
1214  letter-spacing: -0.09px;
1215  font-weight: 500;
1216  border: none;
1217}`;m(P);const N=document.createElement("template");N.innerHTML=`
1218  <div class="defly-wallet-connect-modal-pending-message-section">
1219    <div class="defly-wallet-connect-modal-pending-message">
1220      <img src="${Z}" alt="Defly Wallet Logo" />
1221
1222      <div class="defly-wallet-connect-modal-pending-message__text">
1223        Please wait while we connect you to Defly Wallet...
1224      </div>
1225    </div>
1226
1227    <button
1228      id="defly-wallet-connect-modal-pending-message-cancel-button"
1229      class="defly-wallet-button defly-wallet-connect-modal-pending-message__cancel-button">
1230        Cancel
1231    </button>
1232  </div>
1233
1234  <div id="defly-wallet-connect-modal-pending-message-audio-wrapper"></div>
1235`;const Q=`
1236  <div class="defly-wallet-connect-modal-pending-message--try-again-view">
1237    <div>
1238      <img class="defly-wallet-connect-modal-pending-message--try-again-view__image" src="${Z}" alt="Defly Wallet" />
1239
1240      <h1 class="defly-wallet-connect-modal-pending-message--try-again-view__title">
1241        Couldn’t establish connection
1242      </h1>
1243
1244      <p class="defly-wallet-connect-modal-pending-message--try-again-view__description">
1245        Having issues? Before trying again, make sure to read the support article below and apply the possible solutions.
1246      </p>
1247    </div>
1248
1249    <div>
1250      <a
1251        href=" https://docs.defly.app/app/dapp-browser"
1252        target="_blank"
1253        rel="noopener noreferrer"
1254        class="defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor">
1255        <img
1256          class="defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image"
1257          src="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 22.3199C7.72 22.3199 7.42998 22.2499 7.16998 22.1099C6.59998 21.8099 6.25 21.2099 6.25 20.5699V19.15C3.23 18.84 1.25 16.6199 1.25 13.4399V7.43994C1.25 3.99994 3.56 1.68994 7 1.68994H17C20.44 1.68994 22.7
12575 3.99994 22.75 7.43994V13.4399C22.75 16.8799 20.44 19.1899 17 19.1899H13.23L8.96997 22.03C8.67997 22.22 8.34 22.3199 8 22.3199ZM7 3.17993C4.42 3.17993 2.75 4.84993 2.75 7.42993V13.43C2.75 16.01 4.42 17.68 7 17.68C7.41 17.68 7.75 18.02 7.75 18.43V20.56C7.75 20.69 7.83 20.75 7.88 20.78C7.93001 20.81 8.03001 20.84 8.14001 20.77L12.59 17.81C12.71 17.73 12.86 17.68 13.01 17.68H17.01C19.59 17.68 21.26 16.01 21.26 13.43V7.42993C21.26 4.84993 19.59 3.17993 17.01 3.17993H7ZM11.9998 12.11C11.5898 12.11 11.2498 11.77 11.2498 11.36V11.15C11.2498 10.0038 12.0798 9.4336 12.4082 9.20798L12.4198 9.20001C12.7898 8.95001 12.9098 8.78002 12.9098 8.52002C12.9098 8.02002 12.4998 7.60999 11.9998 7.60999C11.4998 7.60999 11.0898 8.02002 11.0898 8.52002C11.0898 8.93002 10.7498 9.27002 10.3398 9.27002C9.92984 9.27002 9.58984 8.93002 9.58984 8.52002C9.58984 7.19002 10.6698 6.10999 11.9998 6.10999C13.3298 6.10999 14.4098 7.19002 14.4098 8.52002C14.4098 9.66002 13.5698 10.23 13.2598 10.44C12.8698 10.7 12.7498 10.87 12.7498 11.15V11.36C12.7498 11.78 12.4098 12.11 11.9998 12.11ZM11.25 13.85C11.25 14.26 11.58 14.6 12 14.6C12.42 14.6 12.75 14.26 12.75 13.85C12.75 13.44 12.41 13.1 12 13.1C11.59 13.1 11.25 13.44 11.25 13.85Z' fill='%236B46FE'/%3e%3c/svg%3e"
1258          alt="Help Icon"
1259        />
1260
1261        <div>
1262          <div
1263            class="defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper">
1264            <h1
1265              class="defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title">
1266                Resolving WalletConnect issues
1267            </h1>
1268
1269            <img src="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3287 10.0983C10.9574 10.0983 10.6564 9.79734 10.6564 9.42604L10.6564 6.29525L5.14866 11.803C4.88611 12.0655 4.46044 12.0655 4.19789 11.803C3.93534 11.5404 3.93534 11.1147 4.19789 10.8522L9.70561 5.34447L6.57482 5.34447C6.20352 5.34447 5.90252 5.04347 5.90252 4.67218C5.90252 4.30088 6.20352 3.99988 6.57482 3.99988L11.3287 3.99988C11.507 3.99988 11.678 4.07071 11.8041 4.19679C11.9301 4.32287 12.001 4.49387 12.001 4.67218L12.001 9.42604C12.001 9.79734 11.7 10.0983 11.3287 10.0983Z' fill='%239D9DAE'/%3e%3c/svg%3e" alt="Send Icon"/>
1270          </div>
1271
1272          <p
1273            class="defly-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description">
1274            Unfortunately there are several known issues related to WalletConnect that our team is working on. Some of these issues are related to the WalletConnect JavaScript implementation on the dApp ...
1275          </p>
1276        </div>
1277      </a>
1278
1279      <button id="defly-wallet-connect-modal-pending-message-try-again-button" class="defly-wallet-connect-button defly-wallet-connect-modal-pending-message--try-again-view__button">
1280        Close & Try Again
1281      </button>
1282    </div>
1283  </div>
1284  `;class J extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=P,this.shadowRoot.append(N.content.cloneNode(!0),e)}}connectedCallback(){var e;const i=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-connect-modal-pending-message-cancel-button");i?.addEventListener("click",(()=>{this.onClose()})),this.addAudioForConnection(),setTimeout((()=>{var n;if(N.innerHTML=Q,this.shadowRoot){const o=document.createElement("style");o.textContent=P,this.shadowRoot.innerHTML="",this.shadowRoot.append(N.content.cloneNode(!0),o);const tt=(n=this.shadowRoot)===null||n===void 0?void 0:n.getElementById("defly-wallet-connect-modal-pending-message-try-again-button");tt?.addEventListener("click",(()=>{this.onClose()}))}}),3e4)}onClose(){f$1(l)}addAudioForConnection(){var e;if(this.getAttribute("should-use-sound")==="true"&&E$1()){const i=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-connect-modal-pending-message-audio-wrapper"),n=document.createElement("audio");n.src="https://defly-walletconnect.s3.eu-central-1.amazonaws.com/audio.mp3",n.autoplay=!0,n.loop=!0,i?.appendChild(n)}}}var K={v:"5.7.1",fr:25,ip:0,op:100,w:1e3,h:1e3,nm:"Animation",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:1,nm:"Circle",sr:1,ks:{o:{a:0,k:73,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:18,s:[724,614,0],to:[-35,2.333,0],ti:[35,-2.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:25,s:[514,628,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:53,s:[514,628,0],to:[35,-2.333,0],ti:[-35,2.333,0]},{t:62,s:[724,614,0]}],ix:2},a:{a:0,k:[608.861,710.127,0],ix:1},s:{a:0,k:[79,79,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:"a",pt:{a:0,k:{i:[[27.614,0],[0,-27.614],[-27.614,0],[0,27.614]],o:[[-27.614,0],[0,27.614],[27.614,0],[0,-27.614]],v:[[608,662],[558,712],[608,762],[658,712]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:"Mask 1"}],ef:[{ty:21,nm:"Fill",np:9,mn:"ADBE Fill",ix:1,en:1,ef:[{ty:10,nm:"Fill Mask",mn:"ADBE Fill-0001",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:"All Masks",mn:"ADBE Fill-0007",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:"Color",mn:"ADBE Fill-0002",ix:3,v:{a:0,k:[.748628020287,.656362950802,.86274510622,1],ix:3}},{ty:7,nm:"Invert",mn:"ADBE Fill-0006",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:"Horizontal Feather",mn:"ADBE Fill-0003",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:"Vertical Feather",mn:"ADBE Fill-0004",ix:6,v:{a:0,k:0,ix:6}}
1284,{ty:0,nm:"Opacity",mn:"ADBE Fill-0005",ix:7,v:{a:0,k:1,ix:7}}]}],sw:1e3,sh:1e3,sc:"#ffffff",ip:0,op:754,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Layer 1 Outlines 2",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[511.524,444,0],ix:2},a:{a:0,k:[157.775,147.25,0],ix:1},s:{a:0,k:[46,46,100],ix:6}},ao:0,ef:[{ty:21,nm:"Fill",np:9,mn:"ADBE Fill",ix:1,en:1,ef:[{ty:10,nm:"Fill Mask",mn:"ADBE Fill-0001",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:"All Masks",mn:"ADBE Fill-0007",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:"Color",mn:"ADBE Fill-0002",ix:3,v:{a:0,k:[.054901964962,.050980396569,.06274510175,1],ix:3}},{ty:7,nm:"Invert",mn:"ADBE Fill-0006",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:"Horizontal Feather",mn:"ADBE Fill-0003",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:"Vertical Feather",mn:"ADBE Fill-0004",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Opacity",mn:"ADBE Fill-0005",ix:7,v:{a:0,k:1,ix:7}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[157.525,133.595],[0,-133.596],[-157.525,133.595],[0,42.488]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[157.775,133.846],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:754,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Layer 1 Outlines",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[511.524,444,0],ix:2},a:{a:0,k:[157.775,147.25,0],ix:1},s:{a:0,k:[46,46,100],ix:6}},ao:0,ef:[{ty:21,nm:"Fill",np:9,mn:"ADBE Fill",ix:1,en:1,ef:[{ty:10,nm:"Fill Mask",mn:"ADBE Fill-0001",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:"All Masks",mn:"ADBE Fill-0007",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:"Color",mn:"ADBE Fill-0002",ix:3,v:{a:0,k:[.058823533356,.054901964962,.06274510175,1],ix:3}},{ty:7,nm:"Invert",mn:"ADBE Fill-0006",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:"Horizontal Feather",mn:"ADBE Fill-0003",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:"Vertical Feather",mn:"ADBE Fill-0004",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Opacity",mn:"ADBE Fill-0005",ix:7,v:{a:0,k:1,ix:7}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[130.021,34.263],[0,-34.264],[-130.021,34.263],[0,-8.067]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[157.775,259.986],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:754,st:0,bm:0},{ddd:0,ind:4,ty:1,nm:"White Solid 2",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[512,508,0],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:"a",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[648,314],[344,314],[324,334],[324,546],[344,566],[648,566],[668,546],[668,334]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:"Mask 1"}],ef:[{ty:22,nm:"Stroke",np:13,mn:"ADBE Stroke",ix:1,en:1,ef:[{ty:10,nm:"Path",mn:"ADBE Stroke-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:7,nm:"All Masks",mn:"ADBE Stroke-0010",ix:2,v:{a:0,k:0,ix:2}},{ty:7,nm:"Stroke Sequentially",mn:"ADBE Stroke-0011",ix:3,v:{a:0,k:1,ix:3}},{ty:2,nm:"Color",mn:"ADBE Stroke-0002",ix:4,v:{a:0,k:[.525490224361,.231372565031,.972549080849,1],ix:4}},{ty:0,nm:"Brush Size",mn:"ADBE Stroke-0003",ix:5,v:{a:0,k:2,ix:5}},{ty:0,nm:"Brush Hardness",mn:"ADBE Stroke-0004",ix:6,v:{a:0,k:.75,ix:6}},{ty:0,nm:"Opacity",mn:"ADBE Stroke-0005",ix:7,v:{a:0,k:1,ix:7}},{ty:0,nm:"Start",mn:"ADBE Stroke-0008",ix:8,v:{a:0,k:0,ix:8}},{ty:0,nm:"End",mn:"ADBE Stroke-0009",ix:9,v:{a:0,k:100,ix:9}},{ty:7,nm:"Spacing",mn:"ADBE Stroke-0006",ix:10,v:{a:0,k:15,ix:10}},{ty:7,nm:"Paint Style",mn:"ADBE Stroke-0007",ix:11,v:{a:0,k:1,ix:11}}]}],sw:1e3,sh:1e3,sc:"#ffffff",ip:0,op:754,st:0,bm:0},{ddd:0,ind:5,ty:1,nm:"White Solid 2",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[512,388,0],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:"a",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[648,314],[344,314],[324,334],[324,386],[344,406],[648,406],[668,386],[668,334]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:"Mask 1"}],ef:[{ty:22,nm:"Stroke",np:13,mn:"ADBE Stroke",ix:1,en:1,ef:[{ty:10,nm:"Path",mn:"ADBE Stroke-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:7,nm:"All Masks",mn:"ADBE Stroke-0010",ix:2,v:{a:0,k:0,ix:2}},{ty:7,nm:"Stroke Sequentially",mn:"ADBE Stroke-0011",ix:3,v:{a:0,k:1,ix:3}},{ty:2,nm:"Color",mn:"ADBE Stroke-0002",ix:4,v:{a:0,k:[.525490224361,.231372565031,.972549080849,1],ix:4}},{ty:0,nm:"Brush Size",mn:"ADBE Stroke-0003",ix:5,v:{a:0,k:2,ix:5}},{ty:0,nm:"Brush Hardness",mn:"ADBE Stroke-0004",ix:6,v:{a:0,k:.75,ix:6}},{ty:0,nm:"Opacity",mn:"ADBE Stroke-0005",ix:7,v:{a:0,k:1,ix:7}}
1284,{ty:0,nm:"Start",mn:"ADBE Stroke-0008",ix:8,v:{a:0,k:0,ix:8}},{ty:0,nm:"End",mn:"ADBE Stroke-0009",ix:9,v:{a:0,k:100,ix:9}},{ty:7,nm:"Spacing",mn:"ADBE Stroke-0006",ix:10,v:{a:0,k:15,ix:10}},{ty:7,nm:"Paint Style",mn:"ADBE Stroke-0007",ix:11,v:{a:0,k:1,ix:11}}]}],sw:1e3,sh:1e3,sc:"#ffffff",ip:0,op:754,st:0,bm:0},{ddd:0,ind:7,ty:1,nm:"Button",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[510,736,0],ix:2},a:{a:0,k:[497.468,353.165,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:32,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:35,s:[79,79,100]},{t:43,s:[100,100,100]}],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:"a",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[648,314],[344,314],[324,334],[324,386],[344,406],[648,406],[668,386],[668,334]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:"Mask 1"}],ef:[{ty:21,nm:"Fill",np:9,mn:"ADBE Fill",ix:1,en:1,ef:[{ty:10,nm:"Fill Mask",mn:"ADBE Fill-0001",ix:1,v:{a:0,k:0,ix:1}},{ty:7,nm:"All Masks",mn:"ADBE Fill-0007",ix:2,v:{a:0,k:0,ix:2}},{ty:2,nm:"Color",mn:"ADBE Fill-0002",ix:3,v:{a:0,k:[.686274528503,.290196090937,.937254965305,1],ix:3}},{ty:7,nm:"Invert",mn:"ADBE Fill-0006",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:"Horizontal Feather",mn:"ADBE Fill-0003",ix:5,v:{a:0,k:0,ix:5}},{ty:0,nm:"Vertical Feather",mn:"ADBE Fill-0004",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Opacity",mn:"ADBE Fill-0005",ix:7,v:{a:0,k:1,ix:7}}]}],sw:1e3,sh:1e3,sc:"#ffffff",ip:0,op:754,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Shape Layer 1",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[500,493.102,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:25,nm:"Drop Shadow",np:8,mn:"ADBE Drop Shadow",ix:1,en:1,ef:[{ty:2,nm:"Shadow Color",mn:"ADBE Drop Shadow-0001",ix:1,v:{a:0,k:[0,0,0,1],ix:1}},{ty:0,nm:"Opacity",mn:"ADBE Drop Shadow-0002",ix:2,v:{a:0,k:87.5,ix:2}},{ty:0,nm:"Direction",mn:"ADBE Drop Shadow-0003",ix:3,v:{a:0,k:173,ix:3}},{ty:0,nm:"Distance",mn:"ADBE Drop Shadow-0004",ix:4,v:{a:0,k:8,ix:4}},{ty:0,nm:"Softness",mn:"ADBE Drop Shadow-0005",ix:5,v:{a:0,k:125,ix:5}},{ty:7,nm:"Shadow Only",mn:"ADBE Drop Shadow-0006",ix:6,v:{a:0,k:0,ix:6}}]}],shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[452,730],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:20,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[6,-7],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:754,st:0,bm:0},{ddd:0,ind:9,ty:1,nm:"White Solid 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:1,s:[500,562,0],to:[0,-23.333,0],ti:[0,23.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:13,s:[500,422,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:65,s:[500,422,0],to:[0,23.333,0],ti:[0,-23.333,0]},{t:79,s:[500,562,0]}],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,hasMask:!0,masksProperties:[{inv:!1,mode:"a",pt:{a:0,k:{i:[[11.046,0],[0,0],[0,-11.046],[0,0],[-11.046,0],[0,0],[0,11.046],[0,0]],o:[[0,0],[-11.046,0],[0,0],[0,11.046],[0,0],[11.046,0],[0,0],[0,-11.046]],v:[[712,122],[302,122],[282,142],[282,830],[302,850],[712,850],[732,830],[732,142]],c:!0},ix:1},o:{a:0,k:100,ix:3},x:{a:0,k:0,ix:4},nm:"Mask 1"}],ef:[{ty:25,nm:"Drop Shadow",np:8,mn:"ADBE Drop Shadow",ix:1,en:1,ef:[{ty:2,nm:"Shadow Color",mn:"ADBE Drop Shadow-0001",ix:1,v:{a:0,k:[0,0,0,1],ix:1}},{ty:0,nm:"Opacity",mn:"ADBE Drop Shadow-0002",ix:2,v:{a:0,k:87.5,ix:2}},{ty:0,nm:"Direction",mn:"ADBE Drop Shadow-0003",ix:3,v:{a:0,k:173,ix:3}},{ty:0,nm:"Distance",mn:"ADBE Drop Shadow-0004",ix:4,v:{a:0,k:8,ix:4}},{ty:0,nm:"Softness",mn:"ADBE Drop Shadow-0005",ix:5,v:{a:0,k:125,ix:5}},{ty:7,nm:"Shadow Only",mn:"ADBE Drop Shadow-0006",ix:6,v:{a:0,k:0,ix:6}}]}],sw:1e3,sh:1e3,sc:"#ffffff",ip:0,op:754,st:0,bm:0}],markers:[]},X=`.defly-wallet-sign-txn-toast {
1285  --defly-wallet-sign-txn-toast-width: 422px;
1286  --defly-wallet-sign-txn-toast-height: 134px;
1287  --defly-wallet-sign-txn-toast-font-family: "Inter", sans-serif;
1288  position: fixed;
1289  bottom: 28px;
1290  right: 35px;
1291  z-index: 11;
1292  overflow: hidden;
1293  width: var(--defly-wallet-sign-txn-toast-width);
1294  height: var(--defly-wallet-sign-txn-toast-height);
1295  background: #edeffb;
1296  border-radius: 8px;
1297  animation: 0.2s DeflyWalletSignTxnToastSlideIn ease-out;
1298}
1299.defly-wallet-sign-txn-toast * {
1300  box-sizing: border-box;
1301  margin: 0;
1302  padding: 0;
1303  font-family: var(--defly-wallet-sign-txn-toast-font-family);
1304  font-smooth: antialiased;
1305  -webkit-font-smoothing: antialiased;
1306  -moz-osx-font-smoothing: grayscale;
1307}
1308.defly-wallet-sign-txn-toast ul,
1309.defly-wallet-sign-txn-toast ol,
1310.defly-wallet-sign-txn-toast li {
1311  list-style-type: none;
1312}
1313
1314.defly-wallet-sign-txn-toast__header__close-button {
1315  position: absolute;
1316  top: 10px;
1317  right: 10px;
1318  width: 20px;
1319  height: 20px;
1320  margin: 0;
1321  padding: 0;
1322  background: transparent;
1323  border: none;
1324  cursor: pointer;
1325}
1326
1327.defly-wallet-sign-txn-toast__content__lottie-animation {
1328  position: absolute;
1329  top: -75px;
1330  left: -100px;
1331  width: 368px;
1332  height: 368px;
1333}
1334
1335.defly-wallet-sign-txn-toast__content__description {
1336  position: absolute;
1337  top: 40px;
1338  right: 48px;
1339  max-width: 197px;
1340  color: #3c3c49;
1341  font-size: 14px;
1342  line-height: 22px;
1343  letter-spacing: -0.1px;
1344}
1345
1346@media (max-width: 935px) {
1347  .defly-wallet-sign-txn-toast {
1348    display: none;
1349  }
1350}
1351@keyframes DeflyWalletSignTxnToastSlideIn {
1352  0% {
1353    bottom: 12px;
1354    opacity: 0;
1355  }
1356  100% {
1357    bottom: 26px;
1358    opacity: 1;
1359  }
1360}`;m(X);const Y=document.createElement("template");Y.innerHTML=`
1361  <div class="defly-wallet-sign-txn-toast">
1362    <div class="defly-wallet-sign-txn-toast__header">
1363      <button
1364        id="defly-wallet-sign-txn-toast-close-button"
1365        class="defly-wallet-sign-txn-toast__header__close-button">
1366        <img src="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.4107 4.41074L9.41074 9.41074L10.5893 10.5893L15.5893 5.58926L14.4107 4.41074ZM9.41074 9.41074L4.41074 14.4107L5.58926 15.5893L10.5893 10.5893L9.41074 9.41074ZM15.5893 14.4107L10.5893 9.41074L9.41074 10.5893L14.4107 15.5893L15.5893 14.4107ZM10.5893 9.41074L5.58926 4.41074L4.41074 5.58926L9.41074 10.5893L10.5893 9.41074Z' fill='%239099BD'/%3e%3c/svg%3e" />
1367      </button>
1368    </div>
1369    <div class="defly-wallet-sign-txn-toast__content">
1370      <div id="defly-wallet-sign-txn-toast-lottie-animation" style="width:368;height:368" class="defly-wallet-sign-txn-toast__content__lottie-animation"></div>
1371      <p class="defly-wallet-sign-txn-toast__content__description">
1372        Please launch <b>Defly Wallet</b> on your iOS or Android device to sign this transaction.
1373      </p>
1374    </div>
1375  </div>
1376`;class nn extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=X,this.shadowRoot.append(Y.content.cloneNode(!0),e);const i=this.shadowRoot.getElementById("defly-wallet-sign-txn-toast-close-button");i?.addEventListener("click",(()=>{f$1(c)})),this.renderLottieAnimation()}}renderLottieAnimation(){var e;const i=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById("defly-wallet-sign-txn-toast-lottie-animation");i&&p.loadAnimation({container:i,renderer:"svg",loop:!0,autoplay:!0,animationData:K})}}var en=`@import url("https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600&display=swap");
1377@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100;900&display=swap");
1378.defly-wallet-modal {
1379  --defly-wallet-modal-font-family: "Spline Sans", sans-serif;
1380  --defly-wallet-connect-modal-headline-family: "Hanken Grotesk", sans-serif;
1381  position: fixed;
1382  top: 0;
1383  right: 0;
1384  left: 0;
1385  bottom: 0;
1386  z-index: 999999;
1387  width: 100vw;
1388  height: 100vh;
1389  background-color: rgba(0, 0, 0, 0.7);
1390}
1391.defly-wallet-modal--select-account .defly-wallet-modal__body {
1392  width: 480px;
1393  height: 578px;
1394}
1395.defly-wallet-modal--mobile .defly-wallet-modal__body {
1396  top: 40px;
1397  bottom: 0;
1398  left: 20px;
1399  width: calc(100% - 40px);
1400  max-width: unset;
1401  height: calc(100 * var(--defly-wallet-vh));
1402  padding: 20px;
1403  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
1404  border-radius: 20px 20px 0px 0px;
1405  animation: 0.3s DeflyWalletConnectMobileSlideIn ease-out;
1406  overflow-y: auto;
1407  transform: unset;
1408}
1409.defly-wallet-modal--mobile .defly-wallet-modal__body::before {
1410  background-image: unset;
1411}
1412.defly-wallet-modal * {
1413  box-sizing: border-box;
1414  margin: 0;
1415  padding: 0;
1416  font-family: var(--defly-wallet-modal-font-family);
1417  font-smooth: antialiased;
1418  -webkit-font-smoothing: antialiased;
1419  -moz-osx-font-smoothing: grayscale;
1420}
1421.defly-wallet-modal ul,
1422.defly-wallet-modal ol,
1423.defly-wallet-modal li {
1424  list-style-type: none;
1425}
1426
1427.defly-wallet-button {
1428  display: flex;
1429  align-items: center;
1430  justify-content: center;
1431  width: auto;
1432  height: 48px;
1433  padding: 14px;
1434  border: none;
1435  border-radius: 12px;
1436  outline: none;
1437  cursor: pointer;
1438  font-family: var(--defly-wallet-modal-font-family);
1439  font-size: 14px;
1440}
1441
1442.defly-wallet-modal__logo img {
1443  display: block;
1444  width: 32px;
1445}
1446
1447.defly-wallet-modal__body {
1448  position: relative;
1449  top: 50%;
1450  left: 50%;
1451  width: 979px;
1452  max-width: calc(100vw - 80px);
1453  padding: 28px;
1454  background-color: #131313;
1455  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);
1456  border-radius: 40px;
1457  animation: 0.3s DeflyWalletConnectSlideIn ease-out;
1458  transform: translate(-50%, -50%);
1459}
1460
1461@media (max-width: 935px) {
1462  .defly-wallet-modal--desktop .defly-wallet-modal__body {
1463    width: 100%;
1464    max-width: calc(100vw - 32px);
1465    padding: 24px;
1466  }
1467}
1468@keyframes DeflyWalletConnectSlideIn {
1469  0% {
1470    opacity: 0;
1471    transform: translate(-50%, calc(-50% + 24px));
1472  }
1473  100% {
1474    opacity: 1;
1475    transform: translate(-50%, -50%);
1476  }
1477}
1478@keyframes DeflyWalletConnectMobileSlideIn {
1479  0% {
1480    top: 30%;
1481    opacity: 0;
1482  }
1483  100% {
1484    top: 40px;
1485    opacity: 1;
1486  }
1487}
1488.defly-wallet-sign-txn-modal.defly-wallet-modal .defly-wallet-modal__body {
1489  width: 480px;
1490  height: 578px;
1491  background-image: unset;
1492  padding: 0;
1493}
1494.defly-wallet-sign-txn-modal.defly-wallet-modal .defly-wallet-modal__body .defly-wallet-sign-txn-modal__body__content {
1495  width: 100%;
1496  height: 100%;
1497}
1498.defly-wallet-sign-txn-modal.defly-wallet-modal .defly-wallet-modal__body #defly-wallet-iframe {
1499  width: 100%;
1500  height: 100%;
1501  border-radius: 16px;
1502  margin: 0 auto;
1503  border: none;
1504}`;m(en);const tn=document.createElement("template");tn.innerHTML=`
1505  <div class="${d} defly-wallet-sign-txn-modal">
1506    <div class="defly-wallet-modal__body">
1507      <defly-wallet-modal-header modal-id="${a}"></defly-wallet-modal-header/>
1508
1509      <div class="defly-wallet-sign-txn-modal__body__content" />
1510    </div>
1511  </div>
1512`;class on extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=en,this.shadowRoot.append(tn.content.cloneNode(!0),e)}}}window.addEventListener("DOMContentLoaded",(()=>{y()})),window.addEventListener("resize",(()=>{y()})),window.customElements.define("defly-wallet-connect-modal",G),window.customElements.define("defly-wallet-modal-desktop-mode",A),window.customElements.define("defly-wallet-modal-header",u),window.customElements.define("defly-wallet-modal-touch-screen-mode",z),window.customElements.define("defly-wallet-redirect-modal",O),window.customElements.define("defly-wallet-connect-modal-information-section",q),window.customElements.define("defly-wallet-connect-modal-pending-message-section",J),window.customElements.define("defly-wallet-sign-txn-toast",nn),window.customElements.define("defly-wallet-sign-txn-modal",on),window.customElements.define("defly-wallet-download-qr-code",C);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.