(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.DotLottiePlayer = {})); })(this, (function (exports) { 'use strict'; var Dl=Object.defineProperty;var Bc=Object.getOwnPropertyDescriptor;var Ir=(t,e)=>()=>(t&&(e=t(t=0)),e);var ia=(t,e)=>{for(var i in e)Dl(t,i,{get:e[i],enumerable:!0});};var pr=(t,e,i,r)=>{for(var s=r>1?void 0:r?Bc(e,i):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Dl(e,i,s),s};function Ze(t,e="dotLottie-common"){return new Error(`[${e}]: ${t}`)}function qs(t,e="dotLottie-common",...i){console.error(`[${e}]:`,t,...i);}function Ti(t,e="dotLottie-common",...i){console.warn(`[${e}]:`,t,...i);}function eh(t=""){let e=t.trim(),i=e.lastIndexOf("/"),r=e.substring(i+1),s=r.indexOf(".");return s!==-1?r.substring(0,s):r}function qa(t){return ["v","ip","op","layers","fr","w","h"].every(e=>Object.prototype.hasOwnProperty.call(t,e))}function ih(t){try{let e=JSON.parse(t);return qa(e)}catch{return !1}}function so(t,e){let i=Object.keys(t).find(r=>t[r]===e);if(i===void 0)throw new Error("Value not found in the object.");return i}var en=Ir(()=>{});function Jc(t,e,i){return i||(i=e,e={}),typeof i!="function"&&Xr(7),Uc(t,e,[Wc],function(r){return Yl(dh(r.data[0],Zl(r.data[1])))},1,i)}function dh(t,e){return Xl(t,e)}function sn(t,e){if(e){for(var i="",r=0;r65558)return o(Xr(13,0,1),null),s;var h=$s(t,p+8);if(h){var c=h,_=Cs(t,p+16),v=_==4294967295||c==65535;if(v){var u=Cs(t,p-12);v=Cs(t,u)==101075792,v&&(c=h=Cs(t,u+32),_=Cs(t,u+48));}for(var S=e&&e.filter,d=function(A){var y=Kc(t,_,v),m=y[0],x=y[1],w=y[2],M=y[3],N=y[4],U=y[5],Y=Zc(t,U);_=N;var dt=function(vt,bt){vt?(s(),o(vt,null)):(bt&&(a[M]=bt),--h||o(null,a));};if(!S||S({name:M,size:x,originalSize:w,compression:m}))if(!m)dt(null,lo(t,Y,Y+x));else if(m==8){var xt=t.subarray(Y,Y+x);if(x<32e4)try{dt(null,dh(xt,new zr(w)));}catch(vt){dt(vt,null);}else r.push(Jc(xt,{size:w},dt));}else dt(Xr(14,"unknown compression type "+m,1),null);else dt(null,null);},g=0;g{if(i.path){let r=i.path.map(({key:s})=>s).join(".");e.nested[r]=[...e.nested[r]||[],i.message];}else e.root=[...e.root||[],i.message];return e},{nested:{}})}function xa(t,e,i){let r=t,s=[];if(e.forEach(a=>{try{r=a(r,i);}catch(o){if(i.abortEarly||i.abortPipeEarly)throw o;s.push(...o.issues);}}),s.length)throw new Pr(s);return r}function Sn(t,e){return [...t?.path||[],e]}function Ms(t,e){let[i,r=[]]=!t||typeof t=="string"?[t,e]:[void 0,t];return {error:i,pipe:r}}function iu(t=[]){return {schema:"any",async:!1,parse(e,i){return xa(e,t,{...i,reason:"any"})}}}function Pn(t,e,i){let{error:r,pipe:s}=Ms(e,i);return {schema:"array",array:{item:t},async:!1,parse(a,o){if(!Array.isArray(a))throw new Pr([{reason:"type",validation:"array",origin:"value",message:r||"Invalid type",input:a,...o}]);let p=[],h=[];if(a.forEach((c,_)=>{try{p.push(t.parse(c,{...o,path:Sn(o,{schema:"array",input:a,key:_,value:c})}));}catch(v){if(o?.abortEarly)throw v;h.push(...v.issues);}}),h.length)throw new Pr(h);return xa(p,s,{...o,reason:"array"})}}}function sh(t,e){let{error:i,pipe:r}=Ms(t,e);return {schema:"boolean",async:!1,parse(s,a){if(typeof s!="boolean")throw new Pr([{reason:"type",validation:"boolean",origin:"value",message:i||"Invalid type",input:s,...a}]);return xa(s,r,{...a,reason:"boolean"})}}}function Vl(t,e){return {schema:"literal",literal:t,async:!1,parse(i,r){if(i!==t)throw new Pr([{reason:"type",validation:"literal",origin:"value",message:e||"Invalid type",input:i,...r}]);return i}}}function ru(t,e){return {schema:"native_enum",nativeEnum:t,async:!1,parse(i,r){if(!Object.values(t).includes(i))throw new Pr([{reason:"type",validation:"native_enum",origin:"value",message:e||"Invalid type",input:i,...r}]);return i}}}function Ts(t,e){let{error:i,pipe:r}=Ms(t,e);return {schema:"number",async:!1,parse(s,a){if(typeof s!="number")throw new Pr([{reason:"type",validation:"number",origin:"value",message:i||"Invalid type",input:s,...a}]);return xa(s,r,{...a,reason:"number"})}}}function ms(t,e,i){let{error:r,pipe:s}=Ms(e,i);return {schema:"object",object:t,async:!1,parse(a,o){if(!a||typeof a!="object"||a.toString()!=="[object Object]")throw new Pr([{reason:"type",validation:"object",origin:"value",message:r||"Invalid type",input:a,...o}]);let p={},h=[];if(Object.entries(t).forEach(([c,_])=>{try{let v=a[c];p[c]=_.parse(v,{...o,path:Sn(o,{schema:"object",input:a,key:c,value:v})});}catch(v){if(o?.abortEarly)throw v;h.push(...v.issues);}}),h.length)throw new Pr(h);return xa(p,s,{...o,reason:"object"})}}}function ui(t){return {schema:"optional",wrapped:t,async:!1,parse(e,i){return e===void 0?e:t.parse(e,i)}}}function _r(t,e){let{error:i,pipe:r}=Ms(t,e);return {schema:"string",async:!1,parse(s,a){if(typeof s!="string")throw new Pr([{reason:"type",validation:"string",origin:"value",message:i||"Invalid type",input:s,...a}]);return xa(s,r,{...a,reason:"string"})}}}function su(t,e,i,r){let{key:s,value:a,error:o,pipe:p}=typeof e=="object"&&!Array.isArray(e)?{key:t,value:e,...Ms(i,r)}:{key:_r(),value:t,...Ms(e,i)};return {schema:"record",record:{key:s,value:a},async:!1,parse(h,c){if(!h||typeof h!="object"||h.toString()!=="[object Object]")throw new Pr([{reason:"type",validation:"record",origin:"value",message:o||"Invalid type",input:h,...c}]);let _={},v=[];if(Object.entries(h).forEach(([u,S])=>{let d=Sn(c,{schema:"record",input:h,key:u,value:S}),g;try{g=s.parse(u,{...c,origin:"key",path:d});}catch(y){if(c?.abortEarly)throw y;v.push(...y.issues);}let A;try{A=[a.parse(S,{...c,path:d})];}catch(y){if(c?.abortEarly)throw y;v.push(...y.issues);}g&&A&&(_[g]=A[0]);}),v.length)throw new Pr(v);return xa(_,p,{...c,reason:"record"})}}}function Rl(t,e,i,r){let{rest:s,error:a,pipe:o}=typeof e=="object"&&!Array.isArray(e)?{rest:e,...Ms(i,r)}:Ms(e,i);return {schema:"tuple",tuple:{items:t,rest:s},async:!1,parse(p,h){if(!Array.isArray(p)||!s&&t.length!==p.length||s&&t.length>p.length)throw new Pr([{reason:"type",validation:"tuple",origin:"value",message:a||"Invalid type",input:p,...h}]);let c=[],_=[];if(t.forEach((v,u)=>{try{let S=p[u];c[u]=v.parse(S,{...h,path:Sn(h,{schema:"tuple",input:p,key:u,value:S})});}catch(S){if(h?.abortEarly)throw S;_.push(...S.issues);}}),s&&p.slice(t.length).forEach((v,u)=>{try{let S=t.length+u;c[S]=s.parse(v,{...h,path:Sn(h,{schema:"tuple",input:p,key:S,value:v})});}catch(S){if(h?.abortEarly)throw S;_.push(...S.issues);}}),_.length)throw new Pr(_);return xa(c,o,{...h,reason:"tuple"})}}}function nh(t,e){return {schema:"union",union:t,async:!1,parse(i,r){let s,a=[];for(let o of t)try{s=[o.parse(i,r)];break}catch(p){a.push(...p.issues);}if(!s)throw new Pr([{reason:"type",validation:"union",origin:"value",message:e||"Invalid type",input:i,issues:a,...r}]);return s[0]}}}function wn(t,e,i){let{error:r,pipe:s}=Ms(e,i);return ms(t.reduce((a,o)=>({...a,...o.object}),{}),r,s)}function au(t,e,i,r){let{error:s,pipe:a}=Ms(i,r);return ms(Object.entries(t.object).reduce((o,[p,h])=>e.includes(p)?o:{...o,[p]:h},{}),s,a)}function nu(t,e,i){try{return {success:!0,data:t.parse(e,i)}}catch(r){return {success:!1,error:r}}}function oh(t,e){return (i,r)=>{if(i>t)throw new Pr([{validation:"max_value",origin:"value",message:e||"Invalid value",input:i,...r}]);return i}}function hh(t,e){return (i,r)=>{if(i"u")e=Buffer.from(t).toString("base64");else {let i=Array.prototype.map.call(t,r=>String.fromCharCode(r)).join("");e=window.btoa(i);}return `data:${Lu(e)};base64,${e}`}function Bl(t){return "w"in t&&"h"in t&&!("xt"in t)&&"p"in t}async function po(t,e=()=>!0){if(!(t instanceof Uint8Array))throw new gh("DotLottie not found","INVALID_DOTLOTTIE");return await new Promise((i,r)=>{tu(t,{filter:e},(s,a)=>{s&&r(s),i(a);});})}async function yh(t,e,i){if(!(t instanceof Uint8Array))throw new gh("DotLottie not found","INVALID_DOTLOTTIE");return (await po(t,r=>r.name===e&&(!i||i(r))))[e]}async function lh(t){let e="manifest.json",i=(await po(t,r=>r.name===e))[e];if(!(typeof i>"u"))return JSON.parse(sn(i,!1))}async function Ru(t){if(!(t instanceof Uint8Array))return {success:!1,error:"DotLottie not found"};let e=await lh(t);if(typeof e>"u")return {success:!1,error:"Invalid .lottie file, manifest.json is missing"};let i=nu(Pu,e);return i.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(eu(i.error).nested,null,2)}`}}async function zl(t){let e=new Uint8Array(t),i=await Ru(e);if(i.error)throw new gh(i.error,"INVALID_DOTLOTTIE");return e}async function Ou(t,e){let i=await po(t,s=>{let a=s.name.replace("images/","");return s.name.startsWith("images/")&&(!e||e({...s,name:a}))}),r={};for(let s in i){let a=i[s];if(a instanceof Uint8Array){let o=s.replace("images/","");r[o]=Vu(a);}}return r}async function Bu(t,e){let i=new Map;for(let[s,a]of Object.entries(e))for(let o of a.assets||[])if(Bl(o)){let p=o.p;i.has(p)||i.set(p,new Set),i.get(p)?.add(s);}let r=await Ou(t,s=>i.has(s.name));for(let[s,a]of i){let o=r[s];if(o)for(let p of a){let h=e[p];for(let c of h?.assets||[])Bl(c)&&c.p===s&&(c.p=o,c.u="",c.e=1);}}}async function zu(t,e,{inlineAssets:i}={},r){let s=`animations/${e}.json`,a=await yh(t,s,r);if(typeof a>"u")return;let o=JSON.parse(sn(a,!1));if(!i)return o;let p={[e]:o};return await Bu(t,p),o}async function Nu(t,e,i){let r=`themes/${e}.lss`,s=await yh(t,r,i);if(!(typeof s>"u"))return sn(s,!1)}async function Gu(t,e){let i={},r=await po(t,s=>{let a=s.name.replace("states/","").replace(".json","");return s.name.startsWith("states/")&&(!e||e({...s,name:a}))});for(let s in r){let a=r[s];if(a instanceof Uint8Array){let o=s.replace("states/","").replace(".json","");i[o]=sn(a,!1);}}return i}async function ju(t,e,i){let r=`states/${e}.json`,s=await yh(t,r,i);return typeof s>"u"?void 0:JSON.parse(sn(s,!1))}var Fl,zc,zr,ba,ph,fh,ch,Nl,Gl,jl,uh,Nc,Gc,ql,ho,ra,pi,rn,kn,pi,pi,pi,pi,$l,pi,Hl,Wl,no,ds,oo,Ul,lo,Jl,Xr,Xl,jc,qc,Il,ao,$c,Hc,Wc,Yl,Zl,Uc,$s,Cs,rh,ah,Xc,Yc,Zc,Kc,Qc,Ll,Pr,ou,mh,hu,Kl,lu,pu,fu,En,cu,uu,du,mu,gu,yu,vu,bu,Ql,xu,tp,_u,Pu,Su,$a,ku,wu,Eu,Au,Cu,Tu,Mu,Du,Fu,Iu,Ol,Lu,gh,ep,fo=Ir(()=>{en();Fl={},zc=function(t,e,i,r,s){var a=new Worker(Fl[e]||(Fl[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(o){var p=o.data,h=p.$e$;if(h){var c=new Error(h[0]);c.code=h[1],c.stack=h[2],s(c,null);}else s(null,p);},a.postMessage(i,r),a},zr=Uint8Array,ba=Uint16Array,ph=Uint32Array,fh=new zr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ch=new zr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Nl=new zr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gl=function(t,e){for(var i=new ba(31),r=0;r<31;++r)i[r]=e+=1<>>1|(pi&21845)<<1,ra=(ra&52428)>>>2|(ra&13107)<<2,ra=(ra&61680)>>>4|(ra&3855)<<4,ho[pi]=((ra&65280)>>>8|(ra&255)<<8)>>>1;rn=function(t,e,i){for(var r=t.length,s=0,a=new ba(e);s>>h]=c;}else for(p=new ba(r),s=0;s>>15-t[s]);return p},kn=new zr(288);for(pi=0;pi<144;++pi)kn[pi]=8;for(pi=144;pi<256;++pi)kn[pi]=9;for(pi=256;pi<280;++pi)kn[pi]=7;for(pi=280;pi<288;++pi)kn[pi]=8;$l=new zr(32);for(pi=0;pi<32;++pi)$l[pi]=5;Hl=rn(kn,9,1),Wl=rn($l,5,1),no=function(t){for(var e=t[0],i=1;ie&&(e=t[i]);return e},ds=function(t,e,i){var r=e/8|0;return (t[r]|t[r+1]<<8)>>(e&7)&i},oo=function(t,e){var i=e/8|0;return (t[i]|t[i+1]<<8|t[i+2]<<16)>>(e&7)},Ul=function(t){return (t+7)/8|0},lo=function(t,e,i){(e==null||e<0)&&(e=0),(i==null||i>t.length)&&(i=t.length);var r=new(t.BYTES_PER_ELEMENT==2?ba:t.BYTES_PER_ELEMENT==4?ph:zr)(i-e);return r.set(t.subarray(e,i)),r},Jl=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xr=function(t,e,i){var r=new Error(e||Jl[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,Xr),!i)throw r;return r},Xl=function(t,e,i){var r=t.length;if(!r||i&&i.f&&!i.l)return e||new zr(0);var s=!e||i,a=!i||i.i;i||(i={}),e||(e=new zr(r*3));var o=function(se){var he=e.length;if(se>he){var le=new zr(Math.max(he*2,se));le.set(e),e=le;}},p=i.f||0,h=i.p||0,c=i.b||0,_=i.l,v=i.d,u=i.m,S=i.n,d=r*8;do{if(!_){p=ds(t,h,1);var g=ds(t,h+1,3);if(h+=3,g)if(g==1)_=Hl,v=Wl,u=9,S=5;else if(g==2){var A=ds(t,h,31)+257,y=ds(t,h+10,15)+4,m=A+ds(t,h+5,31)+1;h+=14;for(var x=new zr(m),w=new zr(19),M=0;M>>4;if(xt<16)x[M++]=xt;else {var vt=0,bt=0;for(xt==16?(bt=3+ds(t,h,3),h+=2,vt=x[M-1]):xt==17?(bt=3+ds(t,h,7),h+=3):xt==18&&(bt=11+ds(t,h,127),h+=7);bt--;)x[M++]=vt;}}var It=x.subarray(0,A),ot=x.subarray(A);u=no(It),S=no(ot),_=rn(It,u,1),v=rn(ot,S,1);}else Xr(1);else {var xt=Ul(h)+4,Tt=t[xt-4]|t[xt-3]<<8,z=xt+Tt;if(z>r){a&&Xr(0);break}s&&o(c+Tt),e.set(t.subarray(xt,z),c),i.b=c+=Tt,i.p=h=z*8,i.f=p;continue}if(h>d){a&&Xr(0);break}}s&&o(c+131072);for(var $=(1<>>4;if(h+=vt&15,h>d){a&&Xr(0);break}if(vt||Xr(2),nt<256)e[c++]=nt;else if(nt==256){q=h,_=null;break}else {var Q=nt-254;if(nt>264){var M=nt-257,Ut=fh[M];Q=ds(t,h,(1<>>4;zt||Xr(3),h+=zt&15;var ot=ql[qt];if(qt>3){var Ut=ch[qt];ot+=oo(t,h)&(1<d){a&&Xr(0);break}s&&o(c+131072);for(var Gt=c+Q;c>>0},rh=function(t,e){return Cs(t,e)+Cs(t,e+4)*4294967296};ah=typeof TextDecoder<"u"&&new TextDecoder,Xc=0;try{ah.decode(jc,{stream:!0}),Xc=1;}catch{}Yc=function(t){for(var e="",i=0;;){var r=t[i++],s=(r>127)+(r>223)+(r>239);if(i+s>t.length)return [e,lo(t,i-1)];s?s==3?(r=((r&15)<<18|(t[i++]&63)<<12|(t[i++]&63)<<6|t[i++]&63)-65536,e+=String.fromCharCode(55296|r>>10,56320|r&1023)):s&1?e+=String.fromCharCode((r&31)<<6|t[i++]&63):e+=String.fromCharCode((r&15)<<12|(t[i++]&63)<<6|t[i++]&63):e+=String.fromCharCode(r);}};Zc=function(t,e){return e+30+$s(t,e+26)+$s(t,e+28)},Kc=function(t,e,i){var r=$s(t,e+28),s=sn(t.subarray(e+46,e+46+r),!($s(t,e+8)&2048)),a=e+46+r,o=Cs(t,e+20),p=i&&o==4294967295?Qc(t,a):[o,Cs(t,e+24),Cs(t,e+42)],h=p[0],c=p[1],_=p[2];return [$s(t,e+10),h,c,s,a+$s(t,e+30)+$s(t,e+32),_]},Qc=function(t,e){for(;$s(t,e)!=1;e+=4+$s(t,e+2));return [rh(t,e+12),rh(t,e+4),rh(t,e+20)]},Ll=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t();};Pr=class extends Error{issues;constructor(t){super(t[0].message),this.name="ValiError",this.issues=t;}};ou=Object.create,mh=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyNames,lu=Object.getPrototypeOf,pu=Object.prototype.hasOwnProperty,fu=(t,e,i)=>e in t?mh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,En=(t,e)=>function(){return e||(0, t[Kl(t)[0]])((e={exports:{}}).exports,e),e.exports},cu=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Kl(e))!pu.call(t,s)&&s!==i&&mh(t,s,{get:()=>e[s],enumerable:!(r=hu(e,s))||r.enumerable});return t},uu=(t,e,i)=>(i=t!=null?ou(lu(t)):{},cu(e||!t||!t.__esModule?mh(i,"default",{value:t,enumerable:!0}):i,t)),du=(t,e,i)=>(fu(t,typeof e!="symbol"?e+"":e,i),i),mu=En({"../../node_modules/.pnpm/@rgba-image+copy@0.1.3/node_modules/@rgba-image/copy/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.copy=void 0;var e=(i,r,s=0,a=0,o=i.width-s,p=i.height-a,h=0,c=0)=>{if(s=s|0,a=a|0,o=o|0,p=p|0,h=h|0,c=c|0,o<=0||p<=0)return;let _=new Uint32Array(i.data.buffer),v=new Uint32Array(r.data.buffer);for(let u=0;u=i.height)continue;let d=c+u;if(!(d<0||d>=r.height))for(let g=0;g=i.width)continue;let y=h+g;if(y<0||y>=r.width)continue;let m=S*i.width+A,x=d*r.width+y;v[x]=_[m];}}};t.copy=e;}}),gu=En({"../../node_modules/.pnpm/@rgba-image+create-image@0.1.1/node_modules/@rgba-image/create-image/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CreateImageFactory=(e=[0,0,0,0],i=4)=>{if(i=Math.floor(i),isNaN(i)||i<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in e)||e.lengths===0);return (s,a,o)=>{if(s===void 0||a===void 0)throw TypeError("Not enough arguments");if(s=Math.floor(s),a=Math.floor(a),isNaN(s)||s<1||isNaN(a)||a<1)throw TypeError("Index or size is negative or greater than the allowed amount");let p=s*a*i;if(o===void 0&&(o=new Uint8ClampedArray(p)),o instanceof Uint8ClampedArray){if(o.length!==p)throw TypeError("Index or size is negative or greater than the allowed amount");if(!r)for(let h=0;h{if(a<=-o||a>=o||a==0)return 0;let p=a*Math.PI;return Math.sin(p)/p*Math.sin(p/o)/(p/o)},r=a=>Math.round(a*((1<{let _=c?2:3,v=1/p,u=Math.min(1,p),S=_/u,d=Math.floor((S+1)*2),g=new Int16Array((d+2)*o),A=0;for(let y=0;y>1]+=r(1-xt);let vt=0;for(;vt0&&U[bt]===0;)bt--;let It=x+vt,ot=bt-vt+1;g[A++]=It,g[A++]=ot,g.set(U.subarray(vt,bt+1),A),A+=ot;}return g};t.filters=s;}}),vu=En({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/convolve.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convolve=void 0;var e=14,i=(r,s,a,o,p,h)=>{let c=0,_=0;for(let v=0;v0;w--){let M=h[u++];A=A+M*r[g]|0,y=y+M*r[g+1]|0,m=m+M*r[g+2]|0,x=x+M*r[g+3]|0,g=g+4|0;}s[_]=A+8192>>e,s[_+1]=y+8192>>e,s[_+2]=m+8192>>e,s[_+3]=x+8192>>e,_=_+o*4|0;}_=(v+1)*4|0,c=(v+1)*a*4|0;}};t.convolve=i;}}),bu=En({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.lanczos2=t.lanczos=void 0;var e=mu(),i=gu(),r=yu(),s=vu(),a=(h,c,_=!1)=>{let v=c.width/h.width,u=c.height/h.height,S=r.filters(h.width,c.width,v,0,_),d=r.filters(h.height,c.height,u,0,_),g=new Uint8ClampedArray(c.width*h.height*4);s.convolve(h.data,g,h.width,h.height,c.width,S),s.convolve(g,c.data,h.height,c.width,c.height,d);},o=(h,c,_=0,v=0,u=h.width-_,S=h.height-v,d=0,g=0,A=c.width-d,y=c.height-g)=>{if(_=_|0,v=v|0,u=u|0,S=S|0,d=d|0,g=g|0,A=A|0,y=y|0,u<=0||S<=0||A<=0||y<=0)return;if(_===0&&v===0&&u===h.width&&S===h.height&&d===0&&g===0&&A===c.width&&y===c.height){a(h,c);return}let m=i.createImage(u,S),x=i.createImage(A,y);e.copy(h,m,_,v),a(m,x),e.copy(x,c,0,0,x.width,x.height,d,g);};t.lanczos=o;var p=(h,c,_=0,v=0,u=h.width-_,S=h.height-v,d=0,g=0,A=c.width-d,y=c.height-g)=>{if(_=_|0,v=v|0,u=u|0,S=S|0,d=d|0,g=g|0,A=A|0,y=y|0,u<=0||S<=0||A<=0||y<=0)return;if(_===0&&v===0&&u===h.width&&S===h.height&&d===0&&g===0&&A===c.width&&y===c.height){a(h,c,!0);return}let m=i.createImage(u,S),x=i.createImage(A,y);e.copy(h,m,_,v),a(m,x,!0),e.copy(x,c,0,0,x.width,x.height,d,g);};t.lanczos2=p;}}),Ql=(t=>(t.Bounce="bounce",t.Normal="normal",t))(Ql||{}),xu=ru(Ql),tp=ms({autoplay:ui(sh()),defaultTheme:ui(_r()),direction:ui(nh([Vl(1),Vl(-1)])),hover:ui(sh()),id:_r(),intermission:ui(Ts()),loop:ui(nh([sh(),Ts()])),playMode:ui(xu),speed:ui(Ts()),themeColor:ui(_r())}),_u=ms({animations:Pn(_r()),id:_r()}),Pu=ms({activeAnimationId:ui(_r()),animations:Pn(tp),author:ui(_r()),custom:ui(su(_r(),iu())),description:ui(_r()),generator:ui(_r()),keywords:ui(_r()),revision:ui(Ts()),themes:ui(Pn(_u)),states:ui(Pn(_r())),version:ui(_r())}),Su=au(tp,["id"]),$a=ms({state:_r()}),ku=$a,wu=wn([$a,ms({ms:Ts()})]),Eu=wn([$a,ms({count:Ts()})]),Au=$a,Cu=$a,Tu=$a,Mu=wn([$a,ms({threshold:ui(Pn(Ts([hh(0),oh(1)])))})]),Du=ms({onAfter:ui(wu),onClick:ui(ku),onComplete:ui(Tu),onEnter:ui(Eu),onMouseEnter:ui(Au),onMouseLeave:ui(Cu),onShow:ui(Mu)}),Fu=wn([Su,ms({playOnScroll:ui(Rl([Ts([hh(0),oh(1)]),Ts([hh(0),oh(1)])])),segments:ui(nh([Rl([Ts(),Ts()]),_r()]))})]);wn([Du,ms({animationId:ui(_r()),playbackSettings:Fu})]);Iu={jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",svg:"image/svg+xml",webp:"image/webp"},Ol={jpeg:[255,216,255],png:[137,80,78,71,13,10,26,10],gif:[71,73,70],bmp:[66,77],webp:[82,73,70,70,87,69,66,80],svg:[60,63,120]},Lu=t=>{let e=null,i=[];if(!t)return null;let r=t.substring(t.indexOf(",")+1);typeof window>"u"?e=Buffer.from(r,"base64").toString("binary"):e=atob(r);let s=new Uint8Array(e.length);for(let a=0;ap===o[h]))return Iu[a]}return null},gh=class extends Error{constructor(t,e){super(t),du(this,"code"),this.name="[dotlottie-js]",this.code=e;}};uu(bu());ep=class{_dotLottie;_animationsMap=new Map;_themeMap=new Map;_stateMachinesMap=new Map;_manifest;get dotLottie(){return this._dotLottie}get animationsMap(){return this._animationsMap}get themeMap(){return this._themeMap}get stateMachinesMap(){return this._stateMachinesMap}get manifest(){return this._manifest}async loadFromUrl(t){let e=await fetch(t,{method:"GET",mode:"cors"});if(!e.ok)throw new Error(`Failed to load dotLottie from ${t} with status ${e.status}`);if(e.headers.get("content-type")?.includes("application/json")){let i=await e.json();if(!qa(i))throw new Error(`Invalid lottie JSON at ${t}`);let r=eh(t);this._animationsMap.set(r,i);let s={activeAnimationId:r,animations:[{id:r}]};this._manifest=s;}else {this._dotLottie=await zl(await e.arrayBuffer());let i=await lh(this._dotLottie);if(!i)throw new Error("Manifest not found");this._manifest=i;}}loadFromLottieJSON(t){if(!qa(t))throw new Error("Invalid lottie JSON");let e="my-animation";this._animationsMap.set(e,t);let i={activeAnimationId:e,animations:[{id:e}]};this._manifest=i;}async loadFromArrayBuffer(t){this._dotLottie=await zl(t);let e=await lh(this._dotLottie);if(!e)throw new Error("Manifest not found");this._manifest=e;}async getAnimation(t){if(this._animationsMap.get(t))return this._animationsMap.get(t);if(!this._dotLottie)return;let e=await zu(this._dotLottie,t,{inlineAssets:!0});return e&&this._animationsMap.set(t,e),e}async getTheme(t){if(this._themeMap.get(t))return this._themeMap.get(t);if(!this._dotLottie)return;let e=await Nu(this._dotLottie,t);return e&&this._themeMap.set(t,e),e}async getStateMachines(){if(!this._dotLottie)return;let t=await Gu(this._dotLottie);for(let e in t)if(e){let i=t[e];if(i){let r=JSON.parse(i);if(r){let s=r.descriptor.id;this._stateMachinesMap.get(s)||this._stateMachinesMap.set(s,r);}}}return Array.from(this._stateMachinesMap.values())}async getStateMachine(t){if(this._stateMachinesMap.get(t))return this._stateMachinesMap.get(t);if(!this._dotLottie)return;let e=await ju(this._dotLottie,t);return e&&this._stateMachinesMap.set(e.descriptor.id,e),e}};});var qu,ip,$u,Hu,Wu,Uu,ce,Ju,Ds,Fs=Ir(()=>{qu=Object.create,ip=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,Hu=Object.getOwnPropertyNames,Wu=Object.getPrototypeOf,Uu=Object.prototype.hasOwnProperty,ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ju=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Hu(e))!Uu.call(t,s)&&s!==i&&ip(t,s,{get:()=>e[s],enumerable:!(r=$u(e,s))||r.enumerable});return t},Ds=(t,e,i)=>(i=t!=null?qu(Wu(t)):{},Ju(e||!t||!t.__esModule?ip(i,"default",{value:t,enumerable:!0}):i,t));});var Mp={};ia(Mp,{relottie:()=>lm});function co(t){if(Array.isArray(t))return t;if(typeof t=="function"){let e=t();return co(e)}else return typeof t>"u"?[]:[t]}function uo(t){if(Array.isArray(t))return t.length>0?[t[0]]:[];if(typeof t=="function"){let e=t();return uo(e)}else return typeof t>"u"?[]:[t]}function Ku(t){return t===void 0?"empty":t}function nd(t){let e=[],i=-1;for(;++i0?{messages:e.messages}:{}}};Object.assign(e.data,h);let c=o.pop();if(nn(c,"root"))return c.hasExpressions=p.hasExpressions,c;e.fail(`Stack's last item has to be "root" but it's "${c?.type}"`,c);}function an(t){let e=i=>{let r={};return i.children.forEach(s=>{let a=typeof s.key=="string"?s.key:s.key.value,o=s.children[0];o&&(r[a]=an(o));}),r};switch(t.type){case"primitive":switch(typeof t.value){case"number":return t.value;case"string":return t.value;case"boolean":return t.value;case"object":return null;default:throw new Error(`Unknown Primitive type ${t.type}.`)}case"attribute":return t.children[0]?an(t.children[0]):null;case"collection":return t.children[0]?an(t.children[0]):null;case"element":return t.children[0]?an(t.children[0]):null;case"array":return t.children.map(an);case"root":return e(t);case"object":return e(t);default:throw new Error(`Unknown node type ${t.type}.`)}}function zd(t,e,i={}){let r={...Bd,...i.stringify},s=an(t);return JSON.stringify(s,null,r.indent)}function cp(t){if(t)throw t}function wh(t){if(typeof t!="object"||t===null)return !1;let e=Object.getPrototypeOf(t);return (e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function qd(){let t=[],e={run:i,use:r};return e;function i(...s){let a=-1,o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);p(null,...s);function p(h,...c){let _=t[++a],v=-1;if(h){o(h);return}for(;++vo.length,h;p&&o.push(s);try{h=t.apply(this,o);}catch(c){let _=c;if(p&&i)throw _;return s(_)}p||(h instanceof Promise?h.then(a,s):h instanceof Error?s(h):a(h));}function s(o,...p){i||(i=!0,e(o,...p));}function a(o){s(null,o);}}function Wd(t){return !t||typeof t!="object"?"":"position"in t||"type"in t?dp(t.position):"start"in t||"end"in t?dp(t):"line"in t||"column"in t?Eh(t):""}function Eh(t){return mp(t&&t.line)+":"+mp(t&&t.column)}function dp(t){return Eh(t&&t.start)+"-"+Eh(t&&t.end)}function mp(t){return t&&typeof t=="number"?t:1}function Ud(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Mn(t);let i=0,r=-1,s=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;s--;)if(t.charCodeAt(s)===47){if(a){i=s+1;break}}else r<0&&(a=!0,r=s+1);return r<0?"":t.slice(i,r)}if(e===t)return "";let o=-1,p=e.length-1;for(;s--;)if(t.charCodeAt(s)===47){if(a){i=s+1;break}}else o<0&&(a=!0,o=s+1),p>-1&&(t.charCodeAt(s)===e.charCodeAt(p--)?p<0&&(r=s):(p=-1,r=o));return i===r?r=o:r<0&&(r=t.length),t.slice(i,r)}function Jd(t){if(Mn(t),t.length===0)return ".";let e=-1,i=t.length,r;for(;--i;)if(t.charCodeAt(i)===47){if(r){e=i;break}}else r||(r=!0);return e<0?t.charCodeAt(0)===47?"/":".":e===1&&t.charCodeAt(0)===47?"//":t.slice(0,e)}function Xd(t){Mn(t);let e=t.length,i=-1,r=0,s=-1,a=0,o;for(;e--;){let p=t.charCodeAt(e);if(p===47){if(o){r=e+1;break}continue}i<0&&(o=!0,i=e+1),p===46?s<0?s=e:a!==1&&(a=1):s>-1&&(a=-1);}return s<0||i<0||a===0||a===1&&s===i-1&&s===r+1?"":t.slice(s,i)}function Yd(...t){let e=-1,i;for(;++e0&&t.charCodeAt(t.length-1)===47&&(i+="/"),e?"/"+i:i}function Kd(t,e){let i="",r=0,s=-1,a=0,o=-1,p,h;for(;++o<=t.length;){if(o2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",r=0):(i=i.slice(0,h),r=i.length-1-i.lastIndexOf("/")),s=o,a=0;continue}}else if(i.length>0){i="",r=0,s=o,a=0;continue}}e&&(i=i.length>0?i+"/..":"..",r=2);}else i.length>0?i+="/"+t.slice(s+1,o):i=t.slice(s+1,o),r=o-s-1;s=o,a=0;}else p===46&&a>-1?a++:a=-1;}return i}function Mn(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function tm(){return "/"}function Ah(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}function em(t){if(typeof t=="string")t=new URL(t);else if(!Ah(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return im(t)}function im(t){if(t.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let e=t.pathname,i=-1;for(;++i{if(N||!U||!Y)M(N);else {let dt=a.stringify(U,Y);dt==null||(hm(dt)?Y.value=dt:Y.result=dt),M(N,Y);}});function M(N,U){N||!U?x(N):m?m(U):A(null,U);}}}function d(g){let A;a.freeze(),Ph("processSync",a.Parser),Sh("processSync",a.Compiler);let y=An(g);return a.process(y,m),bp("processSync","process",A),y;function m(x){A=!0,cp(x);}}}function yp(t,e){return typeof t=="function"&&t.prototype&&(nm(t.prototype)||e in t.prototype)}function nm(t){let e;for(e in t)if(Cp.call(t,e))return !0;return !1}function Ph(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function Sh(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function kh(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vp(t){if(!wh(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function bp(t,e,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function An(t){return om(t)?t:new rm(t)}function om(t){return !!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function hm(t){return typeof t=="string"||(0, jd.default)(t)}var xp,Xu,_p,Yu,Zu,rp,Pp,Pa,Qu,td,sp,ap,ed,id,rd,sd,ad,nn,Sp,pd,fd,np,Mi,Qt,Cn,ft,qe,ee,pt,oe,Tn,fe,vh,op,_a,gs,kp,Je,cd,wp,ud,dd,md,gd,yd,vd,bd,xd,_d,sa,Pd,Sd,kd,wd,Ed,Ad,hp,Cd,go,lp,Td,Md,Ep,Dd,Fd,Ap,pp,fp,Id,Ld,Rd,Od,Bd,Nd,Gd,jd,up,Hd,ys,Hs,Qd,bh,rm,am,Cp,lm,Dp=Ir(()=>{Fs();xp=ce((t,e)=>{var i=200,r="__lodash_hash_undefined__",s=800,a=16,o=9007199254740991,p="[object Arguments]",h="[object Array]",c="[object AsyncFunction]",_="[object Boolean]",v="[object Date]",u="[object Error]",S="[object Function]",d="[object GeneratorFunction]",g="[object Map]",A="[object Number]",y="[object Null]",m="[object Object]",x="[object Proxy]",w="[object RegExp]",M="[object Set]",N="[object String]",U="[object Undefined]",Y="[object WeakMap]",dt="[object ArrayBuffer]",xt="[object DataView]",vt="[object Float32Array]",bt="[object Float64Array]",It="[object Int8Array]",ot="[object Int16Array]",Tt="[object Int32Array]",z="[object Uint8Array]",$="[object Uint8ClampedArray]",E="[object Uint16Array]",q="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,Q=/^\[object .+?Constructor\]$/,Ut=/^(?:0|[1-9]\d*)$/,zt={};zt[vt]=zt[bt]=zt[It]=zt[ot]=zt[Tt]=zt[z]=zt[$]=zt[E]=zt[q]=!0,zt[p]=zt[h]=zt[dt]=zt[_]=zt[xt]=zt[v]=zt[u]=zt[S]=zt[g]=zt[A]=zt[m]=zt[w]=zt[M]=zt[N]=zt[Y]=!1;var qt=typeof global=="object"&&global&&global.Object===Object&&global,Gt=typeof self=="object"&&self&&self.Object===Object&&self,se=qt||Gt||Function("return this")(),he=typeof t=="object"&&t&&!t.nodeType&&t,le=he&&typeof e=="object"&&e&&!e.nodeType&&e,Se=le&&le.exports===he,Pe=Se&&qt.process,Jt=function(){try{var Ot=le&&le.require&&le.require("util").types;return Ot||Pe&&Pe.binding&&Pe.binding("util")}catch{}}(),de=Jt&&Jt.isTypedArray;function Xt(Ot,Yt,ie){switch(ie.length){case 0:return Ot.call(Yt);case 1:return Ot.call(Yt,ie[0]);case 2:return Ot.call(Yt,ie[0],ie[1]);case 3:return Ot.call(Yt,ie[0],ie[1],ie[2])}return Ot.apply(Yt,ie)}function Wt(Ot,Yt){for(var ie=-1,ye=Array(Ot);++ie-1}function kr(Ot,Yt){var ie=this.__data__,ye=Qr(ie,Ot);return ye<0?(++this.size,ie.push([Ot,Yt])):ie[ye][1]=Yt,this}Ve.prototype.clear=Qi,Ve.prototype.delete=ai,Ve.prototype.get=gr,Ve.prototype.has=Ge,Ve.prototype.set=kr;function ue(Ot){var Yt=-1,ie=Ot==null?0:Ot.length;for(this.clear();++Yt1?ie[Te-1]:void 0,De=Te>2?ie[2]:void 0;for(Fe=Ot.length>3&&typeof Fe=="function"?(Te--,Fe):void 0,De&&tr(ie[0],ie[1],De)&&(Fe=Te<3?void 0:Fe,Te=1),Yt=Object(Yt);++ye-1&&Ot%1==0&&Ot0){if(++Yt>=s)return arguments[0]}else Yt=0;return Ot.apply(void 0,arguments)}}function yr(Ot){if(Ot!=null){try{return re.call(Ot)}catch{}try{return Ot+""}catch{}}return ""}function Ur(Ot,Yt){return Ot===Yt||Ot!==Ot&&Yt!==Yt}var Ar=ei(function(){return arguments}())?ei:function(Ot){return vr(Ot)&&Nt.call(Ot,"callee")&&!Vr.call(Ot,"callee")},fs=Array.isArray;function Os(Ot){return Ot!=null&&Li(Ot.length)&&!cs(Ot)}function Bs(Ot){return vr(Ot)&&Os(Ot)}var Cr=Js||za;function cs(Ot){if(!Tr(Ot))return !1;var Yt=ni(Ot);return Yt==S||Yt==d||Yt==c||Yt==x}function Li(Ot){return typeof Ot=="number"&&Ot>-1&&Ot%1==0&&Ot<=o}function Tr(Ot){var Yt=typeof Ot;return Ot!=null&&(Yt=="object"||Yt=="function")}function vr(Ot){return Ot!=null&&typeof Ot=="object"}function nr(Ot){if(!vr(Ot)||ni(Ot)!=m)return !1;var Yt=Xi(Ot);if(Yt===null)return !0;var ie=Nt.call(Yt,"constructor")&&Yt.constructor;return typeof ie=="function"&&ie instanceof ie&&re.call(ie)==ke}var es=de?ze(de):Gi;function us(Ot){return Ne(Ot,zs(Ot))}function zs(Ot){return Os(Ot)?Xs(Ot,!0):mi(Ot)}var Oa=Rs(function(Ot,Yt,ie){rr(Ot,Yt,ie);});function Ba(Ot){return function(){return Ot}}function ua(Ot){return Ot}function za(){return !1}e.exports=Oa;}),Xu=ce(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e="[",i="]",r="{",s="}",a=":",o=",",p="true",h="false",c="null",_='"',v=new Map([["t",p],["f",h],["n",c]]),u=new Map([[_,_],["\\","\\"],["/","/"],["b","\b"],["n",` `],["f","\f"],["r","\r"],["t"," "]]),S=new Map([[e,"Punctuator"],[i,"Punctuator"],[r,"Punctuator"],[s,"Punctuator"],[a,"Punctuator"],[o,"Punctuator"],[p,"Boolean"],[h,"Boolean"],[c,"Null"]]),d=class extends Error{constructor(Gt,{line:se,column:he,index:le}){super(`${Gt} (${se}:${he})`),this.line=se,this.column=he,this.index=le;}},g=class extends d{constructor(Gt,se){super(`Unexpected character ${Gt} found.`,se);}},A=class extends d{constructor(Gt){super(`Unexpected token ${Gt.type}(${Gt.value}) found.`,Gt.loc.start);}},y=class extends d{constructor(Gt){super("Unexpected end of input found.",Gt);}},m='"',x="/",w="*",M={comments:!1,ranges:!1};function N(Gt){return /[\s\n]/.test(Gt)}function U(Gt){return Gt>="0"&&Gt<="9"}function Y(Gt){return U(Gt)||/[a-f]/i.test(Gt)}function dt(Gt){return Gt>="1"&&Gt<="9"}function xt(Gt){return /[tfn]/.test(Gt)}function vt(Gt){return U(Gt)||Gt==="."||Gt==="-"}function bt(Gt,se){se=Object.freeze({...M,...se});let he=-1,le=1,Se=0,Pe=!1,Jt=[];function de(re,Nt,ae,ne){let ke=ae.offset+Nt.length,$e=se.ranges?{range:[ae.offset,ke]}:void 0;return {type:re,value:Nt,loc:{start:ae,end:ne||{line:ae.line,column:ae.column+Nt.length,offset:ke}},...$e}}function Xt(){let re=Gt.charAt(++he);return Pe?(le++,Se=1,Pe=!1):Se++,re==="\r"?(Pe=!0,Gt.charAt(he+1)===` `&&he++):re===` `&&(Pe=!0),re}function Wt(){return {line:le,column:Se,offset:he}}function ze(re){let Nt=v.get(re);if(Gt.slice(he,he+Nt.length)===Nt)return he+=Nt.length-1,Se+=Nt.length-1,{value:Nt,c:Xt()};for(let ae=1;ae=0;){he+=se.slice(Se,le);let Pe=se.charAt(le+1);if(u.has(Pe))he+=u.get(Pe),Se=le+2;else if(Pe==="u"){let Jt=se.slice(le+2,le+6);if(Jt.length<4||/[^0-9a-f]/i.test(Jt))throw new d(`Invalid unicode escape \\u${Jt}.`,{line:Gt.loc.start.line,column:Gt.loc.start.column+le,offset:Gt.loc.start.offset+le});he+=String.fromCharCode(parseInt(Jt,16)),Se=le+6;}else throw new d(`Invalid escape \\${Pe}.`,{line:Gt.loc.start.line,column:Gt.loc.start.column+le,offset:Gt.loc.start.offset+le});le=se.indexOf("\\",Se);}return he+=se.slice(Se),he}function z(Gt){switch(Gt.type){case"Boolean":return Gt.value==="true";case"Number":return Number(Gt.value);case"Null":return null;case"String":return Tt(Gt)}}function $(Gt,se){se=Object.freeze({...ot,...se});let he=bt(Gt,{comments:!!se.comments,ranges:!!se.ranges}),le=0;function Se(){return he[le++]}function Pe(){let Nt=he[le++];return Nt&&Nt.type.endsWith("Comment")?Pe():Nt}let Jt=se.comments?Pe:Se;function de(Nt,ae){if(!Nt||Nt.value!==ae)throw new A(Nt)}function Xt(Nt,ae){if(!Nt||Nt.type!==ae)throw new A(Nt)}function Wt(Nt,ae){return se.ranges?{range:[Nt.offset,ae.offset]}:void 0}function ze(Nt){let ae=Wt(Nt.loc.start,Nt.loc.end);return {type:Nt.type,value:z(Nt),loc:{start:{...Nt.loc.start},end:{...Nt.loc.end}},...ae}}function Ke(Nt){Xt(Nt,"String");let ae=ze(Nt);Nt=Jt(),de(Nt,":");let ne=Re(),ke=Wt(ae.loc.start,ne.loc.end);return It.member(ae,ne,{loc:{start:{...ae.loc.start},end:{...ne.loc.end}},...ke})}function We(Nt){de(Nt,"{");let ae=[],ne=Jt();if(ne&&ne.value!=="}")do if(ae.push(Ke(ne)),ne=Jt(),ne.value===",")ne=Jt();else break;while(ne);de(ne,"}");let ke=Wt(Nt.loc.start,ne.loc.end);return It.object(ae,{loc:{start:{...Nt.loc.start},end:{...ne.loc.end}},...ke})}function Le(Nt){de(Nt,"[");let ae=[],ne=Jt();if(ne&&ne.value!=="]")do if(ae.push(Re(ne)),ne=Jt(),ne.value===",")ne=Jt();else break;while(ne);de(ne,"]");let ke=Wt(Nt.loc.start,ne.loc.end);return It.array(ae,{type:"Array",elements:ae,loc:{start:{...Nt.loc.start},end:{...ne.loc.end}},...ke})}function Re(Nt){switch(Nt=Nt||Jt(),Nt.type){case"String":case"Boolean":case"Number":case"Null":return ze(Nt);case"Punctuator":if(Nt.value==="{")return We(Nt);if(Nt.value==="[")return Le(Nt);default:throw new A(Nt)}}let Oe=Re(),be=Jt();if(be)throw new A(be);let re={loc:{start:{line:1,column:1,offset:0},end:{...Oe.loc.end}}};return se.tokens&&(re.tokens=he),se.ranges&&(re.range=Wt(re.loc.start,re.loc.end)),It.document(Oe,re)}var E=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]]]);function q(Gt){return Gt&&typeof Gt=="object"}function nt(Gt){return q(Gt)&&typeof Gt.type=="string"}function Q(Gt,se){function he(le,Se){typeof se.enter=="function"&&se.enter(le,Se);for(let Pe of E.get(le.type)){let Jt=le[Pe];q(Jt)&&(Array.isArray(Jt)?Jt.forEach(de=>he(de,le)):nt(Jt)&&he(Jt,le));}typeof se.exit=="function"&&se.exit(le,Se);}he(Gt);}function Ut(Gt,se=()=>!0){let he=[];return Q(Gt,{enter(le,Se){he.push({node:le,parent:Se,phase:"enter"});},exit(le,Se){he.push({node:le,parent:Se,phase:"exit"});}}),he.filter(se).values()}function zt(Gt){switch(Gt.type){case"String":case"Number":case"Boolean":return Gt.value;case"Null":return null;case"Array":return Gt.elements.map(zt);case"Object":{let se={};return Gt.members.forEach(he=>{se[zt(he.name)]=zt(he.value);}),se}case"Document":return zt(Gt.body);case"Property":throw new Error("Cannot evaluate object property outside of an object.");default:throw new Error(`Unknown node type ${Gt.type}.`)}}function qt(Gt,{indent:se=0}={}){let he=zt(Gt);return JSON.stringify(he,null,se)}t.evaluate=zt,t.iterator=Ut,t.parse=$,t.print=qt,t.tokenize=bt,t.traverse=Q,t.types=It;}),_p=ce((t,e)=>{e.exports=function(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)};}),Yu=ce((t,e)=>{var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(_){return typeof Array.isArray=="function"?Array.isArray(_):r.call(_)==="[object Array]"},p=function(_){if(!_||r.call(_)!=="[object Object]")return !1;var v=i.call(_,"constructor"),u=_.constructor&&_.constructor.prototype&&i.call(_.constructor.prototype,"isPrototypeOf");if(_.constructor&&!v&&!u)return !1;var S;for(S in _);return typeof S>"u"||i.call(_,S)},h=function(_,v){s&&v.name==="__proto__"?s(_,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):_[v.name]=v.newValue;},c=function(_,v){if(v==="__proto__")if(i.call(_,v)){if(a)return a(_,v).value}else return;return _[v]};e.exports=function _(){var v,u,S,d,g,A,y=arguments[0],m=1,x=arguments.length,w=!1;for(typeof y=="boolean"&&(w=y,y=arguments[1]||{},m=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});mPa("primitive",{value:Ku(t),...e}),td=(t,e)=>Pa("key",{...e},t),sp=(t,e,i)=>Pa("object",{title:t,...i},[...co(e)]),ap=(t,e,i)=>Pa("array",{title:t,...i},[...co(e)]),ed=(t,e,i,r)=>Pa("attribute",{key:t,title:e,...r},uo(i)),id=(t,e,i,r)=>Pa("element",{key:t,title:e,...r},uo(i)),rd=(t,e,i,r)=>Pa("collection",{key:t,title:e,...r},uo(i)),sd=(t,e)=>Pa("root",{title:Pp.object.animation,hasExpressions:!1,...e},[...co(t)]),ad=Ds(xp(),1),nn=function t(e,i,r,s,a){let o=Sp(i);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(s!=null&&(!t(s)||!s.children))throw new Error("Expected parent node");if(s==null!=(r==null))throw new Error("Expected both parent and index");return e&&e.type&&typeof e.type=="string"?!!o.call(a,e,r,s):!1},Sp=function(t){if(t==null)return ld;if(typeof t=="string")return hd(t);if(typeof t=="object")return Array.isArray(t)?nd(t):od(t);if(typeof t=="function")return mo(t);throw new Error("Expected function, string, or object as test")};pd=Object.defineProperty,fd=(t,e,i)=>e in t?pd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,np=(t,e,i)=>(fd(t,typeof e!="symbol"?e+"":e,i),i),{boolean:Mi,collection:Qt,custom:Cn,element:ft,intBoolean:qe,number:ee,object:pt,string:oe}=Pp,Tn=(t,e)=>({defaultTitle:`${t}-static`,dependents:[{key:"k",type:"Array",title:e,childType:"Object",parentTitle:t},{key:"a",type:"Constant",title:qe.animated,parentTitle:{defaultValue:0,values:{0:`${t}-static`,1:t}}}]}),fe={...Tn(pt.animatedValue,Qt.keyframeList)},vh={...Tn(pt.animatedShape,Qt.shapeKeyframeList)},op={...Tn(pt.animatedPosition,Qt.positionKeyframeList)},_a={...Tn(pt.animatedColor,Qt.keyframeList)},gs={...Tn(pt.animatedMultidimensional,Qt.keyframeList)},kp={[Qt.composition]:{defaultTitle:pt.layerPrecomposition,dependents:[{key:"ty",type:"Constant",title:ee.layerType,parentTitle:{prefix:"layer",defaultValue:0,values:{0:"precomposition",1:"solid-color",2:"image",3:"null",4:"shape",5:"text",6:"audio",7:"video-placeholder",8:"image-sequence",9:"video",10:"image-placeholder",11:"guide",12:"adjustment",13:"camera",14:"light",15:"data"}}}]},[Qt.shapeList]:{defaultTitle:pt.shapeRectangle,dependents:[{key:"ty",type:"Constant",title:oe.shapeType,parentTitle:{prefix:"shape",defaultValue:"rc",values:{rc:"rectangle",el:"ellipse",sr:"star",sh:"path",fl:"fill",st:"stroke",gf:"gradient-fill",gs:"gradient-stroke",gr:"group",tr:"transform",rd:"rounded-corners",pb:"pucker-bloat",mm:"merge",tw:"twist",op:"offset-path",zz:"zig-zag","":"modifier",rp:"repeater",tm:"trim"}}},{key:"sy",type:"Constant",title:ee.shapePolygonStarType,parentTitle:{prefix:"shape",defaultValue:1,values:{1:"star",2:"polygon"}}}]},assets:{defaultTitle:pt.assetPrecomposition,dependents:[{key:"w",type:"Number",title:ee.width,parentTitle:pt.assetImage},{key:"h",type:"Number",title:ee.height,parentTitle:pt.assetImage},{key:"t",type:"Constant",title:oe.assetType,parentTitle:{prefix:"asset",defaultValue:"seq",values:{seq:"image",3:"data-source"}}},{key:"layers",type:"Array",title:Qt.composition,parentTitle:pt.assetPrecomposition},{key:"mn",type:"String",title:oe.matchName,parentTitle:pt.assetPrecomposition},{key:"fr",type:"Number",title:ee.framerate,parentTitle:pt.assetPrecomposition},{key:"xt",type:"Number",title:qe.extraComposition,parentTitle:pt.assetPrecomposition}]},[Qt.effectList]:{defaultTitle:pt.effectCustom,dependents:[{key:"ty",type:"Constant",title:ee.effectType,parentTitle:{prefix:"effect",defaultValue:5,values:{25:"drop-shadow",21:"fill",29:"gaussian-blur",28:"matte3",24:"pro-levels",22:"stroke",20:"tint",23:"tritone",26:"radial-wipe",32:"wavy",34:"puppet",33:"spherize",7:"paint-over-transparent",31:"mesh-warp",27:"displacement-map",5:"custom"}}}]},[Qt.effectParameters]:{defaultTitle:pt.effectValueSlider,dependents:[{key:"ty",type:"Constant",title:ee.effectValueType,parentTitle:{defaultValue:0,prefix:"effect-value",values:{4:"checkbox",2:"color",7:"dropdown",6:"ignored",10:"layer",3:"point",0:"slider",1:"angle"}}}]},[Qt.layerStyleList]:{defaultTitle:pt.layerStyleStroke,dependents:[{key:"ty",type:"Constant",title:ee.layerStyleType,parentTitle:{prefix:Qt.layerStyle,defaultValue:0,values:{0:"stroke",1:"drop-shadow",2:"inner-shadow",3:"outer-glow",4:"inner-glow",5:"bevel-emboss",6:"satin",7:"color-overlay",8:"gradient-overlay"}}}]},[ft.animatedPositionProp]:{...op},[ft.animatedShapeProp]:{...vh},[ft.animatedShapeBezier]:{defaultTitle:pt.bezier},[ft.animatedColorProp]:{..._a},[ft.animatedMultidimensionalProp]:{...gs},[ft.anchorPoint]:{...op},[Qt.keyframeList]:{defaultTitle:pt.keyframe},[Qt.keyframeValue]:{defaultTitle:pt.bezier},[Qt.keyframeEndValue]:{defaultTitle:pt.bezier},[Qt.positionKeyframeList]:{defaultTitle:pt.positionKeyframe},[ft.inTangent]:{defaultTitle:pt.keyframeBezierHandle},[ft.outTangent]:{defaultTitle:pt.keyframeBezierHandle},[ft.translation]:{defaultTitle:pt.animatedPositionStatic,dependents:[{key:"k",type:"Array",title:Qt.positionKeyframeList,childType:"Object",parentTitle:pt.animatedPosition},{key:"a",type:"Constant",title:qe.animated,parentTitle:{defaultValue:0,values:{0:pt.animatedPositionStatic,1:pt.animatedPosition}}},{key:"s",type:"Boolean",title:Mi.splitEnabled,parentTitle:pt.splitVector},{key:"x",type:"Object",title:ft.animatedValueProp,parentTitle:pt.splitVector},{key:"y",type:"Object",title:ft.animatedValueProp,parentTitle:pt.splitVector},{key:"z",type:"Object",title:ft.animatedValueProp,parentTitle:pt.splitVector}]},[ft.scale]:{...gs},[ft.rotationClockwise]:{...fe},[ft.polygonRotationClockwise]:{...fe},[ft.rotationX]:{...fe},[ft.rotationY]:{...fe},[ft.rotationZ]:{...fe},[ft.skew]:{...fe},[ft.skewAxis]:{...fe},[ft.orientation]:{...gs},[ft.size]:{...gs},[ft.rounded]:{...fe},[ft.level]:{...gs},[ft.shapeEllipseSize]:{...gs},[ft.startPoint]:{...gs},[ft.endPoint]:{...gs},[ft.splitX]:{...fe},[ft.splitY]:{...fe},[ft.splitZ]:{...fe},[ft.effectValueAngleValue]:{...fe},[ft.effectValueCheckboxValue]:{...fe},[ft.effectValueColorValue]:{..._a},[ft.effectValueDropdownValue]:{...fe},[ft.effectValueLayerValue]:{...fe},[ft.effectValuePointValue]:{...gs},[ft.effectValueSliderValue]:{...fe},[ft.opacity]:{...fe},[ft.transformOpacity]:{...fe},[ft.maskOpacity]:{...fe},[ft.timeRemapping]:{...fe},[ft.dilate]:{...fe},[ft.perspective]:{...fe},[ft.highlightLength]:{...fe},[ft.highlightAngle]:{...fe},[pt.strokeDashDefault]:{...fe},[ft.miterLimitAlternative]:{...fe},[ft.strokeWidth]:{...fe},[ft.outerRadius]:{...fe},[ft.outerRoundness]:{...fe},[ft.points]:{...fe},[ft.innerRadius]:{...fe},[ft.innerRoundness]:{...fe},[ft.amount]:{...fe},[ft.copies]:{...fe},[ft.offset]:{...fe},[ft.radius]:{...fe},[Qt.shapeKeyframeList]:{defaultTitle:pt.shapeKeyframe},[Qt.shapeKeyframeStart]:{defaultTitle:pt.bezier},[pt.animatedShapeStatic]:{defaultTitle:pt.bezier},[ft.shapeTrimStart]:{...fe},[ft.shapeTrimEnd]:{...fe},[ft.angle]:{...fe},[ft.miterLimit]:{...fe},[ft.roundness]:{...fe},[ft.shapeZigZagSize]:{...fe},[pt.layerStyleChokeSpread]:{...fe},[ft.chokeSpread]:{...fe},[ft.layerStyleBlendMode]:{...fe},[ft.blurSize]:{...fe},[ft.noise]:{...fe},[ft.distance]:{...fe},[ft.layerStyleColor]:{..._a},[ft.layerConceal]:{...fe},[ft.range]:{...fe},[ft.jitter]:{...fe},[ft.source]:{...fe},[ft.strength]:{...fe},[ft.bevelStyle]:{...fe},[ft.technique]:{...fe},[ft.soften]:{...fe},[ft.globalAngle]:{...fe},[ft.altitude]:{...fe},[ft.highlightMode]:{...fe},[ft.highlightColor]:{...fe},[ft.highlightOpacity]:{...fe},[ft.shadowMode]:{...fe},[ft.shadowColor]:{..._a},[ft.shadowOpacity]:{...fe},[ft.invert]:{...fe},[ft.smoothness]:{...fe},[ft.reverse]:{...fe},[ft.align]:{...fe},[pt.gradientOverlay]:{...fe},[ft.firstMargin]:{...fe},[ft.lastMargin]:{...fe},[ft.reversePath]:{...fe},[ft.forceAlignment]:{...fe},[ft.perpendicularToPath]:{...fe},[ft.strokeWidth]:{...fe},[ft.strokeHue]:{...fe},[ft.strokeSaturation]:{...fe},[ft.strokeBrightness]:{...fe},[ft.strokeOpacity]:{...fe},[ft.strokeHue]:{...fe},[ft.fillColor]:{..._a},[ft.fillHue]:{...fe},[ft.fillSaturation]:{...fe},[ft.fillOpacity]:{...fe},[ft.fillBrightness]:{...fe},[ft.letterSpacing]:{...fe},[ft.blur]:{...fe},[ft.lineSpacing]:{...fe},[ft.minEase]:{...fe},[ft.maxEase]:{...fe},[ft.maxAmount]:{...fe},[ft.textSelectorStart]:{...fe},[ft.textSelectorEnd]:{...fe},[ft.shape]:{...vh},[ft.maskVertices]:{...vh},[ft.shapeFillColor]:{..._a},[ft.shapeStrokeColor]:{...gs},[Qt.documentStrokeColor]:{..._a},[Qt.documentFillColor]:{..._a},[ft.center]:{...gs},[ft.textGroupAlignment]:{...gs},[Qt.masksProperties]:{defaultTitle:pt.mask},[Qt.textFontList]:{defaultTitle:pt.textFont},[ft.startOpacity]:{...fe},[pt.endOpacity]:{...fe},[Qt.strokeDashList]:{defaultTitle:pt.strokeDashDefault,dependents:[{key:"n",type:"Constant",title:oe.strokeDashType,parentTitle:{prefix:"stroke-dash",defaultValue:"d",values:{d:"default",g:"gap",o:"offset"}}}]},[ft.strokeLength]:{...fe},[Qt.markers]:{defaultTitle:pt.marker},[ft.textCharacterData]:{defaultTitle:pt.characterShapes,dependents:[{key:"shapes",type:"Array",title:Qt.shapeList,parentTitle:pt.characterShapes},{key:"refId",type:"String",title:oe.referenceId,parentTitle:pt.characterPrecomp},{key:"ks",type:"Object",title:ft.layerTransform,parentTitle:pt.characterPrecomp},{key:"ip",type:"Number",title:ee.inPoint,parentTitle:pt.characterPrecomp},{key:"op",type:"Number",title:ee.outPoint,parentTitle:pt.characterPrecomp},{key:"sr",type:"Number",title:ee.timeStretch,parentTitle:pt.characterPrecomp},{key:"st",type:"Number",title:ee.timeStart,parentTitle:pt.characterPrecomp}]},[Qt.textDocumentKeyframes]:{defaultTitle:pt.textDocumentKeyframe},[Qt.textRanges]:{defaultTitle:pt.textRange}},Je=(t,e,i="ty")=>{let r=kp[t]?.dependents?.find(c=>c.key===i);if(r?.type!=="Constant")return {};let{prefix:s,values:a}=r.parentTitle,o=s?`${s}-`:"",p=Object.values(a),h={};for(let c of p)typeof c=="string"&&(h[o+c]=e);return h},cd={},wp=(t,e)=>{switch(t.type){case"Object":return kp[e]||{defaultTitle:e};case"Array":return cd[e]||{defaultTitle:e};default:throw new Error("The node.type has to be 'Array' or 'Object'")}},ud={required:{p:{[pt.assetImage]:oe.filename,[pt.assetPrecomposition]:oe.filename,[pt.assetDataSource]:oe.filename},sc:{[pt.layerSolidColor]:oe.hexColor},ch:{[Qt.textCharacters]:oe.character},fName:{[pt.textFont]:oe.fontName},fStyle:{[pt.textFont]:oe.fontStyle},style:{[Qt.textCharacters]:oe.fontStyle},fFamily:{[pt.textFont]:oe.fontFamily,[Qt.textCharacters]:oe.fontFamily},f:{[ft.textDocument]:oe.fontFamily},t:{[ft.textDocument]:oe.text}},known:{x:{[pt.animatedValue]:oe.expression,[pt.animatedValueStatic]:oe.expression,[pt.animatedShape]:oe.expression,[pt.animatedShapeStatic]:oe.expression,[pt.animatedPosition]:oe.expression,[pt.animatedPositionStatic]:oe.expression,[pt.animatedColor]:oe.expression,[pt.animatedColorStatic]:oe.expression,[pt.animatedMultidimensional]:oe.expression,[pt.animatedMultidimensionalStatic]:oe.expression,[ft.textAnimatedDocument]:oe.expression},v:{[pt.animation]:oe.version},cm:{[pt.marker]:oe.markerComment},a:{[ft.metadata]:oe.author},k:{[ft.metadata]:oe.keyword},d:{[ft.metadata]:oe.description},tc:{[ft.metadata]:oe.themeColor},g:{[ft.metadata]:oe.generator},id:{[pt.assetImage]:oe.id,[pt.assetPrecomposition]:oe.id,[pt.assetDataSource]:oe.id},refId:{[pt.layerAudio]:oe.idSound,[pt.layerPrecomposition]:oe.idReference,[pt.layerImage]:oe.idImage,[pt.layerData]:oe.idDataSource,[pt.characterPrecomp]:oe.idReference},u:{[pt.assetImage]:oe.path,[pt.assetPrecomposition]:oe.path,[pt.assetDataSource]:oe.path},nm:{[pt.animation]:oe.name,[pt.assetImage]:oe.name,[pt.assetPrecomposition]:oe.name,[pt.assetDataSource]:oe.name,[pt.textRange]:oe.name,[ft.transformRepeater]:oe.name,[pt.animatedValue]:oe.name,[pt.animatedValueStatic]:oe.name,[pt.animatedShape]:oe.name,[pt.animatedShapeStatic]:oe.name,[pt.animatedPosition]:oe.name,[pt.animatedPositionStatic]:oe.name,[pt.animatedColor]:oe.name,[pt.animatedColorStatic]:oe.name,[pt.animatedMultidimensional]:oe.name,[pt.animatedMultidimensionalStatic]:oe.name,...Je(Qt.effectParameters,oe.name),...Je(Qt.effectList,oe.name),[pt.mask]:oe.name,...Je(Qt.composition,oe.name),...Je(Qt.shapeList,oe.name),[pt.strokeDashDefault]:oe.name,[pt.strokeDashGap]:oe.name,[pt.strokeDashOffset]:oe.name,[pt.layerStyleBevelEmboss]:oe.name,[pt.layerStyleColorOverlay]:oe.name,[pt.layerStyleDropShadow]:oe.name,[pt.layerStyleGradientOverlay]:oe.name,[pt.layerStyleInnerShadow]:oe.name,[pt.layerStyleOuterGlow]:oe.name,[pt.layerStyleSatin]:oe.name,[pt.layerStyleStroke]:oe.name,[ft.layerTransform]:oe.name},mn:{[pt.animation]:oe.matchName,[pt.animatedValue]:oe.matchName,[pt.animatedValueStatic]:oe.matchName,[pt.animatedShape]:oe.matchName,[pt.animatedShapeStatic]:oe.matchName,[pt.animatedPosition]:oe.matchName,[pt.animatedPositionStatic]:oe.matchName,[pt.animatedColor]:oe.matchName,[pt.animatedColorStatic]:oe.matchName,[pt.animatedMultidimensional]:oe.matchName,[pt.animatedMultidimensionalStatic]:oe.matchName,...Je(Qt.effectParameters,oe.matchName),...Je(Qt.effectList,oe.matchName),[pt.mask]:oe.matchName,...Je(Qt.composition,oe.matchName),...Je(Qt.shapeList,oe.matchName),[pt.strokeDashDefault]:oe.matchName,[pt.strokeDashGap]:oe.matchName,[pt.strokeDashOffset]:oe.matchName,[pt.layerStyleBevelEmboss]:oe.name,[pt.layerStyleColorOverlay]:oe.name,[pt.layerStyleDropShadow]:oe.name,[pt.layerStyleGradientOverlay]:oe.name,[pt.layerStyleInnerShadow]:oe.name,[pt.layerStyleOuterGlow]:oe.name,[pt.layerStyleSatin]:oe.name,[pt.layerStyleStroke]:oe.name,[ft.transformRepeater]:oe.matchName},ln:{...Je(Qt.composition,oe.idLayerXml),...Je(Qt.shapeList,oe.idLayerXml)},cl:{...Je(Qt.composition,oe.cssClass),...Je(Qt.shapeList,oe.cssClass)},fPath:{[pt.textFont]:oe.fontPath},fWeight:{[pt.textFont]:oe.fontWeight},fClass:{[pt.textFont]:oe.fontCssClass},tg:{...Je(Qt.composition,oe.layerXmlTagName)},t:{[pt.assetImage]:oe.assetImageType}}},dd={required:{ty:{...Je(Qt.composition,ee.layerType),...Je(Qt.shapeList,oe.shapeType)}},known:{mode:{[pt.mask]:oe.maskMode},n:{[pt.strokeDashDefault]:oe.strokeDashType,[pt.strokeDashGap]:oe.strokeDashType,[pt.strokeDashOffset]:oe.strokeDashType},t:{[pt.assetImage]:oe.assetImageType}}},md={required:{ip:{[pt.animation]:ee.inPoint,...Je(Qt.composition,ee.inPoint)},op:{[pt.animation]:ee.outPoint,...Je(Qt.composition,ee.outPoint),[pt.characterPrecomp]:ee.outPoint},p:{[ft.animatedGradientColors]:ee.count},k:{[pt.animatedValueStatic]:ee.staticValue,[pt.animatedMultidimensionalStatic]:ee.staticValue,[pt.animatedPositionStatic]:ee.staticValue,[pt.animatedValue]:ee.staticValue},w:{[pt.animation]:ee.width,[pt.assetImage]:ee.width,[pt.assetPrecomposition]:ee.width,[Qt.textCharacters]:ee.width,[pt.layerPrecomposition]:ee.width},sw:{[pt.layerSolidColor]:ee.width},h:{[pt.animation]:ee.height,[pt.assetImage]:ee.height,[pt.assetPrecomposition]:ee.height,[pt.layerPrecomposition]:ee.height},sh:{[pt.layerSolidColor]:ee.height},size:{[Qt.textCharacters]:ee.fontSize},ls:{[ft.textDocument]:ee.baselineShift},t:{[pt.keyframe]:ee.time,[Qt.keyframeList]:ee.time,[Qt.keyframeValue]:ee.time,[pt.positionKeyframe]:ee.time,[Qt.positionKeyframeList]:ee.time,[pt.keyframeBezierHandle]:ee.time,[pt.shapeKeyframe]:ee.time,[pt.textDocumentKeyframe]:ee.timeStart},s:{[ft.textDocument]:ee.fontSize}},known:{v:{[pt.effectValueIgnored]:ee.value},tm:{[pt.marker]:ee.markerTime},dr:{[pt.marker]:ee.markerDuration},sa:{[ft.motionBlur]:ee.shutterAngle},sp:{[ft.motionBlur]:ee.shutterPhase},spf:{[ft.motionBlur]:ee.samplesPerFrame},asl:{[ft.motionBlur]:ee.adaptiveSampleLimit},ix:{...Je(Qt.shapeList,ee.propertyIndex),...Je(Qt.effectList,ee.propertyIndex),...Je(Qt.effectParameters,ee.propertyIndex),[pt.animatedValue]:ee.propertyIndex,[pt.animatedValueStatic]:ee.propertyIndex,[pt.animatedShape]:ee.propertyIndex,[pt.animatedShapeStatic]:ee.propertyIndex,[pt.animatedPosition]:ee.propertyIndex,[pt.animatedPositionStatic]:ee.propertyIndex,[pt.animatedColor]:ee.propertyIndex,[pt.animatedColorStatic]:ee.propertyIndex,[pt.animatedMultidimensional]:ee.propertyIndex,[pt.animatedMultidimensionalStatic]:ee.propertyIndex},ind:{...Je(Qt.composition,ee.compositionIndex),[pt.shapePath]:ee.shapePathIndex,...Je(Qt.effectParameters,ee.effectParametersIndex),...Je(Qt.effectList,ee.effectListIndex)},cix:{...Je(Qt.shapeList,ee.expressionPropertyIndex)},fr:{[pt.animation]:ee.framerate,[pt.assetPrecomposition]:ee.framerate},sr:{...Je(Qt.composition,ee.timeStretch),[pt.characterPrecomp]:ee.timeStretch},st:{...Je(Qt.composition,ee.timeStart),[pt.characterPrecomp]:ee.timeStart},l:{[pt.animatedMultidimensional]:ee.length,[pt.animatedMultidimensionalStatic]:ee.length,[pt.animatedPosition]:ee.length,[pt.animatedPositionStatic]:ee.length,[ft.translation]:ee.length},parent:{...Je(Qt.composition,ee.parentIndex)},td:{[pt.layerPrecomposition]:ee.matteTarget,[pt.layerShape]:ee.matteTarget,[pt.layerSolidColor]:ee.matteTarget,[pt.layerImage]:ee.matteTarget,[pt.layerNull]:ee.matteTarget,[pt.layerText]:ee.matteTarget},ml:{[pt.shapeGradientStroke]:ee.miterLimitValue,[pt.shapeStroke]:ee.miterLimitValue},np:{[pt.shapeGroup]:ee.numberOfProperties,[ft.effectValueAngleValue]:ee.numberOfProperties,[ft.effectValueCheckboxValue]:ee.numberOfProperties,[ft.effectValueColorValue]:ee.numberOfProperties,[ft.effectValueDropdownValue]:ee.numberOfProperties,[ft.effectValueIgnoredValue]:ee.numberOfProperties,[ft.effectValueLayerValue]:ee.numberOfProperties,[ft.effectValuePointValue]:ee.numberOfProperties,[ft.effectValueSliderValue]:ee.numberOfProperties,[pt.effect]:ee.numberOfProperties,[Qt.effectList]:ee.numberOfProperties,[Qt.effectParameters]:ee.numberOfProperties,...Je(Qt.effectList,ee.numberOfProperties),...Je(Qt.effectParameters,ee.numberOfProperties)},mm:{[pt.shapeMerge]:ee.mergeMode},ip:{[pt.characterPrecomp]:ee.inPoint},ascent:{[pt.textFont]:ee.ascent},r:{[ft.textSelector]:ee.rangeUnits},lh:{[ft.textDocument]:ee.lineHeight},tr:{[ft.textDocument]:ee.textTracking},ls:{[ft.textDocument]:ee.baselineShift}}},gd={required:{ty:{...Je(Qt.composition,ee.layerType),...Je(Qt.layerStyleList,ee.layerStyleType),...Je(Qt.effectParameters,ee.effectType),...Je(Qt.effectList,ee.effectType)},bm:{...Je(Qt.composition,ee.blendMode),...Je(Qt.shapeList,ee.blendMode)},d:{[pt.shapeEllipse]:ee.shapeDirection,[pt.shapePath]:ee.shapeDirection,[pt.shapePolygon]:ee.shapeDirection,[pt.shapeStar]:ee.shapeDirection,[pt.shapeRectangle]:ee.shapeDirection},t:{[pt.assetDataSource]:ee.dataSourceType},origin:{[pt.textFont]:ee.textType},b:{[ft.textSelector]:ee.basedOn},sh:{[ft.textSelector]:ee.textTypeShape}},known:{tt:{[pt.layerPrecomposition]:ee.matteMode,[pt.layerShape]:ee.matteMode,[pt.layerSolidColor]:ee.matteMode,[pt.layerImage]:ee.matteMode,[pt.layerNull]:ee.matteMode,[pt.layerText]:ee.matteMode},m:{[pt.shapeRepeater]:ee.composite,[pt.shapeTrim]:ee.multiple,[ft.textFollowPath]:ee.textMask},r:{[pt.shapeFill]:ee.fillRuleValue,[pt.shapeGradientFill]:ee.fillRuleValue},t:{[pt.shapeGradientFill]:ee.gradientType,[pt.shapeGradientStroke]:ee.gradientType},gt:{[pt.layerStyleGradientOverlay]:ee.gradientType},lc:{[pt.shapeGradientStroke]:ee.lineCapType,[pt.shapeStroke]:ee.lineCapType},lj:{[pt.shapeGradientStroke]:ee.lineJoinType,[pt.shapeStroke]:ee.lineJoinType,[pt.shapeOffsetPath]:ee.lineJoin},sy:{[pt.shapePolygon]:ee.shapePolygonStarType,[pt.shapeStar]:ee.shapePolygonStarType},g:{[ft.textAlignmentOptions]:ee.textTypeGrouping},j:{[ft.textDocument]:ee.textTypeJustify},ca:{[ft.textDocument]:ee.textTypeCaps},vj:{[ft.textDocument]:ee.textTypeVerticalJustify}}},yd={required:{},known:{}},vd={required:{x:{[pt.keyframe]:qe.xAxisValue,[Qt.keyframeList]:qe.xAxisValue,[Qt.keyframeValue]:qe.xAxisValue,[pt.positionKeyframe]:qe.xAxisValue,[Qt.positionKeyframeList]:qe.xAxisValue,[pt.keyframeBezierHandle]:qe.xAxisValue},y:{[pt.keyframe]:qe.yAxisValue,[Qt.keyframeList]:qe.yAxisValue,[Qt.keyframeValue]:qe.yAxisValue,[pt.positionKeyframe]:qe.yAxisValue,[Qt.positionKeyframeList]:qe.yAxisValue,[pt.keyframeBezierHandle]:qe.yAxisValue},t:{[ft.textSelector]:qe.expressible}},known:{rn:{[ft.textSelector]:qe.randomize},ddd:{[pt.animation]:qe.threedimensional,...Je(Qt.composition,qe.threedimensional)},ao:{[pt.layerPrecomposition]:qe.autoOrient,[pt.layerShape]:qe.autoOrient,[pt.layerSolidColor]:qe.autoOrient,[pt.layerImage]:qe.autoOrient,[pt.layerNull]:qe.autoOrient,[pt.layerText]:qe.autoOrient},a:{[pt.animatedValue]:qe.animated,[pt.animatedValueStatic]:qe.animated,[pt.animatedShape]:qe.animated,[pt.animatedShapeStatic]:qe.animated,[pt.animatedPosition]:qe.animated,[pt.animatedPositionStatic]:qe.animated,[pt.animatedColor]:qe.animated,[pt.animatedColorStatic]:qe.animated,[pt.animatedMultidimensional]:qe.animated,[pt.animatedMultidimensionalStatic]:qe.animated},e:{[pt.assetImage]:qe.embedded,[pt.assetDataSource]:qe.embedded},en:{...Je(Qt.effectList,qe.enabled)},xt:{[pt.assetPrecomposition]:qe.extraComposition},h:{[pt.keyframe]:qe.hold,[Qt.keyframeList]:qe.hold,[Qt.keyframeValue]:qe.hold,[pt.positionKeyframe]:qe.hold,[Qt.positionKeyframeList]:qe.hold,[pt.keyframeBezierHandle]:qe.hold,[pt.shapeKeyframe]:qe.hold}}},bd={required:{s:{[pt.splitVector]:Mi.splitEnabled}},known:{c:{[pt.bezier]:Mi.closed},inv:{[pt.mask]:Mi.inverted},hd:{...Je(Qt.composition,Mi.hidden),...Je(Qt.shapeList,Mi.hidden)},cp:{[pt.layerPrecomposition]:Mi.collapseTransform,[pt.layerShape]:Mi.collapseTransform,[pt.layerSolidColor]:Mi.collapseTransform,[pt.layerImage]:Mi.collapseTransform,[pt.layerNull]:Mi.collapseTransform,[pt.layerText]:Mi.collapseTransform},hasMask:{[pt.layerPrecomposition]:Mi.hasMask,[pt.layerShape]:Mi.hasMask,[pt.layerSolidColor]:Mi.hasMask,[pt.layerImage]:Mi.hasMask,[pt.layerNull]:Mi.hasMask,[pt.layerText]:Mi.hasMask},mb:{[pt.layerPrecomposition]:Mi.motionBlurEnabled,[pt.layerShape]:Mi.motionBlurEnabled,[pt.layerSolidColor]:Mi.motionBlurEnabled,[pt.layerImage]:Mi.motionBlurEnabled,[pt.layerNull]:Mi.motionBlurEnabled,[pt.layerText]:Mi.motionBlurEnabled},of:{[ft.textDocument]:Mi.strokeOverFill}}},xd={required:{assets:{[pt.animation]:Qt.assets},layers:{[pt.animation]:Qt.composition,[pt.assetPrecomposition]:Qt.composition},shapes:{[pt.layerShape]:Qt.shapeList,[pt.characterShapes]:Qt.shapeList},ef:{[pt.effect]:Qt.effectParameters,...Je(Qt.effectList,Qt.effectParameters)},i:{[pt.bezier]:Qt.inTangents},o:{[pt.bezier]:Qt.outTangents},v:{[pt.bezier]:Qt.vertices},k:{[ft.textAnimatedDocument]:Qt.textDocumentKeyframes,[pt.animatedValue]:Qt.keyframeList,[pt.animatedValueStatic]:Qt.staticValues,[pt.animatedMultidimensional]:Qt.keyframeList,[pt.animatedMultidimensionalStatic]:Qt.staticValues,[pt.animatedPosition]:Qt.positionKeyframeList,[pt.animatedPositionStatic]:Qt.staticValues,[pt.animatedColor]:Qt.keyframeList,[pt.animatedShape]:Qt.shapeKeyframeList,[pt.animatedColorStatic]:Qt.colorRgba},a:{[ft.textAnimatorData]:Qt.textRanges},x:{[pt.keyframeBezierHandle]:Qt.xAxis},y:{[pt.keyframeBezierHandle]:Qt.yAxis},s:{[pt.shapeKeyframe]:Qt.shapeKeyframeStart},fc:{[ft.textDocument]:Qt.documentFillColor}},known:{k:{[ft.metadata]:Qt.keywords},comps:{[pt.animation]:Qt.extraCompositions},chars:{[pt.animation]:Qt.textCharacters},markers:{[pt.animation]:Qt.markers},masksProperties:{[pt.layerPrecomposition]:Qt.masksProperties,[pt.layerShape]:Qt.masksProperties,[pt.layerSolidColor]:Qt.masksProperties,[pt.layerImage]:Qt.masksProperties,[pt.layerNull]:Qt.masksProperties,[pt.layerText]:Qt.masksProperties},ef:{[pt.layerPrecomposition]:Qt.effectList,[pt.layerShape]:Qt.effectList,[pt.layerSolidColor]:Qt.effectList,[pt.layerImage]:Qt.effectList,[pt.layerNull]:Qt.effectList,[pt.layerText]:Qt.effectList},sy:{[pt.layerPrecomposition]:Qt.layerStyle,[pt.layerShape]:Qt.layerStyle,[pt.layerSolidColor]:Qt.layerStyle,[pt.layerImage]:Qt.layerStyle,[pt.layerNull]:Qt.layerStyle,[pt.layerText]:Qt.layerStyle},d:{[pt.shapeGradientStroke]:Qt.strokeDashList,[pt.shapeStroke]:Qt.strokeDashList},it:{[pt.shapeGroup]:Qt.shapeList},s:{[pt.keyframe]:Qt.keyframeValue,[Qt.keyframeList]:Qt.keyframeValue,[pt.positionKeyframe]:Qt.keyframeValue,[Qt.positionKeyframeList]:Qt.keyframeValue,[pt.keyframeBezierHandle]:Qt.keyframeValue},e:{[pt.keyframe]:Qt.keyframeEndValue,[Qt.keyframeList]:Qt.keyframeEndValue,[Qt.keyframeValue]:Qt.keyframeEndValue,[pt.positionKeyframe]:Qt.keyframeEndValue,[Qt.positionKeyframeList]:Qt.keyframeEndValue,[pt.keyframeBezierHandle]:Qt.keyframeEndValue,[pt.shapeKeyframe]:Qt.keyframeEndValue},to:{[pt.positionKeyframe]:Qt.valueOutTangent},ti:{[pt.positionKeyframe]:Qt.valueInTangent},sz:{[ft.textDocument]:Qt.wrapSize},sc:{[ft.textDocument]:Qt.documentStrokeColor},ps:{[ft.textDocument]:Qt.wrapPosition},list:{[ft.textFonts]:Qt.textFontList}}},_d={required:{r:{[ft.layerTransform]:ft.rotationClockwise,[pt.shapeTransform]:ft.rotationClockwise,[ft.transformRepeater]:ft.rotationClockwise,[ft.textStyle]:ft.rotationClockwise,[pt.shapePolygon]:ft.polygonRotationClockwise,[pt.shapeStar]:ft.polygonRotationClockwise,[pt.shapeRectangle]:ft.rounded,[pt.shapeRoundedCorners]:ft.radius},au:{[pt.layerAudio]:ft.layerAudioSettings},t:{[pt.layerText]:ft.textAnimatorData},pe:{[pt.layerCamera]:ft.perspective},ks:{[pt.layerPrecomposition]:ft.layerTransform,[pt.layerShape]:ft.layerTransform,[pt.layerSolidColor]:ft.layerTransform,[pt.layerImage]:ft.layerTransform,[pt.layerNull]:ft.layerTransform,[pt.layerText]:ft.layerTransform,[pt.layerCamera]:ft.layerTransform,[pt.shapePath]:ft.animatedShapeProp},p:{[pt.shapeEllipse]:ft.animatedPositionProp,[pt.shapePolygon]:ft.animatedPositionProp,[pt.shapeStar]:ft.animatedPositionProp,[pt.shapeRectangle]:ft.animatedPositionProp,[ft.textAnimatorData]:ft.textFollowPath},s:{[pt.shapeEllipse]:ft.shapeEllipseSize,[pt.shapeGradientFill]:ft.startPoint,[pt.shapeGradientStroke]:ft.startPoint,[pt.shapeRectangle]:ft.size,[pt.shapeTrim]:ft.shapeTrimStart,[pt.textDocumentKeyframe]:ft.textDocument,[pt.layerStyleStroke]:ft.blurSize,[pt.layerStyleDropShadow]:ft.blurSize,[pt.layerStyleInnerShadow]:ft.blurSize,[pt.layerStyleBevelEmboss]:ft.blurSize,[pt.layerStyleSatin]:ft.blurSize},o:{[pt.shapeFill]:ft.opacity,[pt.shapeGradientFill]:ft.opacity,[pt.shapeTrim]:ft.offset,[pt.shapeGradientStroke]:ft.strokeOpacity,[pt.shapeStroke]:ft.strokeOpacity},c:{[pt.shapeFill]:ft.shapeFillColor,[pt.shapeRepeater]:ft.copies,[pt.shapeStroke]:ft.shapeStrokeColor},e:{[pt.shapeGradientFill]:ft.endPoint,[pt.shapeGradientStroke]:ft.endPoint,[pt.shapeTrim]:ft.shapeTrimEnd},g:{[pt.shapeGradientFill]:ft.animatedGradientColors,[pt.shapeGradientStroke]:ft.animatedGradientColors},or:{[pt.shapePolygon]:ft.outerRadius,[pt.shapeStar]:ft.outerRadius},os:{[pt.shapePolygon]:ft.outerRoundness,[pt.shapeStar]:ft.outerRoundness},pt:{[pt.shapePolygon]:ft.points,[pt.shapeStar]:ft.points},ir:{[pt.shapeStar]:ft.innerRadius},is:{[pt.shapeStar]:ft.innerRoundness},tr:{[pt.shapeRepeater]:ft.transformRepeater},data:{[Qt.textCharacters]:ft.textCharacterData},a:{[ft.textSelector]:ft.maxAmount},d:{[ft.textAnimatorData]:ft.textAnimatedDocument},k:{[pt.animatedShapeStatic]:ft.animatedShapeBezier,[ft.animatedGradientColors]:ft.animatedMultidimensionalProp},lv:{[ft.layerAudioSettings]:ft.level},x:{[pt.splitVector]:ft.splitX},y:{[pt.splitVector]:ft.splitY},z:{[pt.splitVector]:ft.splitZ},lc:{[pt.layerStyleDropShadow]:ft.layerConceal},m:{[ft.textAnimatorData]:ft.textAlignmentOptions},w:{[pt.shapeGradientStroke]:ft.strokeWidth,[pt.shapeStroke]:ft.strokeWidth}},known:{xe:{[ft.textSelector]:ft.maxEase},ne:{[ft.textSelector]:ft.minEase},meta:{[pt.animation]:ft.metadata},[ft.metadata]:{[pt.animation]:ft.userMetadata},mb:{[pt.animation]:ft.motionBlur},fonts:{[pt.animation]:ft.textFonts},v:{...Je(Qt.effectParameters,ee.value),[pt.strokeDashDefault]:ft.strokeLength,[pt.strokeDashGap]:ft.strokeLength,[pt.strokeDashOffset]:ft.strokeLength,[pt.effectValueAngle]:ft.effectValueAngleValue,[pt.effectValueCheckbox]:ft.effectValueCheckboxValue,[pt.effectValueColor]:ft.effectValueColorValue,[pt.effectValueDropdown]:ft.effectValueDropdownValue,[pt.effectValueIgnored]:ft.effectValueIgnoredValue,[pt.effectValueLayer]:ft.effectValueLayerValue,[pt.effectValuePoint]:ft.effectValuePointValue,[pt.effectValueSlider]:ft.effectValueSliderValue},rx:{[ft.layerTransform]:ft.rotationX,[pt.shapeTransform]:ft.rotationX,[ft.transformRepeater]:ft.rotationX,[ft.textStyle]:ft.rotationX},ry:{[ft.layerTransform]:ft.rotationY,[pt.shapeTransform]:ft.rotationY,[ft.transformRepeater]:ft.rotationY,[ft.textStyle]:ft.rotationY},rz:{[ft.layerTransform]:ft.rotationZ,[pt.shapeTransform]:ft.rotationZ,[ft.transformRepeater]:ft.rotationZ,[ft.textStyle]:ft.rotationZ},or:{[ft.layerTransform]:ft.orientation,[pt.shapeTransform]:ft.orientation,[ft.transformRepeater]:ft.orientation,[ft.textStyle]:ft.orientation},a:{[ft.layerTransform]:ft.anchorPoint,[ft.transformRepeater]:ft.anchorPoint,[pt.shapeTransform]:ft.anchorPoint,[ft.textStyle]:ft.anchorPoint,[pt.shapeGradientFill]:ft.highlightAngle,[pt.shapeGradientStroke]:ft.highlightAngle,[pt.shapePuckerBloat]:ft.amount,[pt.shapeTwist]:ft.angle,[pt.shapeOffsetPath]:ft.amount,[pt.textRange]:ft.textStyle,[ft.textFollowPath]:ft.forceAlignment,[ft.textSelector]:ft.maxAmount,[ft.textAlignmentOptions]:ft.textGroupAlignment,[pt.layerStyleDropShadow]:ft.angle,[pt.layerStyleInnerShadow]:ft.angle,[pt.layerStyleBevelEmboss]:ft.angle,[pt.layerStyleSatin]:ft.angle,[pt.layerStyleGradientOverlay]:ft.angle},s:{[ft.layerTransform]:ft.scale,[pt.shapeTransform]:ft.scale,[ft.transformRepeater]:ft.scale,[ft.textStyle]:ft.scale,[pt.shapeZigZags]:ft.shapeZigZagSize,[pt.textRange]:ft.textSelector,[pt.layerStyleStroke]:ft.size,[pt.layerStyleGradientOverlay]:ft.gradientOverlayScale,[ft.textSelector]:ft.textSelectorStart},o:{[ft.layerTransform]:ft.transformOpacity,[pt.shapeTransform]:ft.transformOpacity,[ft.transformRepeater]:ft.transformOpacity,[ft.textStyle]:ft.transformOpacity,[ft.textSelector]:ft.offset,[pt.shapeFill]:ft.opacity,[pt.shapeGradientFill]:ft.opacity,[pt.shapeGradientStroke]:ft.opacity,[pt.shapeStroke]:ft.opacity,[pt.mask]:ft.maskOpacity,[pt.shapeGradientFill]:ft.opacity,[pt.shapeRepeater]:ft.offset,[pt.keyframe]:ft.outTangent,[Qt.keyframeList]:ft.outTangent,[Qt.keyframeValue]:ft.outTangent,[pt.positionKeyframe]:ft.outTangent,[Qt.positionKeyframeList]:ft.outTangent,[pt.keyframeBezierHandle]:ft.outTangent,[pt.shapeKeyframe]:ft.outTangent,[pt.layerStyleDropShadow]:ft.opacity,[pt.layerStyleInnerShadow]:ft.opacity,[pt.layerStyleBevelEmboss]:ft.opacity,[pt.layerStyleSatin]:ft.opacity,[pt.layerStyleColorOverlay]:ft.opacity,[pt.layerStyleGradientOverlay]:ft.opacity},i:{[pt.keyframe]:ft.inTangent,[Qt.keyframeList]:ft.inTangent,[Qt.keyframeValue]:ft.inTangent,[pt.positionKeyframe]:ft.inTangent,[Qt.positionKeyframeList]:ft.inTangent,[pt.keyframeBezierHandle]:ft.inTangent,[pt.shapeKeyframe]:ft.inTangent},sk:{[ft.layerTransform]:ft.skew,[pt.shapeTransform]:ft.skew,[ft.transformRepeater]:ft.skew,[ft.textStyle]:ft.skew},sa:{[ft.layerTransform]:ft.skewAxis,[pt.shapeTransform]:ft.skewAxis,[ft.transformRepeater]:ft.skewAxis,[ft.textStyle]:ft.skewAxis},p:{[ft.layerTransform]:ft.translation,[pt.shapeTransform]:ft.translation,[ft.transformRepeater]:ft.translation,[ft.textStyle]:ft.translation,[ft.textFollowPath]:ft.perpendicularToPath},pt:{[pt.mask]:ft.maskVertices,[pt.shapeZigZags]:ft.points},x:{[pt.mask]:ft.dilate},tm:{[pt.layerPrecomposition]:ft.timeRemapping},h:{[pt.shapeGradientFill]:ft.highlightLength,[pt.shapeGradientStroke]:ft.highlightLength},r:{[pt.shapeGradientFill]:ft.fillRule,[pt.shapeZigZags]:ft.roundness,[ft.textFollowPath]:ft.reversePath,[pt.layerStyleOuterGlow]:ft.range},ml2:{[pt.shapeGradientStroke]:ft.miterLimitAlternative,[pt.shapeStroke]:ft.miterLimitAlternative},w:{[pt.shapeGradientStroke]:ft.strokeWidth,[pt.shapeStroke]:ft.strokeWidth},c:{[pt.shapeTrim]:ft.center,[pt.layerStyleStroke]:ft.layerStyleColor,[pt.layerStyleDropShadow]:ft.layerStyleColor,[pt.layerStyleInnerShadow]:ft.layerStyleColor,[pt.layerStyleBevelEmboss]:ft.layerStyleColor,[pt.layerStyleOuterGlow]:ft.layerStyleColor},ml:{[pt.shapeOffsetPath]:ft.miterLimit},so:{[pt.layerStyleBevelEmboss]:ft.shadowOpacity,[pt.layerStyleColorOverlay]:ft.opacity,[ft.transformRepeater]:ft.startOpacity},eo:{[ft.transformRepeater]:ft.startOpacity},ks:{[pt.characterPrecomp]:ft.layerTransform,[pt.shapePath]:ft.shape},f:{[ft.textFollowPath]:ft.firstMargin},l:{[ft.textFollowPath]:ft.lastMargin},sw:{[ft.textStyle]:ft.strokeWidth,[ft.textDocument]:ft.strokeWidth},sc:{[ft.textStyle]:ft.strokeColor,[ft.textDocument]:ft.strokeColor,[pt.layerStyleBevelEmboss]:ft.shadowColor},sh:{[ft.textStyle]:ft.strokeHue},ss:{[ft.textStyle]:ft.strokeSaturation},sb:{[ft.textStyle]:ft.strokeBrightness},fc:{[ft.textStyle]:ft.fillColor},fh:{[ft.textStyle]:ft.fillHue},fs:{[ft.textStyle]:ft.fillSaturation},fo:{[ft.textStyle]:ft.fillOpacity},fb:{[ft.textStyle]:ft.fillBrightness},t:{[ft.textStyle]:ft.letterSpacing},bl:{[ft.textStyle]:ft.blur},ls:{[ft.textStyle]:ft.lineSpacing},sm:{[ft.textSelector]:ft.selectorSmoothness,[pt.layerStyleBevelEmboss]:ft.shadowMode},e:{[ft.textSelector]:ft.textSelectorEnd},gf:{[pt.layerStyleGradientOverlay]:ft.animatedGradientColors},ch:{[pt.layerStyleDropShadow]:ft.chokeSpread,[pt.layerStyleInnerShadow]:ft.chokeSpread,[pt.layerStyleBevelEmboss]:ft.chokeSpread,[pt.layerStyleOuterGlow]:ft.chokeSpread},bm:{[pt.layerStyleDropShadow]:ft.layerStyleBlendMode,[pt.layerStyleInnerShadow]:ft.layerStyleBlendMode,[pt.layerStyleBevelEmboss]:ft.layerStyleBlendMode,[pt.layerStyleSatin]:ft.layerStyleBlendMode,[pt.layerStyleColorOverlay]:ft.layerStyleBlendMode,[pt.layerStyleGradientOverlay]:ft.layerStyleBlendMode},no:{[pt.layerStyleDropShadow]:ft.noise,[pt.layerStyleInnerShadow]:ft.noise,[pt.layerStyleOuterGlow]:ft.noise,[pt.layerStyleInnerGlow]:ft.noise},d:{[pt.layerStyleDropShadow]:ft.distance,[pt.layerStyleInnerShadow]:ft.distance,[pt.layerStyleBevelEmboss]:ft.distance,[pt.layerStyleOuterGlow]:ft.distance},j:{[pt.layerStyleOuterGlow]:ft.jitter},sr:{[pt.layerStyleInnerGlow]:ft.source,[pt.layerStyleBevelEmboss]:ft.strength},bs:{[pt.layerStyleBevelEmboss]:ft.bevelStyle},bt:{[pt.layerStyleBevelEmboss]:ft.technique},sf:{[pt.layerStyleBevelEmboss]:ft.soften},ga:{[pt.layerStyleBevelEmboss]:ft.globalAngle},ll:{[pt.layerStyleBevelEmboss]:ft.altitude},hm:{[pt.layerStyleBevelEmboss]:ft.highlightMode},hc:{[pt.layerStyleBevelEmboss]:ft.highlightColor},ho:{[pt.layerStyleBevelEmboss]:ft.highlightOpacity},in:{[pt.layerStyleSatin]:ft.invert},gs:{[pt.layerStyleGradientOverlay]:ft.smoothness},re:{[pt.layerStyleGradientOverlay]:ft.reverse},al:{[pt.layerStyleGradientOverlay]:ft.align},of:{[pt.layerStyleGradientOverlay]:ft.offset}}},sa=(t,e,i,r)=>{let s=(i.required[t]||{})[e];if(s)return {type:r,title:s,parentTitle:e,required:!0};let a=(i.known[t]||{})[e]||Cn;return {type:r,title:a,parentTitle:e,required:!1}},Pd=(t,e)=>sa(t,e,xd,"collection"),Sd=(t,e)=>sa(t,e,_d,"element"),kd=(t,e,i)=>{switch(e.value.type){case"String":let r=sa(t,i,ud,"attribute");return r.title===Cn?sa(t,i,dd,"constant"):r;case"Boolean":return sa(t,i,bd,"attribute");case"Number":let s=sa(t,i,md,"attribute");if(s.title===Cn){let a=sa(t,i,gd,"constant");return a.title===Cn?sa(t,i,vd,"integer-boolean"):a}else return s;case"Null":return sa(t,i,yd,"attribute");default:return {type:"missing",title:Cn,parentTitle:i,required:!1}}},wd=(t,e,i)=>{switch(e.value.type){case"Array":return Pd(t,i);case"Object":return Sd(t,i);default:return kd(t,e,i)}},Ed=class{constructor(t=1/0){this._capacity=t,np(this,"_keys",[]),np(this,"_storage",new WeakMap);}peek(){let t=this.size(),e=this._keys[t-1];return e?this._storage.get(e):void 0}pop(){let t=this._keys.pop();if(t!==void 0){let e=this._storage.get(t);return this._storage.delete(t),e}}push(t){if(this.size()===this._capacity)throw Error("Stack has reached max capacity, you cannot add more items");let e={i:this._keys.length};this._storage.set(e,t),this._keys.push(e);}size(){return this._keys.length}},Ad={position:!0,valueType:!0,messages:{warning:!1}},hp=(t,e,i)=>{i.messages.warning&&t.message(e);},Cd=(t,e)=>!e.valueType||t.type==="Array"||t.type==="Object"||t.type==="Document"?{}:{valueType:t.type.toLowerCase()},go=(t,e)=>e.position?{position:{...t.loc}}:{},lp=(t,e)=>{let i=go(t,e),r=Cd(t,e);return Qu(t.value,{...i,...r})},Td=(t,e)=>{let i=t.name.value;if(e.position){let r=go(t.name,e);return td(i,{...r})}else return i},Md=(t,e,i)=>{let r=Td(t,i),s=typeof r=="string"?r:r.value,a={...go(t,i)},{title:o}=wd(s,t,e);switch(t.value.type){case"Array":return rd(r,o,[],{...a});case"Object":return id(r,o,[],{...a});default:return ed(r,o,[],{...a})}},Ep=(t,e)=>e.loc.end.column===t.loc.end.column;Dd=t=>{let e=[];return t.elements.forEach(i=>{nn(i,"Object")&&i.members.forEach(r=>e.push(r));}),e},Fd=(t,e,i,r,s)=>{let{key:a,parentTitle:o,type:p}=i;switch(p){case"Constant":if(!nn(t,"String")&&!nn(t,"Number"))break;let{defaultValue:h,prefix:c,values:_}=o,v=_[h];if(!v)throw new Error(`[${e}] '${h}' has to present in "dependent.parentTitle.values"`);let u=t.value,S=_[u];if(!S){let A=`[${e}] '${u}' is missing in "dependent.parentTitle.values"`;hp(r,A,s);}let d=typeof S>"u"?v:S;return c&&c.length>0?`${c}-${d}`:d;case"Array":if(!nn(t,"Array"))break;let g=i.childType;if(!(g&&t.elements.find(A=>A.type===g)))break;return o;default:if(p!==t.type){let A=`${e}'s '${a}' type is ${t.type} but has to be ${p}`;hp(r,A,s);break}return o}},Ap=(t,e,i,r,s)=>{let a=e.reduce((o,p)=>{let h=p.name.value;return o[h]=p.value,o},{});for(let o of i){let{key:p}=o,h=a[p];if(!h)continue;let c=Fd(h,t,o,r,s);if(c)return c}},pp=(t,e,i,r)=>{let s=wp(t,e),{defaultTitle:a,dependents:o}=s;return o&&Ap(e,t.members,o,i,r)||a},fp=(t,e,i,r)=>{let s=wp(t,e),{defaultTitle:a,dependents:o}=s;if(!o)return a;let p=Dd(t);return Ap(e,p,o,i,r)||a},Id=(t,e,i,r,s)=>{let a=go(t,s);switch(t.type){case"Document":t.body.type!=="Object"&&r.fail(new Error(`Lottie must be "Object" but it's "${t.body.type}"`));break;case"Member":let o=i.peek();i.push(Md(t,o.title,s));break;case"Object":switch(e.type){case"Document":i.push(sd([],{...a}));break;case"Member":let p=i.peek();Lr(p,"element",r);let h=pp(t,p.title,r,s);i.push(sp(h,[],{...a}));break;case"Array":let c=i.peek();Lr(c,"array",r);let _=pp(t,c.title,r,s);i.push(sp(_,[],{...a}));break}break;case"Array":switch(e.type){case"Member":let p=i.peek();Lr(p,"collection",r);let h=fp(t,p.title,r,s);i.push(ap(h,[],{...a}));break;case"Array":let c=i.peek();Lr(c,"array",r);let _=fp(t,c.title,r,s);i.push(ap(_,[],{...a}));break}break;default:switch(e.type){case"Member":Ep(t,e)&&i.push(lp(t,s));break;case"Array":i.push(lp(t,s));break}break}},Ld=(t,e,i,r,s,a)=>{switch(t.type){case"Document":break;case"Member":let o=i.pop();switch(o.type){case"element":break;case"collection":break;case"attribute":!a.hasExpressions&&o.title==="expression"&&(a.hasExpressions=!0);break;default:r.fail("Node's type has to be 'element', 'collection or 'attribute'");}let p=i.peek();switch(p.type){case"object":break;case"root":break;default:r.fail("ParentNode's type has to be 'object' or 'root'");}p.children.push(o);break;case"Object":switch(e.type){case"Document":break;case"Member":let h=i.pop();Lr(h,"object",r);let c=i.peek();Lr(c,"element",r),h.title===c.title&&(h.title=`${c.title}-children`),c.children=[h];break;case"Array":let _=i.pop();Lr(_,"object",r);let v=i.peek();Lr(v,"array",r),v.children.push(_);break}break;case"Array":switch(e.type){case"Member":let h=i.pop();Lr(h,"array",r);let c=i.peek();Lr(c,"collection",r),h.title===c.title&&(h.title=`${c.title}-children`),c.children=[h];break;case"Array":let _=i.pop();Lr(_,"array",r);let v=i.peek();Lr(v,"array",r),v.children.push(_);break}break;default:switch(e.type){case"Member":if(Ep(t,e)){let _=i.pop();Lr(_,"primitive",r);let v=i.peek();Lr(v,"attribute",r),v.children=[_];}break;case"Array":let h=i.pop();Lr(h,"primitive",r);let c=i.peek();Lr(c,"array",r),c.children.push(h);break}break}};Rd=function(t={}){let e=this.data("settings")||{parse:{}};e.parse=(0, Zu.default)(e.parse,t),Object.assign(this,{Parser:(i,r)=>Vd(i,r,e)});},Od=Rd;Bd={indent:0};Nd=function(t={}){let e=this.data("settings")||{stringify:{}};e.stringify={...e.stringify,...t},Object.assign(this,{Compiler:(i,r)=>zd(i,r,e)});},Gd=Nd;jd=Ds(_p(),1),up=Ds(Yu(),1);Hd=Ds(_p(),1);ys=class extends Error{constructor(t,e,i){let r=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(i=e,e=void 0),typeof i=="string"){let a=i.indexOf(":");a===-1?r[1]=i:(r[0]=i.slice(0,a),r[1]=i.slice(a+1));}e&&("type"in e||"position"in e?e.position&&(s=e.position):"start"in e||"end"in e?s=e:("line"in e||"column"in e)&&(s.start=e)),this.name=Wd(e)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=s.start.line,this.column=s.start.column,this.position=s,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note;}};ys.prototype.file="";ys.prototype.name="";ys.prototype.reason="";ys.prototype.message="";ys.prototype.stack="";ys.prototype.fatal=null;ys.prototype.column=null;ys.prototype.line=null;ys.prototype.source=null;ys.prototype.ruleId=null;ys.prototype.position=null;Hs={basename:Ud,dirname:Jd,extname:Xd,join:Yd,sep:"/"};Qd={cwd:tm};bh=["history","path","basename","stem","extname","dirname"],rm=class{constructor(t){let e;t?typeof t=="string"||sm(t)?e={value:t}:Ah(t)?e={path:t}:e=t:e={},this.data={},this.messages=[],this.history=[],this.cwd=Qd.cwd(),this.value,this.stored,this.result,this.map;let i=-1;for(;++iP0});function Gm(t){let e=Ch(Bm,[]);return Om(t).walkRules(i=>{let r=Ch(zm,{selectors:[],selector:""},[]);r.selectors=[...i.selectors],r.selector=i.selector,i.walkDecls(s=>{let a=Ch(Nm,{important:s.important,property:s.prop,value:s.value});r.children.push(a);}),e.children.push(r);}),e}function df(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var s in i)r[i[s]]=s;var a={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return "transparent";var p,h,c=r[this.toHex()];if(c)return c;if(o?.closest){var _=this.toRgb(),v=1/0,u="black";if(!a.length)for(var S in i)a[S]=new t(i[S]).toRgb();for(var d in i){var g=(p=_,h=a[d],Math.pow(p.r-h.r,2)+Math.pow(p.g-h.g,2)+Math.pow(p.b-h.b,2));g(i.push({value:a,offset:o}),"\uE000".repeat(a.length))),t=t.replace(e0,(a,o,p,h)=>(i.push({value:a,offset:h}),`${o}${"\uE001".repeat(p.length)}${o}`));{let a=0,o;for(;(o=t.indexOf("(",a))>-1;){let p=Qm(t,o);i.push({value:p,offset:o}),t=`${t.substring(0,o)}(${"\xB6".repeat(p.length-2)})${t.substring(o+p.length)}`,a=o+p.length;}}let r=t0(t,e),s=new Set;for(let a of i.reverse())for(let o of r){let{offset:p,value:h}=a;if(!(o.pos[0]<=p&&p+h.length<=o.pos[1]))continue;let{content:c}=o,_=p-o.pos[0];o.content=c.slice(0,_)+h+c.slice(_+h.length),o.content!==c&&s.add(o);}for(let a of s){let o=Km(a.type);if(!o)throw new Error(`Unknown token type: ${a.type}`);o.lastIndex=0;let p=o.exec(a.content);if(!p)throw new Error(`Unable to parse content for ${a.type}: ${a.content}`);Object.assign(a,p.groups);}return r}function Dn(t,{list:e=!0}={}){if(e&&t.find(i=>i.type==="comma")){let i=[],r=[];for(let s=0;s=0;i--){let r=t[i];if(r.type==="combinator"){let s=t.slice(0,i),a=t.slice(i+1);return {type:"complex",combinator:r.content,left:Dn(s),right:Dn(a)}}}switch(t.length){case 0:throw new Error("Could not build AST.");case 1:return t[0];default:return {type:"compound",list:[...t]}}}function*In(t,e){switch(t.type){case"list":for(let i of t.list)yield*In(i,t);break;case"complex":yield*In(t.left,t),yield*In(t.right,t);break;case"compound":yield*t.list.map(i=>[i,t]);break;default:yield [t,e];}}function s0(t,e,i){if(t)for(let[r,s]of In(t,i))e(r,s);}function mf(t,{recursive:e=!0,list:i=!0}={}){let r=r0(t);if(!r)return;let s=Dn(r,{list:i});if(!e)return s;for(let[a]of In(s)){if(a.type!=="pseudo-class"||!a.argument||!Ym.has(a.name))continue;let o=a.argument,p=Zm[a.name];if(p){let h=p.exec(o);if(!h)continue;Object.assign(a,h.groups),o=h.groups.subtree;}o&&Object.assign(a,{subtree:mf(o,{recursive:!0,list:!0})});}return s}function n0(t){let e=[],i=-1;for(;++i{Fs();jp=ce((t,e)=>{var i=String,r=function(){return {isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i}};e.exports=r(),e.exports.createColors=r;}),qp=ce(()=>{}),Rh=ce((t,e)=>{var i=jp(),r=qp(),s=class extends Error{constructor(a,o,p,h,c,_){super(a),this.name="CssSyntaxError",this.reason=a,c&&(this.file=c),h&&(this.source=h),_&&(this.plugin=_),typeof o<"u"&&typeof p<"u"&&(typeof o=="number"?(this.line=o,this.column=p):(this.line=o.line,this.column=o.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(a){if(!this.source)return "";let o=this.source;a==null&&(a=i.isColorSupported),r&&a&&(o=r(o));let p=o.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,p.length),_=String(c).length,v,u;if(a){let{bold:S,red:d,gray:g}=i.createColors(!0);v=A=>S(d(A)),u=A=>g(A);}else v=u=S=>S;return p.slice(h,c).map((S,d)=>{let g=h+1+d,A=" "+(" "+g).slice(-_)+" | ";if(g===this.line){let y=u(A.replace(/\d/g," "))+S.slice(0,this.column-1).replace(/[^\t]/g," ");return v(">")+u(A)+S+` `+y+v("^")}return " "+u(A)+S}).join(` `)}toString(){let a=this.showSourceCode();return a&&(a=` `+a+` `),this.name+": "+this.message+a}};e.exports=s,s.default=s;}),Oh=ce((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),$p=ce((t,e)=>{var i={colon:": ",indent:" ",beforeDecl:` `,beforeRule:` `,beforeOpen:" ",beforeClose:` `,beforeComment:` `,after:` `,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function r(a){return a[0].toUpperCase()+a.slice(1)}var s=class{constructor(a){this.builder=a;}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o);}document(a){this.body(a);}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after);}comment(a){let o=this.raw(a,"left","commentLeft"),p=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+p+"*/",a);}decl(a,o){let p=this.raw(a,"between","colon"),h=a.prop+p+this.rawValue(a,"value");a.important&&(h+=a.raws.important||" !important"),o&&(h+=";"),this.builder(h,a);}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end");}atrule(a,o){let p="@"+a.name,h=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?p+=a.raws.afterName:h&&(p+=" "),a.nodes)this.block(a,p+h);else {let c=(a.raws.between||"")+(o?";":"");this.builder(p+h+c,a);}}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let p=this.raw(a,"semicolon");for(let h=0;h{if(h=u.raws[o],typeof h<"u")return !1});}return typeof h>"u"&&(h=i[p]),_.rawCache[p]=h,h}rawSemicolon(a){let o;return a.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(o=p.raws.semicolon,typeof o<"u"))return !1}),o}rawEmptyBody(a){let o;return a.walk(p=>{if(p.nodes&&p.nodes.length===0&&(o=p.raws.after,typeof o<"u"))return !1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(p=>{let h=p.parent;if(h&&h!==a&&h.parent&&h.parent===a&&typeof p.raws.before<"u"){let c=p.raws.before.split(` `);return o=c[c.length-1],o=o.replace(/\S/g,""),!1}}),o}rawBeforeComment(a,o){let p;return a.walkComments(h=>{if(typeof h.raws.before<"u")return p=h.raws.before,p.includes(` `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(o,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(a,o){let p;return a.walkDecls(h=>{if(typeof h.raws.before<"u")return p=h.raws.before,p.includes(` `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(o,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeRule(a){let o;return a.walk(p=>{if(p.nodes&&(p.parent!==a||a.first!==p)&&typeof p.raws.before<"u")return o=p.raws.before,o.includes(` `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeClose(a){let o;return a.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return o=p.raws.after,o.includes(` `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(a){let o;return a.walk(p=>{if(p.type!=="decl"&&(o=p.raws.between,typeof o<"u"))return !1}),o}rawColon(a){let o;return a.walkDecls(p=>{if(typeof p.raws.between<"u")return o=p.raws.between.replace(/[^\s:]/g,""),!1}),o}beforeAfter(a,o){let p;a.type==="decl"?p=this.raw(a,null,"beforeDecl"):a.type==="comment"?p=this.raw(a,null,"beforeComment"):o==="before"?p=this.raw(a,null,"beforeRule"):p=this.raw(a,null,"beforeClose");let h=a.parent,c=0;for(;h&&h.type!=="root";)c+=1,h=h.parent;if(p.includes(` `)){let _=this.raw(a,null,"indent");if(_.length)for(let v=0;v{var i=$p();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),Po=ce((t,e)=>{var{isClean:i,my:r}=Oh(),s=Rh(),a=$p(),o=_o();function p(c,_){let v=new c.constructor;for(let u in c){if(!Object.prototype.hasOwnProperty.call(c,u)||u==="proxyCache")continue;let S=c[u],d=typeof S;u==="parent"&&d==="object"?_&&(v[u]=_):u==="source"?v[u]=S:Array.isArray(S)?v[u]=S.map(g=>p(g,v)):(d==="object"&&S!==null&&(S=p(S)),v[u]=S);}return v}var h=class{constructor(c={}){this.raws={},this[i]=!1,this[r]=!0;for(let _ in c)if(_==="nodes"){this.nodes=[];for(let v of c[_])typeof v.clone=="function"?this.append(v.clone()):this.append(v);}else this[_]=c[_];}error(c,_={}){if(this.source){let{start:v,end:u}=this.rangeBy(_);return this.source.input.error(c,{line:v.line,column:v.column},{line:u.line,column:u.column},_)}return new s(c)}warn(c,_,v){let u={node:this};for(let S in v)u[S]=v[S];return c.warn(_,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(c=o){c.stringify&&(c=c.stringify);let _="";return c(this,v=>{_+=v;}),_}assign(c={}){for(let _ in c)this[_]=c[_];return this}clone(c={}){let _=p(this);for(let v in c)_[v]=c[v];return _}cloneBefore(c={}){let _=this.clone(c);return this.parent.insertBefore(this,_),_}cloneAfter(c={}){let _=this.clone(c);return this.parent.insertAfter(this,_),_}replaceWith(...c){if(this.parent){let _=this,v=!1;for(let u of c)u===this?v=!0:v?(this.parent.insertAfter(_,u),_=u):this.parent.insertBefore(_,u);v||this.remove();}return this}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}before(c){return this.parent.insertBefore(this,c),this}after(c){return this.parent.insertAfter(this,c),this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}raw(c,_){return new a().raw(this,c,_)}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between;}toJSON(c,_){let v={},u=_==null;_=_||new Map;let S=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let g=this[d];if(Array.isArray(g))v[d]=g.map(A=>typeof A=="object"&&A.toJSON?A.toJSON(null,_):A);else if(typeof g=="object"&&g.toJSON)v[d]=g.toJSON(null,_);else if(d==="source"){let A=_.get(g.input);A==null&&(A=S,_.set(g.input,S),S++),v[d]={inputId:A,start:g.start,end:g.end};}else v[d]=g;}return u&&(v.inputs=[..._.keys()].map(d=>d.toJSON())),v}positionInside(c){let _=this.toString(),v=this.source.start.column,u=this.source.start.line;for(let S=0;Sc.root().toProxy():c[_]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let _=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${_.input.from}:${_.start.line}:${_.start.column}$&`);}return c}markDirty(){if(this[i]){this[i]=!1;let c=this;for(;c=c.parent;)c[i]=!1;}}get proxyOf(){return this}};e.exports=h,h.default=h;}),So=ce((t,e)=>{var i=Po(),r=class extends i{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};e.exports=r,r.default=r;}),Ln=ce(()=>{}),Vn=ce(()=>{}),Bh=ce(()=>{}),Hp=ce((t,e)=>{var i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(a,o=21)=>(p=o)=>{let h="",c=p;for(;c--;)h+=a[Math.random()*a.length|0];return h},s=(a=21)=>{let o="",p=a;for(;p--;)o+=i[Math.random()*64|0];return o};e.exports={nanoid:s,customAlphabet:r};}),Wp=ce(()=>{}),Up=ce((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{existsSync:s,readFileSync:a}=Wp(),{dirname:o,join:p}=Vn();function h(_){return Buffer?Buffer.from(_,"base64").toString():window.atob(_)}var c=class{constructor(_,v){if(v.map===!1)return;this.loadAnnotation(_),this.inline=this.startWith(this.annotation,"data:");let u=v.map?v.map.prev:void 0,S=this.loadMap(v.from,u);!this.mapFile&&v.from&&(this.mapFile=v.from),this.mapFile&&(this.root=o(this.mapFile)),S&&(this.text=S);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(_,v){return _?_.substr(0,v.length)===v:!1}getAnnotationURL(_){return _.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(_){let v=_.match(/\/\*\s*# sourceMappingURL=/gm);if(!v)return;let u=_.lastIndexOf(v.pop()),S=_.indexOf("*/",u);u>-1&&S>-1&&(this.annotation=this.getAnnotationURL(_.substring(u,S)));}decodeInline(_){let v=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,S=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(S.test(_)||d.test(_))return decodeURIComponent(_.substr(RegExp.lastMatch.length));if(v.test(_)||u.test(_))return h(_.substr(RegExp.lastMatch.length));let g=_.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}loadFile(_){if(this.root=o(_),s(_))return this.mapFile=_,a(_,"utf-8").toString().trim()}loadMap(_,v){if(v===!1)return !1;if(v){if(typeof v=="string")return v;if(typeof v=="function"){let u=v(_);if(u){let S=this.loadFile(u);if(!S)throw new Error("Unable to load previous source map: "+u.toString());return S}}else {if(v instanceof i)return r.fromSourceMap(v).toString();if(v instanceof r)return v.toString();if(this.isMap(v))return JSON.stringify(v);throw new Error("Unsupported previous source map format: "+v.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return _&&(u=p(o(_),u)),this.loadFile(u)}}}isMap(_){return typeof _!="object"?!1:typeof _.mappings=="string"||typeof _._mappings=="string"||Array.isArray(_.sections)}};e.exports=c,c.default=c;}),ko=ce((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{fileURLToPath:s,pathToFileURL:a}=Bh(),{resolve:o,isAbsolute:p}=Vn(),{nanoid:h}=Hp(),c=qp(),_=Rh(),v=Up(),u=Symbol("fromOffsetCache"),S=!!(i&&r),d=!!(o&&p),g=class{constructor(A,y={}){if(A===null||typeof A>"u"||typeof A=="object"&&!A.toString)throw new Error(`PostCSS received ${A} instead of CSS string`);if(this.css=A.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!d||/^\w+:\/\//.test(y.from)||p(y.from)?this.file=y.from:this.file=o(y.from)),d&&S){let m=new v(this.css,y);if(m.text){this.map=m;let x=m.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(A){let y,m;if(this[u])m=this[u];else {let w=this.css.split(` `);m=new Array(w.length);let M=0;for(let N=0,U=w.length;N=y)x=m.length-1;else {let w=m.length-2,M;for(;x>1),A=m[M+1])x=M+1;else {x=M;break}}return {line:x+1,col:A-m[x]+1}}error(A,y,m,x={}){let w,M,N;if(y&&typeof y=="object"){let Y=y,dt=m;if(typeof Y.offset=="number"){let xt=this.fromOffset(Y.offset);y=xt.line,m=xt.col;}else y=Y.line,m=Y.column;if(typeof dt.offset=="number"){let xt=this.fromOffset(dt.offset);M=xt.line,N=xt.col;}else M=dt.line,N=dt.column;}else if(!m){let Y=this.fromOffset(y);y=Y.line,m=Y.col;}let U=this.origin(y,m,M,N);return U?w=new _(A,U.endLine===void 0?U.line:{line:U.line,column:U.column},U.endLine===void 0?U.column:{line:U.endLine,column:U.endColumn},U.source,U.file,x.plugin):w=new _(A,M===void 0?y:{line:y,column:m},M===void 0?m:{line:M,column:N},this.css,this.file,x.plugin),w.input={line:y,column:m,endLine:M,endColumn:N,source:this.css},this.file&&(a&&(w.input.url=a(this.file).toString()),w.input.file=this.file),w}origin(A,y,m,x){if(!this.map)return !1;let w=this.map.consumer(),M=w.originalPositionFor({line:A,column:y});if(!M.source)return !1;let N;typeof m=="number"&&(N=w.originalPositionFor({line:m,column:x}));let U;p(M.source)?U=a(M.source):U=new URL(M.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let Y={url:U.toString(),line:M.line,column:M.column,endLine:N&&N.line,endColumn:N&&N.column};if(U.protocol==="file:")if(s)Y.file=s(U);else throw new Error("file: protocol is not available in this PostCSS build");let dt=w.sourceContentFor(M.source);return dt&&(Y.source=dt),Y}mapResolve(A){return /^\w+:\/\//.test(A)?A:o(this.map.consumer().sourceRoot||this.map.root||".",A)}get from(){return this.file||this.id}toJSON(){let A={};for(let y of ["hasBOM","css","file","id"])this[y]!=null&&(A[y]=this[y]);return this.map&&(A.map={...this.map},A.map.consumerCache&&(A.map.consumerCache=void 0)),A}};e.exports=g,g.default=g,c&&c.registerInput&&c.registerInput(g);}),Jp=ce((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{dirname:s,resolve:a,relative:o,sep:p}=Vn(),{pathToFileURL:h}=Bh(),c=ko(),_=!!(i&&r),v=!!(s&&a&&o&&p),u=class{constructor(S,d,g,A){this.stringify=S,this.mapOpts=g.map||{},this.root=d,this.opts=g,this.css=A,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute;}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(S=>{if(S.source&&S.source.input.map){let d=S.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d);}});else {let S=new c(this.css,this.opts);S.map&&this.previousMaps.push(S.map);}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let S=this.mapOpts.annotation;return typeof S<"u"&&S!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(S=>S.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let S;for(let d=this.root.nodes.length-1;d>=0;d--)S=this.root.nodes[d],S.type==="comment"&&S.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d);}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""));}setSourcesContent(){let S={};if(this.root)this.root.walk(d=>{if(d.source){let g=d.source.input.from;if(g&&!S[g]){S[g]=!0;let A=this.usesFileUrls?this.toFileUrl(g):this.toUrl(this.path(g));this.map.setSourceContent(A,d.source.input.css);}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(d,this.css);}}applyPrevMaps(){for(let S of this.previous()){let d=this.toUrl(this.path(S.file)),g=S.root||s(S.file),A;this.mapOpts.sourcesContent===!1?(A=new i(S.text),A.sourcesContent&&(A.sourcesContent=A.sourcesContent.map(()=>null))):A=S.consumer(),this.map.applySourceMap(A,d,this.toUrl(this.path(g)));}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(S=>S.annotation):!0}toBase64(S){return Buffer?Buffer.from(S).toString("base64"):window.btoa(unescape(encodeURIComponent(S)))}addAnnotation(){let S;this.isInline()?S="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?S=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?S=this.mapOpts.annotation(this.opts.to,this.root):S=this.outputFile()+".map";let d=` `;this.css.includes(`\r `)&&(d=`\r `),this.css+=d+"/*# sourceMappingURL="+S+" */";}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let S=this.previous()[0].consumer();S.file=this.outputFile(),this.map=r.fromSourceMap(S);}else this.map=new r({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(S){if(S.indexOf("<")===0||/^\w+:\/\//.test(S)||this.mapOpts.absolute)return S;let d=this.opts.to?s(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(d=s(a(d,this.mapOpts.annotation))),S=o(d,S),S}toUrl(S){return p==="\\"&&(S=S.replace(/\\/g,"/")),encodeURI(S).replace(/[#?]/g,encodeURIComponent)}toFileUrl(S){if(h)return h(S).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(S){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(S.source.input.from):this.toUrl(this.path(S.source.input.from))}generateString(){this.css="",this.map=new r({file:this.outputFile()});let S=1,d=1,g="",A={source:"",generated:{line:0,column:0},original:{line:0,column:0}},y,m;this.stringify(this.root,(x,w,M)=>{if(this.css+=x,w&&M!=="end"&&(A.generated.line=S,A.generated.column=d-1,w.source&&w.source.start?(A.source=this.sourcePath(w),A.original.line=w.source.start.line,A.original.column=w.source.start.column-1,this.map.addMapping(A)):(A.source=g,A.original.line=1,A.original.column=0,this.map.addMapping(A))),y=x.match(/\n/g),y?(S+=y.length,m=x.lastIndexOf(` `),d=x.length-m):d+=x.length,w&&M!=="start"){let N=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==N.last||N.raws.semicolon)&&(w.source&&w.source.end?(A.source=this.sourcePath(w),A.original.line=w.source.end.line,A.original.column=w.source.end.column-1,A.generated.line=S,A.generated.column=d-2,this.map.addMapping(A)):(A.source=g,A.original.line=1,A.original.column=0,A.generated.line=S,A.generated.column=d-1,this.map.addMapping(A)));}});}generate(){if(this.clearAnnotation(),v&&_&&this.isMap())return this.generateMap();{let S="";return this.stringify(this.root,d=>{S+=d;}),[S]}}};e.exports=u;}),wo=ce((t,e)=>{var i=Po(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),Ha=ce((t,e)=>{var{isClean:i,my:r}=Oh(),s=So(),a=wo(),o=Po(),p,h,c,_;function v(d){return d.map(g=>(g.nodes&&(g.nodes=v(g.nodes)),delete g.source,g))}function u(d){if(d[i]=!1,d.proxyOf.nodes)for(let g of d.proxyOf.nodes)u(g);}var S=class extends o{push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}each(d){if(!this.proxyOf.nodes)return;let g=this.getIterator(),A,y;for(;this.indexes[g]{let y;try{y=d(g,A);}catch(m){throw g.addToError(m)}return y!==!1&&g.walk&&(y=g.walk(d)),y})}walkDecls(d,g){return g?d instanceof RegExp?this.walk((A,y)=>{if(A.type==="decl"&&d.test(A.prop))return g(A,y)}):this.walk((A,y)=>{if(A.type==="decl"&&A.prop===d)return g(A,y)}):(g=d,this.walk((A,y)=>{if(A.type==="decl")return g(A,y)}))}walkRules(d,g){return g?d instanceof RegExp?this.walk((A,y)=>{if(A.type==="rule"&&d.test(A.selector))return g(A,y)}):this.walk((A,y)=>{if(A.type==="rule"&&A.selector===d)return g(A,y)}):(g=d,this.walk((A,y)=>{if(A.type==="rule")return g(A,y)}))}walkAtRules(d,g){return g?d instanceof RegExp?this.walk((A,y)=>{if(A.type==="atrule"&&d.test(A.name))return g(A,y)}):this.walk((A,y)=>{if(A.type==="atrule"&&A.name===d)return g(A,y)}):(g=d,this.walk((A,y)=>{if(A.type==="atrule")return g(A,y)}))}walkComments(d){return this.walk((g,A)=>{if(g.type==="comment")return d(g,A)})}append(...d){for(let g of d){let A=this.normalize(g,this.last);for(let y of A)this.proxyOf.nodes.push(y);}return this.markDirty(),this}prepend(...d){d=d.reverse();for(let g of d){let A=this.normalize(g,this.first,"prepend").reverse();for(let y of A)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+A.length;}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let g of this.nodes)g.cleanRaws(d);}insertBefore(d,g){let A=this.index(d),y=A===0?"prepend":!1,m=this.normalize(g,this.proxyOf.nodes[A],y).reverse();A=this.index(d);for(let w of m)this.proxyOf.nodes.splice(A,0,w);let x;for(let w in this.indexes)x=this.indexes[w],A<=x&&(this.indexes[w]=x+m.length);return this.markDirty(),this}insertAfter(d,g){let A=this.index(d),y=this.normalize(g,this.proxyOf.nodes[A]).reverse();A=this.index(d);for(let x of y)this.proxyOf.nodes.splice(A+1,0,x);let m;for(let x in this.indexes)m=this.indexes[x],A=d&&(this.indexes[A]=g-1);return this.markDirty(),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(d,g,A){return A||(A=g,g={}),this.walkDecls(y=>{g.props&&!g.props.includes(y.prop)||g.fast&&!y.value.includes(g.fast)||(y.value=y.value.replace(d,A));}),this.markDirty(),this}every(d){return this.nodes.every(d)}some(d){return this.nodes.some(d)}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(d,g){if(typeof d=="string")d=v(p(d).nodes);else if(Array.isArray(d)){d=d.slice(0);for(let A of d)A.parent&&A.parent.removeChild(A,"ignore");}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let A of d)A.parent&&A.parent.removeChild(A,"ignore");}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new s(d)];}else if(d.selector)d=[new h(d)];else if(d.name)d=[new c(d)];else if(d.text)d=[new a(d)];else throw new Error("Unknown node type in node creation");return d.map(A=>(A[r]||S.rebuild(A),A=A.proxyOf,A.parent&&A.parent.removeChild(A),A[i]&&u(A),typeof A.raws.before>"u"&&g&&typeof g.raws.before<"u"&&(A.raws.before=g.raws.before.replace(/\S/g,"")),A.parent=this.proxyOf,A))}getProxyProcessor(){return {set(d,g,A){return d[g]===A||(d[g]=A,(g==="name"||g==="params"||g==="selector")&&d.markDirty()),!0},get(d,g){return g==="proxyOf"?d:d[g]?g==="each"||typeof g=="string"&&g.startsWith("walk")?(...A)=>d[g](...A.map(y=>typeof y=="function"?(m,x)=>y(m.toProxy(),x):y)):g==="every"||g==="some"?A=>d[g]((y,...m)=>A(y.toProxy(),...m)):g==="root"?()=>d.root().toProxy():g==="nodes"?d.nodes.map(A=>A.toProxy()):g==="first"||g==="last"?d[g].toProxy():d[g]:d[g]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}};S.registerParse=d=>{p=d;},S.registerRule=d=>{h=d;},S.registerAtRule=d=>{c=d;},S.registerRoot=d=>{_=d;},e.exports=S,S.default=S,S.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,c.prototype):d.type==="rule"?Object.setPrototypeOf(d,h.prototype):d.type==="decl"?Object.setPrototypeOf(d,s.prototype):d.type==="comment"?Object.setPrototypeOf(d,a.prototype):d.type==="root"&&Object.setPrototypeOf(d,_.prototype),d[r]=!0,d.nodes&&d.nodes.forEach(g=>{S.rebuild(g);});};}),zh=ce((t,e)=>{var i=Ha(),r,s,a=class extends i{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[]);}toResult(o={}){return new r(new s,this,o).stringify()}};a.registerLazyResult=o=>{r=o;},a.registerProcessor=o=>{s=o;},e.exports=a,a.default=a;}),Xp=ce((t,e)=>{var i={};e.exports=function(r){i[r]||(i[r]=!0,typeof console<"u"&&console.warn&&console.warn(r));};}),Yp=ce((t,e)=>{var i=class{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let a=s.node.rangeBy(s);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column;}for(let a in s)this[a]=s[a];}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=i,i.default=i;}),Nh=ce((t,e)=>{var i=Yp(),r=class{constructor(s,a,o){this.processor=s,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(s,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new i(s,a);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}};e.exports=r,r.default=r;}),pm=ce((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),o=` `.charCodeAt(0),p=" ".charCodeAt(0),h="\f".charCodeAt(0),c=" ".charCodeAt(0),_="\r".charCodeAt(0),v="[".charCodeAt(0),u="]".charCodeAt(0),S="(".charCodeAt(0),d=")".charCodeAt(0),g="{".charCodeAt(0),A="}".charCodeAt(0),y=";".charCodeAt(0),m="*".charCodeAt(0),x=":".charCodeAt(0),w="@".charCodeAt(0),M=/[\t\n\f\r "#'()/;[\\\]{}]/g,N=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,U=/.[\n"'(/\\]/,Y=/[\da-f]/i;e.exports=function(dt,xt={}){let vt=dt.css.valueOf(),bt=xt.ignoreErrors,It,ot,Tt,z,$,E,q,nt,Q,Ut,zt=vt.length,qt=0,Gt=[],se=[];function he(){return qt}function le(de){throw dt.error("Unclosed "+de,qt)}function Se(){return se.length===0&&qt>=zt}function Pe(de){if(se.length)return se.pop();if(qt>=zt)return;let Xt=de?de.ignoreUnclosed:!1;switch(It=vt.charCodeAt(qt),It){case o:case p:case c:case _:case h:{ot=qt;do ot+=1,It=vt.charCodeAt(ot);while(It===p||It===o||It===c||It===_||It===h);Ut=["space",vt.slice(qt,ot)],qt=ot-1;break}case v:case u:case g:case A:case x:case y:case d:{let Wt=String.fromCharCode(It);Ut=[Wt,Wt,qt];break}case S:{if(nt=Gt.length?Gt.pop()[1]:"",Q=vt.charCodeAt(qt+1),nt==="url"&&Q!==i&&Q!==r&&Q!==p&&Q!==o&&Q!==c&&Q!==h&&Q!==_){ot=qt;do{if(E=!1,ot=vt.indexOf(")",ot+1),ot===-1)if(bt||Xt){ot=qt;break}else le("bracket");for(q=ot;vt.charCodeAt(q-1)===s;)q-=1,E=!E;}while(E);Ut=["brackets",vt.slice(qt,ot+1),qt,ot],qt=ot;}else ot=vt.indexOf(")",qt+1),z=vt.slice(qt,ot+1),ot===-1||U.test(z)?Ut=["(","(",qt]:(Ut=["brackets",z,qt,ot],qt=ot);break}case i:case r:{Tt=It===i?"'":'"',ot=qt;do{if(E=!1,ot=vt.indexOf(Tt,ot+1),ot===-1)if(bt||Xt){ot=qt+1;break}else le("string");for(q=ot;vt.charCodeAt(q-1)===s;)q-=1,E=!E;}while(E);Ut=["string",vt.slice(qt,ot+1),qt,ot],qt=ot;break}case w:{M.lastIndex=qt+1,M.test(vt),M.lastIndex===0?ot=vt.length-1:ot=M.lastIndex-2,Ut=["at-word",vt.slice(qt,ot+1),qt,ot],qt=ot;break}case s:{for(ot=qt,$=!0;vt.charCodeAt(ot+1)===s;)ot+=1,$=!$;if(It=vt.charCodeAt(ot+1),$&&It!==a&&It!==p&&It!==o&&It!==c&&It!==_&&It!==h&&(ot+=1,Y.test(vt.charAt(ot)))){for(;Y.test(vt.charAt(ot+1));)ot+=1;vt.charCodeAt(ot+1)===p&&(ot+=1);}Ut=["word",vt.slice(qt,ot+1),qt,ot],qt=ot;break}default:{It===a&&vt.charCodeAt(qt+1)===m?(ot=vt.indexOf("*/",qt+2)+1,ot===0&&(bt||Xt?ot=vt.length:le("comment")),Ut=["comment",vt.slice(qt,ot+1),qt,ot],qt=ot):(N.lastIndex=qt+1,N.test(vt),N.lastIndex===0?ot=vt.length-1:ot=N.lastIndex-2,Ut=["word",vt.slice(qt,ot+1),qt,ot],Gt.push(Ut),qt=ot);break}}return qt++,Ut}function Jt(de){se.push(de);}return {back:Jt,nextToken:Pe,endOfFile:Se,position:he}};}),Gh=ce((t,e)=>{var i=Ha(),r=class extends i{constructor(s){super(s),this.type="atrule";}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};e.exports=r,r.default=r,i.registerAtRule(r);}),Rn=ce((t,e)=>{var i=Ha(),r,s,a=class extends i{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[]);}removeChild(o,p){let h=this.index(o);return !p&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(o)}normalize(o,p,h){let c=super.normalize(o);if(p){if(h==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let _ of c)_.raws.before=p.raws.before;}return c}toResult(o={}){return new r(new s,this,o).stringify()}};a.registerLazyResult=o=>{r=o;},a.registerProcessor=o=>{s=o;},e.exports=a,a.default=a,i.registerRoot(a);}),Zp=ce((t,e)=>{var i={split(r,s,a){let o=[],p="",h=!1,c=0,_=!1,v="",u=!1;for(let S of r)u?u=!1:S==="\\"?u=!0:_?S===v&&(_=!1):S==='"'||S==="'"?(_=!0,v=S):S==="("?c+=1:S===")"?c>0&&(c-=1):c===0&&s.includes(S)&&(h=!0),h?(p!==""&&o.push(p.trim()),p="",h=!1):p+=S;return (a||p!=="")&&o.push(p.trim()),o},space(r){let s=[" ",` `," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),jh=ce((t,e)=>{var i=Ha(),r=Zp(),s=class extends i{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return r.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,p=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p);}};e.exports=s,s.default=s,i.registerRule(s);}),fm=ce((t,e)=>{var i=So(),r=pm(),s=wo(),a=Gh(),o=Rn(),p=jh(),h={empty:!0,space:!0};function c(v){for(let u=v.length-1;u>=0;u--){let S=v[u],d=S[3]||S[2];if(d)return d}}var _=class{constructor(v){this.input=v,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:v,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let v;for(;!this.tokenizer.endOfFile();)switch(v=this.tokenizer.nextToken(),v[0]){case"space":this.spaces+=v[1];break;case";":this.freeSemicolon(v);break;case"}":this.end(v);break;case"comment":this.comment(v);break;case"at-word":this.atrule(v);break;case"{":this.emptyRule(v);break;default:this.other(v);break}this.endFile();}comment(v){let u=new s;this.init(u,v[2]),u.source.end=this.getPosition(v[3]||v[2]);let S=v[1].slice(2,-2);if(/^\s*$/.test(S))u.text="",u.raws.left=S,u.raws.right="";else {let d=S.match(/^(\s*)([^]*\S)(\s*)$/);u.text=d[2],u.raws.left=d[1],u.raws.right=d[3];}}emptyRule(v){let u=new p;this.init(u,v[2]),u.selector="",u.raws.between="",this.current=u;}other(v){let u=!1,S=null,d=!1,g=null,A=[],y=v[1].startsWith("--"),m=[],x=v;for(;x;){if(S=x[0],m.push(x),S==="("||S==="[")g||(g=x),A.push(S==="("?")":"]");else if(y&&d&&S==="{")g||(g=x),A.push("}");else if(A.length===0)if(S===";")if(d){this.decl(m,y);return}else break;else if(S==="{"){this.rule(m);return}else if(S==="}"){this.tokenizer.back(m.pop()),u=!0;break}else S===":"&&(d=!0);else S===A[A.length-1]&&(A.pop(),A.length===0&&(g=null));x=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(u=!0),A.length>0&&this.unclosedBracket(g),u&&d){if(!y)for(;m.length&&(x=m[m.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(m.pop());this.decl(m,y);}else this.unknownWord(m);}rule(v){v.pop();let u=new p;this.init(u,v[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(v),this.raw(u,"selector",v),this.current=u;}decl(v,u){let S=new i;this.init(S,v[0][2]);let d=v[v.length-1];for(d[0]===";"&&(this.semicolon=!0,v.pop()),S.source.end=this.getPosition(d[3]||d[2]||c(v));v[0][0]!=="word";)v.length===1&&this.unknownWord(v),S.raws.before+=v.shift()[1];for(S.source.start=this.getPosition(v[0][2]),S.prop="";v.length;){let m=v[0][0];if(m===":"||m==="space"||m==="comment")break;S.prop+=v.shift()[1];}S.raws.between="";let g;for(;v.length;)if(g=v.shift(),g[0]===":"){S.raws.between+=g[1];break}else g[0]==="word"&&/\w/.test(g[1])&&this.unknownWord([g]),S.raws.between+=g[1];(S.prop[0]==="_"||S.prop[0]==="*")&&(S.raws.before+=S.prop[0],S.prop=S.prop.slice(1));let A=[],y;for(;v.length&&(y=v[0][0],!(y!=="space"&&y!=="comment"));)A.push(v.shift());this.precheckMissedSemicolon(v);for(let m=v.length-1;m>=0;m--){if(g=v[m],g[1].toLowerCase()==="!important"){S.important=!0;let x=this.stringFrom(v,m);x=this.spacesFromEnd(v)+x,x!==" !important"&&(S.raws.important=x);break}else if(g[1].toLowerCase()==="important"){let x=v.slice(0),w="";for(let M=m;M>0;M--){let N=x[M][0];if(w.trim().indexOf("!")===0&&N!=="space")break;w=x.pop()[1]+w;}w.trim().indexOf("!")===0&&(S.important=!0,S.raws.important=w,v=x);}if(g[0]!=="space"&&g[0]!=="comment")break}v.some(m=>m[0]!=="space"&&m[0]!=="comment")&&(S.raws.between+=A.map(m=>m[1]).join(""),A=[]),this.raw(S,"value",A.concat(v),u),S.value.includes(":")&&!u&&this.checkMissedSemicolon(v);}atrule(v){let u=new a;u.name=v[1].slice(1),u.name===""&&this.unnamedAtrule(u,v),this.init(u,v[2]);let S,d,g,A=!1,y=!1,m=[],x=[];for(;!this.tokenizer.endOfFile();){if(v=this.tokenizer.nextToken(),S=v[0],S==="("||S==="["?x.push(S==="("?")":"]"):S==="{"&&x.length>0?x.push("}"):S===x[x.length-1]&&x.pop(),x.length===0)if(S===";"){u.source.end=this.getPosition(v[2]),this.semicolon=!0;break}else if(S==="{"){y=!0;break}else if(S==="}"){if(m.length>0){for(g=m.length-1,d=m[g];d&&d[0]==="space";)d=m[--g];d&&(u.source.end=this.getPosition(d[3]||d[2]));}this.end(v);break}else m.push(v);else m.push(v);if(this.tokenizer.endOfFile()){A=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(m),m.length?(u.raws.afterName=this.spacesAndCommentsFromStart(m),this.raw(u,"params",m),A&&(v=m[m.length-1],u.source.end=this.getPosition(v[3]||v[2]),this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),y&&(u.nodes=[],this.current=u);}end(v){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(v[2]),this.current=this.current.parent):this.unexpectedClose(v);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;}freeSemicolon(v){if(this.spaces+=v[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(v){let u=this.input.fromOffset(v);return {offset:v,line:u.line,column:u.col}}init(v,u){this.current.push(v),v.source={start:this.getPosition(u),input:this.input},v.raws.before=this.spaces,this.spaces="",v.type!=="comment"&&(this.semicolon=!1);}raw(v,u,S,d){let g,A,y=S.length,m="",x=!0,w,M;for(let N=0;NU+Y[1],"");v.raws[u]={value:m,raw:N};}v[u]=m;}spacesAndCommentsFromEnd(v){let u,S="";for(;v.length&&(u=v[v.length-1][0],!(u!=="space"&&u!=="comment"));)S=v.pop()[1]+S;return S}spacesAndCommentsFromStart(v){let u,S="";for(;v.length&&(u=v[0][0],!(u!=="space"&&u!=="comment"));)S+=v.shift()[1];return S}spacesFromEnd(v){let u,S="";for(;v.length&&(u=v[v.length-1][0],u==="space");)S=v.pop()[1]+S;return S}stringFrom(v,u){let S="";for(let d=u;d=0&&(d=v[g],!(d[0]!=="space"&&(S+=1,S===2)));g--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}};e.exports=_;}),qh=ce((t,e)=>{var i=Ha(),r=fm(),s=ko();function a(o,p){let h=new s(o,p),c=new r(h);try{c.parse();}catch(_){throw _}return c.root}e.exports=a,a.default=a,i.registerParse(a);}),Kp=ce((t,e)=>{var{isClean:i,my:r}=Oh(),s=Jp(),a=_o(),o=Ha(),p=zh();Xp();var h=Nh(),c=qh(),_=Rn(),v={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},u={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},S={postcssPlugin:!0,prepare:!0,Once:!0},d=0;function g(M){return typeof M=="object"&&typeof M.then=="function"}function A(M){let N=!1,U=v[M.type];return M.type==="decl"?N=M.prop.toLowerCase():M.type==="atrule"&&(N=M.name.toLowerCase()),N&&M.append?[U,U+"-"+N,d,U+"Exit",U+"Exit-"+N]:N?[U,U+"-"+N,U+"Exit",U+"Exit-"+N]:M.append?[U,d,U+"Exit"]:[U,U+"Exit"]}function y(M){let N;return M.type==="document"?N=["Document",d,"DocumentExit"]:M.type==="root"?N=["Root",d,"RootExit"]:N=A(M),{node:M,events:N,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function m(M){return M[i]=!1,M.nodes&&M.nodes.forEach(N=>m(N)),M}var x={},w=class{constructor(M,N,U){this.stringified=!1,this.processed=!1;let Y;if(typeof N=="object"&&N!==null&&(N.type==="root"||N.type==="document"))Y=m(N);else if(N instanceof w||N instanceof h)Y=m(N.root),N.map&&(typeof U.map>"u"&&(U.map={}),U.map.inline||(U.map.inline=!1),U.map.prev=N.map);else {let dt=c;U.syntax&&(dt=U.syntax.parse),U.parser&&(dt=U.parser),dt.parse&&(dt=dt.parse);try{Y=dt(N,U);}catch(xt){this.processed=!0,this.error=xt;}Y&&!Y[r]&&o.rebuild(Y);}this.result=new h(M,Y,U),this.helpers={...x,result:this.result,postcss:x},this.plugins=this.processor.plugins.map(dt=>typeof dt=="object"&&dt.prepare?{...dt,...dt.prepare(this.result)}:dt);}get[Symbol.toStringTag](){return "LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(M,N){return this.async().then(M,N)}catch(M){return this.async().catch(M)}finally(M){return this.async().then(M,M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let M of this.plugins){let N=this.runOnRoot(M);if(g(N))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let M=this.result.root;for(;!M[i];)M[i]=!0,this.walkSync(M);if(this.listeners.OnceExit)if(M.type==="document")for(let N of M.nodes)this.visitSync(this.listeners.OnceExit,N);else this.visitSync(this.listeners.OnceExit,M);}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let M=this.result.opts,N=a;M.syntax&&(N=M.syntax.stringify),M.stringifier&&(N=M.stringifier),N.stringify&&(N=N.stringify);let U=new s(N,this.result.root,this.result.opts).generate();return this.result.css=U[0],this.result.map=U[1],this.result}walkSync(M){M[i]=!0;let N=A(M);for(let U of N)if(U===d)M.nodes&&M.each(Y=>{Y[i]||this.walkSync(Y);});else {let Y=this.listeners[U];if(Y&&this.visitSync(Y,M.toProxy()))return}}visitSync(M,N){for(let[U,Y]of M){this.result.lastPlugin=U;let dt;try{dt=Y(N,this.helpers);}catch(xt){throw this.handleError(xt,N.proxyOf)}if(N.type!=="root"&&N.type!=="document"&&!N.parent)return !0;if(g(dt))throw this.getAsyncError()}}runOnRoot(M){this.result.lastPlugin=M;try{if(typeof M=="object"&&M.Once){if(this.result.root.type==="document"){let N=this.result.root.nodes.map(U=>M.Once(U,this.helpers));return g(N[0])?Promise.all(N):N}return M.Once(this.result.root,this.helpers)}else if(typeof M=="function")return M(this.result.root,this.result)}catch(N){throw this.handleError(N)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(M,N){let U=this.result.lastPlugin;try{N&&N.addToError(M),this.error=M,M.name==="CssSyntaxError"&&!M.plugin?(M.plugin=U.postcssPlugin,M.setMessage()):U.postcssVersion;}catch(Y){console&&console.error&&console.error(Y);}return M}async runAsync(){this.plugin=0;for(let M=0;M0;){let U=this.visitTick(N);if(g(U))try{await U;}catch(Y){let dt=N[N.length-1].node;throw this.handleError(Y,dt)}}}if(this.listeners.OnceExit)for(let[N,U]of this.listeners.OnceExit){this.result.lastPlugin=N;try{if(M.type==="document"){let Y=M.nodes.map(dt=>U(dt,this.helpers));await Promise.all(Y);}else await U(M,this.helpers);}catch(Y){throw this.handleError(Y)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let M=(N,U,Y)=>{this.listeners[U]||(this.listeners[U]=[]),this.listeners[U].push([N,Y]);};for(let N of this.plugins)if(typeof N=="object")for(let U in N){if(!u[U]&&/^[A-Z]/.test(U))throw new Error(`Unknown event ${U} in ${N.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!S[U])if(typeof N[U]=="object")for(let Y in N[U])Y==="*"?M(N,U,N[U][Y]):M(N,U+"-"+Y.toLowerCase(),N[U][Y]);else typeof N[U]=="function"&&M(N,U,N[U]);}this.hasListener=Object.keys(this.listeners).length>0;}visitTick(M){let N=M[M.length-1],{node:U,visitors:Y}=N;if(U.type!=="root"&&U.type!=="document"&&!U.parent){M.pop();return}if(Y.length>0&&N.visitorIndex{x=M;},e.exports=w,w.default=w,_.registerLazyResult(w),p.registerLazyResult(w);}),cm=ce((t,e)=>{var i=Jp(),r=_o();Xp();var s=qh(),a=Nh(),o=class{constructor(p,h,c){h=h.toString(),this.stringified=!1,this._processor=p,this._css=h,this._opts=c,this._map=void 0;let _,v=r;this.result=new a(this._processor,_,this._opts),this.result.css=h;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let S=new i(v,_,this._opts,h);if(S.isMap()){let[d,g]=S.generate();d&&(this.result.css=d),g&&(this.result.map=g);}}get[Symbol.toStringTag](){return "NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let p,h=s;try{p=h(this._css,this._opts);}catch(c){this.error=c;}if(this.error)throw this.error;return this._root=p,p}get messages(){return []}warnings(){return []}toString(){return this._css}then(p,h){return this.async().then(p,h)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};e.exports=o,o.default=o;}),um=ce((t,e)=>{var i=cm(),r=Kp(),s=zh(),a=Rn(),o=class{constructor(p=[]){this.version="8.4.24",this.plugins=this.normalize(p);}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}process(p,h={}){return this.plugins.length===0&&typeof h.parser>"u"&&typeof h.stringifier>"u"&&typeof h.syntax>"u"?new i(this,p,h):new r(this,p,h)}normalize(p){let h=[];for(let c of p)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))h=h.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)h.push(c);else if(typeof c=="function")h.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return h}};e.exports=o,o.default=o,a.registerProcessor(o),s.registerProcessor(o);}),dm=ce((t,e)=>{var i=So(),r=Up(),s=wo(),a=Gh(),o=ko(),p=Rn(),h=jh();function c(_,v){if(Array.isArray(_))return _.map(d=>c(d));let{inputs:u,...S}=_;if(u){v=[];for(let d of u){let g={...d,__proto__:o.prototype};g.map&&(g.map={...g.map,__proto__:r.prototype}),v.push(g);}}if(S.nodes&&(S.nodes=_.nodes.map(d=>c(d,v))),S.source){let{inputId:d,...g}=S.source;S.source=g,d!=null&&(S.source.input=v[d]);}if(S.type==="root")return new p(S);if(S.type==="decl")return new i(S);if(S.type==="rule")return new h(S);if(S.type==="comment")return new s(S);if(S.type==="atrule")return new a(S);throw new Error("Unknown node type: "+_.type)}e.exports=c,c.default=c;}),mm=ce((t,e)=>{var i=Rh(),r=So(),s=Kp(),a=Ha(),o=um(),p=_o(),h=dm(),c=zh(),_=Yp(),v=wo(),u=Gh(),S=Nh(),d=ko(),g=qh(),A=Zp(),y=jh(),m=Rn(),x=Po();function w(...M){return M.length===1&&Array.isArray(M[0])&&(M=M[0]),new o(M)}w.plugin=function(M,N){let U=!1;function Y(...xt){console&&console.warn&&!U&&(U=!0,console.warn(M+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(M+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: https://www.w3ctech.com/topic/2226`));let vt=N(...xt);return vt.postcssPlugin=M,vt.postcssVersion=new o().version,vt}let dt;return Object.defineProperty(Y,"postcss",{get(){return dt||(dt=Y()),dt}}),Y.process=function(xt,vt,bt){return w([Y(bt)]).process(xt,vt)},Y},w.stringify=p,w.parse=g,w.fromJSON=h,w.list=A,w.comment=M=>new v(M),w.atRule=M=>new u(M),w.decl=M=>new r(M),w.rule=M=>new y(M),w.root=M=>new m(M),w.document=M=>new c(M),w.CssSyntaxError=i,w.Declaration=r,w.Container=a,w.Processor=o,w.Document=c,w.Comment=v,w.Warning=_,w.AtRule=u,w.Result=S,w.Input=d,w.Rule=y,w.Root=m,w.Node=x,s.registerPostcss(w),e.exports=w,w.default=w;}),Qp=ce(()=>{}),tf=ce((t,e)=>{var i=jp(),r=Qp(),s=class extends Error{constructor(a,o,p,h,c,_){super(a),this.name="CssSyntaxError",this.reason=a,c&&(this.file=c),h&&(this.source=h),_&&(this.plugin=_),typeof o<"u"&&typeof p<"u"&&(typeof o=="number"?(this.line=o,this.column=p):(this.line=o.line,this.column=o.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(a){if(!this.source)return "";let o=this.source;a==null&&(a=i.isColorSupported),r&&a&&(o=r(o));let p=o.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,p.length),_=String(c).length,v,u;if(a){let{bold:S,red:d,gray:g}=i.createColors(!0);v=A=>S(d(A)),u=A=>g(A);}else v=u=S=>S;return p.slice(h,c).map((S,d)=>{let g=h+1+d,A=" "+(" "+g).slice(-_)+" | ";if(g===this.line){let y=u(A.replace(/\d/g," "))+S.slice(0,this.column-1).replace(/[^\t]/g," ");return v(">")+u(A)+S+` `+y+v("^")}return " "+u(A)+S}).join(` `)}toString(){let a=this.showSourceCode();return a&&(a=` `+a+` `),this.name+": "+this.message+a}};e.exports=s,s.default=s;}),gm=ce((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{existsSync:s,readFileSync:a}=Wp(),{dirname:o,join:p}=Vn();function h(_){return Buffer?Buffer.from(_,"base64").toString():window.atob(_)}var c=class{constructor(_,v){if(v.map===!1)return;this.loadAnnotation(_),this.inline=this.startWith(this.annotation,"data:");let u=v.map?v.map.prev:void 0,S=this.loadMap(v.from,u);!this.mapFile&&v.from&&(this.mapFile=v.from),this.mapFile&&(this.root=o(this.mapFile)),S&&(this.text=S);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(_,v){return _?_.substr(0,v.length)===v:!1}getAnnotationURL(_){return _.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(_){let v=_.match(/\/\*\s*# sourceMappingURL=/gm);if(!v)return;let u=_.lastIndexOf(v.pop()),S=_.indexOf("*/",u);u>-1&&S>-1&&(this.annotation=this.getAnnotationURL(_.substring(u,S)));}decodeInline(_){let v=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,S=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(S.test(_)||d.test(_))return decodeURIComponent(_.substr(RegExp.lastMatch.length));if(v.test(_)||u.test(_))return h(_.substr(RegExp.lastMatch.length));let g=_.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}loadFile(_){if(this.root=o(_),s(_))return this.mapFile=_,a(_,"utf-8").toString().trim()}loadMap(_,v){if(v===!1)return !1;if(v){if(typeof v=="string")return v;if(typeof v=="function"){let u=v(_);if(u){let S=this.loadFile(u);if(!S)throw new Error("Unable to load previous source map: "+u.toString());return S}}else {if(v instanceof i)return r.fromSourceMap(v).toString();if(v instanceof r)return v.toString();if(this.isMap(v))return JSON.stringify(v);throw new Error("Unsupported previous source map format: "+v.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return _&&(u=p(o(_),u)),this.loadFile(u)}}}isMap(_){return typeof _!="object"?!1:typeof _.mappings=="string"||typeof _._mappings=="string"||Array.isArray(_.sections)}};e.exports=c,c.default=c;}),ef=ce((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{fileURLToPath:s,pathToFileURL:a}=Bh(),{resolve:o,isAbsolute:p}=Vn(),{nanoid:h}=Hp(),c=Qp(),_=tf(),v=gm(),u=Symbol("fromOffsetCache"),S=!!(i&&r),d=!!(o&&p),g=class{constructor(A,y={}){if(A===null||typeof A>"u"||typeof A=="object"&&!A.toString)throw new Error(`PostCSS received ${A} instead of CSS string`);if(this.css=A.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!d||/^\w+:\/\//.test(y.from)||p(y.from)?this.file=y.from:this.file=o(y.from)),d&&S){let m=new v(this.css,y);if(m.text){this.map=m;let x=m.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(A){let y,m;if(this[u])m=this[u];else {let w=this.css.split(` `);m=new Array(w.length);let M=0;for(let N=0,U=w.length;N=y)x=m.length-1;else {let w=m.length-2,M;for(;x>1),A=m[M+1])x=M+1;else {x=M;break}}return {line:x+1,col:A-m[x]+1}}error(A,y,m,x={}){let w,M,N;if(y&&typeof y=="object"){let Y=y,dt=m;if(typeof Y.offset=="number"){let xt=this.fromOffset(Y.offset);y=xt.line,m=xt.col;}else y=Y.line,m=Y.column;if(typeof dt.offset=="number"){let xt=this.fromOffset(dt.offset);M=xt.line,N=xt.col;}else M=dt.line,N=dt.column;}else if(!m){let Y=this.fromOffset(y);y=Y.line,m=Y.col;}let U=this.origin(y,m,M,N);return U?w=new _(A,U.endLine===void 0?U.line:{line:U.line,column:U.column},U.endLine===void 0?U.column:{line:U.endLine,column:U.endColumn},U.source,U.file,x.plugin):w=new _(A,M===void 0?y:{line:y,column:m},M===void 0?m:{line:M,column:N},this.css,this.file,x.plugin),w.input={line:y,column:m,endLine:M,endColumn:N,source:this.css},this.file&&(a&&(w.input.url=a(this.file).toString()),w.input.file=this.file),w}origin(A,y,m,x){if(!this.map)return !1;let w=this.map.consumer(),M=w.originalPositionFor({line:A,column:y});if(!M.source)return !1;let N;typeof m=="number"&&(N=w.originalPositionFor({line:m,column:x}));let U;p(M.source)?U=a(M.source):U=new URL(M.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let Y={url:U.toString(),line:M.line,column:M.column,endLine:N&&N.line,endColumn:N&&N.column};if(U.protocol==="file:")if(s)Y.file=s(U);else throw new Error("file: protocol is not available in this PostCSS build");let dt=w.sourceContentFor(M.source);return dt&&(Y.source=dt),Y}mapResolve(A){return /^\w+:\/\//.test(A)?A:o(this.map.consumer().sourceRoot||this.map.root||".",A)}get from(){return this.file||this.id}toJSON(){let A={};for(let y of ["hasBOM","css","file","id"])this[y]!=null&&(A[y]=this[y]);return this.map&&(A.map={...this.map},A.map.consumerCache&&(A.map.consumerCache=void 0)),A}};e.exports=g,g.default=g,c&&c.registerInput&&c.registerInput(g);}),rf=ce((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),$h=ce((t,e)=>{var i={colon:": ",indent:" ",beforeDecl:` `,beforeRule:` `,beforeOpen:" ",beforeClose:` `,beforeComment:` `,after:` `,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function r(a){return a[0].toUpperCase()+a.slice(1)}var s=class{constructor(a){this.builder=a;}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o);}document(a){this.body(a);}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after);}comment(a){let o=this.raw(a,"left","commentLeft"),p=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+p+"*/",a);}decl(a,o){let p=this.raw(a,"between","colon"),h=a.prop+p+this.rawValue(a,"value");a.important&&(h+=a.raws.important||" !important"),o&&(h+=";"),this.builder(h,a);}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end");}atrule(a,o){let p="@"+a.name,h=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?p+=a.raws.afterName:h&&(p+=" "),a.nodes)this.block(a,p+h);else {let c=(a.raws.between||"")+(o?";":"");this.builder(p+h+c,a);}}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let p=this.raw(a,"semicolon");for(let h=0;h{if(h=u.raws[o],typeof h<"u")return !1});}return typeof h>"u"&&(h=i[p]),_.rawCache[p]=h,h}rawSemicolon(a){let o;return a.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(o=p.raws.semicolon,typeof o<"u"))return !1}),o}rawEmptyBody(a){let o;return a.walk(p=>{if(p.nodes&&p.nodes.length===0&&(o=p.raws.after,typeof o<"u"))return !1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(p=>{let h=p.parent;if(h&&h!==a&&h.parent&&h.parent===a&&typeof p.raws.before<"u"){let c=p.raws.before.split(` `);return o=c[c.length-1],o=o.replace(/\S/g,""),!1}}),o}rawBeforeComment(a,o){let p;return a.walkComments(h=>{if(typeof h.raws.before<"u")return p=h.raws.before,p.includes(` `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(o,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(a,o){let p;return a.walkDecls(h=>{if(typeof h.raws.before<"u")return p=h.raws.before,p.includes(` `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(o,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeRule(a){let o;return a.walk(p=>{if(p.nodes&&(p.parent!==a||a.first!==p)&&typeof p.raws.before<"u")return o=p.raws.before,o.includes(` `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeClose(a){let o;return a.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return o=p.raws.after,o.includes(` `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(a){let o;return a.walk(p=>{if(p.type!=="decl"&&(o=p.raws.between,typeof o<"u"))return !1}),o}rawColon(a){let o;return a.walkDecls(p=>{if(typeof p.raws.between<"u")return o=p.raws.between.replace(/[^\s:]/g,""),!1}),o}beforeAfter(a,o){let p;a.type==="decl"?p=this.raw(a,null,"beforeDecl"):a.type==="comment"?p=this.raw(a,null,"beforeComment"):o==="before"?p=this.raw(a,null,"beforeRule"):p=this.raw(a,null,"beforeClose");let h=a.parent,c=0;for(;h&&h.type!=="root";)c+=1,h=h.parent;if(p.includes(` `)){let _=this.raw(a,null,"indent");if(_.length)for(let v=0;v{var i=$h();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),On=ce((t,e)=>{var{isClean:i,my:r}=rf(),s=tf(),a=$h(),o=ym();function p(c,_){let v=new c.constructor;for(let u in c){if(!Object.prototype.hasOwnProperty.call(c,u)||u==="proxyCache")continue;let S=c[u],d=typeof S;u==="parent"&&d==="object"?_&&(v[u]=_):u==="source"?v[u]=S:Array.isArray(S)?v[u]=S.map(g=>p(g,v)):(d==="object"&&S!==null&&(S=p(S)),v[u]=S);}return v}var h=class{constructor(c={}){this.raws={},this[i]=!1,this[r]=!0;for(let _ in c)if(_==="nodes"){this.nodes=[];for(let v of c[_])typeof v.clone=="function"?this.append(v.clone()):this.append(v);}else this[_]=c[_];}error(c,_={}){if(this.source){let{start:v,end:u}=this.rangeBy(_);return this.source.input.error(c,{line:v.line,column:v.column},{line:u.line,column:u.column},_)}return new s(c)}warn(c,_,v){let u={node:this};for(let S in v)u[S]=v[S];return c.warn(_,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(c=o){c.stringify&&(c=c.stringify);let _="";return c(this,v=>{_+=v;}),_}assign(c={}){for(let _ in c)this[_]=c[_];return this}clone(c={}){let _=p(this);for(let v in c)_[v]=c[v];return _}cloneBefore(c={}){let _=this.clone(c);return this.parent.insertBefore(this,_),_}cloneAfter(c={}){let _=this.clone(c);return this.parent.insertAfter(this,_),_}replaceWith(...c){if(this.parent){let _=this,v=!1;for(let u of c)u===this?v=!0:v?(this.parent.insertAfter(_,u),_=u):this.parent.insertBefore(_,u);v||this.remove();}return this}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}before(c){return this.parent.insertBefore(this,c),this}after(c){return this.parent.insertAfter(this,c),this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}raw(c,_){return new a().raw(this,c,_)}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between;}toJSON(c,_){let v={},u=_==null;_=_||new Map;let S=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let g=this[d];if(Array.isArray(g))v[d]=g.map(A=>typeof A=="object"&&A.toJSON?A.toJSON(null,_):A);else if(typeof g=="object"&&g.toJSON)v[d]=g.toJSON(null,_);else if(d==="source"){let A=_.get(g.input);A==null&&(A=S,_.set(g.input,S),S++),v[d]={inputId:A,start:g.start,end:g.end};}else v[d]=g;}return u&&(v.inputs=[..._.keys()].map(d=>d.toJSON())),v}positionInside(c){let _=this.toString(),v=this.source.start.column,u=this.source.start.line;for(let S=0;Sc.root().toProxy():c[_]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let _=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${_.input.from}:${_.start.line}:${_.start.column}$&`);}return c}markDirty(){if(this[i]){this[i]=!1;let c=this;for(;c=c.parent;)c[i]=!1;}}get proxyOf(){return this}};e.exports=h,h.default=h;}),sf=ce((t,e)=>{var i=On(),r=class extends i{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};e.exports=r,r.default=r;}),af=ce((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),o=` `.charCodeAt(0),p=" ".charCodeAt(0),h="\f".charCodeAt(0),c=" ".charCodeAt(0),_="\r".charCodeAt(0),v="[".charCodeAt(0),u="]".charCodeAt(0),S="(".charCodeAt(0),d=")".charCodeAt(0),g="{".charCodeAt(0),A="}".charCodeAt(0),y=";".charCodeAt(0),m="*".charCodeAt(0),x=":".charCodeAt(0),w="@".charCodeAt(0),M=/[\t\n\f\r "#'()/;[\\\]{}]/g,N=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,U=/.[\n"'(/\\]/,Y=/[\da-f]/i;e.exports=function(dt,xt={}){let vt=dt.css.valueOf(),bt=xt.ignoreErrors,It,ot,Tt,z,$,E,q,nt,Q,Ut,zt=vt.length,qt=0,Gt=[],se=[];function he(){return qt}function le(de){throw dt.error("Unclosed "+de,qt)}function Se(){return se.length===0&&qt>=zt}function Pe(de){if(se.length)return se.pop();if(qt>=zt)return;let Xt=de?de.ignoreUnclosed:!1;switch(It=vt.charCodeAt(qt),It){case o:case p:case c:case _:case h:{ot=qt;do ot+=1,It=vt.charCodeAt(ot);while(It===p||It===o||It===c||It===_||It===h);Ut=["space",vt.slice(qt,ot)],qt=ot-1;break}case v:case u:case g:case A:case x:case y:case d:{let Wt=String.fromCharCode(It);Ut=[Wt,Wt,qt];break}case S:{if(nt=Gt.length?Gt.pop()[1]:"",Q=vt.charCodeAt(qt+1),nt==="url"&&Q!==i&&Q!==r&&Q!==p&&Q!==o&&Q!==c&&Q!==h&&Q!==_){ot=qt;do{if(E=!1,ot=vt.indexOf(")",ot+1),ot===-1)if(bt||Xt){ot=qt;break}else le("bracket");for(q=ot;vt.charCodeAt(q-1)===s;)q-=1,E=!E;}while(E);Ut=["brackets",vt.slice(qt,ot+1),qt,ot],qt=ot;}else ot=vt.indexOf(")",qt+1),z=vt.slice(qt,ot+1),ot===-1||U.test(z)?Ut=["(","(",qt]:(Ut=["brackets",z,qt,ot],qt=ot);break}case i:case r:{Tt=It===i?"'":'"',ot=qt;do{if(E=!1,ot=vt.indexOf(Tt,ot+1),ot===-1)if(bt||Xt){ot=qt+1;break}else le("string");for(q=ot;vt.charCodeAt(q-1)===s;)q-=1,E=!E;}while(E);Ut=["string",vt.slice(qt,ot+1),qt,ot],qt=ot;break}case w:{M.lastIndex=qt+1,M.test(vt),M.lastIndex===0?ot=vt.length-1:ot=M.lastIndex-2,Ut=["at-word",vt.slice(qt,ot+1),qt,ot],qt=ot;break}case s:{for(ot=qt,$=!0;vt.charCodeAt(ot+1)===s;)ot+=1,$=!$;if(It=vt.charCodeAt(ot+1),$&&It!==a&&It!==p&&It!==o&&It!==c&&It!==_&&It!==h&&(ot+=1,Y.test(vt.charAt(ot)))){for(;Y.test(vt.charAt(ot+1));)ot+=1;vt.charCodeAt(ot+1)===p&&(ot+=1);}Ut=["word",vt.slice(qt,ot+1),qt,ot],qt=ot;break}default:{It===a&&vt.charCodeAt(qt+1)===m?(ot=vt.indexOf("*/",qt+2)+1,ot===0&&(bt||Xt?ot=vt.length:le("comment")),Ut=["comment",vt.slice(qt,ot+1),qt,ot],qt=ot):(N.lastIndex=qt+1,N.test(vt),N.lastIndex===0?ot=vt.length-1:ot=N.lastIndex-2,Ut=["word",vt.slice(qt,ot+1),qt,ot],Gt.push(Ut),qt=ot);break}}return qt++,Ut}function Jt(de){se.push(de);}return {back:Jt,nextToken:Pe,endOfFile:Se,position:he}};}),Hh=ce((t,e)=>{var i=On(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),Bn=ce((t,e)=>{var{isClean:i,my:r}=rf(),s=sf(),a=Hh(),o=On(),p,h,c,_;function v(d){return d.map(g=>(g.nodes&&(g.nodes=v(g.nodes)),delete g.source,g))}function u(d){if(d[i]=!1,d.proxyOf.nodes)for(let g of d.proxyOf.nodes)u(g);}var S=class extends o{push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}each(d){if(!this.proxyOf.nodes)return;let g=this.getIterator(),A,y;for(;this.indexes[g]{let y;try{y=d(g,A);}catch(m){throw g.addToError(m)}return y!==!1&&g.walk&&(y=g.walk(d)),y})}walkDecls(d,g){return g?d instanceof RegExp?this.walk((A,y)=>{if(A.type==="decl"&&d.test(A.prop))return g(A,y)}):this.walk((A,y)=>{if(A.type==="decl"&&A.prop===d)return g(A,y)}):(g=d,this.walk((A,y)=>{if(A.type==="decl")return g(A,y)}))}walkRules(d,g){return g?d instanceof RegExp?this.walk((A,y)=>{if(A.type==="rule"&&d.test(A.selector))return g(A,y)}):this.walk((A,y)=>{if(A.type==="rule"&&A.selector===d)return g(A,y)}):(g=d,this.walk((A,y)=>{if(A.type==="rule")return g(A,y)}))}walkAtRules(d,g){return g?d instanceof RegExp?this.walk((A,y)=>{if(A.type==="atrule"&&d.test(A.name))return g(A,y)}):this.walk((A,y)=>{if(A.type==="atrule"&&A.name===d)return g(A,y)}):(g=d,this.walk((A,y)=>{if(A.type==="atrule")return g(A,y)}))}walkComments(d){return this.walk((g,A)=>{if(g.type==="comment")return d(g,A)})}append(...d){for(let g of d){let A=this.normalize(g,this.last);for(let y of A)this.proxyOf.nodes.push(y);}return this.markDirty(),this}prepend(...d){d=d.reverse();for(let g of d){let A=this.normalize(g,this.first,"prepend").reverse();for(let y of A)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+A.length;}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let g of this.nodes)g.cleanRaws(d);}insertBefore(d,g){let A=this.index(d),y=A===0?"prepend":!1,m=this.normalize(g,this.proxyOf.nodes[A],y).reverse();A=this.index(d);for(let w of m)this.proxyOf.nodes.splice(A,0,w);let x;for(let w in this.indexes)x=this.indexes[w],A<=x&&(this.indexes[w]=x+m.length);return this.markDirty(),this}insertAfter(d,g){let A=this.index(d),y=this.normalize(g,this.proxyOf.nodes[A]).reverse();A=this.index(d);for(let x of y)this.proxyOf.nodes.splice(A+1,0,x);let m;for(let x in this.indexes)m=this.indexes[x],A=d&&(this.indexes[A]=g-1);return this.markDirty(),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(d,g,A){return A||(A=g,g={}),this.walkDecls(y=>{g.props&&!g.props.includes(y.prop)||g.fast&&!y.value.includes(g.fast)||(y.value=y.value.replace(d,A));}),this.markDirty(),this}every(d){return this.nodes.every(d)}some(d){return this.nodes.some(d)}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(d,g){if(typeof d=="string")d=v(p(d).nodes);else if(Array.isArray(d)){d=d.slice(0);for(let A of d)A.parent&&A.parent.removeChild(A,"ignore");}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let A of d)A.parent&&A.parent.removeChild(A,"ignore");}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new s(d)];}else if(d.selector)d=[new h(d)];else if(d.name)d=[new c(d)];else if(d.text)d=[new a(d)];else throw new Error("Unknown node type in node creation");return d.map(A=>(A[r]||S.rebuild(A),A=A.proxyOf,A.parent&&A.parent.removeChild(A),A[i]&&u(A),typeof A.raws.before>"u"&&g&&typeof g.raws.before<"u"&&(A.raws.before=g.raws.before.replace(/\S/g,"")),A.parent=this.proxyOf,A))}getProxyProcessor(){return {set(d,g,A){return d[g]===A||(d[g]=A,(g==="name"||g==="params"||g==="selector")&&d.markDirty()),!0},get(d,g){return g==="proxyOf"?d:d[g]?g==="each"||typeof g=="string"&&g.startsWith("walk")?(...A)=>d[g](...A.map(y=>typeof y=="function"?(m,x)=>y(m.toProxy(),x):y)):g==="every"||g==="some"?A=>d[g]((y,...m)=>A(y.toProxy(),...m)):g==="root"?()=>d.root().toProxy():g==="nodes"?d.nodes.map(A=>A.toProxy()):g==="first"||g==="last"?d[g].toProxy():d[g]:d[g]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}};S.registerParse=d=>{p=d;},S.registerRule=d=>{h=d;},S.registerAtRule=d=>{c=d;},S.registerRoot=d=>{_=d;},e.exports=S,S.default=S,S.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,c.prototype):d.type==="rule"?Object.setPrototypeOf(d,h.prototype):d.type==="decl"?Object.setPrototypeOf(d,s.prototype):d.type==="comment"?Object.setPrototypeOf(d,a.prototype):d.type==="root"&&Object.setPrototypeOf(d,_.prototype),d[r]=!0,d.nodes&&d.nodes.forEach(g=>{S.rebuild(g);});};}),vm=ce((t,e)=>{var i=Bn(),r=class extends i{constructor(s){super(s),this.type="atrule";}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};e.exports=r,r.default=r,i.registerAtRule(r);}),bm=ce((t,e)=>{var i=Bn(),r,s,a=class extends i{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[]);}removeChild(o,p){let h=this.index(o);return !p&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(o)}normalize(o,p,h){let c=super.normalize(o);if(p){if(h==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let _ of c)_.raws.before=p.raws.before;}return c}toResult(o={}){return new r(new s,this,o).stringify()}};a.registerLazyResult=o=>{r=o;},a.registerProcessor=o=>{s=o;},e.exports=a,a.default=a,i.registerRoot(a);}),xm=ce((t,e)=>{var i={split(r,s,a){let o=[],p="",h=!1,c=0,_=!1,v="",u=!1;for(let S of r)u?u=!1:S==="\\"?u=!0:_?S===v&&(_=!1):S==='"'||S==="'"?(_=!0,v=S):S==="("?c+=1:S===")"?c>0&&(c-=1):c===0&&s.includes(S)&&(h=!0),h?(p!==""&&o.push(p.trim()),p="",h=!1):p+=S;return (a||p!=="")&&o.push(p.trim()),o},space(r){let s=[" ",` `," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),_m=ce((t,e)=>{var i=Bn(),r=xm(),s=class extends i{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return r.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,p=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p);}};e.exports=s,s.default=s,i.registerRule(s);}),Pm=ce((t,e)=>{var i=sf(),r=af(),s=Hh(),a=vm(),o=bm(),p=_m(),h={empty:!0,space:!0};function c(v){for(let u=v.length-1;u>=0;u--){let S=v[u],d=S[3]||S[2];if(d)return d}}var _=class{constructor(v){this.input=v,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:v,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let v;for(;!this.tokenizer.endOfFile();)switch(v=this.tokenizer.nextToken(),v[0]){case"space":this.spaces+=v[1];break;case";":this.freeSemicolon(v);break;case"}":this.end(v);break;case"comment":this.comment(v);break;case"at-word":this.atrule(v);break;case"{":this.emptyRule(v);break;default:this.other(v);break}this.endFile();}comment(v){let u=new s;this.init(u,v[2]),u.source.end=this.getPosition(v[3]||v[2]);let S=v[1].slice(2,-2);if(/^\s*$/.test(S))u.text="",u.raws.left=S,u.raws.right="";else {let d=S.match(/^(\s*)([^]*\S)(\s*)$/);u.text=d[2],u.raws.left=d[1],u.raws.right=d[3];}}emptyRule(v){let u=new p;this.init(u,v[2]),u.selector="",u.raws.between="",this.current=u;}other(v){let u=!1,S=null,d=!1,g=null,A=[],y=v[1].startsWith("--"),m=[],x=v;for(;x;){if(S=x[0],m.push(x),S==="("||S==="[")g||(g=x),A.push(S==="("?")":"]");else if(y&&d&&S==="{")g||(g=x),A.push("}");else if(A.length===0)if(S===";")if(d){this.decl(m,y);return}else break;else if(S==="{"){this.rule(m);return}else if(S==="}"){this.tokenizer.back(m.pop()),u=!0;break}else S===":"&&(d=!0);else S===A[A.length-1]&&(A.pop(),A.length===0&&(g=null));x=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(u=!0),A.length>0&&this.unclosedBracket(g),u&&d){if(!y)for(;m.length&&(x=m[m.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(m.pop());this.decl(m,y);}else this.unknownWord(m);}rule(v){v.pop();let u=new p;this.init(u,v[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(v),this.raw(u,"selector",v),this.current=u;}decl(v,u){let S=new i;this.init(S,v[0][2]);let d=v[v.length-1];for(d[0]===";"&&(this.semicolon=!0,v.pop()),S.source.end=this.getPosition(d[3]||d[2]||c(v));v[0][0]!=="word";)v.length===1&&this.unknownWord(v),S.raws.before+=v.shift()[1];for(S.source.start=this.getPosition(v[0][2]),S.prop="";v.length;){let m=v[0][0];if(m===":"||m==="space"||m==="comment")break;S.prop+=v.shift()[1];}S.raws.between="";let g;for(;v.length;)if(g=v.shift(),g[0]===":"){S.raws.between+=g[1];break}else g[0]==="word"&&/\w/.test(g[1])&&this.unknownWord([g]),S.raws.between+=g[1];(S.prop[0]==="_"||S.prop[0]==="*")&&(S.raws.before+=S.prop[0],S.prop=S.prop.slice(1));let A=[],y;for(;v.length&&(y=v[0][0],!(y!=="space"&&y!=="comment"));)A.push(v.shift());this.precheckMissedSemicolon(v);for(let m=v.length-1;m>=0;m--){if(g=v[m],g[1].toLowerCase()==="!important"){S.important=!0;let x=this.stringFrom(v,m);x=this.spacesFromEnd(v)+x,x!==" !important"&&(S.raws.important=x);break}else if(g[1].toLowerCase()==="important"){let x=v.slice(0),w="";for(let M=m;M>0;M--){let N=x[M][0];if(w.trim().indexOf("!")===0&&N!=="space")break;w=x.pop()[1]+w;}w.trim().indexOf("!")===0&&(S.important=!0,S.raws.important=w,v=x);}if(g[0]!=="space"&&g[0]!=="comment")break}v.some(m=>m[0]!=="space"&&m[0]!=="comment")&&(S.raws.between+=A.map(m=>m[1]).join(""),A=[]),this.raw(S,"value",A.concat(v),u),S.value.includes(":")&&!u&&this.checkMissedSemicolon(v);}atrule(v){let u=new a;u.name=v[1].slice(1),u.name===""&&this.unnamedAtrule(u,v),this.init(u,v[2]);let S,d,g,A=!1,y=!1,m=[],x=[];for(;!this.tokenizer.endOfFile();){if(v=this.tokenizer.nextToken(),S=v[0],S==="("||S==="["?x.push(S==="("?")":"]"):S==="{"&&x.length>0?x.push("}"):S===x[x.length-1]&&x.pop(),x.length===0)if(S===";"){u.source.end=this.getPosition(v[2]),this.semicolon=!0;break}else if(S==="{"){y=!0;break}else if(S==="}"){if(m.length>0){for(g=m.length-1,d=m[g];d&&d[0]==="space";)d=m[--g];d&&(u.source.end=this.getPosition(d[3]||d[2]));}this.end(v);break}else m.push(v);else m.push(v);if(this.tokenizer.endOfFile()){A=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(m),m.length?(u.raws.afterName=this.spacesAndCommentsFromStart(m),this.raw(u,"params",m),A&&(v=m[m.length-1],u.source.end=this.getPosition(v[3]||v[2]),this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),y&&(u.nodes=[],this.current=u);}end(v){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(v[2]),this.current=this.current.parent):this.unexpectedClose(v);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;}freeSemicolon(v){if(this.spaces+=v[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(v){let u=this.input.fromOffset(v);return {offset:v,line:u.line,column:u.col}}init(v,u){this.current.push(v),v.source={start:this.getPosition(u),input:this.input},v.raws.before=this.spaces,this.spaces="",v.type!=="comment"&&(this.semicolon=!1);}raw(v,u,S,d){let g,A,y=S.length,m="",x=!0,w,M;for(let N=0;NU+Y[1],"");v.raws[u]={value:m,raw:N};}v[u]=m;}spacesAndCommentsFromEnd(v){let u,S="";for(;v.length&&(u=v[v.length-1][0],!(u!=="space"&&u!=="comment"));)S=v.pop()[1]+S;return S}spacesAndCommentsFromStart(v){let u,S="";for(;v.length&&(u=v[0][0],!(u!=="space"&&u!=="comment"));)S+=v.shift()[1];return S}spacesFromEnd(v){let u,S="";for(;v.length&&(u=v[v.length-1][0],u==="space");)S=v.pop()[1]+S;return S}stringFrom(v,u){let S="";for(let d=u;d=0&&(d=v[g],!(d[0]!=="space"&&(S+=1,S===2)));g--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}};e.exports=_;}),na=ce((t,e)=>{var i=Bn(),r=s=>{let a=`walk${s.name}`;a.lastIndexOf("s")!==a.length-1&&(a+="s"),!i.prototype[a]&&(i.prototype[a]=function(o){return this.walkType(s,o)});};i.prototype.walkType=function(s,a){if(!s||!a)throw new Error("Parameters {type} and {callback} are required.");let o=typeof s=="function";return this.walk((p,h)=>{if(o&&p instanceof s||!o&&p.type===s)return a.call(this,p,h)})},e.exports={registerWalker:r};}),zn=ce((t,e)=>{var i=$h();e.exports=class nf extends i{static stringify(s,a){new nf(a).stringify(s);}basic(s,a){let o=a||s.value,p=s.raws.after&&this.raw(s,"after")||"";this.builder(o,s,"start"),this.builder(p,s,"end");}atword(...s){this.atrule(...s);}comment(s){if(s.inline){let a=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder(`//${a}${s.text}${o}`,s);}else super.comment(s);}func(s){let a=this.raw(s,"after")||"";this.builder(`${s.name}(`,s,"start");for(let o of s.nodes){let p=o.raws.before?this.raw(o,"before"):"";p&&this.builder(p),this.stringify(o);}this.builder(`)${a}`,s,"end");}interpolation(s){this.basic(s,s.prefix+s.params);}numeric(s){let a=s.value+s.unit;this.basic(s,a);}operator(s){this.basic(s);}punctuation(s){this.basic(s);}quoted(s){this.basic(s);}unicodeRange(s){this.basic(s);}word(s){this.basic(s);}};}),Sm=ce((t,e)=>{var i=On(),{registerWalker:r}=na(),{stringify:s}=zn(),a=class extends i{toString(o=s){return super.toString(o)}};r(a),e.exports=a;}),km=ce((t,e)=>{var i=Hh(),{stringify:r}=zn(),s=/(\/\/)/,a=class extends i{static testInline(o){return s.test(o[1])}static tokenizeNext(o,p){let[h]=o,c=o.findIndex(g=>/\n/.test(g[1])),_=o,v=[];c>=0&&(_=o.slice(0,c),v=o.slice(c)),_=_.map(g=>g[1]);let u=_.concat("~~").join(""),S=_[_.length-1],d=["comment",u,h[2],h[3],S[2],S[3]];p.back([d,...v]);}static tokenizeInline(o,p){let[h,...c]=o,_=h[1].split(/(\/\/.+)/).filter(A=>!!A),v=[],[,,u,,S]=h,[,,,d,,g]=h;for(let A of _){let y=A.slice(0,2)==="//",m=y?"comment":"word";y&&(A+="~~"),A!==_[0]&&(d=g+1),g=d+A.length-1,v.push([m,A,u,d,S,g]);}p.back(v.concat(c));}toString(o=r){return super.toString(o)}};e.exports=a;}),of=ce((t,e)=>{var i=ef(),r=af(),s=["*","-","%","+","/"],a=/([*/])/g,o=(v,u)=>{let[,,S,d,g,A]=v,y=v[1].slice(1,v[1].length-1),m=h(y);for(let w of m)if(w[0]!=="space"){let M=w[5]-w[3];w[2]=S,w[3]+=d,w[4]+=g-1,w[5]=w[3]+M;}let x=[["(","(",S,d,S,d],...m];x.push([")",")",S,A,g,A]);for(let w of x.reverse())u.back(w);},p=(v,u)=>{let S=v[1].split(/([,])/),d=[],[,,g,,A]=v,[,,,y,,m]=v;for(let x of S){x=x||",";let w=x===","?"comma":"word";x!==S[0]&&(y=m+1),m=y+x.length-1,d.push([w,x,g,y,A,m]);}for(let x of d.reverse())u.back(x);},h=v=>{let u=new i(v,{}),S=_(u),d=[];for(;!S.endOfFile();){let g=S.nextToken();d.push(g);}return d},c=(v,u)=>{let[,S,d,,g,A]=v,y=S.split(a),[,,,m]=v,x=y.map(w=>{let M=[s.includes(w)?"operator":"word",w,d,m,g,A];return m+=w.length,M});for(let w of x.reverse())u.back(w);},_=(...v)=>{let u=r(...v),S=u.nextToken;return u.nextToken=(...d)=>{let g=S(...d);if(!g)return g;let[A,y]=g;return A==="brackets"?(o(g,u),g=S(...d)):A==="word"&&(s.includes(y)?g[0]="operator":a.test(y)?(c(g,u),g=S(...d)):y.length>1&&y.includes(",")&&(p(g,u),g=S(...d))),g},u};e.exports={getTokens:h,tokenizer:_};}),hf=ce((t,e)=>{var i=Bn(),{stringify:r}=zn(),s=class extends i{toString(a=r){return super.toString(a)}};e.exports=s;}),on=ce((t,e)=>{var i=On(),{stringify:r}=zn(),s=class extends i{toString(a=r){return super.toString(a||{})}};e.exports=s;}),lf=ce((t,e)=>{var{getTokens:i}=of(),{registerWalker:r}=na(),s=on(),a=class extends s{constructor(o){super(o),this.type="punctuation";}static get chars(){return [",",":","(",")","[","]","{","}"]}static fromTokens(o,p){p.fromFirst(o,a);}static tokenizeBrackets(o,p){let[h,...c]=o,_=h[1].split(/([()])/g).filter(A=>!!A),v=[],[,,u,,S]=h,[,,,d,,g]=h;for(let A of _){let y=A==="("?"(":A===")"?")":"word";if(/^\s+$/.test(A)&&(y="space"),A!==_[0]&&(d=g+1),g=d+A.length-1,y==="word"){let m=i(A);for(let x of m)x[3]+=d-1,v.push(x);}else v.push([y,A,u,d,S,g]);}p.back(v.concat(c));}static tokenizeCommas(o,p){let[h,...c]=o,_=h[1].split(/([,])/g).filter(A=>!!A),v=[],[,,u,,S]=h,[,,,d,,g]=h;for(let A of _)A!==_[0]&&(d=g+1),g=d+A.length-1,v.push(["word",A,u,d,S,g]);p.back(v.concat(c));}};r(a),e.exports=a;}),wm=ce((t,e)=>{var{getTokens:i}=of(),{registerWalker:r}=na(),s=hf(),a=lf(),o=["annotation","attr","blur","brightness","calc","character-variant","circle","contrast","cubic-bezier","dir","drop-shadow","element","ellipse","grayscale","hsl","hsla","hue-rotate","image","inset","invert","lang","linear-gradient","matrix","matrix3d","minmax","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","opacity","ornaments","perspective","polygon","radial-gradient","rect","repeat","repeating-linear-gradient","repeating-radial-gradient","rgb","rgba","rotate","rotatex","rotatey","rotatez","rotate3d","saturate","scale","scalex","scaley","scalez","scale3d","sepia","skew","skewx","skewy","steps","styleset","stylistic","swash","symbols","translate","translatex","translatey","translatez","translate3d","url","var"],p=["-webkit-","-moz-","-ms-","-o-"],h=new RegExp(`^(${p.join("|")})?(${o.join("|")})`,"i"),c=new RegExp(`^(\\${a.chars.join("|\\")})`),_=/^(hsla?|hwb|lab|lch|rgba?)$/i,v=/^var$/i,u=/^--[^\s]+$/,S=class extends s{constructor(d={}){super(d),this.type="func",this.isColor=!1,this.isVar=!1,this.name=d.name||"",this.nodes||(this.nodes=[]);}static test(d){return d.length>1&&d[0][0]==="word"&&!c.test(d[0][1])&&(d[1][0]==="brackets"||d[1][0]==="(")}static fromTokens(d,g){let[[,,A,y]]=d,[m,x]=d.splice(0,2),w=new S({name:m[1]}),M=0,N=1,U=x;if(!h.test(w.name)&&!/^[a-zA-Z\-\.]+$/.test(w.name)){let bt=i(w.name);d.unshift(...bt,x),g.back(d);return}g.init(w,A,y),g.current=w,x[0]==="brackets"&&(N=x[1].match(/[(]/g).length-1);let Y=[];for(let bt of d)M{var{registerWalker:i}=na(),r=hf(),s=class extends r{constructor(a={}){super(a),this.type="interpolation",this.prefix=a.prefix||"",this.nodes||(this.nodes=[]);}static test(a,o){let{prefix:p}=o.options.interpolation,[h,c]=a;return a.length>1&&h[0]==="word"&&p===h[1]&&c[0]==="{"}static fromTokens(a,o){let[[,,p,h]]=a,[c]=a.splice(0,2),[,_]=c,v=new s({prefix:_}),u=[],S=!1,d,g="{";o.init(v,p,h),o.current=v;for(let y of a)S?u.push(y):(y[1]==="}"&&(S=!0),g+=y[1],d=y);S||o.unclosedBracket(c),v.params=g;let A=g.slice(1,-1);if(A.length){let{parse:y}=Wh(),{nodes:m}=y(A,o.options);for(let x of m)v.push(x);}o.end(d),o.back(u);}};i(s),e.exports=s;}),Am=ce((t,e)=>{var{registerWalker:i}=na(),r=on(),s=/^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)$/,a=/^(-?(?:[-A-Z_a-z]|[^\x00-\x7F]|\\[^\n\f\r])(?:[-\w]|[^\x00-\x7F]|\\[^\n\f\r])*|%)$/,o=new RegExp(`^${s.source.slice(1,-1)+a.source.slice(1,-1)}?$`),p=class extends r{constructor(h={}){super(h),this.type="numeric",this.unit=h.unit||"";}static fromTokens(h,c){c.fromFirst(h,p);let[[,_]]=h,[,v,u=""]=_.match(o),{lastNode:S}=c;S.unit=u,S.value=v;}static test(h){return o.test(h)}};i(p),e.exports=p;}),Cm=ce((t,e)=>{var{registerWalker:i}=na(),r=on(),s=["+","-","/","*","%","=","<=",">=","<",">"],a=new RegExp("([/|*}])"),o=/^[*/]\b/,p=class extends r{constructor(h){super(h),this.type="operator";}static get chars(){return s}static fromTokens(h,c){c.fromFirst(h,p);}static get regex(){return a}static test(h,c){let[_]=h,[,v]=_,{lastNode:u}=c;return u&&u.type==="func"&&o.test(v)}static tokenize(h,c){let[_,...v]=h,[,u,S,,d,g]=_,A=u.split(a).filter(x=>!!x),[,,,y]=_,m=A.map(x=>{let w=["word",x,S,y,d,g];return y+=x.length,w});c.back(m.concat(v));}};i(p),e.exports=p;}),Tm=ce(t=>{var e=t.single=function(r){return "'"+r.replace(/\\|'/g,function(s){return "\\"+s})+"'"},i=t.double=function(r){return '"'+r.replace(/\\|"/g,function(s){return "\\"+s})+'"'};t.quote=function(r){return /'/.test(r)?i(r):e(r)},t.unquote=function(r){var s=r[0],a=s==="'";return r.substring(1,r.length-1).replace(/\\\\/g,"\\").replace(a?/\\'/g:/\\"/g,s)};}),Mm=ce((t,e)=>{var{unquote:i}=Tm(),{registerWalker:r}=na(),s=on(),a=class extends s{constructor(o){super(o),this.type="quoted",o&&o.value&&(this.contents=i(o.value),[this.quote]=o.value);}static fromTokens(o,p){p.fromFirst(o,a);}};r(a),e.exports=a;}),Dm=ce((t,e)=>{var{registerWalker:i}=na(),r=on(),s=class extends r{constructor(a){super(a),this.type="unicodeRange";}static fromTokens(a,o){o.fromFirst(a,s);}static test(a){return /U\+(\d|\w)+(-\w+)?(\?+)?/.test(a)}};i(s),e.exports=s;}),Fm=ce((t,e)=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};}),Im=ce((t,e)=>{e.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");try{return new URL(i),!0}catch{return !1}};}),Lm=ce((t,e)=>{var i=Fm(),r=Im(),{registerWalker:s}=na(),a=on(),o=/^\\(.+)/,p=/^#(.+)/,h=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,c=Object.keys(i),_=class extends a{constructor(v){super(v),this.type="word",this.isColor=!1,this.isHex=!1,this.isUrl=!1,this.isVariable=!1;}static fromTokens(v,u){u.fromFirst(v,_);let{lastNode:S}=u,{value:d}=S;S.isColor=h.test(d)||c.includes(d.toLowerCase()),S.isHex=p.test(d),S.isUrl=d.startsWith("//")?r(`http:${d}`):r(d),S.isVariable=_.testVariable(v[0],u);}static testEscaped(v){let[u,S]=v,[d,g]=u;return d==="word"&&(o.test(g)||g==="\\"&&S&&!/^\s+$/.test(S[1]))}static testHex(v){let[u,S]=v;return u==="word"&&p.test(S)}static testVariable(v,u){let[S,d]=v,{prefixes:g}=u.options.variables,A=new RegExp(`^(${g.join("|")})`);return S==="word"&&A.test(d)}static testWord(v,u){let[S]=v;return _.testEscaped(v)||_.testHex(S)||_.testVariable(S,u)}};s(_),e.exports=_;}),Vm=ce((t,e)=>{var i=Pm(),r=Sm(),s=km(),a=wm(),o=Em(),p=Am(),h=Cm(),c=lf(),_=Mm(),v=Dm(),u=Lm(),S={ignoreUnknownWords:!1,interpolation:!1,parentNode:null,variables:{prefixes:["--"]}};e.exports=class extends i{constructor(d,g={}){super(d),this.lastNode=null,this.options=Object.assign({},S,g),this.parentNode=this.options.parentNode;}back(d){for(let g of d.reverse())this.tokenizer.back(g);}comment(d){super.comment(d);let g=s.testInline(d),A=this.lastNode;A.inline=g,Object.setPrototypeOf(A,s.prototype);}fromFirst(d,g){let[A]=d,[,y,m,x]=A,w=new g({value:y});this.init(w,m,x),this.current=w,this.end(A),this.back(d.slice(1));}init(d,g,A){super.init(d,g,A),this.lastNode=d;}other(d){let g=[],A=[],y=d,m=null,x=null;for(;y;)[m]=y,A.push(y),m==="("||m==="["?(x||(x=y),g.push(m==="("?")":"]")):m===g[g.length-1]&&(g.pop(),g.length===0&&(x=null)),y=this.tokenizer.nextToken();g.length>0&&this.unclosedBracket(x),this.unknownWord(A);}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case"comment":this.comment(d);break;case"at-word":this.atrule(d),Object.setPrototypeOf(this.lastNode,r.prototype),this.lastNode.type="atword";break;default:this.other(d);break}this.endFile();}unknownWord(d){let[g]=d,[A,y]=g;if(c.chars.includes(A))c.fromTokens(d,this);else if(A==="word"&&h.test(d,this))h.fromTokens(d,this);else if(a.test(d))a.fromTokens(d,this);else if(this.options.interpolation&&o.test(d,this))o.fromTokens(d,this);else if(A==="brackets")c.tokenizeBrackets(d,this);else if(A==="comma")c.fromTokens(d,this);else if(A==="operator")h.fromTokens(d,this);else if(A==="string")_.fromTokens(d,this);else if(A==="word")if(y===",")c.fromTokens(d,this);else if(y==="//")s.tokenizeNext(d,this);else if(s.testInline(g)){let{parentNode:m}=this;m&&m.type==="func"&&m.name==="url"?u.fromTokens(d,this):s.tokenizeInline(d,this);}else y.includes(",")?c.tokenizeCommas(d,this):u.testWord(d,this)?u.fromTokens(d,this):p.test(y)?p.fromTokens(d,this):v.test(y)?v.fromTokens(d,this):h.chars.includes(y)?h.fromTokens(d,this):/^[\w-]+$/.test(y)?u.fromTokens(d,this):h.regex.test(y)?h.tokenize(d,this):this.options.ignoreUnknownWords?u.fromTokens(d,this):super.unknownWord(d);else super.unknownWord(d);}};}),Wh=ce((t,e)=>{var i=ef(),r=Vm(),{stringify:s}=zn();e.exports={parse(a,o){let p=new i(a,o),h=new r(p,o);h.parse();let{root:c}=h,_=c.toString;function v(u){return _.bind(c)(u||e.exports.stringify)}return c.toString=v.bind(c),h.root},stringify:s,nodeToString(a){let o="";return e.exports.stringify(a,p=>{o+=p;}),o}};}),Rm=ce(t=>{var e=e||{};e.stringify=function(){var i={"visit_linear-gradient":function(r){return i.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return i.visit_gradient(r)},"visit_radial-gradient":function(r){return i.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return i.visit_gradient(r)},visit_gradient:function(r){var s=i.visit(r.orientation);return s&&(s+=", "),r.type+"("+s+i.visit(r.colorStops)+")"},visit_shape:function(r){var s=r.value,a=i.visit(r.at),o=i.visit(r.style);return o&&(s+=" "+o),a&&(s+=" at "+a),s},"visit_default-radial":function(r){var s="",a=i.visit(r.at);return a&&(s+=a),s},"visit_extent-keyword":function(r){var s=r.value,a=i.visit(r.at);return a&&(s+=" at "+a),s},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return i.visit(r.value.x)+" "+i.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return i.visit_color(r.value,r)},visit_hex:function(r){return i.visit_color("#"+r.value,r)},visit_rgb:function(r){return i.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return i.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,s){var a=r,o=i.visit(s.length);return o&&(a+=" "+o),a},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return "to "+r.value},visit_array:function(r){var s="",a=r.length;return r.forEach(function(o,p){s+=i.visit(o),p0&&s("Invalid input not EOF"),q}function o(){return M(p)}function p(){return h("linear-gradient",i.linearGradient,_)||h("repeating-linear-gradient",i.repeatingLinearGradient,_)||h("radial-gradient",i.radialGradient,S)||h("repeating-radial-gradient",i.repeatingRadialGradient,S)}function h(q,nt,Q){return c(nt,function(Ut){var zt=Q();return zt&&($(i.comma)||s("Missing comma before color stops")),{type:q,orientation:zt,colorStops:M(N)}})}function c(q,nt){var Q=$(q);if(Q){$(i.startCall)||s("Missing (");var Ut=nt(Q);return $(i.endCall)||s("Missing )"),Ut}}function _(){return v()||u()}function v(){return z("directional",i.sideOrCorner,1)}function u(){return z("angular",i.angleValue,1)}function S(){var q,nt=d(),Q;return nt&&(q=[],q.push(nt),Q=r,$(i.comma)&&(nt=d(),nt?q.push(nt):r=Q)),q}function d(){var q=g()||A();if(q)q.at=m();else {var nt=y();if(nt){q=nt;var Q=m();Q&&(q.at=Q);}else {var Ut=x();Ut&&(q={type:"default-radial",at:Ut});}}return q}function g(){var q=z("shape",/^(circle)/i,0);return q&&(q.style=Tt()||y()),q}function A(){var q=z("shape",/^(ellipse)/i,0);return q&&(q.style=It()||y()),q}function y(){return z("extent-keyword",i.extentKeywords,1)}function m(){if(z("position",/^at/,0)){var q=x();return q||s("Missing positioning value"),q}}function x(){var q=w();if(q.x||q.y)return {type:"position",value:q}}function w(){return {x:It(),y:It()}}function M(q){var nt=q(),Q=[];if(nt)for(Q.push(nt);$(i.comma);)nt=q(),nt?Q.push(nt):s("One extra comma");return Q}function N(){var q=U();return q||s("Expected color definition"),q.length=It(),q}function U(){return dt()||vt()||xt()||Y()}function Y(){return z("literal",i.literalColor,0)}function dt(){return z("hex",i.hexColor,1)}function xt(){return c(i.rgbColor,function(){return {type:"rgb",value:M(bt)}})}function vt(){return c(i.rgbaColor,function(){return {type:"rgba",value:M(bt)}})}function bt(){return $(i.number)[1]}function It(){return z("%",i.percentageValue,1)||ot()||Tt()}function ot(){return z("position-keyword",i.positionKeywords,1)}function Tt(){return z("px",i.pixelValue,1)||z("em",i.emValue,1)}function z(q,nt,Q){var Ut=$(nt);if(Ut)return {type:q,value:Ut[Q]}}function $(q){var nt,Q;return Q=/^[\n\r\t\s]+/.exec(r),Q&&E(Q[0].length),nt=q.exec(r),nt&&E(nt[0].length),nt}function E(q){r=r.substr(q);}return function(q){return r=q.toString(),a()}}(),t.parse=e.parse,t.stringify=e.stringify;}),Bi=Ds(mm(),1);Bi.default.stringify;Bi.default.fromJSON;Bi.default.plugin;Om=Bi.default.parse;Bi.default.list;Bi.default.document;Bi.default.comment;Bi.default.atRule;Bi.default.rule;Bi.default.decl;Bi.default.root;Bi.default.CssSyntaxError;Bi.default.Declaration;Bi.default.Container;Bi.default.Processor;Bi.default.Document;Bi.default.Comment;Bi.default.Warning;Bi.default.AtRule;Bi.default.Result;Bi.default.Input;Bi.default.Rule;Bi.default.Root;Bi.default.Node;Ch=function(t,e,i){let r={type:String(t)};return i==null&&(typeof e=="string"||Array.isArray(e))?i=e:Object.assign(r,e),Array.isArray(i)?r.children=i:i!=null&&(r.value=String(i)),r},Bm="root",zm="rule",Nm="declaration";jm={grad:.9,turn:360,rad:360/(2*Math.PI)},aa=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},fr=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},vs=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),t>i?i:t>e?t:e},pf=function(t){return (t=isFinite(t)?t%360:0)>0?t:t+360},Fp=function(t){return {r:vs(t.r,0,255),g:vs(t.g,0,255),b:vs(t.b,0,255),a:vs(t.a)}},Th=function(t){return {r:fr(t.r),g:fr(t.g),b:fr(t.b),a:fr(t.a,3)}},qm=/^#([0-9a-f]{3,8})$/i,yo=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},ff=function(t){var e=t.r,i=t.g,r=t.b,s=t.a,a=Math.max(e,i,r),o=a-Math.min(e,i,r),p=o?a===e?(i-r)/o:a===i?2+(r-e)/o:4+(e-i)/o:0;return {h:60*(p<0?p+6:p),s:a?o/a*100:0,v:a/255*100,a:s}},cf=function(t){var e=t.h,i=t.s,r=t.v,s=t.a;e=e/360*6,i/=100,r/=100;var a=Math.floor(e),o=r*(1-i),p=r*(1-(e-a)*i),h=r*(1-(1-e+a)*i),c=a%6;return {r:255*[r,p,o,o,h,r][c],g:255*[h,r,r,p,o,o][c],b:255*[o,o,h,r,r,p][c],a:s}},Ip=function(t){return {h:pf(t.h),s:vs(t.s,0,100),l:vs(t.l,0,100),a:vs(t.a)}},Lp=function(t){return {h:fr(t.h),s:fr(t.s),l:fr(t.l),a:fr(t.a,3)}},Vp=function(t){return cf((i=(e=t).s,{h:e.h,s:(i*=((r=e.l)<50?r:100-r)/100)>0?2*i/(r+i)*100:0,v:r+i,a:e.a}));var e,i,r;},Fn=function(t){return {h:(e=ff(t)).h,s:(s=(200-(i=e.s))*(r=e.v)/100)>0&&s<200?i*r/100/(s<=100?s:200-s)*100:0,l:s/2,a:e.a};var e,i,r,s;},$m=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hm=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wm=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Um=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ih={string:[[function(t){var e=qm.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?fr(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?fr(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Wm.exec(t)||Um.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Fp({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=$m.exec(t)||Hm.exec(t);if(!e)return null;var i,r,s=Ip({h:(i=e[1],r=e[2],r===void 0&&(r="deg"),Number(i)*(jm[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Vp(s)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,r=t.b,s=t.a,a=s===void 0?1:s;return aa(e)&&aa(i)&&aa(r)?Fp({r:Number(e),g:Number(i),b:Number(r),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,i=t.s,r=t.l,s=t.a,a=s===void 0?1:s;if(!aa(e)||!aa(i)||!aa(r))return null;var o=Ip({h:Number(e),s:Number(i),l:Number(r),a:Number(a)});return Vp(o)},"hsl"],[function(t){var e=t.h,i=t.s,r=t.v,s=t.a,a=s===void 0?1:s;if(!aa(e)||!aa(i)||!aa(r))return null;var o=function(p){return {h:pf(p.h),s:vs(p.s,0,100),v:vs(p.v,0,100),a:vs(p.a)}}({h:Number(e),s:Number(i),v:Number(r),a:Number(a)});return cf(o)},"hsv"]]},Rp=function(t,e){for(var i=0;i=.5},t.prototype.toHex=function(){return e=Th(this.rgba),i=e.r,r=e.g,s=e.b,o=(a=e.a)<1?yo(fr(255*a)):"","#"+yo(i)+yo(r)+yo(s)+o;var e,i,r,s,a,o;},t.prototype.toRgb=function(){return Th(this.rgba)},t.prototype.toRgbString=function(){return e=Th(this.rgba),i=e.r,r=e.g,s=e.b,(a=e.a)<1?"rgba("+i+", "+r+", "+s+", "+a+")":"rgb("+i+", "+r+", "+s+")";var e,i,r,s,a;},t.prototype.toHsl=function(){return Lp(Fn(this.rgba))},t.prototype.toHslString=function(){return e=Lp(Fn(this.rgba)),i=e.h,r=e.s,s=e.l,(a=e.a)<1?"hsla("+i+", "+r+"%, "+s+"%, "+a+")":"hsl("+i+", "+r+"%, "+s+"%)";var e,i,r,s,a;},t.prototype.toHsv=function(){return e=ff(this.rgba),{h:fr(e.h),s:fr(e.s),v:fr(e.v),a:fr(e.a,3)};var e;},t.prototype.invert=function(){return Yr({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e;},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Yr(Mh(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Yr(Mh(this.rgba,-e))},t.prototype.grayscale=function(){return Yr(Mh(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Yr(Op(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Yr(Op(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Yr({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):fr(this.rgba.a,3);var i;},t.prototype.hue=function(e){var i=Fn(this.rgba);return typeof e=="number"?Yr({h:e,s:i.s,l:i.l,a:i.a}):fr(i.h)},t.prototype.isEqual=function(e){return this.toHex()===Yr(e).toHex()},t}(),Yr=function(t){return t instanceof Lh?t:new Lh(t)},Bp=[],uf=function(t){t.forEach(function(e){Bp.indexOf(e)<0&&(e(Lh,Ih),Bp.push(e));});};bo={attribute:/\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu,id:/#(?[-\w\P{ASCII}]+)/gu,class:/\.(?[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,"pseudo-class":/:(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,universal:/(?:(?\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)/gu},Xm=new Set(["combinator","comma"]),Ym=new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),zp=/(?[\dn+-]+)\s+of\s+(?.+)/,Zm={"nth-child":zp,"nth-last-child":zp},Km=t=>{switch(t){case"pseudo-element":case"pseudo-class":return new RegExp(bo[t].source.replace("(?\xB6*)","(?.*)"),"gu");default:return bo[t]}};e0=/(['"])([^\\\n]+?)\1/g,i0=/\\./g;a0=Ds(Wh(),1),gf=function(t){if(t==null)return l0;if(typeof t=="string")return h0(t);if(typeof t=="object")return Array.isArray(t)?n0(t):o0(t);if(typeof t=="function")return Eo(t);throw new Error("Expected function, string, or object as test")};Vh=!0,xo=!1,p0="skip",f0=function(t,e,i,r){typeof e=="function"&&typeof i!="function"&&(r=i,i=e,e=null);let s=gf(e),a=r?-1:1;o(t,void 0,[])();function o(p,h,c){let _=p&&typeof p=="object"?p:{};if(typeof _.type=="string"){let u=typeof _.tagName=="string"?_.tagName:typeof _.name=="string"?_.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(u?"<"+u+">":""))+")"});}return v;function v(){let u=[],S,d,g;if((!e||s(p,h,c[c.length-1]||null))&&(u=c0(i(p,c)),u[0]===xo))return u;if(p.children&&u[0]!==p0)for(d=(r?p.children.length:-1)+a,g=c.concat(p);d>-1&&d{try{if(!t.startsWith("linear-gradient"))return !1;let e=(0,Uh.parse)(t);return !(e.length===0||e[0]?.type!=="linear-gradient")}catch{return !1}},vf=t=>{try{if(!t.startsWith("radial-gradient"))return !1;let e=(0,Uh.parse)(t);return !(e.length===0||e[0]?.type!=="radial-gradient")}catch{return !1}},Np=t=>{let e=[],i=[];if(!(yf(t)||vf(t)))return [];let r=(0, Uh.parse)(t)[0];return r?.colorStops.forEach((s,a)=>{let o=[],p=0;if(s.type==="hex"||s.type==="literal"){let c=Yr(s.value);o.push(parseFloat((c.rgba.r/255).toFixed(2)),parseFloat((c.rgba.g/255).toFixed(2)),parseFloat((c.rgba.b/255).toFixed(2))),p=c.rgba.a;}else if(["rgb","rgba"].includes(s.type)){let c=Yr({r:Number(s.value[0]),g:Number(s.value[1]),b:Number(s.value[2]),a:s.value[3]?Number(s.value[3]):1});o.push(parseFloat((c.rgba.r/255).toFixed(2)),parseFloat((c.rgba.g/255).toFixed(2)),parseFloat((c.rgba.b/255).toFixed(2))),p=c.rgba.a;}let h=parseFloat((a/(r.colorStops.length-1||1)).toFixed(2));s.length?.value&&Number(s.length.value)>0&&(h=parseFloat((Number(s.length.value)/100).toFixed(2))),e.push(h,...o),i.push(h,p);}),e.push(...i),e},Gp=(t,e,i)=>{if(!["shape-gradient-fill","shape-gradient-stroke"].includes(t.title))return;let r=e.length/6;Nr(t,"attribute",s=>{s.title==="gradient-type"&&s.children[0]?s.children[0].value=i==="linear"?1:2:s.title==="count"&&s.children[0]&&(s.children[0].value=r);}),Nr(t,"collection",s=>{if(s.title==="static-values"&&typeof s.key=="object"&&s.key.value==="k"&&s.children[0]){let a=s.children[0];a.children=e.map(o=>({type:"primitive",valueType:"number",value:o}));}});};uf([df]);vo=(t,e,i,r=!1)=>{let s=new Set,a=Array.isArray(t)?t:[t];for(let o of a)Nr(o,"attribute",(p,h,c)=>{p.title===i&&p.children[0]?.value===e&&c&&c.type!=="root"&&(r?c===o&&s.add(c):s.add(c));});return Array.from(s)},u0=(t,e)=>{let i=[];for(let r of e){let s=[],a=mf(r);s0(a,(o,p)=>{let h=s.length>0?s:t;if(o.type==="id")s=vo(h,o.name,"layer-xml-id",p?.type==="compound");else if(o.type==="class")s=vo(h,o.name,"css-class",p?.type==="compound");else if(o.type==="type"){let c="",_=null;o.name==="FillShape"?(_="shape-type",c="fl"):o.name==="StrokeShape"?(_="shape-type",c="st"):o.name==="GradientFillShape"?(_="shape-type",c="gf"):o.name==="GradientStrokeShape"?(_="shape-type",c="gs"):o.name==="ShapeLayer"?(_="layer-type",c=4):o.name==="SolidColorLayer"?(_="layer-type",c=1):o.name==="ImageLayer"&&(_="layer-type",c=2),_&&c&&(s=vo(h,c,_));}else if(o.type==="attribute"){let c=null,_=o.value;o.name==="id"?c="layer-xml-id":o.name==="class"?c="css-class":o.name==="name"?c="name":o.name==="shape-type"?c="shape-type":o.name==="layer-type"&&(c="layer-type",_=Number(o.value)),c&&_&&["number","string"].includes(typeof _)&&(s=vo(h,_,c,p?.type==="compound"));}}),i.push(...s);}return Array.from(new Set(i))},Fh=t=>t.includes("-color"),d0=t=>t==="nonzero"||t==="evenodd",m0=t=>t.endsWith("%")?parseFloat(t):parseFloat(t)*100,g0=t=>t==="nonzero"?1:2,y0=t=>{try{new URL(t);}catch{return !1}return !0},v0=t=>{let e=(0, a0.parse)(t).nodes;if(e.length===1){let i=e[0];if(i&&i.type==="func"&&i.name==="url"){let r=i.nodes;if(r.length===1){let s=r[0];if(s&&s.type==="quoted")return s.contents}}}return ""},b0=t=>{let e={};for(let i of t)if(Fh(i.property)&&Yr(i.value).isValid()){let r=Yr(i.value).rgba,s=[r.r/255,r.g/255,r.b/255,r.a];switch(i.property){case"fill-color":e["fill-color"]=s;break;case"stroke-color":e["stroke-color"]=s;break}}else if(Fh(i.property)&&yf(i.value)){let r=Np(i.value);switch(i.property){case"fill-color":e["linear-gradient-fill-color"]=r;break;case"stroke-color":e["linear-gradient-stroke-color"]=r;break}}else if(Fh(i.property)&&vf(i.value)){let r=Np(i.value);switch(i.property){case"fill-color":e["radial-gradient-fill-color"]=r;break;case"stroke-color":e["radial-gradient-stroke-color"]=r;break}}else if(i.property==="stroke-width")e["stroke-width"]=Number(i.value);else if(i.property==="fill-rule"&&d0(i.value))e["fill-rule"]=g0(i.value);else if(i.property==="opacity"){let r=m0(i.value);if(Number.isNaN(r))continue;r<0?e.opacity=0:r>100?e.opacity=100:e.opacity=r;}else if(i.property==="visibility")e.hidden=i.value==="hidden";else if(i.property==="src"){let r=v0(i.value);y0(r)&&(e.src=r);}return e},x0=(t,e,i)=>{for(let r in e)switch(r){case"fill-color":let s=e[r];t.title==="shape-fill"?Array.isArray(s)&&Nr(t,"array",a=>a.title==="color-rgba-children"&&a.children.length===4?(a.children=a.children.map((o,p)=>({...o,value:s[p]})),xo):Vh):t.title==="layer-solid-color"&&Nr(t,"attribute",a=>{if(a.title==="hex-color"&&a.children[0]?.value&&s?.length===4){let o=Yr({r:s[0]*255,g:s[1]*255,b:s[2]*255,a:s[3]}).toHex();a.children[0].value=o;}});break;case"stroke-color":if(t.title==="shape-stroke"){let a=e[r];Array.isArray(a)&&Nr(t,"array",o=>o.title==="static-values-children"&&o.children.length===4?(o.children=o.children.map((p,h)=>({...p,value:a[h]})),xo):Vh);}break;case"stroke-width":(t.title==="shape-stroke"||t.title==="shape-gradient-stroke")&&Nr(t,"element",a=>{a.title==="stroke-width"&&Nr(a,"attribute",(o,p,h)=>{o.title==="static-value"&&o.children[0]?.value&&o.children[0].valueType==="number"&&h?.title==="animated-value-static"&&(o.children[0].value=e[r]);});});break;case"fill-rule":["shape-fill","shape-gradient-fill"].includes(t.title)&&Nr(t,"attribute",a=>{a.title==="fill-rule-value"&&a.children[0]?.value&&(a.children[0].value=e[r]);});break;case"opacity":["shape-stroke","shape-fill","shape-gradient-fill","shape-gradient-stroke"].includes(t.title)&&Nr(t,"element",a=>{["stroke-opacity","opacity"].includes(a.title)&&Nr(a,"attribute",(o,p,h)=>{o.title==="static-value"&&o.children[0]?.value&&o.children[0].valueType==="number"&&h?.title==="animated-value-static"&&(o.children[0].value=e[r]);});});break;case"hidden":(t.title.includes("shape")||t.title.includes("layer"))&&Nr(t,"attribute",a=>{a.title==="hidden"&&a.children[0]&&(a.children[0].value=e[r]);});break;case"linear-gradient-fill-color":case"linear-gradient-stroke-color":Gp(t,e[r],"linear");break;case"radial-gradient-fill-color":case"radial-gradient-stroke-color":Gp(t,e[r],"radial");break;case"src":if(t.title==="layer-image"){let a=t.children.find(o=>o.title==="image-id");if(a?.type==="attribute"){let o=a.children[0]?.value;Nr(i,"object",p=>{p.title==="asset-image"&&p.children.some(h=>h.title==="id"&&h.children[0]?.type==="primitive"&&h.children[0].value===o)&&Nr(p,"attribute",h=>{h.title==="embedded"&&h.children[0]?h.children[0].value=0:h.title==="path"&&h.children[0]?h.children[0].value="":h.title==="filename"&&h.children[0]&&(h.children[0].value=e[r]);});});}}break}},_0=(t={lss:""})=>async e=>{let i=Gm(t.lss);Nr(i,"rule",r=>{let s=u0(e,r.selectors),a=b0(r.children);for(let o of s)x0(o,a,e);});},P0=_0;});async function _f(t,e){let[{relottie:i},{default:r}]=await Promise.all([Promise.resolve().then(()=>(Dp(),Mp)),Promise.resolve().then(()=>(xf(),bf))]),s=await i().use(r,{lss:e}).process(JSON.stringify(t));return JSON.parse(s.value)}var Ao=Ir(()=>{});function To(){throw new Error("Cycle detected")}function Xh(){if(hn>1)hn--;else {for(var t,e=!1;Nn!==void 0;){var i=Nn;for(Nn=void 0,Jh++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&Sf(i))try{i.c();}catch(s){e||(t=s,e=!0);}i=r;}}if(Jh=0,hn--,e)throw t}}function Pf(t){if(Wi!==void 0){var e=t.n;if(e===void 0||e.t!==Wi)return e={i:0,S:t,p:Wi.s,n:void 0,t:Wi,e:void 0,x:void 0,r:e},Wi.s!==void 0&&(Wi.s.n=e),Wi.s=e,t.n=e,32&Wi.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=Wi.s,e.n=void 0,Wi.s.n=e,Wi.s=e),e}}function Zr(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0;}function S0(t){return new Zr(t)}function Sf(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return !0;return !1}function kf(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function wf(t){for(var e=t.s,i=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r;}t.s=i;}function Wa(t){Zr.call(this,void 0),this.x=t,this.s=void 0,this.g=Co-1,this.f=4;}function Ef(t){var e=t.u;if(t.u=void 0,typeof e=="function"){hn++;var i=Wi;Wi=void 0;try{e();}catch(r){throw t.f&=-2,t.f|=8,Yh(t),r}finally{Wi=i,Xh();}}}function Yh(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Ef(t);}function k0(t){if(Wi!==this)throw new Error("Out-of-order effect");wf(this),Wi=t,this.f&=-2,8&this.f&&Yh(this),Xh();}function Gn(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32;}function w0(t){var e=new Gn(t);try{e.c();}catch(i){throw e.d(),i}return e.d.bind(e)}var Wi,Nn,hn,Jh,Co,Af,Mo=Ir(()=>{Wi=void 0,Nn=void 0,hn=0,Jh=0,Co=0;Zr.prototype.h=function(){return !0};Zr.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t);};Zr.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i);}};Zr.prototype.subscribe=function(t){var e=this;return w0(function(){var i=e.value,r=32&this.f;this.f&=-33;try{t(i);}finally{this.f|=r;}})};Zr.prototype.valueOf=function(){return this.value};Zr.prototype.toString=function(){return this.value+""};Zr.prototype.toJSON=function(){return this.value};Zr.prototype.peek=function(){return this.v};Object.defineProperty(Zr.prototype,"value",{get:function(){var t=Pf(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(Wi instanceof Wa&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Jh>100&&To(),this.v=t,this.i++,Co++,hn++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N();}finally{Xh();}}}});(Wa.prototype=new Zr).h=function(){if(this.f&=-3,1&this.f)return !1;if((36&this.f)==32||(this.f&=-5,this.g===Co))return !0;if(this.g=Co,this.f|=1,this.i>0&&!Sf(this))return this.f&=-2,!0;var t=Wi;try{kf(this),Wi=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++);}catch(i){this.v=i,this.f|=16,this.i++;}return Wi=t,wf(this),this.f&=-2,!0};Wa.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e);}Zr.prototype.S.call(this,t);};Wa.prototype.U=function(t){if(this.t!==void 0&&(Zr.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e);}};Wa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N();}};Wa.prototype.peek=function(){if(this.h()||To(),16&this.f)throw this.v;return this.v};Object.defineProperty(Wa.prototype,"value",{get:function(){1&this.f&&To();var t=Pf(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});Gn.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e);}finally{t();}};Gn.prototype.S=function(){1&this.f&&To(),this.f|=1,this.f&=-9,Ef(this),kf(this),hn++;var t=Wi;return Wi=this,k0.bind(this,t)};Gn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Nn,Nn=this);};Gn.prototype.d=function(){this.f|=8,1&this.f||Yh(this);};Af=class{_state;_prevState;constructor(t){this._prevState=t,this._state=S0(t);}setState(t){this._prevState=this._state.value,this._state.value=t;}subscribe(t){return this._state.subscribe(e=>t(e,this._prevState))}};});var Qf={};ia(Qf,{DotLottieStateMachineManager:()=>_g});function ol(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function li(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var r=i.call(t),s,a=[],o;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)a.push(s.value);}catch(p){o={error:p};}finally{try{s&&!s.done&&(i=r.return)&&i.call(r);}finally{if(o)throw o.error}}return a}function Di(t,e,i){if(i||arguments.length===2)for(var r=0,s=e.length,a;r"u"||typeof r=="string"||gn(r)?{target:r,event:t}:_e(_e({},r),{event:t})});return i}function j0(t){if(!(t===void 0||t===D0))return Is(t)}function $f(t,e,i,r,s){var a=t.options.guards,o={state:s,cond:e,_event:r};if(e.type===el)return (a?.[e.name]||e.predicate)(i,r.data,o);var p=a?.[e.type];if(!p)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return p(i,r.data,o)}function Hf(t){return typeof t=="string"?{type:t}:t}function Oo(t,e,i){var r=function(){},s=typeof t=="object",a=s?t:null;return {next:((s?t.next:t)||r).bind(a),error:((s?t.error:e)||r).bind(a),complete:((s?t.complete:i)||r).bind(a)}}function Fo(t,e){return "".concat(t,":invocation[").concat(e,"]")}function rl(t){return (t.type===Yn||t.type===$o&&t.to===mn.Internal)&&typeof t.delay!="number"}function sl(t,e){return e&&e[t]||void 0}function Jn(t,e){var i;if(di(t)||typeof t=="number"){var r=sl(t,e);fi(r)?i={type:t,exec:r}:r?i=r:i={type:t,exec:void 0};}else if(fi(t))i={type:t.name||t.toString(),exec:t};else {var r=sl(t.type,e);if(fi(r))i=_e(_e({},t),{exec:r});else if(r){var s=r.type||t.type;i=_e(_e(_e({},r),t),{type:s});}else i=t;}return i}function pl(t){var e=Jn(t);return _e(_e({id:di(t)?t:e.id},e),{type:e.type})}function q0(t,e){return {type:Yn,event:typeof t=="function"?t:Ho(t),delay:e?e.delay:void 0,id:e?.id}}function $0(t,e,i,r){var s={_event:i},a=Sr(fi(t.event)?t.event(e,i.data,s):t.event),o;if(di(t.delay)){var p=r&&r[t.delay];o=fi(p)?p(e,i.data,s):p;}else o=fi(t.delay)?t.delay(e,i.data,s):t.delay;return _e(_e({},t),{type:Yn,_event:a,delay:o})}function H0(t,e){return {to:e?e.to:void 0,type:$o,event:fi(t)?t:Ho(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:fi(t)?t.name:Nf(t)}}function W0(t,e,i,r){var s={_event:i},a=Sr(fi(t.event)?t.event(e,i.data,s):t.event),o;if(di(t.delay)){var p=r&&r[t.delay];o=fi(p)?p(e,i.data,s):p;}else o=fi(t.delay)?t.delay(e,i.data,s):t.delay;var h=fi(t.to)?t.to(e,i.data,s):t.to;return _e(_e({},t),{to:h,_event:a,event:a.data,delay:o})}function X0(t){var e=pl(t);return {type:Si.Start,activity:e,exec:void 0}}function Y0(t){var e=fi(t)?t:pl(t);return {type:Si.Stop,activity:e,exec:void 0}}function Z0(t,e,i){var r=fi(t.activity)?t.activity(e,i.data):t.activity,s=typeof r=="string"?{id:r}:r,a={type:Si.Stop,activity:s};return a}function K0(t,e){var i=e?"#".concat(e):"";return "".concat(Si.After,"(").concat(t,")").concat(i)}function Io(t,e){var i="".concat(Si.DoneState,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function Bo(t,e){var i="".concat(Si.DoneInvoke,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function $n(t,e){var i="".concat(Si.ErrorPlatform,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function jo(t,e,i,r,s,a,o){o===void 0&&(o=!1);var p=o?[]:Q0(s),h=p.length?Ff(i,r,p,e):i,c=o?[i]:void 0,_=[];function v(d,g){var A;switch(g.type){case Yn:{var y=$0(g,h,r,t.options.delays);return a&&typeof y.delay=="number"&&a(y,h,r),y}case $o:var m=W0(g,h,r,t.options.delays);return a&&m.to!==mn.Internal&&(d==="entry"?_.push(m):a(m,h,r)),m;case Of:{var x=U0(g,h,r);return a?.(x,h,r),x}case T0:{var w=g,M=(A=w.conds.find(function(z){var $=qf(z.cond,t.options.guards);return !$||$f(t,$,h,r,a?void 0:e)}))===null||A===void 0?void 0:A.actions;if(!M)return [];var N=li(jo(t,e,h,r,[{type:d,actions:ka(Is(M),t.options.actions)}],a,o),2),U=N[0],Y=N[1];return h=Y,c?.push(h),U}case M0:{var M=g.get(h,r.data);if(!M)return [];var dt=li(jo(t,e,h,r,[{type:d,actions:ka(Is(M),t.options.actions)}],a,o),2),xt=dt[0],vt=dt[1];return h=vt,c?.push(h),xt}case hl:{var x=Z0(g,h,r);return a?.(x,i,r),x}case Rf:{h=Ff(h,r,[g],a?void 0:e),c?.push(h);break}default:var bt=Jn(g,t.options.actions),It=bt.exec;if(a)a(bt,h,r);else if(It&&c){var ot=c.length-1,Tt=_e(_e({},bt),{exec:function(z){for(var $=[],E=1;E0;){var c=s.shift();i=t.transition(i,c,h),r.forEach(function(_){return _.next(i)});}a=!1;}},p=rg({id:e.id,send:function(c){s.push(c),o();},getSnapshot:function(){return i},subscribe:function(c,_,v){var u=Oo(c,_,v);return r.add(u),u.next(i),{unsubscribe:function(){r.delete(u);}}}}),h={parent:e.parent,self:p,id:e.id||"anonymous",observers:r};return i=t.start?t.start(h):i,p}function Kf(t,e){var i=new mg(t,e);return i}function gg(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function Lo(t){return _e(_e({type:tl},t),{toJSON:function(){t.onDone,t.onError;var e=ol(t,["onDone","onError"]);return _e(_e({},e),{type:tl,src:gg(t.src)})}})}function bg(t,e){return new vg(t,e)}var _e,Si,mn,Qh,hl,Yn,$o,Vf,E0,Rf,Of,A0,tl,Cf,C0,Bf,T0,M0,zf,Tf,el,D0,Do,I0,z0,Sa,dn,ka,U0,J0,Q0,cn,qo,Ws,lg,Lf,Zh,pg,jn,dg,cr,mg,Vo,nl,Kh,pn,fn,yg,vg,un,xg,_g,tc=Ir(()=>{cl();fo();Wo();Ao();Mo();en();Fs();_e=function(){return _e=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0});if(!g)return this.next(i,r);var A=Ni(Object.keys(o).map(function(y){return o[y].configuration}));return {transitions:d,exitSet:Ni(S.map(function(y){return y.exitSet})),configuration:A,source:i,actions:Ni(Object.keys(o).map(function(y){return o[y].actions}))}},t.prototype._transition=function(e,i,r){return di(e)?this.transitionLeafNode(e,i,r):Object.keys(e).length===1?this.transitionCompoundNode(e,i,r):this.transitionParallelNode(e,i,r)},t.prototype.getTransitionData=function(e,i){return this._transition(e.value,e,Sr(i))},t.prototype.next=function(e,i){var r,s,a=this,o=i.name,p=[],h=[],c;try{for(var _=ii(this.getCandidates(o)),v=_.next();!v.done;v=_.next()){var u=v.value,S=u.cond,d=u.in,g=e.context,A=d?di(d)&&fn(d)?e.matches(Un(this.getStateNodeById(d).path,this.delimiter)):ll(Un(d,this.delimiter),I0(this.path.slice(0,-2))(e.value)):!0,y=!1;try{y=!S||$f(this.machine,S,g,i,e);}catch(w){throw new Error("Unable to evaluate guard '".concat(S.name||S.type,"' in transition for event '").concat(o,"' in state node '").concat(this.id,`': `).concat(w.message))}if(y&&A){u.target!==void 0&&(h=u.target),p.push.apply(p,Di([],li(u.actions),!1)),c=u;break}}}catch(w){r={error:w};}finally{try{v&&!v.done&&(s=_.return)&&s.call(_);}finally{if(r)throw r.error}}if(c){if(!h.length)return {transitions:[c],exitSet:[],configuration:e.value?[this]:[],source:e,actions:p};var m=Ni(h.map(function(w){return a.getRelativeStateNodes(w,e.historyValue)})),x=!!c.internal;return {transitions:[c],exitSet:x?[]:Ni(h.map(function(w){return a.getPotentiallyReenteringNodes(w)})),configuration:m,source:e,actions:p}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order0,S=u?e.configuration:i?i.configuration:[],d=zo(S,this),g=u?sg(this.machine,v):void 0,A=i?i.historyValue?i.historyValue:e.source?this.machine.historyValue(i.value):void 0:void 0,y=this.getActions(new Set(S),d,e,r,a,i,s),m=i?_e({},i.activities):{};try{for(var x=ii(y),w=x.next();!w.done;w=x.next()){var M=w.value;try{for(var N=(h=void 0,ii(M.actions)),U=N.next();!U.done;U=N.next()){var Y=U.value;Y.type===Qh?m[Y.activity.id||Y.activity.type]=Y:Y.type===hl&&(m[Y.activity.id||Y.activity.type]=!1);}}catch(qt){h={error:qt};}finally{try{U&&!U.done&&(c=N.return)&&c.call(N);}finally{if(h)throw h.error}}}}catch(qt){o={error:qt};}finally{try{w&&!w.done&&(p=x.return)&&p.call(x);}finally{if(o)throw o.error}}var dt=li(jo(this,i,r,a,y,s,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),xt=dt[0],vt=dt[1],bt=li(O0(xt,rl),2),It=bt[0],ot=bt[1],Tt=xt.filter(function(qt){var Gt;return qt.type===Qh&&((Gt=qt.activity)===null||Gt===void 0?void 0:Gt.type)===tl}),z=Tt.reduce(function(qt,Gt){return qt[Gt.activity.id]=tg(Gt.activity,_.machine,vt,a),qt},i?_e({},i.children):{}),$=new Ws({value:g||i.value,context:vt,_event:a,_sessionid:i?i._sessionid:null,historyValue:g?A?B0(A,g):void 0:i?i.historyValue:void 0,history:!g||e.source?i:void 0,actions:g?ot:[],activities:g?m:i?i.activities:{},events:[],configuration:S,transitions:e.transitions,children:z,done:d,tags:If(S),machine:this}),E=r!==vt;$.changed=a.name===Bf||E;var q=$.history;q&&delete q.history;var nt=!d&&(this._transient||v.some(function(qt){return qt._transient}));if(!u&&(!nt||a.name===Vo))return $;var Q=$;if(!d)for(nt&&(Q=this.resolveRaisedTransition(Q,{type:E0},a,s));It.length;){var Ut=It.shift();Q=this.resolveRaisedTransition(Q,Ut._event,a,s);}var zt=Q.changed||(q?!!Q.actions.length||E||typeof q.value!=typeof Q.value||!Zf(Q.value,q.value):void 0);return Q.changed=zt,Q.history=q,Q},t.prototype.getStateNode=function(e){if(fn(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var i=this.states[e];if(!i)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return i},t.prototype.getStateNodeById=function(e){var i=fn(e)?e.slice(nl.length):e;if(i===this.id)return this;var r=this.machine.idMap[i];if(!r)throw new Error("Child state node '#".concat(i,"' does not exist on machine '").concat(this.id,"'"));return r},t.prototype.getStateNodeByPath=function(e){if(typeof e=="string"&&fn(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var i=il(e,this.delimiter).slice(),r=this;i.length;){var s=i.shift();if(!s.length)break;r=r.getStateNode(s);}return r},t.prototype.resolve=function(e){var i,r=this;if(!e)return this.initialStateValue||pn;switch(this.type){case"parallel":return qn(this.initialStateValue,function(a,o){return a?r.getStateNode(o).resolve(e[o]||a):pn});case"compound":if(di(e)){var s=this.getStateNode(e);return s.type==="parallel"||s.type==="compound"?(i={},i[e]=s.initialStateValue,i):e}return Object.keys(e).length?qn(e,function(a,o){return a?r.getStateNode(o).resolve(a):pn}):this.initialStateValue||{};default:return e||pn}},t.prototype.getResolvedPath=function(e){if(fn(e)){var i=this.machine.idMap[e.slice(nl.length)];if(!i)throw new Error("Unable to find state node '".concat(e,"'"));return i.path}return il(e,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var i;if(this.type==="parallel")i=Mf(this.states,function(r){return r.initialStateValue||pn},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));i=qo(this.states[this.initial])?this.initial:(e={},e[this.initial]=this.states[this.initial].initialStateValue,e);}else i={};return this.__cache.initialStateValue=i,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(e,i){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,i??this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var e;if(this.type==="history"){var i=this.config;di(i.target)?e=fn(i.target)?No(this.machine.getStateNodeById(i.target).path.slice(this.path.length-1)):i.target:e=i.target;}return e},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(e,i,r){return r===void 0&&(r=!0),r?e.type==="history"?e.resolveHistory(i):e.initialStateNodes:[e]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var e=this;if(qo(this))return [this];if(this.type==="compound"&&!this.initial)return [this];var i=Ro(this.initialStateValue);return Ni(i.map(function(r){return e.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(e){if(!e.length)return [this];var i=li(e),r=i[0],s=i.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var a=this.getStateNode(r);if(a.type==="history")return a.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(s)},t.prototype.historyValue=function(e){if(Object.keys(this.states).length)return {current:e||this.initialStateValue,states:Mf(this.states,function(i,r){if(!e)return i.historyValue();var s=di(e)?void 0:e[r];return i.historyValue(s||i.initialStateValue)},function(i){return !i.history})}},t.prototype.resolveHistory=function(e){var i=this;if(this.type!=="history")return [this];var r=this.parent;if(!e){var s=this.target;return s?Ni(Ro(s).map(function(o){return r.getFromRelativePath(o)})):r.initialStateNodes}var a=L0(r.path,"states")(e).current;return di(a)?[r.getStateNode(a)]:Ni(Ro(a).map(function(o){return i.history==="deep"?r.getFromRelativePath(o):[r.states[o[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var e=this,i=Ni(Object.keys(this.states).map(function(r){return e.states[r].stateIds}));return [this.id].concat(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var e,i,r,s;if(this.__cache.events)return this.__cache.events;var a=this.states,o=new Set(this.ownEvents);if(a)try{for(var p=ii(Object.keys(a)),h=p.next();!h.done;h=p.next()){var c=h.value,_=a[c];if(_.states)try{for(var v=(r=void 0,ii(_.events)),u=v.next();!u.done;u=v.next()){var S=u.value;o.add("".concat(S));}}catch(d){r={error:d};}finally{try{u&&!u.done&&(s=v.return)&&s.call(v);}finally{if(r)throw r.error}}}}catch(d){e={error:d};}finally{try{h&&!h.done&&(i=p.return)&&i.call(p);}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(i){return !(!i.target&&!i.actions.length&&i.internal)}).map(function(i){return i.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(e){var i=this;if(e!==void 0)return e.map(function(r){if(!di(r))return r;var s=r[0]===i.delimiter;if(s&&!i.parent)return i.getStateNodeByPath(r.slice(1));var a=s?i.key+r:r;if(i.parent)try{var o=i.parent.getStateNodeByPath(a);return o}catch(p){throw new Error("Invalid transition definition for state node '".concat(i.id,`': `).concat(p.message))}else return i.getStateNodeByPath(a)})},t.prototype.formatTransition=function(e){var i=this,r=j0(e.target),s="internal"in e?e.internal:r?r.some(function(h){return di(h)&&h[0]===i.delimiter}):!0,a=this.machine.options.guards,o=this.resolveTarget(r),p=_e(_e({},e),{actions:ka(Is(e.actions)),cond:qf(e.cond,a),target:o,source:this,internal:s,eventType:e.event,toJSON:function(){return _e(_e({},p),{target:p.target?p.target.map(function(h){return "#".concat(h.id)}):void 0,source:"#".concat(i.id)})}});return p},t.prototype.formatTransitions=function(){var e,i,r=this,s;if(!this.config.on)s=[];else if(Array.isArray(this.config.on))s=this.config.on;else {var a=this.config.on,o=Kh,p=a[o],h=p===void 0?[]:p,c=ol(a,[typeof o=="symbol"?o:o+""]);s=Ni(Object.keys(c).map(function(m){var x=ln(m,c[m]);return x}).concat(ln(Kh,h)));}var _=this.config.always?ln("",this.config.always):[],v=this.config.onDone?ln(String(Io(this.id)),this.config.onDone):[],u=Ni(this.invoke.map(function(m){var x=[];return m.onDone&&x.push.apply(x,Di([],li(ln(String(Bo(m.id)),m.onDone)),!1)),m.onError&&x.push.apply(x,Di([],li(ln(String($n(m.id)),m.onError)),!1)),x})),S=this.after,d=Ni(Di(Di(Di(Di([],li(v),!1),li(u),!1),li(s),!1),li(_),!1).map(function(m){return Is(m).map(function(x){return r.formatTransition(x)})}));try{for(var g=ii(S),A=g.next();!A.done;A=g.next()){var y=A.value;d.push(y);}}catch(m){e={error:m};}finally{try{A&&!A.done&&(i=g.return)&&i.call(g);}finally{if(e)throw e.error}}return d},t}();un={click:"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",complete:"onComplete",after:"onAfter",enter:"onEnter",show:"onShow"};Object.values(un);xg=Object.keys(un),_g=class{activeStateId="";_service;_domListeners=new Map;_domElement;_playerListeners=new Map;_player;_machineSchemas=new Map;_onShowPrevValue=0;constructor(t,e){this._player=e,this._machineSchemas=this._transformToXStateSchema(t),this._domElement=e.container;}start(t){this.stop();let e=this._machineSchemas.get(t);if(typeof e>"u")throw Ze(`invalid state machine id ${t}`);this._service=Kf(bg(e)),this._addEventListeners(),this._service.start();}stop(){this._removeEventListeners(),this._service?.stop(),this._player.stop();}_removeEventListeners(){this._requiresDomElement();for(let[t,e]of this._domListeners)t==="visibilityChange"&&this._player.stopPlayOnShow(),this._domElement?.removeEventListener(t,e),this._domListeners.delete(t);for(let[t,e]of this._playerListeners)this._player.removeEventListener(t,e),this._playerListeners.delete(t);}_addEventListeners(){this._requiresDomElement();let t=i=>{this._service.send({type:i});},e=i=>{function r(){t(i);}return r};this._service.subscribe(i=>{if(typeof i.changed>"u"||i.changed){this._removeEventListeners();for(let r of i.nextEvents)if(xg.filter(s=>s!=="complete"&&s!=="show").includes(r)){let s=e(r);this._domListeners.set(r,s),this._domElement?.addEventListener(r,s,{once:!0});}else if(r==="complete"){let s=e(r);this._player.addEventListener(r,s),this._playerListeners.set(r,s);}else if(r==="show"){let s=e(r);this._player.addIntersectionObserver({callbackOnIntersect:a=>{a>0&&(a!==100&&this._onShowPrevValue!==a&&s(),this._onShowPrevValue=a);},threshold:[]}),this._domListeners.set("visibilityChange",s);}}});}subscribe(t){throw Ze(t.toString())}_transformToXStateSchema(t){let e=new Map;for(let i of t){let r={},s={};if(s.id=i.descriptor.id,typeof i.descriptor.initial<"u"&&(s.initial=i.descriptor.initial),typeof i<"u"){let a=i.states;for(let o in a)if(typeof a[o]<"u"&&a[o]){let p=a[o],h=p.playbackSettings,c=Object.keys(p).filter(u=>u.startsWith("on")),_={},v={};for(let u of c)if(typeof p[u]<"u"){let S=p[u];if(u===un.after){let d=S;v[d.ms]={target:S?.state??""};}else u===un.enter?_[so(un,u)]={target:S?.state??""}:_[so(un,u)]={target:S?.state??""};}r[o]={entry:()=>{!this._player.getAnimationInstance()||p.animationId&&p.animationId!==this._player.currentAnimationId?this._player.play(p.animationId,()=>({...Gr,...h})).then(()=>{this._updatePlaybackSettings(h);}).catch(u=>{qs(`State machine error: ${u.message}`);}):this._updatePlaybackSettings(h);},exit:()=>{typeof h.segments<"u"&&this._player.resetSegments(!1),typeof h.playOnScroll<"u"&&this._player.stopPlayOnScroll();},on:_,after:v,meta:h};}}s.states=r,e.set(s.id,s);}return e}_handlePlaySegments(t){if(typeof t.segments=="string")this._player.goToAndPlay(t.segments,!0);else {let[e,i]=t.segments,r=e;e!==0&&e===i&&(r=e-1),e===0&&e===i?this._player.goToAndPlay(e,!0):this._player.playSegments([r,i],!0);}}_handlePlayOnScroll(t){let e=t.playOnScroll;if(t.segments&&typeof t.segments!="string"){let i=t.segments;this._player.playOnScroll({threshold:e,segments:i});}else this._player.playOnScroll({threshold:e});}_updatePlaybackSettings(t){if(!this._player.getAnimationInstance())throw new Error("Unable to update playbackSettings. Animations is not rendered yet.");typeof t.autoplay<"u"&&(this._player.setAutoplay(t.autoplay),t.autoplay?this._player.play():this._player.pause()),typeof t.direction<"u"&&this._player.setDirection(t.direction),typeof t.intermission<"u"&&this._player.setIntermission(t.intermission),typeof t.loop<"u"&&this._player.setLoop(t.loop),typeof t.playMode<"u"&&this._player.setMode(t.playMode),typeof t.speed<"u"&&this._player.setSpeed(t.speed),typeof t.defaultTheme<"u"&&this._player.setDefaultTheme(t.defaultTheme),typeof t.playOnScroll<"u"&&this._handlePlayOnScroll(t),t.segments&&this._handlePlaySegments(t),t.autoplay||this._player.pause();}_requiresDomElement(){if(!this._domElement)throw Ze("Requires a DOM element to attach events.")}};});async function ec(t,e){let[{DotLottieStateMachineManager:i}]=await Promise.all([Promise.resolve().then(()=>(tc(),Qf))]);if(!t.length)throw Ze("No state machines available inside this .lottie!");return new i(t,e)}var Wo=Ir(()=>{en();});var ic={};ia(ic,{default:()=>Sg});var Pg,Sg,rc=Ir(()=>{Fs();Pg=ce((t,e)=>{typeof navigator<"u"&&function(i,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self,i.lottie=r());}(t,function(){var i="http://www.w3.org/2000/svg",r="",s=!1,a=-999999,o=function(P){s=!!P;},p=function(){return s},h=function(P){r=P;},c=function(){return r};function _(P){return document.createElement(P)}function v(P,D){var B,J=P.length,st;for(B=0;B1?B[1]=1:B[1]<=0&&(B[1]=0),q(B[0],B[1],B[2])}function Ut(P,D){var B=nt(P[0]*255,P[1]*255,P[2]*255);return B[2]+=D,B[2]>1?B[2]=1:B[2]<0&&(B[2]=0),q(B[0],B[1],B[2])}function zt(P,D){var B=nt(P[0]*255,P[1]*255,P[2]*255);return B[0]+=D/360,B[0]>1?B[0]-=1:B[0]<0&&(B[0]+=1),q(B[0],B[1],B[2])}(function(){var P=[],D,B;for(D=0;D<256;D+=1)B=D.toString(16),P[D]=B.length===1?"0"+B:B;return function(J,st,et){return J<0&&(J=0),st<0&&(st=0),et<0&&(et=0),"#"+P[J]+P[st]+P[et]}})();var qt=function(P){A=!!P;},Gt=function(){return A},se=function(P){y=P;},he=function(){return y},le=function(P){Y=P;},Se=function(){return Y},Pe=function(P){m=P;};function Jt(P){return document.createElementNS(i,P)}function de(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(D){return typeof D}:de=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},de(P)}var Xt=function(){var P=1,D=[],B,J,st={onmessage:function(){},postMessage:function(kt){B({data:kt});}},et={postMessage:function(kt){st.onmessage({data:kt});}};function gt(kt){if(window.Worker&&window.Blob&&p()){var l=new Blob(["var _workerSelf = self; self.onmessage = ",kt.toString()],{type:"text/javascript"}),k=URL.createObjectURL(l);return new Worker(k)}return B=kt,st}function Mt(){J||(J=gt(function(kt){function l(){function C(tt,H){var j,W,R=tt.length,rt,at,Z,ct;for(W=0;W=0;H-=1)if(tt[H].ty==="sh")if(tt[H].ks.k.i)f(tt[H].ks.k);else for(R=tt[H].ks.k.length,W=0;Wj[0]?!0:j[0]>tt[0]?!1:tt[1]>j[1]?!0:j[1]>tt[1]?!1:tt[2]>j[2]?!0:j[2]>tt[2]?!1:null}var T=function(){var tt=[4,4,14];function H(W){var R=W.t.d;W.t.d={k:[{s:R,t:0}]};}function j(W){var R,rt=W.length;for(R=0;R=0;R-=1)if(W[R].ty==="sh")if(W[R].ks.k.i)W[R].ks.k.c=W[R].closed;else for(Z=W[R].ks.k.length,at=0;at500)&&(this._imageLoaded(),clearInterval(n)),V+=1;}.bind(this),50);}function et(O){var V=J(O,this.assetsPath,this.path),n=Jt("image");x?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){f.img=P,this._imageLoaded();}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",V),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var f={img:n,assetData:O};return f}function gt(O){var V=J(O,this.assetsPath,this.path),n=_("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){f.img=P,this._imageLoaded();}.bind(this),!1),n.src=V;var f={img:n,assetData:O};return f}function Mt(O){var V={assetData:O},n=J(O,this.assetsPath,this.path);return Xt.loadData(n,function(f){V.img=f,this._footageLoaded();}.bind(this),function(){V.img={},this._footageLoaded();}.bind(this)),V}function yt(O,V){this.imagesLoadedCb=V;var n,f=O.length;for(n=0;nthis.animationData.op&&(this.animationData.op=P.op,this.totalFrames=Math.floor(P.op-this.animationData.ip));var D=this.animationData.layers,B,J=D.length,st=P.layers,et,gt=st.length;for(et=0;etthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},Nt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(P){this.triggerRenderFrameError(P);}},Nt.prototype.play=function(P){P&&this.name!==P||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},Nt.prototype.pause=function(P){P&&this.name!==P||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},Nt.prototype.togglePause=function(P){P&&this.name!==P||(this.isPaused===!0?this.play():this.pause());},Nt.prototype.stop=function(P){P&&this.name!==P||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},Nt.prototype.getMarkerData=function(P){for(var D,B=0;B=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(D>this.totalFrames?D%this.totalFrames:0)||(B=!0,D=this.totalFrames-1):D>=this.totalFrames?(this.playCount+=1,this.checkSegments(D%this.totalFrames)||(this.setCurrentRawFrameValue(D%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(D):D<0?this.checkSegments(D%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+D%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(B=!0,D=0)):this.setCurrentRawFrameValue(D),B&&(this.setCurrentRawFrameValue(D),this.pause(),this.trigger("complete"));}},Nt.prototype.adjustSegment=function(P,D){this.playCount=0,P[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=P[0]-P[1],this.timeCompleted=this.totalFrames,this.firstFrame=P[1],this.setCurrentRawFrameValue(this.totalFrames-.001-D)):P[1]>P[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=P[1]-P[0],this.timeCompleted=this.totalFrames,this.firstFrame=P[0],this.setCurrentRawFrameValue(.001+D)),this.trigger("segmentStart");},Nt.prototype.setSegment=function(P,D){var B=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameD&&(B=D-P)),this.firstFrame=P,this.totalFrames=D-P,this.timeCompleted=this.totalFrames,B!==-1&&this.goToAndStop(B,!0);},Nt.prototype.playSegments=function(P,D){if(D&&(this.segments.length=0),re(P[0])==="object"){var B,J=P.length;for(B=0;B=0;W-=1)D[W].animation.destroy(j);}function F(j,W,R){var rt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),at,Z=rt.length;for(at=0;at0?f=F:n=F;while(Math.abs(I)>et&&++G=st?L(V,K,n,f):X===0?K:C(V,T,T+yt,n,f)}},P}(),ke=function(){function P(D){return D.concat(g(D.length))}return {double:P}}(),$e=function(){return function(P,D,B){var J=0,st=P,et=g(st),gt={newElement:Mt,release:yt};function Mt(){var Bt;return J?(J-=1,Bt=et[J]):Bt=D(),Bt}function yt(Bt){J===st&&(et=ke.double(et),st*=2),B&&B(Bt),et[J]=Bt,J+=1;}return gt}}(),vi=function(){function P(){return {addedLength:0,percents:d("float32",Se()),lengths:d("float32",Se())}}return $e(8,P)}(),bi=function(){function P(){return {lengths:[],totalLength:0}}function D(B){var J,st=B.lengths.length;for(J=0;J-.001&&V<.001}function B(kt,l,k,C,L,O,V,n,f){if(k===0&&O===0&&f===0)return D(kt,l,C,L,V,n);var b=P.sqrt(P.pow(C-kt,2)+P.pow(L-l,2)+P.pow(O-k,2)),T=P.sqrt(P.pow(V-kt,2)+P.pow(n-l,2)+P.pow(f-k,2)),I=P.sqrt(P.pow(V-C,2)+P.pow(n-L,2)+P.pow(f-O,2)),F;return b>T?b>I?F=b-T-I:F=I-T-b:I>T?F=I-T-b:F=T-b-I,F>-1e-4&&F<1e-4}var J=function(){return function(kt,l,k,C){var L=Se(),O,V,n,f,b,T=0,I,F=[],G=[],K=vi.newElement();for(n=k.length,O=0;OV?-1:1,b=!0;b;)if(C[O]<=V&&C[O+1]>V?(n=(V-C[O])/(C[O+1]-C[O]),b=!1):O+=f,O<0||O>=L-1){if(O===L-1)return k[O];b=!1;}return k[O]+(k[O+1]-k[O])*n}function Bt(kt,l,k,C,L,O){var V=yt(L,O),n=1-V,f=P.round((n*n*n*kt[0]+(V*n*n+n*V*n+n*n*V)*k[0]+(V*V*n+n*V*V+V*n*V)*C[0]+V*V*V*l[0])*1e3)/1e3,b=P.round((n*n*n*kt[1]+(V*n*n+n*V*n+n*n*V)*k[1]+(V*V*n+n*V*V+V*n*V)*C[1]+V*V*V*l[1])*1e3)/1e3;return [f,b]}var Vt=d("float32",8);function Ht(kt,l,k,C,L,O,V){L<0?L=0:L>1&&(L=1);var n=yt(L,V);O=O>1?1:O;var f=yt(O,V),b,T=kt.length,I=1-n,F=1-f,G=I*I*I,K=n*I*I*3,X=n*n*I*3,it=n*n*n,lt=I*I*F,tt=n*I*F+I*n*F+I*I*f,H=n*n*F+I*n*f+n*I*f,j=n*n*f,W=I*F*F,R=n*F*F+I*f*F+I*F*f,rt=n*f*F+I*f*f+n*F*f,at=n*f*f,Z=F*F*F,ct=f*F*F+F*f*F+F*F*f,mt=f*f*F+F*f*f+f*F*f,Pt=f*f*f;for(b=0;b=Bt.t-B){yt.h&&(yt=Bt),st=0;break}if(Bt.t-B>P){st=et;break}et=O||P=O?f.points.length-1:0;for(kt=f.points[b].point.length,Ht=0;Ht=F&&T=O)J[0]=n[0],J[1]=n[1],J[2]=n[2];else if(P<=V)J[0]=yt.s[0],J[1]=yt.s[1],J[2]=yt.s[2];else {var tt=ns(yt.s),H=ns(n),j=(P-V)/(O-V);jr(J,ha(tt,H,j));}else for(et=0;et=O?l=1:P1e-6?(kt=Math.acos(l),k=Math.sin(kt),C=Math.sin((1-B)*kt)/k,L=Math.sin(B*kt)/k):(C=1-B,L=B),J[0]=C*st+L*yt,J[1]=C*et+L*Bt,J[2]=C*gt+L*Vt,J[3]=C*Mt+L*Ht,J}function jr(P,D){var B=D[0],J=D[1],st=D[2],et=D[3],gt=Math.atan2(2*J*et-2*B*st,1-2*J*J-2*st*st),Mt=Math.asin(2*B*J+2*st*et),yt=Math.atan2(2*B*et-2*J*st,1-2*B*B-2*st*st);P[0]=gt/dt,P[1]=Mt/dt,P[2]=yt/dt;}function ns(P){var D=P[0]*dt,B=P[1]*dt,J=P[2]*dt,st=Math.cos(D/2),et=Math.cos(B/2),gt=Math.cos(J/2),Mt=Math.sin(D/2),yt=Math.sin(B/2),Bt=Math.sin(J/2),Vt=st*et*gt-Mt*yt*Bt,Ht=Mt*yt*gt+st*et*Bt,kt=Mt*et*gt+st*yt*Bt,l=st*yt*gt-Mt*et*Bt;return [Ht,kt,l,Vt]}function Js(){var P=this.comp.renderedFrame-this.offsetTime,D=this.keyframes[0].t-this.offsetTime,B=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(P===this._caching.lastFrame||this._caching.lastFrame!==Xi&&(this._caching.lastFrame>=B&&P>=B||this._caching.lastFrame=P&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var J=this.interpolateValue(P,this._caching);this.pv=J;}return this._caching.lastFrame=P,this.pv}function Rr(P){var D;if(this.propType==="unidimensional")D=P*this.mult,Ki(this.v-D)>1e-5&&(this.v=D,this._mdf=!0);else for(var B=0,J=this.v.length;B1e-5&&(this.v[B]=D,this._mdf=!0),B+=1;}function qr(){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 P,D=this.effectsSequence.length,B=this.kf?this.pv:this.data.k;for(P=0;P=this._maxLength&&this.doubleArrayLength(),B){case"v":et=this.v;break;case"i":et=this.i;break;case"o":et=this.o;break;default:et=[];break}(!et[J]||et[J]&&!st)&&(et[J]=pe.newElement()),et[J][0]=P,et[J][1]=D;},Ye.prototype.setTripleAt=function(P,D,B,J,st,et,gt,Mt){this.setXYAt(P,D,"v",gt,Mt),this.setXYAt(B,J,"o",gt,Mt),this.setXYAt(st,et,"i",gt,Mt);},Ye.prototype.reverse=function(){var P=new Ye;P.setPathData(this.c,this._length);var D=this.v,B=this.o,J=this.i,st=0;this.c&&(P.setTripleAt(D[0][0],D[0][1],J[0][0],J[0][1],B[0][0],B[0][1],0,!1),st=1);var et=this._length-1,gt=this._length,Mt;for(Mt=st;Mt=tt[tt.length-1].t-this.offsetTime)b=tt[tt.length-1].s?tt[tt.length-1].s[0]:tt[tt.length-2].e[0],I=!0;else {for(var H=f,j=tt.length-1,W=!0,R,rt,at;W&&(R=tt[H],rt=tt[H+1],!(rt.t-this.offsetTime>O));)H=rt.t-this.offsetTime)it=1;else if(On&&O>n)||(this._caching.lastIndex=f0||R>-1e-6&&R<0?J(R*rt)/rt:R}function W(){var R=this.props,rt=j(R[0]),at=j(R[1]),Z=j(R[4]),ct=j(R[5]),mt=j(R[12]),Pt=j(R[13]);return "matrix("+rt+","+at+","+Z+","+ct+","+mt+","+Pt+")"}return function(){this.reset=st,this.rotate=et,this.rotateX=gt,this.rotateY=Mt,this.rotateZ=yt,this.skew=Vt,this.skewFromAxis=Ht,this.shear=Bt,this.scale=kt,this.setTransform=l,this.translate=k,this.transform=C,this.multiply=L,this.applyToPoint=b,this.applyToX=T,this.applyToY=I,this.applyToZ=F,this.applyToPointArray=lt,this.applyToTriplePoints=it,this.applyToPointStringified=tt,this.toCSS=H,this.to2dCSS=W,this.clone=n,this.cloneFromProps=f,this.equals=V,this.inversePoints=X,this.inversePoint=K,this.getInverseMatrix=G,this._t=this.transform,this.isIdentity=O,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset();}}();function kr(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(D){return typeof D}:kr=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},kr(P)}var ue={};function Vs(P){h(P);}function ti(){ae.searchAnimations();}function Ta(P){qt(P);}function la(P){Pe(P);}function Ma(P){return ae.loadAnimation(P)}function os(P){if(typeof P=="string")switch(P){case"high":le(200);break;default:case"medium":le(50);break;case"low":le(10);break}else !isNaN(P)&&P>1&&le(P);}function Da(){return typeof navigator<"u"}function Fa(P,D){P==="expressions"&&se(D);}function Ia(P){switch(P){case"propertyFactory":return te;case"shapePropertyFactory":return gr;case"matrix":return Ge;default:return null}}ue.play=ae.play,ue.pause=ae.pause,ue.setLocationHref=Vs,ue.togglePause=ae.togglePause,ue.setSpeed=ae.setSpeed,ue.setDirection=ae.setDirection,ue.stop=ae.stop,ue.searchAnimations=ti,ue.registerAnimation=ae.registerAnimation,ue.loadAnimation=Ma,ue.setSubframeRendering=Ta,ue.resize=ae.resize,ue.goToAndStop=ae.goToAndStop,ue.destroy=ae.destroy,ue.setQuality=os,ue.inBrowser=Da,ue.installPlugin=Fa,ue.freeze=ae.freeze,ue.unfreeze=ae.unfreeze,ue.setVolume=ae.setVolume,ue.mute=ae.mute,ue.unmute=ae.unmute,ue.getRegisteredAnimations=ae.getRegisteredAnimations,ue.useWebWorker=o,ue.setIDPrefix=la,ue.__getFactory=Ia,ue.version="5.12.2";function La(){document.readyState==="complete"&&(clearInterval(Ys),ti());}function Va(P){for(var D=Xs.split("&"),B=0;B"u"?"undefined":kr(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ue);}catch{}var Ii=function(){var P={},D={};P.registerModifier=B,P.getModifier=J;function B(st,et){D[st]||(D[st]=et);}function J(st,et,gt){return new D[st](et,gt)}return P}();function ni(){}ni.prototype.initModifierProperties=function(){},ni.prototype.addShapeToModifier=function(){},ni.prototype.addShape=function(P){if(!this.closed){P.sh.container.addDynamicProperty(P.sh);var D={shape:P.sh,data:P,localShapeCollection:ai.newShapeCollection()};this.shapes.push(D),this.addShapeToModifier(D),this._isAnimated&&P.setAsAnimated();}},ni.prototype.init=function(P,D){this.shapes=[],this.elem=P,this.initDynamicPropertyContainer(P),this.initModifierProperties(P,D),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ni.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},v([Xe],ni);function ei(){}v([ni],ei),ei.prototype.initModifierProperties=function(P,D){this.s=te.getProp(P,D.s,0,.01,this),this.e=te.getProp(P,D.e,0,.01,this),this.o=te.getProp(P,D.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=D.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},ei.prototype.addShapeToModifier=function(P){P.pathsData=[];},ei.prototype.calculateShapeEdges=function(P,D,B,J,st){var et=[];D<=1?et.push({s:P,e:D}):P>=1?et.push({s:P-1,e:D-1}):(et.push({s:P,e:1}),et.push({s:0,e:D-1}));var gt=[],Mt,yt=et.length,Bt;for(Mt=0;MtJ+B)){var Vt,Ht;Bt.s*st<=J?Vt=0:Vt=(Bt.s*st-J)/B,Bt.e*st>=J+B?Ht=1:Ht=(Bt.e*st-J)/B,gt.push([Vt,Ht]);}return gt.length||gt.push([0,0]),gt},ei.prototype.releasePathsData=function(P){var D,B=P.length;for(D=0;D1?D=1+J:this.s.v<0?D=0+J:D=this.s.v+J,this.e.v>1?B=1+J:this.e.v<0?B=0+J:B=this.e.v+J,D>B){var st=D;D=B,B=st;}D=Math.round(D*1e4)*1e-4,B=Math.round(B*1e4)*1e-4,this.sValue=D,this.eValue=B;}else D=this.sValue,B=this.eValue;var et,gt,Mt=this.shapes.length,yt,Bt,Vt,Ht,kt,l=0;if(B===D)for(gt=0;gt=0;gt-=1)if(C=this.shapes[gt],C.shape._mdf){for(L=C.localShapeCollection,L.releaseShapes(),this.m===2&&Mt>1?(f=this.calculateShapeEdges(D,B,C.totalShapeLength,n,l),n+=C.totalShapeLength):f=[[O,V]],Bt=f.length,yt=0;yt=1?k.push({s:C.totalShapeLength*(O-1),e:C.totalShapeLength*(V-1)}):(k.push({s:C.totalShapeLength*O,e:C.totalShapeLength}),k.push({s:0,e:C.totalShapeLength*(V-1)}));var b=this.addShapes(C,k[0]);if(k[0].s!==k[0].e){if(k.length>1){var T=C.shape.paths.shapes[C.shape.paths._length-1];if(T.c){var I=b.pop();this.addPaths(b,L),b=this.addShapes(C,k[1],I);}else this.addPaths(b,L),b=this.addShapes(C,k[1]);}this.addPaths(b,L);}}C.shape.paths=L;}}},ei.prototype.addPaths=function(P,D){var B,J=P.length;for(B=0;BD.e){B.c=!1;break}else D.s<=Bt&&D.e>=Bt+Vt.addedLength?(this.addSegment(st[et].v[Mt-1],st[et].o[Mt-1],st[et].i[Mt],st[et].v[Mt],B,Ht,L),L=!1):(l=ki.getNewSegment(st[et].v[Mt-1],st[et].v[Mt],st[et].o[Mt-1],st[et].i[Mt],(D.s-Bt)/Vt.addedLength,(D.e-Bt)/Vt.addedLength,kt[Mt-1]),this.addSegmentFromArray(l,B,Ht,L),L=!1,B.c=!1),Bt+=Vt.addedLength,Ht+=1;if(st[et].c&&kt.length){if(Vt=kt[Mt-1],Bt<=D.e){var O=kt[Mt-1].addedLength;D.s<=Bt&&D.e>=Bt+O?(this.addSegment(st[et].v[Mt-1],st[et].o[Mt-1],st[et].i[0],st[et].v[0],B,Ht,L),L=!1):(l=ki.getNewSegment(st[et].v[Mt-1],st[et].v[0],st[et].o[Mt-1],st[et].i[0],(D.s-Bt)/O,(D.e-Bt)/O,kt[Mt-1]),this.addSegmentFromArray(l,B,Ht,L),L=!1,B.c=!1);}else B.c=!1;Bt+=Vt.addedLength,Ht+=1;}if(B._length&&(B.setXYAt(B.v[C][0],B.v[C][1],"i",C),B.setXYAt(B.v[B._length-1][0],B.v[B._length-1][1],"o",B._length-1)),Bt>D.e)break;et=this.p.keyframes[this.p.keyframes.length-1].t?(Vt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Bt,0),Ht=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Bt,0)):(Vt=this.p.pv,Ht=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Bt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Vt=[],Ht=[];var kt=this.px,l=this.py;kt._caching.lastFrame+kt.offsetTime<=kt.keyframes[0].t?(Vt[0]=kt.getValueAtTime((kt.keyframes[0].t+.01)/Bt,0),Vt[1]=l.getValueAtTime((l.keyframes[0].t+.01)/Bt,0),Ht[0]=kt.getValueAtTime(kt.keyframes[0].t/Bt,0),Ht[1]=l.getValueAtTime(l.keyframes[0].t/Bt,0)):kt._caching.lastFrame+kt.offsetTime>=kt.keyframes[kt.keyframes.length-1].t?(Vt[0]=kt.getValueAtTime(kt.keyframes[kt.keyframes.length-1].t/Bt,0),Vt[1]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/Bt,0),Ht[0]=kt.getValueAtTime((kt.keyframes[kt.keyframes.length-1].t-.01)/Bt,0),Ht[1]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/Bt,0)):(Vt=[kt.pv,l.pv],Ht[0]=kt.getValueAtTime((kt._caching.lastFrame+kt.offsetTime-.01)/Bt,kt.offsetTime),Ht[1]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/Bt,l.offsetTime));}else Ht=P,Vt=Ht;this.v.rotate(-Math.atan2(Vt[1]-Ht[1],Vt[0]-Ht[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 J(){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 st(){}function et(yt){this._addDynamicProperty(yt),this.elem.addDynamicProperty(yt),this._isDirty=!0;}function gt(yt,Bt,Vt){if(this.elem=yt,this.frameId=-1,this.propType="transform",this.data=Bt,this.v=new Ge,this.pre=new Ge,this.appliedTransformations=0,this.initDynamicPropertyContainer(Vt||yt),Bt.p&&Bt.p.s?(this.px=te.getProp(yt,Bt.p.x,0,0,this),this.py=te.getProp(yt,Bt.p.y,0,0,this),Bt.p.z&&(this.pz=te.getProp(yt,Bt.p.z,0,0,this))):this.p=te.getProp(yt,Bt.p||{k:[0,0,0]},1,0,this),Bt.rx){if(this.rx=te.getProp(yt,Bt.rx,0,dt,this),this.ry=te.getProp(yt,Bt.ry,0,dt,this),this.rz=te.getProp(yt,Bt.rz,0,dt,this),Bt.or.k[0].ti){var Ht,kt=Bt.or.k.length;for(Ht=0;Ht0;)B-=1,this._elements.unshift(D[B]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},mi.prototype.resetElements=function(P){var D,B=P.length;for(D=0;D0?Math.floor(kt):Math.ceil(kt),C=this.pMatrix.props,L=this.rMatrix.props,O=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var V=0;if(kt>0){for(;Vk;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),V-=1;l&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-l,!0),V-=l);}J=this.data.m===1?0:this._currentCopies-1,st=this.data.m===1?1:-1,et=this._currentCopies;for(var n,f;et;){if(D=this.elemsData[J].it,B=D[D.length-1].transform.mProps.v.props,f=B.length,D[D.length-1].transform.mProps._mdf=!0,D[D.length-1].transform.op._mdf=!0,D[D.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(J/(this._currentCopies-1)),V!==0){for((J!==0&&st===1||J!==this._currentCopies-1&&st===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],O[8],O[9],O[10],O[11],O[12],O[13],O[14],O[15]),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),n=0;n0&&J<1?[D]:[]:[D-J,D+J].filter(function(st){return st>0&&st<1})},Ne.prototype.split=function(P){if(P<=0)return [Zs(this.points[0]),this];if(P>=1)return [this,Zs(this.points[this.points.length-1])];var D=zi(this.points[0],this.points[1],P),B=zi(this.points[1],this.points[2],P),J=zi(this.points[2],this.points[3],P),st=zi(D,B,P),et=zi(B,J,P),gt=zi(st,et,P);return [new Ne(this.points[0],D,st,gt,!0),new Ne(gt,et,J,this.points[3],!0)]};function Rs(P,D){var B=P.points[0][D],J=P.points[P.points.length-1][D];if(B>J){var st=J;J=B,B=st;}for(var et=fa(3*P.a[D],2*P.b[D],P.c[D]),gt=0;gt0&&et[gt]<1){var Mt=P.point(et[gt])[D];MtJ&&(J=Mt);}return {min:B,max:J}}Ne.prototype.bounds=function(){return {x:Rs(this,0),y:Rs(this,1)}},Ne.prototype.boundingBox=function(){var P=this.bounds();return {left:P.x.min,right:P.x.max,top:P.y.min,bottom:P.y.max,width:P.x.max-P.x.min,height:P.y.max-P.y.min,cx:(P.x.max+P.x.min)/2,cy:(P.y.max+P.y.min)/2}};function ri(P,D,B){var J=P.boundingBox();return {cx:J.cx,cy:J.cy,width:J.width,height:J.height,bez:P,t:(D+B)/2,t1:D,t2:B}}function ts(P){var D=P.bez.split(.5);return [ri(D[0],P.t1,P.t),ri(D[1],P.t,P.t2)]}function ls(P,D){return Math.abs(P.cx-D.cx)*2=et||P.width<=J&&P.height<=J&&D.width<=J&&D.height<=J){st.push([P.t,D.t]);return}var gt=ts(P),Mt=ts(D);Er(gt[0],Mt[0],B+1,J,st,et),Er(gt[0],Mt[1],B+1,J,st,et),Er(gt[1],Mt[0],B+1,J,st,et),Er(gt[1],Mt[1],B+1,J,st,et);}}Ne.prototype.intersections=function(P,D,B){D===void 0&&(D=2),B===void 0&&(B=7);var J=[];return Er(ri(this,0,1),ri(P,0,1),0,D,J,B),J},Ne.shapeSegment=function(P,D){var B=(D+1)%P.length();return new Ne(P.v[D],P.o[D],P.i[B],P.v[B],!0)},Ne.shapeSegmentInverted=function(P,D){var B=(D+1)%P.length();return new Ne(P.v[B],P.i[B],P.o[D],P.v[D],!0)};function xs(P,D){return [P[1]*D[2]-P[2]*D[1],P[2]*D[0]-P[0]*D[2],P[0]*D[1]-P[1]*D[0]]}function sr(P,D,B,J){var st=[P[0],P[1],1],et=[D[0],D[1],1],gt=[B[0],B[1],1],Mt=[J[0],J[1],1],yt=xs(xs(st,et),xs(gt,Mt));return Or(yt[2])?null:[yt[0]/yt[2],yt[1]/yt[2]]}function tr(P,D,B){return [P[0]+Math.cos(D)*B,P[1]-Math.sin(D)*B]}function Hr(P,D){return Math.hypot(P[0]-D[0],P[1]-D[1])}function qi(P,D){return ji(P[0],D[0])&&ji(P[1],D[1])}function ar(){}v([ni],ar),ar.prototype.initModifierProperties=function(P,D){this.getValue=this.processKeys,this.amplitude=te.getProp(P,D.s,0,null,this),this.frequency=te.getProp(P,D.r,0,null,this),this.pointsType=te.getProp(P,D.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function Wr(P,D,B,J,st,et,gt){var Mt=B-Math.PI/2,yt=B+Math.PI/2,Bt=D[0]+Math.cos(B)*J*st,Vt=D[1]-Math.sin(B)*J*st;P.setTripleAt(Bt,Vt,Bt+Math.cos(Mt)*et,Vt-Math.sin(Mt)*et,Bt+Math.cos(yt)*gt,Vt-Math.sin(yt)*gt,P.length());}function _s(P,D){var B=[D[0]-P[0],D[1]-P[1]],J=-Math.PI*.5,st=[Math.cos(J)*B[0]-Math.sin(J)*B[1],Math.sin(J)*B[0]+Math.cos(J)*B[1]];return st}function ca(P,D){var B=D===0?P.length()-1:D-1,J=(D+1)%P.length(),st=P.v[B],et=P.v[J],gt=_s(st,et);return Math.atan2(0,1)-Math.atan2(gt[1],gt[0])}function Ps(P,D,B,J,st,et,gt){var Mt=ca(D,B),yt=D.v[B%D._length],Bt=D.v[B===0?D._length-1:B-1],Vt=D.v[(B+1)%D._length],Ht=et===2?Math.sqrt(Math.pow(yt[0]-Bt[0],2)+Math.pow(yt[1]-Bt[1],2)):0,kt=et===2?Math.sqrt(Math.pow(yt[0]-Vt[0],2)+Math.pow(yt[1]-Vt[1],2)):0;Wr(P,D.v[B%D._length],Mt,gt,J,kt/((st+1)*2),Ht/((st+1)*2));}function Ra(P,D,B,J,st,et){for(var gt=0;gt1&&D.length>1&&(st=Ar(P[0],D[D.length-1]),st)?[[P[0].split(st[0])[0]],[D[D.length-1].split(st[1])[1]]]:[B,J]}function Os(P){for(var D,B=1;B1&&(D=fs(P[P.length-1],P[0]),P[P.length-1]=D[0],P[0]=D[1]),P}function Bs(P,D){var B=P.inflectionPoints(),J,st,et,gt;if(B.length===0)return [yr(P,D)];if(B.length===1||ji(B[1],1))return et=P.split(B[0]),J=et[0],st=et[1],[yr(J,D),yr(st,D)];et=P.split(B[0]),J=et[0];var Mt=(B[1]-B[0])/(1-B[0]);return et=et[1].split(Mt),gt=et[0],st=et[1],[yr(J,D),yr(gt,D),yr(st,D)]}function Cr(){}v([ni],Cr),Cr.prototype.initModifierProperties=function(P,D){this.getValue=this.processKeys,this.amount=te.getProp(P,D.a,0,null,this),this.miterLimit=te.getProp(P,D.ml,0,null,this),this.lineJoin=D.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},Cr.prototype.processPath=function(P,D,B,J){var st=Ve.newElement();st.c=P.c;var et=P.length();P.c||(et-=1);var gt,Mt,yt,Bt=[];for(gt=0;gt=0;gt-=1)yt=Ne.shapeSegmentInverted(P,gt),Bt.push(Bs(yt,D));Bt=Os(Bt);var Vt=null,Ht=null;for(gt=0;gt0&&(ct=!1),ct){var Rt=_("style");Rt.setAttribute("f-forigin",R[rt].fOrigin),Rt.setAttribute("f-origin",R[rt].origin),Rt.setAttribute("f-family",R[rt].fFamily),Rt.type="text/css",Rt.innerText="@font-face {font-family: "+R[rt].fFamily+"; font-style: normal; src: url('"+R[rt].fPath+"');}",W.appendChild(Rt);}}else if(R[rt].fOrigin==="g"||R[rt].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Pt=0;Pt=55296&&R<=56319){var rt=j.charCodeAt(1);rt>=56320&&rt<=57343&&(W=(R-55296)*1024+rt-56320+65536);}return W}function T(j,W){var R=j.toString(16)+W.toString(16);return Ht.indexOf(R)!==-1}function I(j){return j===yt}function F(j){return j===Mt}function G(j){var W=b(j);return W>=Bt&&W<=Vt}function K(j){return G(j.substr(0,2))&&G(j.substr(2,2))}function X(j){return B.indexOf(j)!==-1}function it(j,W){var R=b(j.substr(W,2));if(R!==J)return !1;var rt=0;for(W+=2;rt<5;){if(R=b(j.substr(W,2)),Rgt)return !1;rt+=1,W+=2;}return b(j.substr(W,2))===st}function lt(){this.isLoaded=!0;}var tt=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);};tt.isModifier=T,tt.isZeroWidthJoiner=I,tt.isFlagEmoji=K,tt.isRegionalCode=G,tt.isCombinedCharacter=X,tt.isRegionalFlag=it,tt.isVariationSelector=F,tt.BLACK_FLAG_CODE_POINT=J;var H={addChars:O,addFonts:L,getCharData:V,getFontByName:f,measureText:n,checkLoadedFonts:k,setIsLoaded:lt};return tt.prototype=H,tt}();function Tr(P){this.animationData=P;}Tr.prototype.getProp=function(P){return this.animationData.slots&&this.animationData.slots[P.sid]?Object.assign(P,this.animationData.slots[P.sid].p):P};function vr(P){return new Tr(P)}function nr(){}nr.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(P){this.renderableComponents.indexOf(P)===-1&&this.renderableComponents.push(P);},removeRenderableComponent:function(P){this.renderableComponents.indexOf(P)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(P),1);},prepareRenderableFrame:function(P){this.checkLayerLimits(P);},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(P){this.data.ip-this.data.st<=P&&this.data.op-this.data.st>P?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 P,D=this.renderableComponents.length;for(P=0;P.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},ve.prototype.show=function(){},ve.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},ve.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},ve.prototype.resume=function(){this._canPlay=!0;},ve.prototype.setRate=function(P){this.audio.rate(P);},ve.prototype.volume=function(P){this._volumeMultiplier=P,this._previousVolume=P*this._volume,this.audio.volume(this._previousVolume);},ve.prototype.getBaseElement=function(){return null},ve.prototype.destroy=function(){},ve.prototype.sourceRectAtTime=function(){},ve.prototype.initExpressions=function(){};function Ae(){}Ae.prototype.checkLayers=function(P){var D,B=this.layers.length,J;for(this.completeLayers=!0,D=B-1;D>=0;D-=1)this.elements[D]||(J=this.layers[D],J.ip-J.st<=P-this.layers[D].st&&J.op-J.st>P-this.layers[D].st&&this.buildItem(D)),this.completeLayers=this.elements[D]?this.completeLayers:!1;this.checkPendingElements();},Ae.prototype.createItem=function(P){switch(P.ty){case 2:return this.createImage(P);case 0:return this.createComp(P);case 1:return this.createSolid(P);case 3:return this.createNull(P);case 4:return this.createShape(P);case 5:return this.createText(P);case 6:return this.createAudio(P);case 13:return this.createCamera(P);case 15:return this.createFootage(P);default:return this.createNull(P)}},Ae.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ae.prototype.createAudio=function(P){return new ve(P,this.globalData,this)},Ae.prototype.createFootage=function(P){return new De(P,this.globalData,this)},Ae.prototype.buildAllItems=function(){var P,D=this.layers.length;for(P=0;P0&&(this.maskElement.setAttribute("id",kt),this.element.maskedElement.setAttribute(V,"url("+c()+"#"+kt+")"),J.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Vi.prototype.getMaskProperty=function(P){return this.viewData[P].prop},Vi.prototype.renderFrame=function(P){var D=this.element.finalTransform.mat,B,J=this.masksProperties.length;for(B=0;B1&&(J+=" C"+D.o[st-1][0]+","+D.o[st-1][1]+" "+D.i[0][0]+","+D.i[0][1]+" "+D.v[0][0]+","+D.v[0][1]),B.lastPath!==J){var gt="";B.elem&&(D.c&&(gt=P.inv?this.solidPath+J:J),B.elem.setAttribute("d",gt)),B.lastPath=J;}},Vi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var Ei=function(){var P={};P.createFilter=D,P.createAlphaToLuminanceFilter=B;function D(J,st){var et=Jt("filter");return et.setAttribute("id",J),st!==!0&&(et.setAttribute("filterUnits","objectBoundingBox"),et.setAttribute("x","0%"),et.setAttribute("y","0%"),et.setAttribute("width","100%"),et.setAttribute("height","100%")),et}function B(){var J=Jt("feColorMatrix");return J.setAttribute("type","matrix"),J.setAttribute("color-interpolation-filters","sRGB"),J.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),J}return P}(),Yi=function(){var P={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))&&(P.maskType=!1),/firefox/i.test(navigator.userAgent)&&(P.svgLumaHidden=!1),P}(),Mr={},da="filter_result_";function Ss(P){var D,B="SourceGraphic",J=P.data.ef?P.data.ef.length:0,st=E(),et=Ei.createFilter(st,!0),gt=0;this.filters=[];var Mt;for(D=0;D=0&&(B=this.shapeModifiers[P].processShapes(this._isFirstFrame),!B);P-=1);}},searchProcessedElement:function(P){for(var D=this.processedElements,B=0,J=D.length;B.01)return !1;B+=1;}return !0},Br.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var P=0,D=this.data.k.k.length;P0;)O=kt.transformers[G].mProps._mdf||O,F-=1,G-=1;if(O)for(F=b-kt.styles[n].lvl,G=kt.transformers.length-1;F>0;)I.multiply(kt.transformers[G].mProps.v),F-=1,G-=1;}else I=P;if(T=kt.sh.paths,C=T._length,O){for(L="",k=0;k=1?lt=.99:lt<=-1&&(lt=-.99);var tt=X*lt,H=Math.cos(it+kt.a.v)*tt+L[0],j=Math.sin(it+kt.a.v)*tt+L[1];k.setAttribute("fx",H),k.setAttribute("fy",j),C&&!kt.g._collapsable&&(kt.of.setAttribute("fx",H),kt.of.setAttribute("fy",j));}}}function Vt(Ht,kt,l){var k=kt.style,C=kt.d;C&&(C._mdf||l)&&C.dashStr&&(k.pElem.setAttribute("stroke-dasharray",C.dashStr),k.pElem.setAttribute("stroke-dashoffset",C.dashoffset[0])),kt.c&&(kt.c._mdf||l)&&k.pElem.setAttribute("stroke","rgb("+N(kt.c.v[0])+","+N(kt.c.v[1])+","+N(kt.c.v[2])+")"),(kt.o._mdf||l)&&k.pElem.setAttribute("stroke-opacity",kt.o.v),(kt.w._mdf||l)&&(k.pElem.setAttribute("stroke-width",kt.w.v),k.msElem&&k.msElem.setAttribute("stroke-width",kt.w.v));}return B}();function je(P,D,B){this.shapes=[],this.shapesData=P.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(P,D,B),this.prevViewData=[];}v([Te,Be,Jr,is,Ui,Fe,er],je),je.prototype.initSecondaryElement=function(){},je.prototype.identityMatrix=new Ge,je.prototype.buildExpressionInterface=function(){},je.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},je.prototype.filterUniqueShapes=function(){var P,D=this.shapes.length,B,J,st=this.stylesList.length,et,gt=[],Mt=!1;for(J=0;J1&&Mt&&this.setShapesAsAnimated(gt);}},je.prototype.setShapesAsAnimated=function(P){var D,B=P.length;for(D=0;D=0;yt-=1){if(L=this.searchProcessedElement(P[yt]),L?D[yt]=B[L-1]:P[yt]._render=gt,P[yt].ty==="fl"||P[yt].ty==="st"||P[yt].ty==="gf"||P[yt].ty==="gs"||P[yt].ty==="no")L?D[yt].style.closed=!1:D[yt]=this.createStyleElement(P[yt],st),P[yt]._render&&D[yt].style.pElem.parentNode!==J&&J.appendChild(D[yt].style.pElem),kt.push(D[yt].style);else if(P[yt].ty==="gr"){if(!L)D[yt]=this.createGroupElement(P[yt]);else for(Ht=D[yt].it.length,Vt=0;Vt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ie.prototype.addEffect=function(P){this.effectsSequence.push(P),this.elem.addDynamicProperty(this);},Ie.prototype.getValue=function(P){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!P)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var D=this.currentData,B=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var J,st=this.effectsSequence.length,et=P||this.data.d.k[this.keysIndex].s;for(J=0;JD);)B+=1;return this.keysIndex!==B&&(this.keysIndex=B),this.data.d.k[this.keysIndex].s},Ie.prototype.buildFinalText=function(P){for(var D=[],B=0,J=P.length,st,et,gt=!1,Mt=!1,yt="";B=55296&&st<=56319?Li.isRegionalFlag(P,B)?yt=P.substr(B,14):(et=P.charCodeAt(B+1),et>=56320&&et<=57343&&(Li.isModifier(st,et)?(yt=P.substr(B,2),gt=!0):Li.isFlagEmoji(P.substr(B,4))?yt=P.substr(B,4):yt=P.substr(B,2))):st>56319?(et=P.charCodeAt(B+1),Li.isVariationSelector(st)&&(gt=!0)):Li.isZeroWidthJoiner(st)&&(gt=!0,Mt=!0),gt?(D[D.length-1]+=yt,gt=!1):D.push(yt),B+=yt.length;return D},Ie.prototype.completeTextData=function(P){P.__complete=!0;var D=this.elem.globalData.fontManager,B=this.data,J=[],st,et,gt,Mt=0,yt,Bt=B.m.g,Vt=0,Ht=0,kt=0,l=[],k=0,C=0,L,O,V=D.getFontByName(P.f),n,f=0,b=cs(V);P.fWeight=b.weight,P.fStyle=b.style,P.finalSize=P.s,P.finalText=this.buildFinalText(P.t),et=P.finalText.length,P.finalLineHeight=P.lh;var T=P.tr/1e3*P.finalSize,I;if(P.sz)for(var F=!0,G=P.sz[0],K=P.sz[1],X,it;F;){it=this.buildFinalText(P.t),X=0,k=0,et=it.length,T=P.tr/1e3*P.finalSize;var lt=-1;for(st=0;stG&&it[st]!==" "?(lt===-1?et+=1:st=lt,X+=P.finalLineHeight||P.finalSize*1.2,it.splice(st,lt===st?1:0,"\r"),lt=-1,k=0):(k+=f,k+=T);X+=V.ascent*P.finalSize/100,this.canResize&&P.finalSize>this.minimumFontSize&&KC?k:C,k=-2*T,yt="",gt=!0,kt+=1):yt=H,D.chars?(n=D.getCharData(H,V.fStyle,D.getFontByName(P.f).fFamily),f=gt?0:n.w*P.finalSize/100):f=D.measureText(yt,P.f,P.finalSize),H===" "?tt+=f+T:(k+=f+T+tt,tt=0),J.push({l:f,an:f,add:Vt,n:gt,anIndexes:[],val:yt,line:kt,animatorJustifyOffset:0}),Bt==2){if(Vt+=f,yt===""||yt===" "||st===et-1){for((yt===""||yt===" ")&&(Vt-=f);Ht<=st;)J[Ht].an=Vt,J[Ht].ind=Mt,J[Ht].extra=f,Ht+=1;Mt+=1,Vt=0;}}else if(Bt==3){if(Vt+=f,yt===""||st===et-1){for(yt===""&&(Vt-=f);Ht<=st;)J[Ht].an=Vt,J[Ht].ind=Mt,J[Ht].extra=f,Ht+=1;Vt=0,Mt+=1;}}else J[Mt].ind=Mt,J[Mt].extra=0,Mt+=1;if(P.l=J,C=k>C?k:C,l.push(k),P.sz)P.boxWidth=P.sz[0],P.justifyOffset=0;else switch(P.boxWidth=C,P.j){case 1:P.justifyOffset=-P.boxWidth;break;case 2:P.justifyOffset=-P.boxWidth/2;break;default:P.justifyOffset=0;}P.lineWidths=l;var j=B.a,W,R;O=j.length;var rt,at,Z=[];for(L=0;L0?gt=this.ne.v/100:Mt=-this.ne.v/100,this.xe.v>0?yt=1-this.xe.v/100:Bt=1+this.xe.v/100;var Vt=ne.getBezierEasing(gt,Mt,yt,Bt).get,Ht=0,kt=this.finalS,l=this.finalE,k=this.data.sh;if(k===2)l===kt?Ht=et>=l?1:0:Ht=P(0,D(.5/(l-kt)+(et-kt)/(l-kt),1)),Ht=Vt(Ht);else if(k===3)l===kt?Ht=et>=l?0:1:Ht=1-P(0,D(.5/(l-kt)+(et-kt)/(l-kt),1)),Ht=Vt(Ht);else if(k===4)l===kt?Ht=0:(Ht=P(0,D(.5/(l-kt)+(et-kt)/(l-kt),1)),Ht<.5?Ht*=2:Ht=1-2*(Ht-.5)),Ht=Vt(Ht);else if(k===5){if(l===kt)Ht=0;else {var C=l-kt;et=D(P(0,et+.5-kt),l-kt);var L=-C/2+et,O=C/2;Ht=Math.sqrt(1-L*L/(O*O));}Ht=Vt(Ht);}else k===6?(l===kt?Ht=0:(et=D(P(0,et+.5-kt),l-kt),Ht=(1+Math.cos(Math.PI+Math.PI*2*et/(l-kt)))/2),Ht=Vt(Ht)):(et>=B(kt)&&(et-kt<0?Ht=P(0,D(D(l,1)-(kt-et),1)):Ht=P(0,D(l-et,1))),Ht=Vt(Ht));if(this.sm.v!==100){var V=this.sm.v*.01;V===0&&(V=1e-8);var n=.5-V*.5;Ht1&&(Ht=1));}return Ht*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 gt=this.data.r===2?1:100/this.data.totalChars,Mt=this.o.v/gt,yt=this.s.v/gt+Mt,Bt=this.e.v/gt+Mt;if(yt>Bt){var Vt=yt;yt=Bt,Bt=Vt;}this.finalS=yt,this.finalE=Bt;}},v([Xe],J);function st(et,gt,Mt){return new J(et,gt)}return {getTextSelectorProp:st}}();function ir(P,D,B){var J={propType:!1},st=te.getProp,et=D.a;this.a={r:et.r?st(P,et.r,0,dt,B):J,rx:et.rx?st(P,et.rx,0,dt,B):J,ry:et.ry?st(P,et.ry,0,dt,B):J,sk:et.sk?st(P,et.sk,0,dt,B):J,sa:et.sa?st(P,et.sa,0,dt,B):J,s:et.s?st(P,et.s,1,.01,B):J,a:et.a?st(P,et.a,1,0,B):J,o:et.o?st(P,et.o,0,.01,B):J,p:et.p?st(P,et.p,1,0,B):J,sw:et.sw?st(P,et.sw,0,0,B):J,sc:et.sc?st(P,et.sc,1,0,B):J,fc:et.fc?st(P,et.fc,1,0,B):J,fh:et.fh?st(P,et.fh,0,0,B):J,fs:et.fs?st(P,et.fs,0,.01,B):J,fb:et.fb?st(P,et.fb,0,.01,B):J,t:et.t?st(P,et.t,0,0,B):J},this.s=Ga.getTextSelectorProp(P,D.s,B),this.s.t=D.s.t;}function br(P,D,B){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=P,this._renderType=D,this._elem=B,this._animatorsData=g(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(B);}br.prototype.searchProperties=function(){var P,D=this._textData.a.length,B,J=te.getProp;for(P=0;P=k+Ce||!b?(G=(k+Ce-L)/C.partialLength,Pt=f.point[0]+(C.point[0]-f.point[0])*G,Rt=f.point[1]+(C.point[1]-f.point[1])*G,et.translate(-B[0]*kt[Vt].an*.005,-(B[1]*tt)*.01),O=!1):b&&(L+=C.partialLength,V+=1,V>=b.length&&(V=0,n+=1,T[n]?b=T[n].points:X.v.c?(V=0,n=0,b=T[n].points):(L-=C.partialLength,b=null)),b&&(f=C,C=b[V],I=C.partialLength));mt=kt[Vt].an/2-kt[Vt].add,et.translate(-mt,0,0);}else mt=kt[Vt].an/2-kt[Vt].add,et.translate(-mt,0,0),et.translate(-B[0]*kt[Vt].an*.005,-B[1]*tt*.01,0);for(R=0;RP?this.textSpans[P].span:Jt(Mt?"g":"text"),n<=P){if(yt.setAttribute("stroke-linecap","butt"),yt.setAttribute("stroke-linejoin","round"),yt.setAttribute("stroke-miterlimit","4"),this.textSpans[P].span=yt,Mt){var b=Jt("g");yt.appendChild(b),this.textSpans[P].childSpan=b;}this.textSpans[P].span=yt,this.layerElement.appendChild(yt);}yt.style.display="inherit";}if(Bt.reset(),Ht&&(gt[P].n&&(kt=-C,l+=B.yOffset,l+=k?1:0,k=!1),this.applyTextPropertiesToMatrix(B,Bt,gt[P].line,kt,l),kt+=gt[P].l||0,kt+=C),Mt){f=this.globalData.fontManager.getCharData(B.finalText[P],J.fStyle,this.globalData.fontManager.getFontByName(B.f).fFamily);var T;if(f.t===1)T=new ci(f.data,this.globalData,this);else {var I=Es;f.data&&f.data.shapes&&(I=this.buildShapeData(f.data,B.finalSize)),T=new je(I,this.globalData,this);}if(this.textSpans[P].glyph){var F=this.textSpans[P].glyph;this.textSpans[P].childSpan.removeChild(F.layerElement),F.destroy();}this.textSpans[P].glyph=T,T._debug=!0,T.prepareFrame(0),T.renderFrame(),this.textSpans[P].childSpan.appendChild(T.layerElement),f.t===1&&this.textSpans[P].childSpan.setAttribute("transform","scale("+B.finalSize/100+","+B.finalSize/100+")");}else Ht&&yt.setAttribute("transform","translate("+Bt.props[12]+","+Bt.props[13]+")"),yt.textContent=gt[P].val,yt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}Ht&&yt&&yt.setAttribute("d",Vt);}for(;P=0;D-=1)(this.completeLayers||this.elements[D])&&this.elements[D].prepareFrame(P-this.layers[D].st);if(this.globalData._mdf)for(D=0;D=0;B-=1)(this.completeLayers||this.elements[B])&&(this.elements[B].prepareFrame(this.renderedFrame-this.layers[B].st),this.elements[B]._mdf&&(this._mdf=!0));}},gi.prototype.renderInnerContent=function(){var P,D=this.layers.length;for(P=0;Pwg});var kg,wg,ac=Ir(()=>{Fs();kg=ce((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e());}(exports,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?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(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=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,r,s={onmessage:function(){},postMessage:function(u){i({data:u});}},a={postMessage:function(u){s.onmessage({data:u});}};function o(u){if(window.Worker&&window.Blob&&getWebWorker()){var S=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),d=URL.createObjectURL(S);return new Worker(d)}return i=u,s}function p(){r||(r=o(function(u){function S(){function g(ot,Tt){var z,$,E=ot.length,q,nt,Q,Ut;for($=0;$=0;Tt-=1)if(ot[Tt].ty==="sh")if(ot[Tt].ks.k.i)w(ot[Tt].ks.k);else for(E=ot[Tt].ks.k.length,$=0;$z[0]?!0:z[0]>ot[0]?!1:ot[1]>z[1]?!0:z[1]>ot[1]?!1:ot[2]>z[2]?!0:z[2]>ot[2]?!1:null}var N=function(){var ot=[4,4,14];function Tt($){var E=$.t.d;$.t.d={k:[{s:E,t:0}]};}function z($){var E,q=$.length;for(E=0;E=0;E-=1)if($[E].ty==="sh")if($[E].ks.k.i)$[E].ks.k.c=$[E].closed;else for(Q=$[E].ks.k.length,nt=0;nt500)&&(this._imageLoaded(),clearInterval(x)),m+=1;}.bind(this),50);}function a(y){var m=r(y,this.assetsPath,this.path),x=createNS("image");isSafari?this.testImageLoaded(x):x.addEventListener("load",this._imageLoaded,!1),x.addEventListener("error",function(){w.img=t,this._imageLoaded();}.bind(this),!1),x.setAttributeNS("http://www.w3.org/1999/xlink","href",m),this._elementHelper.append?this._elementHelper.append(x):this._elementHelper.appendChild(x);var w={img:x,assetData:y};return w}function o(y){var m=r(y,this.assetsPath,this.path),x=createTag("img");x.crossOrigin="anonymous",x.addEventListener("load",this._imageLoaded,!1),x.addEventListener("error",function(){w.img=t,this._imageLoaded();}.bind(this),!1),x.src=m;var w={img:x,assetData:y};return w}function p(y){var m={assetData:y},x=r(y,this.assetsPath,this.path);return dataManager.loadData(x,function(w){m.img=w,this._footageLoaded();}.bind(this),function(){m.img={},this._footageLoaded();}.bind(this)),m}function h(y,m){this.imagesLoadedCb=m;var x,w=y.length;for(x=0;xthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,o=s.length;for(a=0;athis.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.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]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.firstFramee&&(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,r=t.length;for(i=0;i=0;$-=1)e[$].animation.destroy(z);}function Y(z,$,E){var q=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),nt,Q=q.length;for(nt=0;nt0?w=Y:x=Y;while(Math.abs(U)>a&&++dt=s?A(m,xt,x,w):vt===0?xt:g(m,N,N+h,x,w)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),o={newElement:p,release:h};function p(){var c;return r?(r-=1,c=a[r]):c=e(),c}function h(c){r===s&&(a=pooling.double(a),s*=2),i&&i(c),a[r]=c,r+=1;}return o}}(),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 r,s=i.lengths.length;for(r=0;r-.001&&m<.001}function i(u,S,d,g,A,y,m,x,w){if(d===0&&y===0&&w===0)return e(u,S,g,A,m,x);var M=t.sqrt(t.pow(g-u,2)+t.pow(A-S,2)+t.pow(y-d,2)),N=t.sqrt(t.pow(m-u,2)+t.pow(x-S,2)+t.pow(w-d,2)),U=t.sqrt(t.pow(m-g,2)+t.pow(x-A,2)+t.pow(w-y,2)),Y;return M>N?M>U?Y=M-N-U:Y=U-N-M:U>N?Y=U-N-M:Y=N-M-U,Y>-1e-4&&Y<1e-4}var r=function(){return function(u,S,d,g){var A=getDefaultCurveSegments(),y,m,x,w,M,N=0,U,Y=[],dt=[],xt=bezierLengthPool.newElement();for(x=d.length,y=0;ym?-1:1,M=!0;M;)if(g[y]<=m&&g[y+1]>m?(x=(m-g[y])/(g[y+1]-g[y]),M=!1):y+=w,y<0||y>=A-1){if(y===A-1)return d[y];M=!1;}return d[y]+(d[y+1]-d[y])*x}function c(u,S,d,g,A,y){var m=h(A,y),x=1-m,w=t.round((x*x*x*u[0]+(m*x*x+x*m*x+x*x*m)*d[0]+(m*m*x+x*m*m+m*x*m)*g[0]+m*m*m*S[0])*1e3)/1e3,M=t.round((x*x*x*u[1]+(m*x*x+x*m*x+x*x*m)*d[1]+(m*m*x+x*m*m+m*x*m)*g[1]+m*m*m*S[1])*1e3)/1e3;return [w,M]}var _=createTypedArray("float32",8);function v(u,S,d,g,A,y,m){A<0?A=0:A>1&&(A=1);var x=h(A,m);y=y>1?1:y;var w=h(y,m),M,N=u.length,U=1-x,Y=1-w,dt=U*U*U,xt=x*U*U*3,vt=x*x*U*3,bt=x*x*x,It=U*U*Y,ot=x*U*Y+U*x*Y+U*U*w,Tt=x*x*Y+U*x*w+x*U*w,z=x*x*w,$=U*Y*Y,E=x*Y*Y+U*w*Y+U*Y*w,q=x*w*Y+U*w*w+x*Y*w,nt=x*w*w,Q=Y*Y*Y,Ut=w*Y*Y+Y*w*Y+Y*Y*w,zt=w*w*Y+Y*w*w+w*Y*w,qt=w*w*w;for(M=0;M=c.t-i){h.h&&(h=c),s=0;break}if(c.t-i>t){s=a;break}a=y||t=y?w.points.length-1:0;for(u=w.points[M].point.length,v=0;v=Y&&N=y)r[0]=x[0],r[1]=x[1],r[2]=x[2];else if(t<=m)r[0]=h.s[0],r[1]=h.s[1],r[2]=h.s[2];else {var ot=createQuaternion(h.s),Tt=createQuaternion(x),z=(t-m)/(y-m);quaternionToEuler(r,slerp(ot,Tt,z));}else for(a=0;a=y?S=1:t1e-6?(u=Math.acos(S),d=Math.sin(u),g=Math.sin((1-i)*u)/d,A=Math.sin(i*u)/d):(g=1-i,A=i),r[0]=g*s+A*h,r[1]=g*a+A*c,r[2]=g*o+A*_,r[3]=g*p+A*v,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],o=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),h=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=o/degToRads,t[1]=p/degToRads,t[2]=h/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),o=Math.cos(r/2),p=Math.sin(e/2),h=Math.sin(i/2),c=Math.sin(r/2),_=s*a*o-p*h*c,v=p*h*o+s*a*c,u=p*a*o+s*h*c,S=s*h*o-p*a*c;return [v,u,S,_]}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=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}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,r=this.v.length;i1e-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=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,o,p){this.setXYAt(t,e,"v",o,p),this.setXYAt(i,r,"o",o,p),this.setXYAt(s,a,"i",o,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,o=this._length,p;for(p=s;p=ot[ot.length-1].t-this.offsetTime)M=ot[ot.length-1].s?ot[ot.length-1].s[0]:ot[ot.length-2].e[0],U=!0;else {for(var Tt=w,z=ot.length-1,$=!0,E,q,nt;$&&(E=ot[Tt],q=ot[Tt+1],!(q.t-this.offsetTime>y));)Tt=q.t-this.offsetTime)bt=1;else if(yx&&y>x)||(this._caching.lastIndex=w0||E>-1e-6&&E<0?r(E*q)/q:E}function $(){var E=this.props,q=z(E[0]),nt=z(E[1]),Q=z(E[4]),Ut=z(E[5]),zt=z(E[12]),qt=z(E[13]);return "matrix("+q+","+nt+","+Q+","+Ut+","+zt+","+qt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=p,this.rotateZ=h,this.skew=_,this.skewFromAxis=v,this.shear=c,this.scale=u,this.setTransform=S,this.translate=d,this.transform=g,this.multiply=A,this.applyToPoint=M,this.applyToX=N,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=It,this.applyToTriplePoints=bt,this.applyToPointStringified=ot,this.toCSS=Tt,this.to2dCSS=$,this.clone=x,this.cloneFromProps=w,this.equals=m,this.inversePoints=vt,this.inversePoint=xt,this.getInverseMatrix=dt,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=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.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,o){return new e[s](a,o)}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,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o=[],p,h=a.length,c;for(p=0;pr+i)){var _,v;c.s*s<=r?_=0:_=(c.s*s-r)/i,c.e*s>=r+i?v=1:v=(c.e*s-r)/i,o.push([_,v]);}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}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 a,o,p=this.shapes.length,h,c,_,v,u,S=0;if(i===e)for(o=0;o=0;o-=1)if(g=this.shapes[o],g.shape._mdf){for(A=g.localShapeCollection,A.releaseShapes(),this.m===2&&p>1?(w=this.calculateShapeEdges(e,i,g.totalShapeLength,x,S),x+=g.totalShapeLength):w=[[y,m]],c=w.length,h=0;h=1?d.push({s:g.totalShapeLength*(y-1),e:g.totalShapeLength*(m-1)}):(d.push({s:g.totalShapeLength*y,e:g.totalShapeLength}),d.push({s:0,e:g.totalShapeLength*(m-1)}));var M=this.addShapes(g,d[0]);if(d[0].s!==d[0].e){if(d.length>1){var N=g.shape.paths.shapes[g.shape.paths._length-1];if(N.c){var U=M.pop();this.addPaths(M,A),M=this.addShapes(g,d[1],U);}else this.addPaths(M,A),M=this.addShapes(g,d[1]);}this.addPaths(M,A);}}g.shape.paths=A;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=c&&e.e>=c+_.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,v,A),A=!1):(S=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-c)/_.addedLength,(e.e-c)/_.addedLength,u[p-1]),this.addSegmentFromArray(S,i,v,A),A=!1,i.c=!1),c+=_.addedLength,v+=1;if(s[a].c&&u.length){if(_=u[p-1],c<=e.e){var y=u[p-1].addedLength;e.s<=c&&e.e>=c+y?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,v,A),A=!1):(S=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-c)/y,(e.e-c)/y,u[p-1]),this.addSegmentFromArray(S,i,v,A),A=!1,i.c=!1);}else i.c=!1;c+=_.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),c>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(_=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(_=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){_=[],v=[];var u=this.px,S=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(_[0]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),_[1]=S.getValueAtTime((S.keyframes[0].t+.01)/c,0),v[0]=u.getValueAtTime(u.keyframes[0].t/c,0),v[1]=S.getValueAtTime(S.keyframes[0].t/c,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(_[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),_[1]=S.getValueAtTime(S.keyframes[S.keyframes.length-1].t/c,0),v[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0),v[1]=S.getValueAtTime((S.keyframes[S.keyframes.length-1].t-.01)/c,0)):(_=[u.pv,S.pv],v[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime),v[1]=S.getValueAtTime((S._caching.lastFrame+S.offsetTime-.01)/c,S.offsetTime));}else v=t,_=v;this.v.rotate(-Math.atan2(_[1]-v[1],_[0]-v[0]));}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);}this.frameId=this.elem.globalData.frameId;}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4);}function s(){}function a(h){this._addDynamicProperty(h),this.elem.addDynamicProperty(h),this._isDirty=!0;}function o(h,c,_){if(this.elem=h,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(_||h),c.p&&c.p.s?(this.px=PropertyFactory.getProp(h,c.p.x,0,0,this),this.py=PropertyFactory.getProp(h,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(h,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(h,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(h,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(h,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(h,c.rz,0,degToRads,this),c.or.k[0].ti){var v,u=c.or.k.length;for(v=0;v0;)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;e0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,A=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(u>0){for(;md;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-S,!0),m-=S);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var x,w;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,w=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)*(r/(this._currentCopies-1)),m!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),x=0;x0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<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),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),o=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,o,!0),new PolynomialBezier(o,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o0&&a[o]<1){var p=t.point(a[o])[e];pr&&(r=p);}return {min:i,max:r}}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 r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.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=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var o=splitData(t),p=splitData(e);intersectsImpl(o[0],p[0],i+1,r,s,a),intersectsImpl(o[0],p[1],i+1,r,s,a),intersectsImpl(o[1],p[0],i+1,r,s,a),intersectsImpl(o[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},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,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],o=[i[0],i[1],1],p=[r[0],r[1],1],h=crossProduct(crossProduct(s,a),crossProduct(o,p));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[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,r,s,a,o){var p=i-Math.PI/2,h=i+Math.PI/2,c=e[0]+Math.cos(i)*r*s,_=e[1]-Math.sin(i)*r*s;t.setTripleAt(c,_,c+Math.cos(p)*a,_-Math.sin(p)*a,c+Math.cos(h)*o,_-Math.sin(h)*o,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(t,e,i,r,s,a,o){var p=getProjectingAngle(e,i),h=e.v[i%e._length],c=e.v[i===0?e._length-1:i-1],_=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)):0,u=a===2?Math.sqrt(Math.pow(h[0]-_[0],2)+Math.pow(h[1]-_[1],2)):0;setPoint(t,e.v[i%e._length],p,o,r,u/((s+1)*2),v/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var o=0;o1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(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(),r,s,a,o;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),o=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(o,e),offsetSegment(s,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,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var o,p,h,c=[];for(o=0;o=0;o-=1)h=PolynomialBezier.shapeSegmentInverted(t,o),c.push(offsetSegmentSplit(h,e));c=pruneIntersections(c);var _=null,v=null;for(o=0;o0&&(Ut=!1),Ut){var Gt=createTag("style");Gt.setAttribute("f-forigin",E[q].fOrigin),Gt.setAttribute("f-origin",E[q].origin),Gt.setAttribute("f-family",E[q].fFamily),Gt.type="text/css",Gt.innerText="@font-face {font-family: "+E[q].fFamily+"; font-style: normal; src: url('"+E[q].fPath+"');}",$.appendChild(Gt);}}else if(E[q].fOrigin==="g"||E[q].origin===1){for(zt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),qt=0;qt=55296&&E<=56319){var q=z.charCodeAt(1);q>=56320&&q<=57343&&($=(E-55296)*1024+q-56320+65536);}return $}function N(z,$){var E=z.toString(16)+$.toString(16);return v.indexOf(E)!==-1}function U(z){return z===h}function Y(z){return z===p}function dt(z){var $=M(z);return $>=c&&$<=_}function xt(z){return dt(z.substr(0,2))&&dt(z.substr(2,2))}function vt(z){return i.indexOf(z)!==-1}function bt(z,$){var E=M(z.substr($,2));if(E!==r)return !1;var q=0;for($+=2;q<5;){if(E=M(z.substr($,2)),Eo)return !1;q+=1,$+=2;}return M(z.substr($,2))===s}function It(){this.isLoaded=!0;}var ot=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);};ot.isModifier=N,ot.isZeroWidthJoiner=U,ot.isFlagEmoji=xt,ot.isRegionalCode=dt,ot.isCombinedCharacter=vt,ot.isRegionalFlag=bt,ot.isVariationSelector=Y,ot.BLACK_FLAG_CODE_POINT=r;var Tt={addChars:y,addFonts:A,getCharData:m,getFontByName:w,measureText:x,checkLoadedFonts:d,setIsLoaded:It};return ot.prototype=Tt,ot}();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(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1);},prepareRenderableFrame:function(t){this.checkLayerLimits(t);},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show());},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.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,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.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;t0&&(this.maskElement.setAttribute("id",u),this.element.maskedElement.setAttribute(m,"url("+getLocationHref()+"#"+u+")"),r.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,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",o)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)y=u.transformers[dt].mProps._mdf||y,Y-=1,dt-=1;if(y)for(Y=M-u.styles[x].lvl,dt=u.transformers.length-1;Y>0;)U.multiply(u.transformers[dt].mProps.v),Y-=1,dt-=1;}else U=t;if(N=u.sh.paths,g=N._length,y){for(A="",d=0;d=1?It=.99:It<=-1&&(It=-.99);var ot=vt*It,Tt=Math.cos(bt+u.a.v)*ot+A[0],z=Math.sin(bt+u.a.v)*ot+A[1];d.setAttribute("fx",Tt),d.setAttribute("fy",z),g&&!u.g._collapsable&&(u.of.setAttribute("fx",Tt),u.of.setAttribute("fy",z));}}}function _(v,u,S){var d=u.style,g=u.d;g&&(g._mdf||S)&&g.dashStr&&(d.pElem.setAttribute("stroke-dasharray",g.dashStr),d.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),u.c&&(u.c._mdf||S)&&d.pElem.setAttribute("stroke","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||S)&&d.pElem.setAttribute("stroke-opacity",u.o.v),(u.w._mdf||S)&&(d.pElem.setAttribute("stroke-width",u.w.v),d.msElem&&d.msElem.setAttribute("stroke-width",u.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,r,s=this.stylesList.length,a,o=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(o);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;h-=1){if(A=this.searchProcessedElement(t[h]),A?e[h]=i[A-1]:t[h]._render=o,t[h].ty==="fl"||t[h].ty==="st"||t[h].ty==="gf"||t[h].ty==="gs"||t[h].ty==="no")A?e[h].style.closed=!1:e[h]=this.createStyleElement(t[h],s),t[h]._render&&e[h].style.pElem.parentNode!==r&&r.appendChild(e[h].style.pElem),u.push(e[h].style);else if(t[h].ty==="gr"){if(!A)e[h]=this.createGroupElement(t[h]);else for(v=e[h].it.length,_=0;_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 r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)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,r=t.length,s,a,o=!1,p=!1,h="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?h=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(h=t.substr(i,2),o=!0):FontManager.isFlagEmoji(t.substr(i,4))?h=t.substr(i,4):h=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,p=!0),o?(e[e.length-1]+=h,o=!1):e.push(h),i+=h.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,o,p=0,h,c=i.m.g,_=0,v=0,u=0,S=[],d=0,g=0,A,y,m=e.getFontByName(t.f),x,w=0,M=getFontProperties(m);t.fWeight=M.weight,t.fStyle=M.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var N=t.tr/1e3*t.finalSize,U;if(t.sz)for(var Y=!0,dt=t.sz[0],xt=t.sz[1],vt,bt;Y;){bt=this.buildFinalText(t.t),vt=0,d=0,a=bt.length,N=t.tr/1e3*t.finalSize;var It=-1;for(s=0;sdt&&bt[s]!==" "?(It===-1?a+=1:s=It,vt+=t.finalLineHeight||t.finalSize*1.2,bt.splice(s,It===s?1:0,"\r"),It=-1,d=0):(d+=w,d+=N);vt+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&xtg?d:g,d=-2*N,h="",o=!0,u+=1):h=Tt,e.chars?(x=e.getCharData(Tt,m.fStyle,e.getFontByName(t.f).fFamily),w=o?0:x.w*t.finalSize/100):w=e.measureText(h,t.f,t.finalSize),Tt===" "?ot+=w+N:(d+=w+N+ot,ot=0),r.push({l:w,an:w,add:_,n:o,anIndexes:[],val:h,line:u,animatorJustifyOffset:0}),c==2){if(_+=w,h===""||h===" "||s===a-1){for((h===""||h===" ")&&(_-=w);v<=s;)r[v].an=_,r[v].ind=p,r[v].extra=w,v+=1;p+=1,_=0;}}else if(c==3){if(_+=w,h===""||s===a-1){for(h===""&&(_-=w);v<=s;)r[v].an=_,r[v].ind=p,r[v].extra=w,v+=1;_=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,g=d>g?d:g,S.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=S;var z=i.a,$,E;y=z.length;var q,nt,Q=[];for(A=0;A0?o=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?h=1-this.xe.v/100:c=1+this.xe.v/100;var _=BezierFactory.getBezierEasing(o,p,h,c).get,v=0,u=this.finalS,S=this.finalE,d=this.data.sh;if(d===2)S===u?v=a>=S?1:0:v=t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v=_(v);else if(d===3)S===u?v=a>=S?0:1:v=1-t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v=_(v);else if(d===4)S===u?v=0:(v=t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v<.5?v*=2:v=1-2*(v-.5)),v=_(v);else if(d===5){if(S===u)v=0;else {var g=S-u;a=e(t(0,a+.5-u),S-u);var A=-g/2+a,y=g/2;v=Math.sqrt(1-A*A/(y*y));}v=_(v);}else d===6?(S===u?v=0:(a=e(t(0,a+.5-u),S-u),v=(1+Math.cos(Math.PI+Math.PI*2*a/(S-u)))/2),v=_(v)):(a>=i(u)&&(a-u<0?v=t(0,e(e(S,1)-(u-a),1)):v=t(0,e(S-a,1))),v=_(v));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var x=.5-m*.5;v1&&(v=1));}return v*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/o,h=this.s.v/o+p,c=this.e.v/o+p;if(h>c){var _=h;h=c,c=_;}this.finalS=h,this.finalE=c;}},extendPrototype([DynamicPropertyContainer],r);function s(a,o,p){return new r(a,o)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},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,r=PropertyFactory.getProp;for(t=0;t=d+ke||!M?(dt=(d+ke-A)/g.partialLength,qt=w.point[0]+(g.point[0]-w.point[0])*dt,Gt=w.point[1]+(g.point[1]-w.point[1])*dt,a.translate(-i[0]*u[_].an*.005,-(i[1]*ot)*.01),y=!1):M&&(A+=g.partialLength,m+=1,m>=M.length&&(m=0,x+=1,N[x]?M=N[x].points:vt.v.c?(m=0,x=0,M=N[x].points):(A-=g.partialLength,M=null)),M&&(w=g,g=M[m],U=g.partialLength));zt=u[_].an/2-u[_].add,a.translate(-zt,0,0);}else zt=u[_].an/2-u[_].add,a.translate(-zt,0,0),a.translate(-i[0]*u[_].an*.005,-i[1]*ot*.01,0);for(E=0;Et?this.textSpans[t].span:createNS(p?"g":"text"),x<=t){if(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=h,p){var M=createNS("g");h.appendChild(M),this.textSpans[t].childSpan=M;}this.textSpans[t].span=h,this.layerElement.appendChild(h);}h.style.display="inherit";}if(c.reset(),v&&(o[t].n&&(u=-g,S+=i.yOffset,S+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,c,o[t].line,u,S),u+=o[t].l||0,u+=g),p){w=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var N;if(w.t===1)N=new SVGCompElement(w.data,this.globalData,this);else {var U=emptyShapeData;w.data&&w.data.shapes&&(U=this.buildShapeData(w.data,i.finalSize)),N=new SVGShapeElement(U,this.globalData,this);}if(this.textSpans[t].glyph){var Y=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(Y.layerElement),Y.destroy();}this.textSpans[t].glyph=N,N._debug=!0,N.prepareFrame(0),N.renderFrame(),this.textSpans[t].childSpan.appendChild(N.layerElement),w.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else v&&h.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),h.textContent=o[t].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&h&&h.setAttribute("d",_);}for(;t=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=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=c;)xt/=2,vt/=2,bt>>>=1;return (xt+bt)/vt};return dt.int32=function(){return Y.g(4)|0},dt.quick=function(){return Y.g(4)/4294967296},dt.double=dt,A(m(Y.S),t),(w.pass||M||function(xt,vt,bt,It){return It&&(It.S&&d(It,Y),xt.state=function(){return d(Y,{})}),bt?(e[o]=xt,vt):xt})(dt,U,"global"in w?w.global:this==e,w.state)}e["seed"+o]=u;function S(x){var w,M=x.length,N=this,U=0,Y=N.i=N.j=0,dt=N.S=[];for(M||(x=[M++]);Ui){var r=i;i=e,e=r;}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,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?c/(2-s-a):c/(s+a),s){case e:o=(i-r)/c+(i1&&(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],r=t[2],s,a,o;if(i===0)s=r,o=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,h=2*r-p;s=hue2rgb(h,p,e+1/3),a=hue2rgb(h,p,e),o=hue2rgb(h,p,e-1/3);}return [s,a,o,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*o;var p,h=r.length,c=createTypedArray("float32",h);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(s)){var p,h=s.length,c=createTypedArray("float32",h);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;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 s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iA.length-1)&&(S=A.length-1),x=A[A.length-1-S].t,m=y-x);var w,M,N;if(u==="pingpong"){var U=Math.floor((g-x)/m);if(U%2!==0)return this.getValueAtTime((m-(g-x)%m+x)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var Y=this.getValueAtTime(x/this.comp.globalData.frameRate,0),dt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),xt=this.getValueAtTime(((g-x)%m+x)/this.comp.globalData.frameRate,0),vt=Math.floor((g-x)/m);if(this.pv.length){for(N=new Array(Y.length),M=N.length,w=0;w=y)return this.pv;var m,x;d?(S?m=Math.abs(this.elem.comp.globalData.frameRate*S):m=Math.max(0,this.elem.data.op-y),x=y+m):((!S||S>A.length-1)&&(S=A.length-1),x=A[S].t,m=x-y);var w,M,N;if(u==="pingpong"){var U=Math.floor((y-g)/m);if(U%2===0)return this.getValueAtTime(((y-g)%m+y)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var Y=this.getValueAtTime(y/this.comp.globalData.frameRate,0),dt=this.getValueAtTime(x/this.comp.globalData.frameRate,0),xt=this.getValueAtTime((m-(y-g)%m+y)/this.comp.globalData.frameRate,0),vt=Math.floor((y-g)/m)+1;if(this.pv.length){for(N=new Array(Y.length),M=N.length,w=0;w1?(A-g)/(S-1):1,m=0,x=0,w;this.pv.length?w=createTypedArray("float32",this.pv.length):w=0;for(var M;my){var N=m,U=d.c&&m===x-1?0:m+1,Y=(y-w)/A[m].addedLength;M=bez.getPointInSegment(d.v[N],d.v[U],d.o[N],d.i[U],Y,A[m]);break}else w+=A[m].addedLength;m+=1;}return M||(M=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),M},vectorOnPath:function(u,S,d){u==1?u=this.v.c:u==0&&(u=.999);var g=this.pointOnPath(u,S),A=this.pointOnPath(u+.001,S),y=A[0]-g[0],m=A[1]-g[1],x=Math.sqrt(Math.pow(y,2)+Math.pow(m,2));if(x===0)return [0,0];var w=d==="tangent"?[y/x,m/x]:[-m/x,y/x];return w},tangentOnPath:function(u,S){return this.vectorOnPath(u,S,"tangent")},normalOnPath:function(u,S){return this.vectorOnPath(u,S,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([_],h),extendPrototype([_],c),c.prototype.getValueAtTime=p,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,S,d,g,A){var y=v(u,S,d,g,A);return y.propertyIndex=S.ix,y.lock=!1,d===3?expressionHelpers.searchExpressions(u,S.pt,y):d===4&&expressionHelpers.searchExpressions(u,S.ks,y),y.k&&u.addDynamicProperty(y),y};}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 r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}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 r=createNS("feMerge");r.setAttribute("result",e);var s,a;for(a=0;a=c?v=d<0?r:s:v=r+S*Math.pow((p-t)/d,1/i),_[u]=v,u+=1,a+=256/(o-1);return _.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,r,s){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",r+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",r+"_drop_shadow_1"),h.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=h,t.appendChild(h);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,t.appendChild(c);var _=createNS("feComposite");_.setAttribute("in",r+"_drop_shadow_3"),_.setAttribute("in2",r+"_drop_shadow_2"),_.setAttribute("operator","in"),_.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(_);var v=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(v);}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,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a);}}};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;eAg});var Eg,Ag,oc=Ir(()=>{Fs();Eg=ce((t,e)=>{typeof navigator<"u"&&function(i,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self,i.lottie=r());}(t,function(){var i="http://www.w3.org/2000/svg",r="",s=!1,a=-999999,o=function(n){s=!!n;},p=function(){return s},h=function(n){r=n;},c=function(){return r};function _(n){return document.createElement(n)}function v(n,f){var b,T=n.length,I;for(b=0;b1?b[1]=1:b[1]<=0&&(b[1]=0),q(b[0],b[1],b[2])}function Ut(n,f){var b=nt(n[0]*255,n[1]*255,n[2]*255);return b[2]+=f,b[2]>1?b[2]=1:b[2]<0&&(b[2]=0),q(b[0],b[1],b[2])}function zt(n,f){var b=nt(n[0]*255,n[1]*255,n[2]*255);return b[0]+=f/360,b[0]>1?b[0]-=1:b[0]<0&&(b[0]+=1),q(b[0],b[1],b[2])}(function(){var n=[],f,b;for(f=0;f<256;f+=1)b=f.toString(16),n[f]=b.length===1?"0"+b:b;return function(T,I,F){return T<0&&(T=0),I<0&&(I=0),F<0&&(F=0),"#"+n[T]+n[I]+n[F]}})();var qt=function(n){A=!!n;},Gt=function(){return A},se=function(n){y=n;},he=function(){return y},le=function(n){Y=n;},Se=function(){return Y},Pe=function(n){m=n;};function Jt(n){return document.createElementNS(i,n)}function de(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(f){return typeof f}:de=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},de(n)}var Xt=function(){var n=1,f=[],b,T,I={onmessage:function(){},postMessage:function(H){b({data:H});}},F={postMessage:function(H){I.onmessage({data:H});}};function G(H){if(window.Worker&&window.Blob&&p()){var j=new Blob(["var _workerSelf = self; self.onmessage = ",H.toString()],{type:"text/javascript"}),W=URL.createObjectURL(j);return new Worker(W)}return b=H,I}function K(){T||(T=G(function(H){function j(){function R(Ft,wt){var St,At,ut=Ft.length,Dt,Zt,$t,xe;for(At=0;At=0;wt-=1)if(Ft[wt].ty==="sh")if(Ft[wt].ks.k.i)mt(Ft[wt].ks.k);else for(ut=Ft[wt].ks.k.length,At=0;AtSt[0]?!0:St[0]>Ft[0]?!1:Ft[1]>St[1]?!0:St[1]>Ft[1]?!1:Ft[2]>St[2]?!0:St[2]>Ft[2]?!1:null}var Rt=function(){var Ft=[4,4,14];function wt(At){var ut=At.t.d;At.t.d={k:[{s:ut,t:0}]};}function St(At){var ut,Dt=At.length;for(ut=0;ut=0;ut-=1)if(At[ut].ty==="sh")if(At[ut].ks.k.i)At[ut].ks.k.c=At[ut].closed;else for($t=At[ut].ks.k.length,Zt=0;Zt<$t;Zt+=1)At[ut].ks.k[Zt].s&&(At[ut].ks.k[Zt].s[0].c=At[ut].closed),At[ut].ks.k[Zt].e&&(At[ut].ks.k[Zt].e[0].c=At[ut].closed);else At[ut].ty==="gr"&&wt(At[ut].it);}function St(At){var ut,Dt,Zt=At.length,$t,xe,ge,Me;for(Dt=0;Dt500)&&(this._imageLoaded(),clearInterval(ct)),Z+=1;}.bind(this),50);}function F(at){var Z=T(at,this.assetsPath,this.path),ct=Jt("image");x?this.testImageLoaded(ct):ct.addEventListener("load",this._imageLoaded,!1),ct.addEventListener("error",function(){mt.img=n,this._imageLoaded();}.bind(this),!1),ct.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(ct):this._elementHelper.appendChild(ct);var mt={img:ct,assetData:at};return mt}function G(at){var Z=T(at,this.assetsPath,this.path),ct=_("img");ct.crossOrigin="anonymous",ct.addEventListener("load",this._imageLoaded,!1),ct.addEventListener("error",function(){mt.img=n,this._imageLoaded();}.bind(this),!1),ct.src=Z;var mt={img:ct,assetData:at};return mt}function K(at){var Z={assetData:at},ct=T(at,this.assetsPath,this.path);return Xt.loadData(ct,function(mt){Z.img=mt,this._footageLoaded();}.bind(this),function(){Z.img={},this._footageLoaded();}.bind(this)),Z}function X(at,Z){this.imagesLoadedCb=Z;var ct,mt=at.length;for(ct=0;ctthis.animationData.op&&(this.animationData.op=n.op,this.totalFrames=Math.floor(n.op-this.animationData.ip));var f=this.animationData.layers,b,T=f.length,I=n.layers,F,G=I.length;for(F=0;Fthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},Nt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(n){this.triggerRenderFrameError(n);}},Nt.prototype.play=function(n){n&&this.name!==n||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},Nt.prototype.pause=function(n){n&&this.name!==n||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},Nt.prototype.togglePause=function(n){n&&this.name!==n||(this.isPaused===!0?this.play():this.pause());},Nt.prototype.stop=function(n){n&&this.name!==n||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},Nt.prototype.getMarkerData=function(n){for(var f,b=0;b=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(f>this.totalFrames?f%this.totalFrames:0)||(b=!0,f=this.totalFrames-1):f>=this.totalFrames?(this.playCount+=1,this.checkSegments(f%this.totalFrames)||(this.setCurrentRawFrameValue(f%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(f):f<0?this.checkSegments(f%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+f%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(b=!0,f=0)):this.setCurrentRawFrameValue(f),b&&(this.setCurrentRawFrameValue(f),this.pause(),this.trigger("complete"));}},Nt.prototype.adjustSegment=function(n,f){this.playCount=0,n[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=n[0]-n[1],this.timeCompleted=this.totalFrames,this.firstFrame=n[1],this.setCurrentRawFrameValue(this.totalFrames-.001-f)):n[1]>n[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=n[1]-n[0],this.timeCompleted=this.totalFrames,this.firstFrame=n[0],this.setCurrentRawFrameValue(.001+f)),this.trigger("segmentStart");},Nt.prototype.setSegment=function(n,f){var b=-1;this.isPaused&&(this.currentRawFrame+this.firstFramef&&(b=f-n)),this.firstFrame=n,this.totalFrames=f-n,this.timeCompleted=this.totalFrames,b!==-1&&this.goToAndStop(b,!0);},Nt.prototype.playSegments=function(n,f){if(f&&(this.segments.length=0),re(n[0])==="object"){var b,T=n.length;for(b=0;b=0;At-=1)f[At].animation.destroy(St);}function Lt(St,At,ut){var Dt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Zt,$t=Dt.length;for(Zt=0;Zt<$t;Zt+=1)ut&&Dt[Zt].setAttribute("data-bm-type",ut),X(Dt[Zt],St);if(At&&$t===0){ut||(ut="svg");var xe=document.getElementsByTagName("body")[0];xe.innerText="";var ge=_("div");ge.style.width="100%",ge.style.height="100%",ge.setAttribute("data-bm-type",ut),xe.appendChild(ge),X(ge,St);}}function Kt(){var St;for(St=0;St0?mt=Lt:ct=Lt;while(Math.abs(jt)>F&&++Kt=I?rt(Z,_t,ct,mt):Et===0?_t:R(Z,Rt,Rt+X,ct,mt)}},n}(),ke=function(){function n(f){return f.concat(g(f.length))}return {double:n}}(),$e=function(){return function(n,f,b){var T=0,I=n,F=g(I),G={newElement:K,release:X};function K(){var it;return T?(T-=1,it=F[T]):it=f(),it}function X(it){T===I&&(F=ke.double(F),I*=2),b&&b(it),F[T]=it,T+=1;}return G}}(),vi=function(){function n(){return {addedLength:0,percents:d("float32",Se()),lengths:d("float32",Se())}}return $e(8,n)}(),bi=function(){function n(){return {lengths:[],totalLength:0}}function f(b){var T,I=b.lengths.length;for(T=0;T-.001&&Z<.001}function b(H,j,W,R,rt,at,Z,ct,mt){if(W===0&&at===0&&mt===0)return f(H,j,R,rt,Z,ct);var Pt=n.sqrt(n.pow(R-H,2)+n.pow(rt-j,2)+n.pow(at-W,2)),Rt=n.sqrt(n.pow(Z-H,2)+n.pow(ct-j,2)+n.pow(mt-W,2)),jt=n.sqrt(n.pow(Z-R,2)+n.pow(ct-rt,2)+n.pow(mt-at,2)),Lt;return Pt>Rt?Pt>jt?Lt=Pt-Rt-jt:Lt=jt-Rt-Pt:jt>Rt?Lt=jt-Rt-Pt:Lt=Rt-Pt-jt,Lt>-1e-4&&Lt<1e-4}var T=function(){return function(H,j,W,R){var rt=Se(),at,Z,ct,mt,Pt,Rt=0,jt,Lt=[],Kt=[],_t=vi.newElement();for(ct=W.length,at=0;atZ?-1:1,Pt=!0;Pt;)if(R[at]<=Z&&R[at+1]>Z?(ct=(Z-R[at])/(R[at+1]-R[at]),Pt=!1):at+=mt,at<0||at>=rt-1){if(at===rt-1)return W[at];Pt=!1;}return W[at]+(W[at+1]-W[at])*ct}function it(H,j,W,R,rt,at){var Z=X(rt,at),ct=1-Z,mt=n.round((ct*ct*ct*H[0]+(Z*ct*ct+ct*Z*ct+ct*ct*Z)*W[0]+(Z*Z*ct+ct*Z*Z+Z*ct*Z)*R[0]+Z*Z*Z*j[0])*1e3)/1e3,Pt=n.round((ct*ct*ct*H[1]+(Z*ct*ct+ct*Z*ct+ct*ct*Z)*W[1]+(Z*Z*ct+ct*Z*Z+Z*ct*Z)*R[1]+Z*Z*Z*j[1])*1e3)/1e3;return [mt,Pt]}var lt=d("float32",8);function tt(H,j,W,R,rt,at,Z){rt<0?rt=0:rt>1&&(rt=1);var ct=X(rt,Z);at=at>1?1:at;var mt=X(at,Z),Pt,Rt=H.length,jt=1-ct,Lt=1-mt,Kt=jt*jt*jt,_t=ct*jt*jt*3,Et=ct*ct*jt*3,ht=ct*ct*ct,Ct=jt*jt*Lt,Ft=ct*jt*Lt+jt*ct*Lt+jt*jt*mt,wt=ct*ct*Lt+jt*ct*mt+ct*jt*mt,St=ct*ct*mt,At=jt*Lt*Lt,ut=ct*Lt*Lt+jt*mt*Lt+jt*Lt*mt,Dt=ct*mt*Lt+jt*mt*mt+ct*Lt*mt,Zt=ct*mt*mt,$t=Lt*Lt*Lt,xe=mt*Lt*Lt+Lt*mt*Lt+Lt*Lt*mt,ge=mt*mt*Lt+Lt*mt*mt+mt*Lt*mt,Me=mt*mt*mt;for(Pt=0;Pt=it.t-b){X.h&&(X=it),I=0;break}if(it.t-b>n){I=F;break}F=at||n=at?mt.points.length-1:0;for(H=mt.points[Pt].point.length,tt=0;tt=Lt&&Rt=at)T[0]=ct[0],T[1]=ct[1],T[2]=ct[2];else if(n<=Z)T[0]=X.s[0],T[1]=X.s[1],T[2]=X.s[2];else {var Ft=ns(X.s),wt=ns(ct),St=(n-Z)/(at-Z);jr(T,ha(Ft,wt,St));}else for(F=0;F=at?j=1:n1e-6?(H=Math.acos(j),W=Math.sin(H),R=Math.sin((1-b)*H)/W,rt=Math.sin(b*H)/W):(R=1-b,rt=b),T[0]=R*I+rt*X,T[1]=R*F+rt*it,T[2]=R*G+rt*lt,T[3]=R*K+rt*tt,T}function jr(n,f){var b=f[0],T=f[1],I=f[2],F=f[3],G=Math.atan2(2*T*F-2*b*I,1-2*T*T-2*I*I),K=Math.asin(2*b*T+2*I*F),X=Math.atan2(2*b*F-2*T*I,1-2*b*b-2*I*I);n[0]=G/dt,n[1]=K/dt,n[2]=X/dt;}function ns(n){var f=n[0]*dt,b=n[1]*dt,T=n[2]*dt,I=Math.cos(f/2),F=Math.cos(b/2),G=Math.cos(T/2),K=Math.sin(f/2),X=Math.sin(b/2),it=Math.sin(T/2),lt=I*F*G-K*X*it,tt=K*X*G+I*F*it,H=K*F*G+I*X*it,j=I*X*G-K*F*it;return [tt,H,j,lt]}function Js(){var n=this.comp.renderedFrame-this.offsetTime,f=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(n===this._caching.lastFrame||this._caching.lastFrame!==Xi&&(this._caching.lastFrame>=b&&n>=b||this._caching.lastFrame=n&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var T=this.interpolateValue(n,this._caching);this.pv=T;}return this._caching.lastFrame=n,this.pv}function Rr(n){var f;if(this.propType==="unidimensional")f=n*this.mult,Ki(this.v-f)>1e-5&&(this.v=f,this._mdf=!0);else for(var b=0,T=this.v.length;b1e-5&&(this.v[b]=f,this._mdf=!0),b+=1;}function qr(){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 n,f=this.effectsSequence.length,b=this.kf?this.pv:this.data.k;for(n=0;n=this._maxLength&&this.doubleArrayLength(),b){case"v":F=this.v;break;case"i":F=this.i;break;case"o":F=this.o;break;default:F=[];break}(!F[T]||F[T]&&!I)&&(F[T]=pe.newElement()),F[T][0]=n,F[T][1]=f;},Ye.prototype.setTripleAt=function(n,f,b,T,I,F,G,K){this.setXYAt(n,f,"v",G,K),this.setXYAt(b,T,"o",G,K),this.setXYAt(I,F,"i",G,K);},Ye.prototype.reverse=function(){var n=new Ye;n.setPathData(this.c,this._length);var f=this.v,b=this.o,T=this.i,I=0;this.c&&(n.setTripleAt(f[0][0],f[0][1],T[0][0],T[0][1],b[0][0],b[0][1],0,!1),I=1);var F=this._length-1,G=this._length,K;for(K=I;K=Ft[Ft.length-1].t-this.offsetTime)Pt=Ft[Ft.length-1].s?Ft[Ft.length-1].s[0]:Ft[Ft.length-2].e[0],jt=!0;else {for(var wt=mt,St=Ft.length-1,At=!0,ut,Dt,Zt;At&&(ut=Ft[wt],Dt=Ft[wt+1],!(Dt.t-this.offsetTime>at));)wt=Dt.t-this.offsetTime)ht=1;else if(atct&&at>ct)||(this._caching.lastIndex=mt0||ut>-1e-6&&ut<0?T(ut*Dt)/Dt:ut}function At(){var ut=this.props,Dt=St(ut[0]),Zt=St(ut[1]),$t=St(ut[4]),xe=St(ut[5]),ge=St(ut[12]),Me=St(ut[13]);return "matrix("+Dt+","+Zt+","+$t+","+xe+","+ge+","+Me+")"}return function(){this.reset=I,this.rotate=F,this.rotateX=G,this.rotateY=K,this.rotateZ=X,this.skew=lt,this.skewFromAxis=tt,this.shear=it,this.scale=H,this.setTransform=j,this.translate=W,this.transform=R,this.multiply=rt,this.applyToPoint=Pt,this.applyToX=Rt,this.applyToY=jt,this.applyToZ=Lt,this.applyToPointArray=Ct,this.applyToTriplePoints=ht,this.applyToPointStringified=Ft,this.toCSS=wt,this.to2dCSS=At,this.clone=ct,this.cloneFromProps=mt,this.equals=Z,this.inversePoints=Et,this.inversePoint=_t,this.getInverseMatrix=Kt,this._t=this.transform,this.isIdentity=at,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset();}}();function kr(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(f){return typeof f}:kr=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},kr(n)}var ue={};function Vs(n){h(n);}function ti(){ae.searchAnimations();}function Ta(n){qt(n);}function la(n){Pe(n);}function Ma(n){return ae.loadAnimation(n)}function os(n){if(typeof n=="string")switch(n){case"high":le(200);break;default:case"medium":le(50);break;case"low":le(10);break}else !isNaN(n)&&n>1&&le(n);}function Da(){return typeof navigator<"u"}function Fa(n,f){n==="expressions"&&se(f);}function Ia(n){switch(n){case"propertyFactory":return te;case"shapePropertyFactory":return gr;case"matrix":return Ge;default:return null}}ue.play=ae.play,ue.pause=ae.pause,ue.setLocationHref=Vs,ue.togglePause=ae.togglePause,ue.setSpeed=ae.setSpeed,ue.setDirection=ae.setDirection,ue.stop=ae.stop,ue.searchAnimations=ti,ue.registerAnimation=ae.registerAnimation,ue.loadAnimation=Ma,ue.setSubframeRendering=Ta,ue.resize=ae.resize,ue.goToAndStop=ae.goToAndStop,ue.destroy=ae.destroy,ue.setQuality=os,ue.inBrowser=Da,ue.installPlugin=Fa,ue.freeze=ae.freeze,ue.unfreeze=ae.unfreeze,ue.setVolume=ae.setVolume,ue.mute=ae.mute,ue.unmute=ae.unmute,ue.getRegisteredAnimations=ae.getRegisteredAnimations,ue.useWebWorker=o,ue.setIDPrefix=la,ue.__getFactory=Ia,ue.version="5.12.2";function La(){document.readyState==="complete"&&(clearInterval(Ys),ti());}function Va(n){for(var f=Xs.split("&"),b=0;b"u"?"undefined":kr(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ue);}catch{}var Ii=function(){var n={},f={};n.registerModifier=b,n.getModifier=T;function b(I,F){f[I]||(f[I]=F);}function T(I,F,G){return new f[I](F,G)}return n}();function ni(){}ni.prototype.initModifierProperties=function(){},ni.prototype.addShapeToModifier=function(){},ni.prototype.addShape=function(n){if(!this.closed){n.sh.container.addDynamicProperty(n.sh);var f={shape:n.sh,data:n,localShapeCollection:ai.newShapeCollection()};this.shapes.push(f),this.addShapeToModifier(f),this._isAnimated&&n.setAsAnimated();}},ni.prototype.init=function(n,f){this.shapes=[],this.elem=n,this.initDynamicPropertyContainer(n),this.initModifierProperties(n,f),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ni.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},v([Xe],ni);function ei(){}v([ni],ei),ei.prototype.initModifierProperties=function(n,f){this.s=te.getProp(n,f.s,0,.01,this),this.e=te.getProp(n,f.e,0,.01,this),this.o=te.getProp(n,f.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=f.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},ei.prototype.addShapeToModifier=function(n){n.pathsData=[];},ei.prototype.calculateShapeEdges=function(n,f,b,T,I){var F=[];f<=1?F.push({s:n,e:f}):n>=1?F.push({s:n-1,e:f-1}):(F.push({s:n,e:1}),F.push({s:0,e:f-1}));var G=[],K,X=F.length,it;for(K=0;KT+b)){var lt,tt;it.s*I<=T?lt=0:lt=(it.s*I-T)/b,it.e*I>=T+b?tt=1:tt=(it.e*I-T)/b,G.push([lt,tt]);}return G.length||G.push([0,0]),G},ei.prototype.releasePathsData=function(n){var f,b=n.length;for(f=0;f1?f=1+T:this.s.v<0?f=0+T:f=this.s.v+T,this.e.v>1?b=1+T:this.e.v<0?b=0+T:b=this.e.v+T,f>b){var I=f;f=b,b=I;}f=Math.round(f*1e4)*1e-4,b=Math.round(b*1e4)*1e-4,this.sValue=f,this.eValue=b;}else f=this.sValue,b=this.eValue;var F,G,K=this.shapes.length,X,it,lt,tt,H,j=0;if(b===f)for(G=0;G=0;G-=1)if(R=this.shapes[G],R.shape._mdf){for(rt=R.localShapeCollection,rt.releaseShapes(),this.m===2&&K>1?(mt=this.calculateShapeEdges(f,b,R.totalShapeLength,ct,j),ct+=R.totalShapeLength):mt=[[at,Z]],it=mt.length,X=0;X=1?W.push({s:R.totalShapeLength*(at-1),e:R.totalShapeLength*(Z-1)}):(W.push({s:R.totalShapeLength*at,e:R.totalShapeLength}),W.push({s:0,e:R.totalShapeLength*(Z-1)}));var Pt=this.addShapes(R,W[0]);if(W[0].s!==W[0].e){if(W.length>1){var Rt=R.shape.paths.shapes[R.shape.paths._length-1];if(Rt.c){var jt=Pt.pop();this.addPaths(Pt,rt),Pt=this.addShapes(R,W[1],jt);}else this.addPaths(Pt,rt),Pt=this.addShapes(R,W[1]);}this.addPaths(Pt,rt);}}R.shape.paths=rt;}}},ei.prototype.addPaths=function(n,f){var b,T=n.length;for(b=0;bf.e){b.c=!1;break}else f.s<=it&&f.e>=it+lt.addedLength?(this.addSegment(I[F].v[K-1],I[F].o[K-1],I[F].i[K],I[F].v[K],b,tt,rt),rt=!1):(j=ki.getNewSegment(I[F].v[K-1],I[F].v[K],I[F].o[K-1],I[F].i[K],(f.s-it)/lt.addedLength,(f.e-it)/lt.addedLength,H[K-1]),this.addSegmentFromArray(j,b,tt,rt),rt=!1,b.c=!1),it+=lt.addedLength,tt+=1;if(I[F].c&&H.length){if(lt=H[K-1],it<=f.e){var at=H[K-1].addedLength;f.s<=it&&f.e>=it+at?(this.addSegment(I[F].v[K-1],I[F].o[K-1],I[F].i[0],I[F].v[0],b,tt,rt),rt=!1):(j=ki.getNewSegment(I[F].v[K-1],I[F].v[0],I[F].o[K-1],I[F].i[0],(f.s-it)/at,(f.e-it)/at,H[K-1]),this.addSegmentFromArray(j,b,tt,rt),rt=!1,b.c=!1);}else b.c=!1;it+=lt.addedLength,tt+=1;}if(b._length&&(b.setXYAt(b.v[R][0],b.v[R][1],"i",R),b.setXYAt(b.v[b._length-1][0],b.v[b._length-1][1],"o",b._length-1)),it>f.e)break;F=this.p.keyframes[this.p.keyframes.length-1].t?(lt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/it,0),tt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/it,0)):(lt=this.p.pv,tt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/it,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){lt=[],tt=[];var H=this.px,j=this.py;H._caching.lastFrame+H.offsetTime<=H.keyframes[0].t?(lt[0]=H.getValueAtTime((H.keyframes[0].t+.01)/it,0),lt[1]=j.getValueAtTime((j.keyframes[0].t+.01)/it,0),tt[0]=H.getValueAtTime(H.keyframes[0].t/it,0),tt[1]=j.getValueAtTime(j.keyframes[0].t/it,0)):H._caching.lastFrame+H.offsetTime>=H.keyframes[H.keyframes.length-1].t?(lt[0]=H.getValueAtTime(H.keyframes[H.keyframes.length-1].t/it,0),lt[1]=j.getValueAtTime(j.keyframes[j.keyframes.length-1].t/it,0),tt[0]=H.getValueAtTime((H.keyframes[H.keyframes.length-1].t-.01)/it,0),tt[1]=j.getValueAtTime((j.keyframes[j.keyframes.length-1].t-.01)/it,0)):(lt=[H.pv,j.pv],tt[0]=H.getValueAtTime((H._caching.lastFrame+H.offsetTime-.01)/it,H.offsetTime),tt[1]=j.getValueAtTime((j._caching.lastFrame+j.offsetTime-.01)/it,j.offsetTime));}else tt=n,lt=tt;this.v.rotate(-Math.atan2(lt[1]-tt[1],lt[0]-tt[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 T(){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 I(){}function F(X){this._addDynamicProperty(X),this.elem.addDynamicProperty(X),this._isDirty=!0;}function G(X,it,lt){if(this.elem=X,this.frameId=-1,this.propType="transform",this.data=it,this.v=new Ge,this.pre=new Ge,this.appliedTransformations=0,this.initDynamicPropertyContainer(lt||X),it.p&&it.p.s?(this.px=te.getProp(X,it.p.x,0,0,this),this.py=te.getProp(X,it.p.y,0,0,this),it.p.z&&(this.pz=te.getProp(X,it.p.z,0,0,this))):this.p=te.getProp(X,it.p||{k:[0,0,0]},1,0,this),it.rx){if(this.rx=te.getProp(X,it.rx,0,dt,this),this.ry=te.getProp(X,it.ry,0,dt,this),this.rz=te.getProp(X,it.rz,0,dt,this),it.or.k[0].ti){var tt,H=it.or.k.length;for(tt=0;tt0;)b-=1,this._elements.unshift(f[b]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},mi.prototype.resetElements=function(n){var f,b=n.length;for(f=0;f0?Math.floor(H):Math.ceil(H),R=this.pMatrix.props,rt=this.rMatrix.props,at=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(H>0){for(;ZW;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-j,!0),Z-=j);}T=this.data.m===1?0:this._currentCopies-1,I=this.data.m===1?1:-1,F=this._currentCopies;for(var ct,mt;F;){if(f=this.elemsData[T].it,b=f[f.length-1].transform.mProps.v.props,mt=b.length,f[f.length-1].transform.mProps._mdf=!0,f[f.length-1].transform.op._mdf=!0,f[f.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(T/(this._currentCopies-1)),Z!==0){for((T!==0&&I===1||T!==this._currentCopies-1&&I===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],rt[8],rt[9],rt[10],rt[11],rt[12],rt[13],rt[14],rt[15]),this.matrix.transform(at[0],at[1],at[2],at[3],at[4],at[5],at[6],at[7],at[8],at[9],at[10],at[11],at[12],at[13],at[14],at[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),ct=0;ct0&&T<1?[f]:[]:[f-T,f+T].filter(function(I){return I>0&&I<1})},Ne.prototype.split=function(n){if(n<=0)return [Zs(this.points[0]),this];if(n>=1)return [this,Zs(this.points[this.points.length-1])];var f=zi(this.points[0],this.points[1],n),b=zi(this.points[1],this.points[2],n),T=zi(this.points[2],this.points[3],n),I=zi(f,b,n),F=zi(b,T,n),G=zi(I,F,n);return [new Ne(this.points[0],f,I,G,!0),new Ne(G,F,T,this.points[3],!0)]};function Rs(n,f){var b=n.points[0][f],T=n.points[n.points.length-1][f];if(b>T){var I=T;T=b,b=I;}for(var F=fa(3*n.a[f],2*n.b[f],n.c[f]),G=0;G0&&F[G]<1){var K=n.point(F[G])[f];KT&&(T=K);}return {min:b,max:T}}Ne.prototype.bounds=function(){return {x:Rs(this,0),y:Rs(this,1)}},Ne.prototype.boundingBox=function(){var n=this.bounds();return {left:n.x.min,right:n.x.max,top:n.y.min,bottom:n.y.max,width:n.x.max-n.x.min,height:n.y.max-n.y.min,cx:(n.x.max+n.x.min)/2,cy:(n.y.max+n.y.min)/2}};function ri(n,f,b){var T=n.boundingBox();return {cx:T.cx,cy:T.cy,width:T.width,height:T.height,bez:n,t:(f+b)/2,t1:f,t2:b}}function ts(n){var f=n.bez.split(.5);return [ri(f[0],n.t1,n.t),ri(f[1],n.t,n.t2)]}function ls(n,f){return Math.abs(n.cx-f.cx)*2=F||n.width<=T&&n.height<=T&&f.width<=T&&f.height<=T){I.push([n.t,f.t]);return}var G=ts(n),K=ts(f);Er(G[0],K[0],b+1,T,I,F),Er(G[0],K[1],b+1,T,I,F),Er(G[1],K[0],b+1,T,I,F),Er(G[1],K[1],b+1,T,I,F);}}Ne.prototype.intersections=function(n,f,b){f===void 0&&(f=2),b===void 0&&(b=7);var T=[];return Er(ri(this,0,1),ri(n,0,1),0,f,T,b),T},Ne.shapeSegment=function(n,f){var b=(f+1)%n.length();return new Ne(n.v[f],n.o[f],n.i[b],n.v[b],!0)},Ne.shapeSegmentInverted=function(n,f){var b=(f+1)%n.length();return new Ne(n.v[b],n.i[b],n.o[f],n.v[f],!0)};function xs(n,f){return [n[1]*f[2]-n[2]*f[1],n[2]*f[0]-n[0]*f[2],n[0]*f[1]-n[1]*f[0]]}function sr(n,f,b,T){var I=[n[0],n[1],1],F=[f[0],f[1],1],G=[b[0],b[1],1],K=[T[0],T[1],1],X=xs(xs(I,F),xs(G,K));return Or(X[2])?null:[X[0]/X[2],X[1]/X[2]]}function tr(n,f,b){return [n[0]+Math.cos(f)*b,n[1]-Math.sin(f)*b]}function Hr(n,f){return Math.hypot(n[0]-f[0],n[1]-f[1])}function qi(n,f){return ji(n[0],f[0])&&ji(n[1],f[1])}function ar(){}v([ni],ar),ar.prototype.initModifierProperties=function(n,f){this.getValue=this.processKeys,this.amplitude=te.getProp(n,f.s,0,null,this),this.frequency=te.getProp(n,f.r,0,null,this),this.pointsType=te.getProp(n,f.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function Wr(n,f,b,T,I,F,G){var K=b-Math.PI/2,X=b+Math.PI/2,it=f[0]+Math.cos(b)*T*I,lt=f[1]-Math.sin(b)*T*I;n.setTripleAt(it,lt,it+Math.cos(K)*F,lt-Math.sin(K)*F,it+Math.cos(X)*G,lt-Math.sin(X)*G,n.length());}function _s(n,f){var b=[f[0]-n[0],f[1]-n[1]],T=-Math.PI*.5,I=[Math.cos(T)*b[0]-Math.sin(T)*b[1],Math.sin(T)*b[0]+Math.cos(T)*b[1]];return I}function ca(n,f){var b=f===0?n.length()-1:f-1,T=(f+1)%n.length(),I=n.v[b],F=n.v[T],G=_s(I,F);return Math.atan2(0,1)-Math.atan2(G[1],G[0])}function Ps(n,f,b,T,I,F,G){var K=ca(f,b),X=f.v[b%f._length],it=f.v[b===0?f._length-1:b-1],lt=f.v[(b+1)%f._length],tt=F===2?Math.sqrt(Math.pow(X[0]-it[0],2)+Math.pow(X[1]-it[1],2)):0,H=F===2?Math.sqrt(Math.pow(X[0]-lt[0],2)+Math.pow(X[1]-lt[1],2)):0;Wr(n,f.v[b%f._length],K,G,T,H/((I+1)*2),tt/((I+1)*2));}function Ra(n,f,b,T,I,F){for(var G=0;G1&&f.length>1&&(I=Ar(n[0],f[f.length-1]),I)?[[n[0].split(I[0])[0]],[f[f.length-1].split(I[1])[1]]]:[b,T]}function Os(n){for(var f,b=1;b1&&(f=fs(n[n.length-1],n[0]),n[n.length-1]=f[0],n[0]=f[1]),n}function Bs(n,f){var b=n.inflectionPoints(),T,I,F,G;if(b.length===0)return [yr(n,f)];if(b.length===1||ji(b[1],1))return F=n.split(b[0]),T=F[0],I=F[1],[yr(T,f),yr(I,f)];F=n.split(b[0]),T=F[0];var K=(b[1]-b[0])/(1-b[0]);return F=F[1].split(K),G=F[0],I=F[1],[yr(T,f),yr(G,f),yr(I,f)]}function Cr(){}v([ni],Cr),Cr.prototype.initModifierProperties=function(n,f){this.getValue=this.processKeys,this.amount=te.getProp(n,f.a,0,null,this),this.miterLimit=te.getProp(n,f.ml,0,null,this),this.lineJoin=f.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},Cr.prototype.processPath=function(n,f,b,T){var I=Ve.newElement();I.c=n.c;var F=n.length();n.c||(F-=1);var G,K,X,it=[];for(G=0;G=0;G-=1)X=Ne.shapeSegmentInverted(n,G),it.push(Bs(X,f));it=Os(it);var lt=null,tt=null;for(G=0;G0&&(xe=!1),xe){var we=_("style");we.setAttribute("f-forigin",ut[Dt].fOrigin),we.setAttribute("f-origin",ut[Dt].origin),we.setAttribute("f-family",ut[Dt].fFamily),we.type="text/css",we.innerText="@font-face {font-family: "+ut[Dt].fFamily+"; font-style: normal; src: url('"+ut[Dt].fPath+"');}",At.appendChild(we);}}else if(ut[Dt].fOrigin==="g"||ut[Dt].origin===1){for(ge=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Me=0;Me=55296&&ut<=56319){var Dt=St.charCodeAt(1);Dt>=56320&&Dt<=57343&&(At=(ut-55296)*1024+Dt-56320+65536);}return At}function Rt(St,At){var ut=St.toString(16)+At.toString(16);return tt.indexOf(ut)!==-1}function jt(St){return St===X}function Lt(St){return St===K}function Kt(St){var At=Pt(St);return At>=it&&At<=lt}function _t(St){return Kt(St.substr(0,2))&&Kt(St.substr(2,2))}function Et(St){return b.indexOf(St)!==-1}function ht(St,At){var ut=Pt(St.substr(At,2));if(ut!==T)return !1;var Dt=0;for(At+=2;Dt<5;){if(ut=Pt(St.substr(At,2)),utG)return !1;Dt+=1,At+=2;}return Pt(St.substr(At,2))===I}function Ct(){this.isLoaded=!0;}var Ft=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);};Ft.isModifier=Rt,Ft.isZeroWidthJoiner=jt,Ft.isFlagEmoji=_t,Ft.isRegionalCode=Kt,Ft.isCombinedCharacter=Et,Ft.isRegionalFlag=ht,Ft.isVariationSelector=Lt,Ft.BLACK_FLAG_CODE_POINT=T;var wt={addChars:at,addFonts:rt,getCharData:Z,getFontByName:mt,measureText:ct,checkLoadedFonts:W,setIsLoaded:Ct};return Ft.prototype=wt,Ft}();function Tr(n){this.animationData=n;}Tr.prototype.getProp=function(n){return this.animationData.slots&&this.animationData.slots[n.sid]?Object.assign(n,this.animationData.slots[n.sid].p):n};function vr(n){return new Tr(n)}function nr(){}nr.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(n){this.renderableComponents.indexOf(n)===-1&&this.renderableComponents.push(n);},removeRenderableComponent:function(n){this.renderableComponents.indexOf(n)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(n),1);},prepareRenderableFrame:function(n){this.checkLayerLimits(n);},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(n){this.data.ip-this.data.st<=n&&this.data.op-this.data.st>n?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 n,f=this.renderableComponents.length;for(n=0;n.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},ve.prototype.show=function(){},ve.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},ve.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},ve.prototype.resume=function(){this._canPlay=!0;},ve.prototype.setRate=function(n){this.audio.rate(n);},ve.prototype.volume=function(n){this._volumeMultiplier=n,this._previousVolume=n*this._volume,this.audio.volume(this._previousVolume);},ve.prototype.getBaseElement=function(){return null},ve.prototype.destroy=function(){},ve.prototype.sourceRectAtTime=function(){},ve.prototype.initExpressions=function(){};function Ae(){}Ae.prototype.checkLayers=function(n){var f,b=this.layers.length,T;for(this.completeLayers=!0,f=b-1;f>=0;f-=1)this.elements[f]||(T=this.layers[f],T.ip-T.st<=n-this.layers[f].st&&T.op-T.st>n-this.layers[f].st&&this.buildItem(f)),this.completeLayers=this.elements[f]?this.completeLayers:!1;this.checkPendingElements();},Ae.prototype.createItem=function(n){switch(n.ty){case 2:return this.createImage(n);case 0:return this.createComp(n);case 1:return this.createSolid(n);case 3:return this.createNull(n);case 4:return this.createShape(n);case 5:return this.createText(n);case 6:return this.createAudio(n);case 13:return this.createCamera(n);case 15:return this.createFootage(n);default:return this.createNull(n)}},Ae.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ae.prototype.createAudio=function(n){return new ve(n,this.globalData,this)},Ae.prototype.createFootage=function(n){return new De(n,this.globalData,this)},Ae.prototype.buildAllItems=function(){var n,f=this.layers.length;for(n=0;n0&&(this.maskElement.setAttribute("id",H),this.element.maskedElement.setAttribute(Z,"url("+c()+"#"+H+")"),T.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Vi.prototype.getMaskProperty=function(n){return this.viewData[n].prop},Vi.prototype.renderFrame=function(n){var f=this.element.finalTransform.mat,b,T=this.masksProperties.length;for(b=0;b1&&(T+=" C"+f.o[I-1][0]+","+f.o[I-1][1]+" "+f.i[0][0]+","+f.i[0][1]+" "+f.v[0][0]+","+f.v[0][1]),b.lastPath!==T){var G="";b.elem&&(f.c&&(G=n.inv?this.solidPath+T:T),b.elem.setAttribute("d",G)),b.lastPath=T;}},Vi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var Ei=function(){var n={};n.createFilter=f,n.createAlphaToLuminanceFilter=b;function f(T,I){var F=Jt("filter");return F.setAttribute("id",T),I!==!0&&(F.setAttribute("filterUnits","objectBoundingBox"),F.setAttribute("x","0%"),F.setAttribute("y","0%"),F.setAttribute("width","100%"),F.setAttribute("height","100%")),F}function b(){var T=Jt("feColorMatrix");return T.setAttribute("type","matrix"),T.setAttribute("color-interpolation-filters","sRGB"),T.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),T}return n}(),Yi=function(){var n={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))&&(n.maskType=!1),/firefox/i.test(navigator.userAgent)&&(n.svgLumaHidden=!1),n}(),Mr={},da="filter_result_";function Ss(n){var f,b="SourceGraphic",T=n.data.ef?n.data.ef.length:0,I=E(),F=Ei.createFilter(I,!0),G=0;this.filters=[];var K;for(f=0;f=0&&(b=this.shapeModifiers[n].processShapes(this._isFirstFrame),!b);n-=1);}},searchProcessedElement:function(n){for(var f=this.processedElements,b=0,T=f.length;b.01)return !1;b+=1;}return !0},Br.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var n=0,f=this.data.k.k.length;n0;)at=H.transformers[Kt].mProps._mdf||at,Lt-=1,Kt-=1;if(at)for(Lt=Pt-H.styles[ct].lvl,Kt=H.transformers.length-1;Lt>0;)jt.multiply(H.transformers[Kt].mProps.v),Lt-=1,Kt-=1;}else jt=n;if(Rt=H.sh.paths,R=Rt._length,at){for(rt="",W=0;W=1?Ct=.99:Ct<=-1&&(Ct=-.99);var Ft=Et*Ct,wt=Math.cos(ht+H.a.v)*Ft+rt[0],St=Math.sin(ht+H.a.v)*Ft+rt[1];W.setAttribute("fx",wt),W.setAttribute("fy",St),R&&!H.g._collapsable&&(H.of.setAttribute("fx",wt),H.of.setAttribute("fy",St));}}}function lt(tt,H,j){var W=H.style,R=H.d;R&&(R._mdf||j)&&R.dashStr&&(W.pElem.setAttribute("stroke-dasharray",R.dashStr),W.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),H.c&&(H.c._mdf||j)&&W.pElem.setAttribute("stroke","rgb("+N(H.c.v[0])+","+N(H.c.v[1])+","+N(H.c.v[2])+")"),(H.o._mdf||j)&&W.pElem.setAttribute("stroke-opacity",H.o.v),(H.w._mdf||j)&&(W.pElem.setAttribute("stroke-width",H.w.v),W.msElem&&W.msElem.setAttribute("stroke-width",H.w.v));}return b}();function je(n,f,b){this.shapes=[],this.shapesData=n.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(n,f,b),this.prevViewData=[];}v([Te,Be,Jr,is,Ui,Fe,er],je),je.prototype.initSecondaryElement=function(){},je.prototype.identityMatrix=new Ge,je.prototype.buildExpressionInterface=function(){},je.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},je.prototype.filterUniqueShapes=function(){var n,f=this.shapes.length,b,T,I=this.stylesList.length,F,G=[],K=!1;for(T=0;T1&&K&&this.setShapesAsAnimated(G);}},je.prototype.setShapesAsAnimated=function(n){var f,b=n.length;for(f=0;f=0;X-=1){if(rt=this.searchProcessedElement(n[X]),rt?f[X]=b[rt-1]:n[X]._render=G,n[X].ty==="fl"||n[X].ty==="st"||n[X].ty==="gf"||n[X].ty==="gs"||n[X].ty==="no")rt?f[X].style.closed=!1:f[X]=this.createStyleElement(n[X],I),n[X]._render&&f[X].style.pElem.parentNode!==T&&T.appendChild(f[X].style.pElem),H.push(f[X].style);else if(n[X].ty==="gr"){if(!rt)f[X]=this.createGroupElement(n[X]);else for(tt=f[X].it.length,lt=0;lt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ie.prototype.addEffect=function(n){this.effectsSequence.push(n),this.elem.addDynamicProperty(this);},Ie.prototype.getValue=function(n){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!n)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var f=this.currentData,b=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var T,I=this.effectsSequence.length,F=n||this.data.d.k[this.keysIndex].s;for(T=0;Tf);)b+=1;return this.keysIndex!==b&&(this.keysIndex=b),this.data.d.k[this.keysIndex].s},Ie.prototype.buildFinalText=function(n){for(var f=[],b=0,T=n.length,I,F,G=!1,K=!1,X="";b=55296&&I<=56319?Li.isRegionalFlag(n,b)?X=n.substr(b,14):(F=n.charCodeAt(b+1),F>=56320&&F<=57343&&(Li.isModifier(I,F)?(X=n.substr(b,2),G=!0):Li.isFlagEmoji(n.substr(b,4))?X=n.substr(b,4):X=n.substr(b,2))):I>56319?(F=n.charCodeAt(b+1),Li.isVariationSelector(I)&&(G=!0)):Li.isZeroWidthJoiner(I)&&(G=!0,K=!0),G?(f[f.length-1]+=X,G=!1):f.push(X),b+=X.length;return f},Ie.prototype.completeTextData=function(n){n.__complete=!0;var f=this.elem.globalData.fontManager,b=this.data,T=[],I,F,G,K=0,X,it=b.m.g,lt=0,tt=0,H=0,j=[],W=0,R=0,rt,at,Z=f.getFontByName(n.f),ct,mt=0,Pt=cs(Z);n.fWeight=Pt.weight,n.fStyle=Pt.style,n.finalSize=n.s,n.finalText=this.buildFinalText(n.t),F=n.finalText.length,n.finalLineHeight=n.lh;var Rt=n.tr/1e3*n.finalSize,jt;if(n.sz)for(var Lt=!0,Kt=n.sz[0],_t=n.sz[1],Et,ht;Lt;){ht=this.buildFinalText(n.t),Et=0,W=0,F=ht.length,Rt=n.tr/1e3*n.finalSize;var Ct=-1;for(I=0;IKt&&ht[I]!==" "?(Ct===-1?F+=1:I=Ct,Et+=n.finalLineHeight||n.finalSize*1.2,ht.splice(I,Ct===I?1:0,"\r"),Ct=-1,W=0):(W+=mt,W+=Rt);Et+=Z.ascent*n.finalSize/100,this.canResize&&n.finalSize>this.minimumFontSize&&_tR?W:R,W=-2*Rt,X="",G=!0,H+=1):X=wt,f.chars?(ct=f.getCharData(wt,Z.fStyle,f.getFontByName(n.f).fFamily),mt=G?0:ct.w*n.finalSize/100):mt=f.measureText(X,n.f,n.finalSize),wt===" "?Ft+=mt+Rt:(W+=mt+Rt+Ft,Ft=0),T.push({l:mt,an:mt,add:lt,n:G,anIndexes:[],val:X,line:H,animatorJustifyOffset:0}),it==2){if(lt+=mt,X===""||X===" "||I===F-1){for((X===""||X===" ")&&(lt-=mt);tt<=I;)T[tt].an=lt,T[tt].ind=K,T[tt].extra=mt,tt+=1;K+=1,lt=0;}}else if(it==3){if(lt+=mt,X===""||I===F-1){for(X===""&&(lt-=mt);tt<=I;)T[tt].an=lt,T[tt].ind=K,T[tt].extra=mt,tt+=1;lt=0,K+=1;}}else T[K].ind=K,T[K].extra=0,K+=1;if(n.l=T,R=W>R?W:R,j.push(W),n.sz)n.boxWidth=n.sz[0],n.justifyOffset=0;else switch(n.boxWidth=R,n.j){case 1:n.justifyOffset=-n.boxWidth;break;case 2:n.justifyOffset=-n.boxWidth/2;break;default:n.justifyOffset=0;}n.lineWidths=j;var St=b.a,At,ut;at=St.length;var Dt,Zt,$t=[];for(rt=0;rt0?G=this.ne.v/100:K=-this.ne.v/100,this.xe.v>0?X=1-this.xe.v/100:it=1+this.xe.v/100;var lt=ne.getBezierEasing(G,K,X,it).get,tt=0,H=this.finalS,j=this.finalE,W=this.data.sh;if(W===2)j===H?tt=F>=j?1:0:tt=n(0,f(.5/(j-H)+(F-H)/(j-H),1)),tt=lt(tt);else if(W===3)j===H?tt=F>=j?0:1:tt=1-n(0,f(.5/(j-H)+(F-H)/(j-H),1)),tt=lt(tt);else if(W===4)j===H?tt=0:(tt=n(0,f(.5/(j-H)+(F-H)/(j-H),1)),tt<.5?tt*=2:tt=1-2*(tt-.5)),tt=lt(tt);else if(W===5){if(j===H)tt=0;else {var R=j-H;F=f(n(0,F+.5-H),j-H);var rt=-R/2+F,at=R/2;tt=Math.sqrt(1-rt*rt/(at*at));}tt=lt(tt);}else W===6?(j===H?tt=0:(F=f(n(0,F+.5-H),j-H),tt=(1+Math.cos(Math.PI+Math.PI*2*F/(j-H)))/2),tt=lt(tt)):(F>=b(H)&&(F-H<0?tt=n(0,f(f(j,1)-(H-F),1)):tt=n(0,f(j-F,1))),tt=lt(tt));if(this.sm.v!==100){var Z=this.sm.v*.01;Z===0&&(Z=1e-8);var ct=.5-Z*.5;tt1&&(tt=1));}return tt*this.a.v},getValue:function(F){this.iterateDynamicProperties(),this._mdf=F||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,F&&this.data.r===2&&(this.e.v=this._currentTextLength);var G=this.data.r===2?1:100/this.data.totalChars,K=this.o.v/G,X=this.s.v/G+K,it=this.e.v/G+K;if(X>it){var lt=X;X=it,it=lt;}this.finalS=X,this.finalE=it;}},v([Xe],T);function I(F,G,K){return new T(F,G)}return {getTextSelectorProp:I}}();function ir(n,f,b){var T={propType:!1},I=te.getProp,F=f.a;this.a={r:F.r?I(n,F.r,0,dt,b):T,rx:F.rx?I(n,F.rx,0,dt,b):T,ry:F.ry?I(n,F.ry,0,dt,b):T,sk:F.sk?I(n,F.sk,0,dt,b):T,sa:F.sa?I(n,F.sa,0,dt,b):T,s:F.s?I(n,F.s,1,.01,b):T,a:F.a?I(n,F.a,1,0,b):T,o:F.o?I(n,F.o,0,.01,b):T,p:F.p?I(n,F.p,1,0,b):T,sw:F.sw?I(n,F.sw,0,0,b):T,sc:F.sc?I(n,F.sc,1,0,b):T,fc:F.fc?I(n,F.fc,1,0,b):T,fh:F.fh?I(n,F.fh,0,0,b):T,fs:F.fs?I(n,F.fs,0,.01,b):T,fb:F.fb?I(n,F.fb,0,.01,b):T,t:F.t?I(n,F.t,0,0,b):T},this.s=Ga.getTextSelectorProp(n,f.s,b),this.s.t=f.s.t;}function br(n,f,b){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=n,this._renderType=f,this._elem=b,this._animatorsData=g(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(b);}br.prototype.searchProperties=function(){var n,f=this._textData.a.length,b,T=te.getProp;for(n=0;n=W+As||!Pt?(Kt=(W+As-rt)/R.partialLength,Me=mt.point[0]+(R.point[0]-mt.point[0])*Kt,we=mt.point[1]+(R.point[1]-mt.point[1])*Kt,F.translate(-b[0]*H[lt].an*.005,-(b[1]*Ft)*.01),at=!1):Pt&&(rt+=R.partialLength,Z+=1,Z>=Pt.length&&(Z=0,ct+=1,Rt[ct]?Pt=Rt[ct].points:Et.v.c?(Z=0,ct=0,Pt=Rt[ct].points):(rt-=R.partialLength,Pt=null)),Pt&&(mt=R,R=Pt[Z],jt=R.partialLength));ge=H[lt].an/2-H[lt].add,F.translate(-ge,0,0);}else ge=H[lt].an/2-H[lt].add,F.translate(-ge,0,0),F.translate(-b[0]*H[lt].an*.005,-b[1]*Ft*.01,0);for(ut=0;utn?this.textSpans[n].span:Jt(K?"g":"text"),ct<=n){if(X.setAttribute("stroke-linecap","butt"),X.setAttribute("stroke-linejoin","round"),X.setAttribute("stroke-miterlimit","4"),this.textSpans[n].span=X,K){var Pt=Jt("g");X.appendChild(Pt),this.textSpans[n].childSpan=Pt;}this.textSpans[n].span=X,this.layerElement.appendChild(X);}X.style.display="inherit";}if(it.reset(),tt&&(G[n].n&&(H=-R,j+=b.yOffset,j+=W?1:0,W=!1),this.applyTextPropertiesToMatrix(b,it,G[n].line,H,j),H+=G[n].l||0,H+=R),K){mt=this.globalData.fontManager.getCharData(b.finalText[n],T.fStyle,this.globalData.fontManager.getFontByName(b.f).fFamily);var Rt;if(mt.t===1)Rt=new ci(mt.data,this.globalData,this);else {var jt=Es;mt.data&&mt.data.shapes&&(jt=this.buildShapeData(mt.data,b.finalSize)),Rt=new je(jt,this.globalData,this);}if(this.textSpans[n].glyph){var Lt=this.textSpans[n].glyph;this.textSpans[n].childSpan.removeChild(Lt.layerElement),Lt.destroy();}this.textSpans[n].glyph=Rt,Rt._debug=!0,Rt.prepareFrame(0),Rt.renderFrame(),this.textSpans[n].childSpan.appendChild(Rt.layerElement),mt.t===1&&this.textSpans[n].childSpan.setAttribute("transform","scale("+b.finalSize/100+","+b.finalSize/100+")");}else tt&&X.setAttribute("transform","translate("+it.props[12]+","+it.props[13]+")"),X.textContent=G[n].val,X.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}tt&&X&&X.setAttribute("d",lt);}for(;n=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(n-this.layers[f].st);if(this.globalData._mdf)for(f=0;f=0;b-=1)(this.completeLayers||this.elements[b])&&(this.elements[b].prepareFrame(this.renderedFrame-this.layers[b].st),this.elements[b]._mdf&&(this._mdf=!0));}},gi.prototype.renderInnerContent=function(){var n,f=this.layers.length;for(n=0;n=0;b-=1)n.finalTransform.multiply(n.transforms[b].transform.mProps.v);n._mdf=I;},processSequences:function(n){var f,b=this.sequenceList.length;for(f=0;f=1){this.buffers=[];var n=this.globalData.canvasContext,f=J.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(f);var b=J.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(b),this.data.tt>=3&&!document._isProxy&&J.loadLumaCanvas();}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new et(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var n=this.globalData;if(n.blendMode!==this.data.bm){n.blendMode=this.data.bm;var f=es(this.data.bm);n.canvasContext.globalCompositeOperation=f;}},createRenderableComponents:function(){this.maskManager=new gt(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(oi.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(n){n.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 n=this.buffers[0],f=n.getContext("2d");this.clearCanvas(f),f.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 n=this.buffers[1],f=n.getContext("2d");this.clearCanvas(f),f.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 b=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(b.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var T=J.getLumaCanvas(this.canvasContext.canvas),I=T.getContext("2d");I.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(T,0,0);}this.canvasContext.globalCompositeOperation=yt[this.data.tt],this.canvasContext.drawImage(n,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(n){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!n)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),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 Ge},Mt.prototype.hide=Mt.prototype.hideElement,Mt.prototype.show=Mt.prototype.showElement;function Bt(n,f,b,T){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var I=4;f.ty==="rc"?I=5:f.ty==="el"?I=6:f.ty==="sr"&&(I=7),this.sh=gr.getShapeProp(n,f,I,n);var F,G=b.length,K;for(F=0;F=0;F-=1){if(tt=this.searchProcessedElement(n[F]),tt?f[F]=b[tt-1]:n[F]._shouldRender=T,n[F].ty==="fl"||n[F].ty==="st"||n[F].ty==="gf"||n[F].ty==="gs")tt?f[F].style.closed=!1:f[F]=this.createStyleElement(n[F],W),it.push(f[F].style);else if(n[F].ty==="gr"){if(!tt)f[F]=this.createGroupElement(n[F]);else for(X=f[F].it.length,K=0;K=0;I-=1)f[I].ty==="tr"?(G=b[I].transform,this.renderShapeTransform(n,G)):f[I].ty==="sh"||f[I].ty==="el"||f[I].ty==="rc"||f[I].ty==="sr"?this.renderPath(f[I],b[I]):f[I].ty==="fl"?this.renderFill(f[I],b[I],G):f[I].ty==="st"?this.renderStroke(f[I],b[I],G):f[I].ty==="gf"||f[I].ty==="gs"?this.renderGradientFill(f[I],b[I],G):f[I].ty==="gr"?this.renderShape(G,f[I].it,b[I].it):f[I].ty;T&&this.drawLayer();},Vt.prototype.renderStyledShape=function(n,f){if(this._isFirstFrame||f._mdf||n.transforms._mdf){var b=n.trNodes,T=f.paths,I,F,G,K=T._length;b.length=0;var X=n.transforms.finalTransform;for(G=0;G=1?lt=.99:lt<=-1&&(lt=-.99);var tt=X*lt,H=Math.cos(it+f.a.v)*tt+G[0],j=Math.sin(it+f.a.v)*tt+G[1];I=F.createRadialGradient(H,j,0,G[0],G[1],X);}var W,R=n.g.p,rt=f.g.c,at=1;for(W=0;WF&&X==="xMidYMid slice"||II&&K==="meet"||FI&&K==="slice")?this.transformCanvas.tx=(b-this.transformCanvas.w*(T/this.transformCanvas.h))/2*this.renderConfig.dpr:it==="xMax"&&(FI&&K==="slice")?this.transformCanvas.tx=(b-this.transformCanvas.w*(T/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,lt==="YMid"&&(F>I&&K==="meet"||FI&&K==="meet"||F=0;n-=1)this.elements[n]&&this.elements[n].destroy&&this.elements[n].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0;},k.prototype.renderFrame=function(n,f){if(!(this.renderedFrame===n&&this.renderConfig.clearCanvas===!0&&!f||this.destroyed||n===-1)){this.renderedFrame=n,this.globalData.frameNum=n-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||f,this.globalData.projectInterface.currentFrame=n;var b,T=this.layers.length;for(this.completeLayers||this.checkLayers(n),b=T-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&this.elements[b].prepareFrame(n-this.layers[b].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),b=T-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&this.elements[b].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore();}}},k.prototype.buildItem=function(n){var f=this.elements;if(!(f[n]||this.layers[n].ty===99)){var b=this.createItem(this.layers[n],this,this.globalData);f[n]=b,b.initExpressions();}},k.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var n=this.pendingElements.pop();n.checkParenting();}},k.prototype.hide=function(){this.animationItem.container.style.display="none";},k.prototype.show=function(){this.animationItem.container.style.display="block";};function C(){this.opacity=-1,this.transform=d("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random();}function L(){this.stack=[],this.cArrPos=0,this.cTr=new Ge;var n,f=15;for(n=0;n=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();},O.prototype.destroy=function(){var n,f=this.layers.length;for(n=f-1;n>=0;n-=1)this.elements[n]&&this.elements[n].destroy();this.layers=null,this.elements=null;},O.prototype.createComp=function(n){return new O(n,this.globalData,this)};function V(n,f){this.animationItem=n,this.renderConfig={clearCanvas:f&&f.clearCanvas!==void 0?f.clearCanvas:!0,context:f&&f.context||null,progressiveLoad:f&&f.progressiveLoad||!1,preserveAspectRatio:f&&f.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:f&&f.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:f&&f.contentVisibility||"visible",className:f&&f.className||"",id:f&&f.id||"",runExpressions:!f||f.runExpressions===void 0||f.runExpressions},this.renderConfig.dpr=f&&f.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=f&&f.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new L,this.elements=[],this.pendingElements=[],this.transformMat=new Ge,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));}return v([k],V),V.prototype.createComp=function(n){return new O(n,this.globalData,this)},Re("canvas",V),Ii.registerModifier("tm",ei),Ii.registerModifier("pb",wi),Ii.registerModifier("rp",mi),Ii.registerModifier("rd",rr),Ii.registerModifier("zz",ar),Ii.registerModifier("op",Cr),ue});}),Ag=Eg();});var hc={};ia(hc,{default:()=>Tg});var Cg,Tg,lc=Ir(()=>{Fs();Cg=ce((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e());}(exports,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?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])}(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(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}})();var setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=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,r,s={onmessage:function(){},postMessage:function(u){i({data:u});}},a={postMessage:function(u){s.onmessage({data:u});}};function o(u){if(window.Worker&&window.Blob&&getWebWorker()){var S=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),d=URL.createObjectURL(S);return new Worker(d)}return i=u,s}function p(){r||(r=o(function(u){function S(){function g(ot,Tt){var z,$,E=ot.length,q,nt,Q,Ut;for($=0;$=0;Tt-=1)if(ot[Tt].ty==="sh")if(ot[Tt].ks.k.i)w(ot[Tt].ks.k);else for(E=ot[Tt].ks.k.length,$=0;$z[0]?!0:z[0]>ot[0]?!1:ot[1]>z[1]?!0:z[1]>ot[1]?!1:ot[2]>z[2]?!0:z[2]>ot[2]?!1:null}var N=function(){var ot=[4,4,14];function Tt($){var E=$.t.d;$.t.d={k:[{s:E,t:0}]};}function z($){var E,q=$.length;for(E=0;E=0;E-=1)if($[E].ty==="sh")if($[E].ks.k.i)$[E].ks.k.c=$[E].closed;else for(Q=$[E].ks.k.length,nt=0;nt500)&&(this._imageLoaded(),clearInterval(x)),m+=1;}.bind(this),50);}function a(y){var m=r(y,this.assetsPath,this.path),x=createNS("image");isSafari?this.testImageLoaded(x):x.addEventListener("load",this._imageLoaded,!1),x.addEventListener("error",function(){w.img=t,this._imageLoaded();}.bind(this),!1),x.setAttributeNS("http://www.w3.org/1999/xlink","href",m),this._elementHelper.append?this._elementHelper.append(x):this._elementHelper.appendChild(x);var w={img:x,assetData:y};return w}function o(y){var m=r(y,this.assetsPath,this.path),x=createTag("img");x.crossOrigin="anonymous",x.addEventListener("load",this._imageLoaded,!1),x.addEventListener("error",function(){w.img=t,this._imageLoaded();}.bind(this),!1),x.src=m;var w={img:x,assetData:y};return w}function p(y){var m={assetData:y},x=r(y,this.assetsPath,this.path);return dataManager.loadData(x,function(w){m.img=w,this._footageLoaded();}.bind(this),function(){m.img={},this._footageLoaded();}.bind(this)),m}function h(y,m){this.imagesLoadedCb=m;var x,w=y.length;for(x=0;xthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,o=s.length;for(a=0;athis.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.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]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.firstFramee&&(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,r=t.length;for(i=0;i=0;$-=1)e[$].animation.destroy(z);}function Y(z,$,E){var q=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),nt,Q=q.length;for(nt=0;nt0?w=Y:x=Y;while(Math.abs(U)>a&&++dt=s?A(m,xt,x,w):vt===0?xt:g(m,N,N+h,x,w)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),o={newElement:p,release:h};function p(){var c;return r?(r-=1,c=a[r]):c=e(),c}function h(c){r===s&&(a=pooling.double(a),s*=2),i&&i(c),a[r]=c,r+=1;}return o}}(),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 r,s=i.lengths.length;for(r=0;r-.001&&m<.001}function i(u,S,d,g,A,y,m,x,w){if(d===0&&y===0&&w===0)return e(u,S,g,A,m,x);var M=t.sqrt(t.pow(g-u,2)+t.pow(A-S,2)+t.pow(y-d,2)),N=t.sqrt(t.pow(m-u,2)+t.pow(x-S,2)+t.pow(w-d,2)),U=t.sqrt(t.pow(m-g,2)+t.pow(x-A,2)+t.pow(w-y,2)),Y;return M>N?M>U?Y=M-N-U:Y=U-N-M:U>N?Y=U-N-M:Y=N-M-U,Y>-1e-4&&Y<1e-4}var r=function(){return function(u,S,d,g){var A=getDefaultCurveSegments(),y,m,x,w,M,N=0,U,Y=[],dt=[],xt=bezierLengthPool.newElement();for(x=d.length,y=0;ym?-1:1,M=!0;M;)if(g[y]<=m&&g[y+1]>m?(x=(m-g[y])/(g[y+1]-g[y]),M=!1):y+=w,y<0||y>=A-1){if(y===A-1)return d[y];M=!1;}return d[y]+(d[y+1]-d[y])*x}function c(u,S,d,g,A,y){var m=h(A,y),x=1-m,w=t.round((x*x*x*u[0]+(m*x*x+x*m*x+x*x*m)*d[0]+(m*m*x+x*m*m+m*x*m)*g[0]+m*m*m*S[0])*1e3)/1e3,M=t.round((x*x*x*u[1]+(m*x*x+x*m*x+x*x*m)*d[1]+(m*m*x+x*m*m+m*x*m)*g[1]+m*m*m*S[1])*1e3)/1e3;return [w,M]}var _=createTypedArray("float32",8);function v(u,S,d,g,A,y,m){A<0?A=0:A>1&&(A=1);var x=h(A,m);y=y>1?1:y;var w=h(y,m),M,N=u.length,U=1-x,Y=1-w,dt=U*U*U,xt=x*U*U*3,vt=x*x*U*3,bt=x*x*x,It=U*U*Y,ot=x*U*Y+U*x*Y+U*U*w,Tt=x*x*Y+U*x*w+x*U*w,z=x*x*w,$=U*Y*Y,E=x*Y*Y+U*w*Y+U*Y*w,q=x*w*Y+U*w*w+x*Y*w,nt=x*w*w,Q=Y*Y*Y,Ut=w*Y*Y+Y*w*Y+Y*Y*w,zt=w*w*Y+Y*w*w+w*Y*w,qt=w*w*w;for(M=0;M=c.t-i){h.h&&(h=c),s=0;break}if(c.t-i>t){s=a;break}a=y||t=y?w.points.length-1:0;for(u=w.points[M].point.length,v=0;v=Y&&N=y)r[0]=x[0],r[1]=x[1],r[2]=x[2];else if(t<=m)r[0]=h.s[0],r[1]=h.s[1],r[2]=h.s[2];else {var ot=createQuaternion(h.s),Tt=createQuaternion(x),z=(t-m)/(y-m);quaternionToEuler(r,slerp(ot,Tt,z));}else for(a=0;a=y?S=1:t1e-6?(u=Math.acos(S),d=Math.sin(u),g=Math.sin((1-i)*u)/d,A=Math.sin(i*u)/d):(g=1-i,A=i),r[0]=g*s+A*h,r[1]=g*a+A*c,r[2]=g*o+A*_,r[3]=g*p+A*v,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],o=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),h=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=o/degToRads,t[1]=p/degToRads,t[2]=h/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),o=Math.cos(r/2),p=Math.sin(e/2),h=Math.sin(i/2),c=Math.sin(r/2),_=s*a*o-p*h*c,v=p*h*o+s*a*c,u=p*a*o+s*h*c,S=s*h*o-p*a*c;return [v,u,S,_]}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=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}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,r=this.v.length;i1e-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=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,o,p){this.setXYAt(t,e,"v",o,p),this.setXYAt(i,r,"o",o,p),this.setXYAt(s,a,"i",o,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,o=this._length,p;for(p=s;p=ot[ot.length-1].t-this.offsetTime)M=ot[ot.length-1].s?ot[ot.length-1].s[0]:ot[ot.length-2].e[0],U=!0;else {for(var Tt=w,z=ot.length-1,$=!0,E,q,nt;$&&(E=ot[Tt],q=ot[Tt+1],!(q.t-this.offsetTime>y));)Tt=q.t-this.offsetTime)bt=1;else if(yx&&y>x)||(this._caching.lastIndex=w0||E>-1e-6&&E<0?r(E*q)/q:E}function $(){var E=this.props,q=z(E[0]),nt=z(E[1]),Q=z(E[4]),Ut=z(E[5]),zt=z(E[12]),qt=z(E[13]);return "matrix("+q+","+nt+","+Q+","+Ut+","+zt+","+qt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=p,this.rotateZ=h,this.skew=_,this.skewFromAxis=v,this.shear=c,this.scale=u,this.setTransform=S,this.translate=d,this.transform=g,this.multiply=A,this.applyToPoint=M,this.applyToX=N,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=It,this.applyToTriplePoints=bt,this.applyToPointStringified=ot,this.toCSS=Tt,this.to2dCSS=$,this.clone=x,this.cloneFromProps=w,this.equals=m,this.inversePoints=vt,this.inversePoint=xt,this.getInverseMatrix=dt,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=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.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,o){return new e[s](a,o)}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,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o=[],p,h=a.length,c;for(p=0;pr+i)){var _,v;c.s*s<=r?_=0:_=(c.s*s-r)/i,c.e*s>=r+i?v=1:v=(c.e*s-r)/i,o.push([_,v]);}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}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 a,o,p=this.shapes.length,h,c,_,v,u,S=0;if(i===e)for(o=0;o=0;o-=1)if(g=this.shapes[o],g.shape._mdf){for(A=g.localShapeCollection,A.releaseShapes(),this.m===2&&p>1?(w=this.calculateShapeEdges(e,i,g.totalShapeLength,x,S),x+=g.totalShapeLength):w=[[y,m]],c=w.length,h=0;h=1?d.push({s:g.totalShapeLength*(y-1),e:g.totalShapeLength*(m-1)}):(d.push({s:g.totalShapeLength*y,e:g.totalShapeLength}),d.push({s:0,e:g.totalShapeLength*(m-1)}));var M=this.addShapes(g,d[0]);if(d[0].s!==d[0].e){if(d.length>1){var N=g.shape.paths.shapes[g.shape.paths._length-1];if(N.c){var U=M.pop();this.addPaths(M,A),M=this.addShapes(g,d[1],U);}else this.addPaths(M,A),M=this.addShapes(g,d[1]);}this.addPaths(M,A);}}g.shape.paths=A;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=c&&e.e>=c+_.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,v,A),A=!1):(S=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-c)/_.addedLength,(e.e-c)/_.addedLength,u[p-1]),this.addSegmentFromArray(S,i,v,A),A=!1,i.c=!1),c+=_.addedLength,v+=1;if(s[a].c&&u.length){if(_=u[p-1],c<=e.e){var y=u[p-1].addedLength;e.s<=c&&e.e>=c+y?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,v,A),A=!1):(S=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-c)/y,(e.e-c)/y,u[p-1]),this.addSegmentFromArray(S,i,v,A),A=!1,i.c=!1);}else i.c=!1;c+=_.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),c>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(_=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(_=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){_=[],v=[];var u=this.px,S=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(_[0]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),_[1]=S.getValueAtTime((S.keyframes[0].t+.01)/c,0),v[0]=u.getValueAtTime(u.keyframes[0].t/c,0),v[1]=S.getValueAtTime(S.keyframes[0].t/c,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(_[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),_[1]=S.getValueAtTime(S.keyframes[S.keyframes.length-1].t/c,0),v[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0),v[1]=S.getValueAtTime((S.keyframes[S.keyframes.length-1].t-.01)/c,0)):(_=[u.pv,S.pv],v[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime),v[1]=S.getValueAtTime((S._caching.lastFrame+S.offsetTime-.01)/c,S.offsetTime));}else v=t,_=v;this.v.rotate(-Math.atan2(_[1]-v[1],_[0]-v[0]));}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);}this.frameId=this.elem.globalData.frameId;}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4);}function s(){}function a(h){this._addDynamicProperty(h),this.elem.addDynamicProperty(h),this._isDirty=!0;}function o(h,c,_){if(this.elem=h,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(_||h),c.p&&c.p.s?(this.px=PropertyFactory.getProp(h,c.p.x,0,0,this),this.py=PropertyFactory.getProp(h,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(h,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(h,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(h,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(h,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(h,c.rz,0,degToRads,this),c.or.k[0].ti){var v,u=c.or.k.length;for(v=0;v0;)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;e0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,A=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(u>0){for(;md;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-S,!0),m-=S);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var x,w;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,w=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)*(r/(this._currentCopies-1)),m!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),x=0;x0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<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),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),o=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,o,!0),new PolynomialBezier(o,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o0&&a[o]<1){var p=t.point(a[o])[e];pr&&(r=p);}return {min:i,max:r}}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 r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.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=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var o=splitData(t),p=splitData(e);intersectsImpl(o[0],p[0],i+1,r,s,a),intersectsImpl(o[0],p[1],i+1,r,s,a),intersectsImpl(o[1],p[0],i+1,r,s,a),intersectsImpl(o[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},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,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],o=[i[0],i[1],1],p=[r[0],r[1],1],h=crossProduct(crossProduct(s,a),crossProduct(o,p));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[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,r,s,a,o){var p=i-Math.PI/2,h=i+Math.PI/2,c=e[0]+Math.cos(i)*r*s,_=e[1]-Math.sin(i)*r*s;t.setTripleAt(c,_,c+Math.cos(p)*a,_-Math.sin(p)*a,c+Math.cos(h)*o,_-Math.sin(h)*o,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(t,e,i,r,s,a,o){var p=getProjectingAngle(e,i),h=e.v[i%e._length],c=e.v[i===0?e._length-1:i-1],_=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)):0,u=a===2?Math.sqrt(Math.pow(h[0]-_[0],2)+Math.pow(h[1]-_[1],2)):0;setPoint(t,e.v[i%e._length],p,o,r,u/((s+1)*2),v/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var o=0;o1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(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(),r,s,a,o;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),o=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(o,e),offsetSegment(s,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,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var o,p,h,c=[];for(o=0;o=0;o-=1)h=PolynomialBezier.shapeSegmentInverted(t,o),c.push(offsetSegmentSplit(h,e));c=pruneIntersections(c);var _=null,v=null;for(o=0;o0&&(Ut=!1),Ut){var Gt=createTag("style");Gt.setAttribute("f-forigin",E[q].fOrigin),Gt.setAttribute("f-origin",E[q].origin),Gt.setAttribute("f-family",E[q].fFamily),Gt.type="text/css",Gt.innerText="@font-face {font-family: "+E[q].fFamily+"; font-style: normal; src: url('"+E[q].fPath+"');}",$.appendChild(Gt);}}else if(E[q].fOrigin==="g"||E[q].origin===1){for(zt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),qt=0;qt=55296&&E<=56319){var q=z.charCodeAt(1);q>=56320&&q<=57343&&($=(E-55296)*1024+q-56320+65536);}return $}function N(z,$){var E=z.toString(16)+$.toString(16);return v.indexOf(E)!==-1}function U(z){return z===h}function Y(z){return z===p}function dt(z){var $=M(z);return $>=c&&$<=_}function xt(z){return dt(z.substr(0,2))&&dt(z.substr(2,2))}function vt(z){return i.indexOf(z)!==-1}function bt(z,$){var E=M(z.substr($,2));if(E!==r)return !1;var q=0;for($+=2;q<5;){if(E=M(z.substr($,2)),Eo)return !1;q+=1,$+=2;}return M(z.substr($,2))===s}function It(){this.isLoaded=!0;}var ot=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);};ot.isModifier=N,ot.isZeroWidthJoiner=U,ot.isFlagEmoji=xt,ot.isRegionalCode=dt,ot.isCombinedCharacter=vt,ot.isRegionalFlag=bt,ot.isVariationSelector=Y,ot.BLACK_FLAG_CODE_POINT=r;var Tt={addChars:y,addFonts:A,getCharData:m,getFontByName:w,measureText:x,checkLoadedFonts:d,setIsLoaded:It};return ot.prototype=Tt,ot}();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(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1);},prepareRenderableFrame:function(t){this.checkLayerLimits(t);},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show());},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.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,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.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;t0&&(this.maskElement.setAttribute("id",u),this.element.maskedElement.setAttribute(m,"url("+getLocationHref()+"#"+u+")"),r.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,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",o)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return 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",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)y=u.transformers[dt].mProps._mdf||y,Y-=1,dt-=1;if(y)for(Y=M-u.styles[x].lvl,dt=u.transformers.length-1;Y>0;)U.multiply(u.transformers[dt].mProps.v),Y-=1,dt-=1;}else U=t;if(N=u.sh.paths,g=N._length,y){for(A="",d=0;d=1?It=.99:It<=-1&&(It=-.99);var ot=vt*It,Tt=Math.cos(bt+u.a.v)*ot+A[0],z=Math.sin(bt+u.a.v)*ot+A[1];d.setAttribute("fx",Tt),d.setAttribute("fy",z),g&&!u.g._collapsable&&(u.of.setAttribute("fx",Tt),u.of.setAttribute("fy",z));}}}function _(v,u,S){var d=u.style,g=u.d;g&&(g._mdf||S)&&g.dashStr&&(d.pElem.setAttribute("stroke-dasharray",g.dashStr),d.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),u.c&&(u.c._mdf||S)&&d.pElem.setAttribute("stroke","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||S)&&d.pElem.setAttribute("stroke-opacity",u.o.v),(u.w._mdf||S)&&(d.pElem.setAttribute("stroke-width",u.w.v),d.msElem&&d.msElem.setAttribute("stroke-width",u.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,r,s=this.stylesList.length,a,o=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(o);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;h-=1){if(A=this.searchProcessedElement(t[h]),A?e[h]=i[A-1]:t[h]._render=o,t[h].ty==="fl"||t[h].ty==="st"||t[h].ty==="gf"||t[h].ty==="gs"||t[h].ty==="no")A?e[h].style.closed=!1:e[h]=this.createStyleElement(t[h],s),t[h]._render&&e[h].style.pElem.parentNode!==r&&r.appendChild(e[h].style.pElem),u.push(e[h].style);else if(t[h].ty==="gr"){if(!A)e[h]=this.createGroupElement(t[h]);else for(v=e[h].it.length,_=0;_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 r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)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,r=t.length,s,a,o=!1,p=!1,h="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?h=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(h=t.substr(i,2),o=!0):FontManager.isFlagEmoji(t.substr(i,4))?h=t.substr(i,4):h=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,p=!0),o?(e[e.length-1]+=h,o=!1):e.push(h),i+=h.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,o,p=0,h,c=i.m.g,_=0,v=0,u=0,S=[],d=0,g=0,A,y,m=e.getFontByName(t.f),x,w=0,M=getFontProperties(m);t.fWeight=M.weight,t.fStyle=M.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var N=t.tr/1e3*t.finalSize,U;if(t.sz)for(var Y=!0,dt=t.sz[0],xt=t.sz[1],vt,bt;Y;){bt=this.buildFinalText(t.t),vt=0,d=0,a=bt.length,N=t.tr/1e3*t.finalSize;var It=-1;for(s=0;sdt&&bt[s]!==" "?(It===-1?a+=1:s=It,vt+=t.finalLineHeight||t.finalSize*1.2,bt.splice(s,It===s?1:0,"\r"),It=-1,d=0):(d+=w,d+=N);vt+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&xtg?d:g,d=-2*N,h="",o=!0,u+=1):h=Tt,e.chars?(x=e.getCharData(Tt,m.fStyle,e.getFontByName(t.f).fFamily),w=o?0:x.w*t.finalSize/100):w=e.measureText(h,t.f,t.finalSize),Tt===" "?ot+=w+N:(d+=w+N+ot,ot=0),r.push({l:w,an:w,add:_,n:o,anIndexes:[],val:h,line:u,animatorJustifyOffset:0}),c==2){if(_+=w,h===""||h===" "||s===a-1){for((h===""||h===" ")&&(_-=w);v<=s;)r[v].an=_,r[v].ind=p,r[v].extra=w,v+=1;p+=1,_=0;}}else if(c==3){if(_+=w,h===""||s===a-1){for(h===""&&(_-=w);v<=s;)r[v].an=_,r[v].ind=p,r[v].extra=w,v+=1;_=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,g=d>g?d:g,S.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=S;var z=i.a,$,E;y=z.length;var q,nt,Q=[];for(A=0;A0?o=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?h=1-this.xe.v/100:c=1+this.xe.v/100;var _=BezierFactory.getBezierEasing(o,p,h,c).get,v=0,u=this.finalS,S=this.finalE,d=this.data.sh;if(d===2)S===u?v=a>=S?1:0:v=t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v=_(v);else if(d===3)S===u?v=a>=S?0:1:v=1-t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v=_(v);else if(d===4)S===u?v=0:(v=t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v<.5?v*=2:v=1-2*(v-.5)),v=_(v);else if(d===5){if(S===u)v=0;else {var g=S-u;a=e(t(0,a+.5-u),S-u);var A=-g/2+a,y=g/2;v=Math.sqrt(1-A*A/(y*y));}v=_(v);}else d===6?(S===u?v=0:(a=e(t(0,a+.5-u),S-u),v=(1+Math.cos(Math.PI+Math.PI*2*a/(S-u)))/2),v=_(v)):(a>=i(u)&&(a-u<0?v=t(0,e(e(S,1)-(u-a),1)):v=t(0,e(S-a,1))),v=_(v));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var x=.5-m*.5;v1&&(v=1));}return v*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/o,h=this.s.v/o+p,c=this.e.v/o+p;if(h>c){var _=h;h=c,c=_;}this.finalS=h,this.finalE=c;}},extendPrototype([DynamicPropertyContainer],r);function s(a,o,p){return new r(a,o)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},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,r=PropertyFactory.getProp;for(t=0;t=d+ke||!M?(dt=(d+ke-A)/g.partialLength,qt=w.point[0]+(g.point[0]-w.point[0])*dt,Gt=w.point[1]+(g.point[1]-w.point[1])*dt,a.translate(-i[0]*u[_].an*.005,-(i[1]*ot)*.01),y=!1):M&&(A+=g.partialLength,m+=1,m>=M.length&&(m=0,x+=1,N[x]?M=N[x].points:vt.v.c?(m=0,x=0,M=N[x].points):(A-=g.partialLength,M=null)),M&&(w=g,g=M[m],U=g.partialLength));zt=u[_].an/2-u[_].add,a.translate(-zt,0,0);}else zt=u[_].an/2-u[_].add,a.translate(-zt,0,0),a.translate(-i[0]*u[_].an*.005,-i[1]*ot*.01,0);for(E=0;Et?this.textSpans[t].span:createNS(p?"g":"text"),x<=t){if(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=h,p){var M=createNS("g");h.appendChild(M),this.textSpans[t].childSpan=M;}this.textSpans[t].span=h,this.layerElement.appendChild(h);}h.style.display="inherit";}if(c.reset(),v&&(o[t].n&&(u=-g,S+=i.yOffset,S+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,c,o[t].line,u,S),u+=o[t].l||0,u+=g),p){w=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var N;if(w.t===1)N=new SVGCompElement(w.data,this.globalData,this);else {var U=emptyShapeData;w.data&&w.data.shapes&&(U=this.buildShapeData(w.data,i.finalSize)),N=new SVGShapeElement(U,this.globalData,this);}if(this.textSpans[t].glyph){var Y=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(Y.layerElement),Y.destroy();}this.textSpans[t].glyph=N,N._debug=!0,N.prepareFrame(0),N.renderFrame(),this.textSpans[t].childSpan.appendChild(N.layerElement),w.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else v&&h.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),h.textContent=o[t].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&h&&h.setAttribute("d",_);}for(;t=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=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=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=s;},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas();}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e;}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0);},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0);},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy);},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],e=t.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=r.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0);}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over";}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1);}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy();},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,o=i.length,p;for(a=0;a=0;a-=1){if(v=this.searchProcessedElement(t[a]),v?e[a]=i[v-1]:t[a]._shouldRender=r,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")v?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],d),c.push(e[a].style);else if(t[a].ty==="gr"){if(!v)e[a]=this.createGroupElement(t[a]);else for(h=e[a].it.length,p=0;p=0;s-=1)e[s].ty==="tr"?(o=i[s].transform,this.renderShapeTransform(t,o)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],i[s]):e[s].ty==="fl"?this.renderFill(e[s],i[s],o):e[s].ty==="st"?this.renderStroke(e[s],i[s],o):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],i[s],o):e[s].ty==="gr"?this.renderShape(o,e[s].it,i[s].it):e[s].ty;r&&this.drawLayer();},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i=t.trNodes,r=e.paths,s,a,o,p=r._length;i.length=0;var h=t.transforms.finalTransform;for(o=0;o=1?_=.99:_<=-1&&(_=-.99);var v=h*_,u=Math.cos(c+e.a.v)*v+o[0],S=Math.sin(c+e.a.v)*v+o[1];s=a.createRadialGradient(u,S,0,o[0],o[1],h);}var d,g=t.g.p,A=e.g.c,y=1;for(d=0;da&&h==="xMidYMid slice"||ss&&p==="meet"||as&&p==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(as&&p==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,_==="YMid"&&(a>s&&p==="meet"||as&&p==="meet"||a=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,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-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=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore();}}},CanvasRendererBase.prototype.buildItem=function(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=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)},registerRenderer("canvas",CanvasRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier);var CompExpressionInterface=function(){return function(t){function e(i){for(var r=0,s=t.layers.length;r=c;)xt/=2,vt/=2,bt>>>=1;return (xt+bt)/vt};return dt.int32=function(){return Y.g(4)|0},dt.quick=function(){return Y.g(4)/4294967296},dt.double=dt,A(m(Y.S),t),(w.pass||M||function(xt,vt,bt,It){return It&&(It.S&&d(It,Y),xt.state=function(){return d(Y,{})}),bt?(e[o]=xt,vt):xt})(dt,U,"global"in w?w.global:this==e,w.state)}e["seed"+o]=u;function S(x){var w,M=x.length,N=this,U=0,Y=N.i=N.j=0,dt=N.S=[];for(M||(x=[M++]);Ui){var r=i;i=e,e=r;}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,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?c/(2-s-a):c/(s+a),s){case e:o=(i-r)/c+(i1&&(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],r=t[2],s,a,o;if(i===0)s=r,o=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,h=2*r-p;s=hue2rgb(h,p,e+1/3),a=hue2rgb(h,p,e),o=hue2rgb(h,p,e-1/3);}return [s,a,o,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*o;var p,h=r.length,c=createTypedArray("float32",h);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(s)){var p,h=s.length,c=createTypedArray("float32",h);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;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 s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iA.length-1)&&(S=A.length-1),x=A[A.length-1-S].t,m=y-x);var w,M,N;if(u==="pingpong"){var U=Math.floor((g-x)/m);if(U%2!==0)return this.getValueAtTime((m-(g-x)%m+x)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var Y=this.getValueAtTime(x/this.comp.globalData.frameRate,0),dt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),xt=this.getValueAtTime(((g-x)%m+x)/this.comp.globalData.frameRate,0),vt=Math.floor((g-x)/m);if(this.pv.length){for(N=new Array(Y.length),M=N.length,w=0;w=y)return this.pv;var m,x;d?(S?m=Math.abs(this.elem.comp.globalData.frameRate*S):m=Math.max(0,this.elem.data.op-y),x=y+m):((!S||S>A.length-1)&&(S=A.length-1),x=A[S].t,m=x-y);var w,M,N;if(u==="pingpong"){var U=Math.floor((y-g)/m);if(U%2===0)return this.getValueAtTime(((y-g)%m+y)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var Y=this.getValueAtTime(y/this.comp.globalData.frameRate,0),dt=this.getValueAtTime(x/this.comp.globalData.frameRate,0),xt=this.getValueAtTime((m-(y-g)%m+y)/this.comp.globalData.frameRate,0),vt=Math.floor((y-g)/m)+1;if(this.pv.length){for(N=new Array(Y.length),M=N.length,w=0;w1?(A-g)/(S-1):1,m=0,x=0,w;this.pv.length?w=createTypedArray("float32",this.pv.length):w=0;for(var M;my){var N=m,U=d.c&&m===x-1?0:m+1,Y=(y-w)/A[m].addedLength;M=bez.getPointInSegment(d.v[N],d.v[U],d.o[N],d.i[U],Y,A[m]);break}else w+=A[m].addedLength;m+=1;}return M||(M=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),M},vectorOnPath:function(u,S,d){u==1?u=this.v.c:u==0&&(u=.999);var g=this.pointOnPath(u,S),A=this.pointOnPath(u+.001,S),y=A[0]-g[0],m=A[1]-g[1],x=Math.sqrt(Math.pow(y,2)+Math.pow(m,2));if(x===0)return [0,0];var w=d==="tangent"?[y/x,m/x]:[-m/x,y/x];return w},tangentOnPath:function(u,S){return this.vectorOnPath(u,S,"tangent")},normalOnPath:function(u,S){return this.vectorOnPath(u,S,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([_],h),extendPrototype([_],c),c.prototype.getValueAtTime=p,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,S,d,g,A){var y=v(u,S,d,g,A);return y.propertyIndex=S.ix,y.lock=!1,d===3?expressionHelpers.searchExpressions(u,S.pt,y):d===4&&expressionHelpers.searchExpressions(u,S.ks,y),y.k&&u.addDynamicProperty(y),y};}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 r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}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 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,r=e[1].p.v,s=e[2].p.v===1,a=e[3].p.v,o=s?a:e[4].p.v,p=e[5].p.v,h=e[6].p.v,c=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-p*degToRads,(h+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0);}};function CVTransformEffect(t){this.init(t);}return extendPrototype([TransformEffect],CVTransformEffect),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(35,CVTransformEffect),lottie});}),Tg=Cg();});var pc={};ia(pc,{default:()=>Dg});var Mg,Dg,fc=Ir(()=>{Fs();Mg=ce((t,e)=>{typeof navigator<"u"&&function(i,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self,i.lottie=r());}(t,function(){var i="http://www.w3.org/2000/svg",r="",s=!1,a=-999999,o=function(l){s=!!l;},p=function(){return s},h=function(l){r=l;},c=function(){return r};function _(l){return document.createElement(l)}function v(l,k){var C,L=l.length,O;for(C=0;C1?C[1]=1:C[1]<=0&&(C[1]=0),Q(C[0],C[1],C[2])}function qt(l,k){var C=Ut(l[0]*255,l[1]*255,l[2]*255);return C[2]+=k,C[2]>1?C[2]=1:C[2]<0&&(C[2]=0),Q(C[0],C[1],C[2])}function Gt(l,k){var C=Ut(l[0]*255,l[1]*255,l[2]*255);return C[0]+=k/360,C[0]>1?C[0]-=1:C[0]<0&&(C[0]+=1),Q(C[0],C[1],C[2])}(function(){var l=[],k,C;for(k=0;k<256;k+=1)C=k.toString(16),l[k]=C.length===1?"0"+C:C;return function(L,O,V){return L<0&&(L=0),O<0&&(O=0),V<0&&(V=0),"#"+l[L]+l[O]+l[V]}})();var se=function(l){A=!!l;},he=function(){return A},le=function(l){y=l;},Se=function(){return y},Pe=function(l){dt=l;},Jt=function(){return dt},de=function(l){m=l;};function Xt(l){return document.createElementNS(i,l)}function Wt(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wt=function(k){return typeof k}:Wt=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},Wt(l)}var ze=function(){var l=1,k=[],C,L,O={onmessage:function(){},postMessage:function(G){C({data:G});}},V={postMessage:function(G){O.onmessage({data:G});}};function n(G){if(window.Worker&&window.Blob&&p()){var K=new Blob(["var _workerSelf = self; self.onmessage = ",G.toString()],{type:"text/javascript"}),X=URL.createObjectURL(K);return new Worker(X)}return C=G,O}function f(){L||(L=n(function(G){function K(){function it(Lt,Kt){var _t,Et,ht=Lt.length,Ct,Ft,wt,St;for(Et=0;Et=0;Kt-=1)if(Lt[Kt].ty==="sh")if(Lt[Kt].ks.k.i)W(Lt[Kt].ks.k);else for(ht=Lt[Kt].ks.k.length,Et=0;Et_t[0]?!0:_t[0]>Lt[0]?!1:Lt[1]>_t[1]?!0:_t[1]>Lt[1]?!1:Lt[2]>_t[2]?!0:_t[2]>Lt[2]?!1:null}var rt=function(){var Lt=[4,4,14];function Kt(Et){var ht=Et.t.d;Et.t.d={k:[{s:ht,t:0}]};}function _t(Et){var ht,Ct=Et.length;for(ht=0;ht=0;ht-=1)if(Et[ht].ty==="sh")if(Et[ht].ks.k.i)Et[ht].ks.k.c=Et[ht].closed;else for(wt=Et[ht].ks.k.length,Ft=0;Ft500)&&(this._imageLoaded(),clearInterval(j)),H+=1;}.bind(this),50);}function V(tt){var H=L(tt,this.assetsPath,this.path),j=Xt("image");x?this.testImageLoaded(j):j.addEventListener("load",this._imageLoaded,!1),j.addEventListener("error",function(){W.img=l,this._imageLoaded();}.bind(this),!1),j.setAttributeNS("http://www.w3.org/1999/xlink","href",H),this._elementHelper.append?this._elementHelper.append(j):this._elementHelper.appendChild(j);var W={img:j,assetData:tt};return W}function n(tt){var H=L(tt,this.assetsPath,this.path),j=_("img");j.crossOrigin="anonymous",j.addEventListener("load",this._imageLoaded,!1),j.addEventListener("error",function(){W.img=l,this._imageLoaded();}.bind(this),!1),j.src=H;var W={img:j,assetData:tt};return W}function f(tt){var H={assetData:tt},j=L(tt,this.assetsPath,this.path);return ze.loadData(j,function(W){H.img=W,this._footageLoaded();}.bind(this),function(){H.img={},this._footageLoaded();}.bind(this)),H}function b(tt,H){this.imagesLoadedCb=H;var j,W=tt.length;for(j=0;jthis.animationData.op&&(this.animationData.op=l.op,this.totalFrames=Math.floor(l.op-this.animationData.ip));var k=this.animationData.layers,C,L=k.length,O=l.layers,V,n=O.length;for(V=0;Vthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},ne.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(l){this.triggerRenderFrameError(l);}},ne.prototype.play=function(l){l&&this.name!==l||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},ne.prototype.pause=function(l){l&&this.name!==l||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},ne.prototype.togglePause=function(l){l&&this.name!==l||(this.isPaused===!0?this.play():this.pause());},ne.prototype.stop=function(l){l&&this.name!==l||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},ne.prototype.getMarkerData=function(l){for(var k,C=0;C=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(k>this.totalFrames?k%this.totalFrames:0)||(C=!0,k=this.totalFrames-1):k>=this.totalFrames?(this.playCount+=1,this.checkSegments(k%this.totalFrames)||(this.setCurrentRawFrameValue(k%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(k):k<0?this.checkSegments(k%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+k%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(C=!0,k=0)):this.setCurrentRawFrameValue(k),C&&(this.setCurrentRawFrameValue(k),this.pause(),this.trigger("complete"));}},ne.prototype.adjustSegment=function(l,k){this.playCount=0,l[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=l[0]-l[1],this.timeCompleted=this.totalFrames,this.firstFrame=l[1],this.setCurrentRawFrameValue(this.totalFrames-.001-k)):l[1]>l[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=l[1]-l[0],this.timeCompleted=this.totalFrames,this.firstFrame=l[0],this.setCurrentRawFrameValue(.001+k)),this.trigger("segmentStart");},ne.prototype.setSegment=function(l,k){var C=-1;this.isPaused&&(this.currentRawFrame+this.firstFramek&&(C=k-l)),this.firstFrame=l,this.totalFrames=k-l,this.timeCompleted=this.totalFrames,C!==-1&&this.goToAndStop(C,!0);},ne.prototype.playSegments=function(l,k){if(k&&(this.segments.length=0),ae(l[0])==="object"){var C,L=l.length;for(C=0;C=0;Et-=1)k[Et].animation.destroy(_t);}function Z(_t,Et,ht){var Ct=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ft,wt=Ct.length;for(Ft=0;Ft0?W=Z:j=Z;while(Math.abs(at)>V&&++ct=O?lt(H,mt,j,W):Pt===0?mt:it(H,rt,rt+b,j,W)}},l}(),vi=function(){function l(k){return k.concat(g(k.length))}return {double:l}}(),bi=function(){return function(l,k,C){var L=0,O=l,V=g(O),n={newElement:f,release:b};function f(){var T;return L?(L-=1,T=V[L]):T=k(),T}function b(T){L===O&&(V=vi.double(V),O*=2),C&&C(T),V[L]=T,L+=1;}return n}}(),Fi=function(){function l(){return {addedLength:0,percents:d("float32",Jt()),lengths:d("float32",Jt())}}return bi(8,l)}(),ki=function(){function l(){return {lengths:[],totalLength:0}}function k(C){var L,O=C.lengths.length;for(L=0;L-.001&&H<.001}function C(G,K,X,it,lt,tt,H,j,W){if(X===0&&tt===0&&W===0)return k(G,K,it,lt,H,j);var R=l.sqrt(l.pow(it-G,2)+l.pow(lt-K,2)+l.pow(tt-X,2)),rt=l.sqrt(l.pow(H-G,2)+l.pow(j-K,2)+l.pow(W-X,2)),at=l.sqrt(l.pow(H-it,2)+l.pow(j-lt,2)+l.pow(W-tt,2)),Z;return R>rt?R>at?Z=R-rt-at:Z=at-rt-R:at>rt?Z=at-rt-R:Z=rt-R-at,Z>-1e-4&&Z<1e-4}var L=function(){return function(G,K,X,it){var lt=Jt(),tt,H,j,W,R,rt=0,at,Z=[],ct=[],mt=Fi.newElement();for(j=X.length,tt=0;ttH?-1:1,R=!0;R;)if(it[tt]<=H&&it[tt+1]>H?(j=(H-it[tt])/(it[tt+1]-it[tt]),R=!1):tt+=W,tt<0||tt>=lt-1){if(tt===lt-1)return X[tt];R=!1;}return X[tt]+(X[tt+1]-X[tt])*j}function T(G,K,X,it,lt,tt){var H=b(lt,tt),j=1-H,W=l.round((j*j*j*G[0]+(H*j*j+j*H*j+j*j*H)*X[0]+(H*H*j+j*H*H+H*j*H)*it[0]+H*H*H*K[0])*1e3)/1e3,R=l.round((j*j*j*G[1]+(H*j*j+j*H*j+j*j*H)*X[1]+(H*H*j+j*H*H+H*j*H)*it[1]+H*H*H*K[1])*1e3)/1e3;return [W,R]}var I=d("float32",8);function F(G,K,X,it,lt,tt,H){lt<0?lt=0:lt>1&&(lt=1);var j=b(lt,H);tt=tt>1?1:tt;var W=b(tt,H),R,rt=G.length,at=1-j,Z=1-W,ct=at*at*at,mt=j*at*at*3,Pt=j*j*at*3,Rt=j*j*j,jt=at*at*Z,Lt=j*at*Z+at*j*Z+at*at*W,Kt=j*j*Z+at*j*W+j*at*W,_t=j*j*W,Et=at*Z*Z,ht=j*Z*Z+at*W*Z+at*Z*W,Ct=j*W*Z+at*W*W+j*Z*W,Ft=j*W*W,wt=Z*Z*Z,St=W*Z*Z+Z*W*Z+Z*Z*W,At=W*W*Z+Z*W*W+W*Z*W,ut=W*W*W;for(R=0;R=T.t-C){b.h&&(b=T),O=0;break}if(T.t-C>l){O=V;break}V=tt||l=tt?W.points.length-1:0;for(G=W.points[R].point.length,F=0;F=Z&&rt=tt)L[0]=j[0],L[1]=j[1],L[2]=j[2];else if(l<=H)L[0]=b.s[0],L[1]=b.s[1],L[2]=b.s[2];else {var Lt=Rr(b.s),Kt=Rr(j),_t=(l-H)/(tt-H);Js(L,ns(Lt,Kt,_t));}else for(V=0;V=tt?K=1:l1e-6?(G=Math.acos(K),X=Math.sin(G),it=Math.sin((1-C)*G)/X,lt=Math.sin(C*G)/X):(it=1-C,lt=C),L[0]=it*O+lt*b,L[1]=it*V+lt*T,L[2]=it*n+lt*I,L[3]=it*f+lt*F,L}function Js(l,k){var C=k[0],L=k[1],O=k[2],V=k[3],n=Math.atan2(2*L*V-2*C*O,1-2*L*L-2*O*O),f=Math.asin(2*C*L+2*O*V),b=Math.atan2(2*C*V-2*L*O,1-2*C*C-2*O*O);l[0]=n/xt,l[1]=f/xt,l[2]=b/xt;}function Rr(l){var k=l[0]*xt,C=l[1]*xt,L=l[2]*xt,O=Math.cos(k/2),V=Math.cos(C/2),n=Math.cos(L/2),f=Math.sin(k/2),b=Math.sin(C/2),T=Math.sin(L/2),I=O*V*n-f*b*T,F=f*b*n+O*V*T,G=f*V*n+O*b*T,K=O*b*n-f*V*T;return [F,G,K,I]}function qr(){var l=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,C=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(l===this._caching.lastFrame||this._caching.lastFrame!==Vr&&(this._caching.lastFrame>=C&&l>=C||this._caching.lastFrame=l&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(l,this._caching);this.pv=L;}return this._caching.lastFrame=l,this.pv}function mr(l){var k;if(this.propType==="unidimensional")k=l*this.mult,ha(this.v-k)>1e-5&&(this.v=k,this._mdf=!0);else for(var C=0,L=this.v.length;C1e-5&&(this.v[C]=k,this._mdf=!0),C+=1;}function $r(){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 l,k=this.effectsSequence.length,C=this.kf?this.pv:this.data.k;for(l=0;l=this._maxLength&&this.doubleArrayLength(),C){case"v":V=this.v;break;case"i":V=this.i;break;case"o":V=this.o;break;default:V=[];break}(!V[L]||V[L]&&!O)&&(V[L]=Ve.newElement()),V[L][0]=l,V[L][1]=k;},Qi.prototype.setTripleAt=function(l,k,C,L,O,V,n,f){this.setXYAt(l,k,"v",n,f),this.setXYAt(C,L,"o",n,f),this.setXYAt(O,V,"i",n,f);},Qi.prototype.reverse=function(){var l=new Qi;l.setPathData(this.c,this._length);var k=this.v,C=this.o,L=this.i,O=0;this.c&&(l.setTripleAt(k[0][0],k[0][1],L[0][0],L[0][1],C[0][0],C[0][1],0,!1),O=1);var V=this._length-1,n=this._length,f;for(f=O;f=Lt[Lt.length-1].t-this.offsetTime)R=Lt[Lt.length-1].s?Lt[Lt.length-1].s[0]:Lt[Lt.length-2].e[0],at=!0;else {for(var Kt=W,_t=Lt.length-1,Et=!0,ht,Ct,Ft;Et&&(ht=Lt[Kt],Ct=Lt[Kt+1],!(Ct.t-this.offsetTime>tt));)Kt<_t-1?Kt+=1:Et=!1;if(Ft=this.keyframesMetadata[Kt]||{},at=ht.h===1,W=Kt,!at){if(tt>=Ct.t-this.offsetTime)Rt=1;else if(ttj&&tt>j)||(this._caching.lastIndex=W0||ht>-1e-6&&ht<0?L(ht*Ct)/Ct:ht}function Et(){var ht=this.props,Ct=_t(ht[0]),Ft=_t(ht[1]),wt=_t(ht[4]),St=_t(ht[5]),At=_t(ht[12]),ut=_t(ht[13]);return "matrix("+Ct+","+Ft+","+wt+","+St+","+At+","+ut+")"}return function(){this.reset=O,this.rotate=V,this.rotateX=n,this.rotateY=f,this.rotateZ=b,this.skew=I,this.skewFromAxis=F,this.shear=T,this.scale=G,this.setTransform=K,this.translate=X,this.transform=it,this.multiply=lt,this.applyToPoint=R,this.applyToX=rt,this.applyToY=at,this.applyToZ=Z,this.applyToPointArray=jt,this.applyToTriplePoints=Rt,this.applyToPointStringified=Lt,this.toCSS=Kt,this.to2dCSS=Et,this.clone=j,this.cloneFromProps=W,this.equals=H,this.inversePoints=Pt,this.inversePoint=mt,this.getInverseMatrix=ct,this._t=this.transform,this.isIdentity=tt,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset();}}();function Vs(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(k){return typeof k}:Vs=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},Vs(l)}var ti={};function Ta(l){h(l);}function la(){ke.searchAnimations();}function Ma(l){se(l);}function os(l){de(l);}function Da(l){return ke.loadAnimation(l)}function Fa(l){if(typeof l=="string")switch(l){case"high":Pe(200);break;default:case"medium":Pe(50);break;case"low":Pe(10);break}else !isNaN(l)&&l>1&&Pe(l);}function Ia(){return typeof navigator<"u"}function La(l,k){l==="expressions"&&le(k);}function Va(l){switch(l){case"propertyFactory":return pe;case"shapePropertyFactory":return kr;case"matrix":return ue;default:return null}}ti.play=ke.play,ti.pause=ke.pause,ti.setLocationHref=Ta,ti.togglePause=ke.togglePause,ti.setSpeed=ke.setSpeed,ti.setDirection=ke.setDirection,ti.stop=ke.stop,ti.searchAnimations=la,ti.registerAnimation=ke.registerAnimation,ti.loadAnimation=Da,ti.setSubframeRendering=Ma,ti.resize=ke.resize,ti.goToAndStop=ke.goToAndStop,ti.destroy=ke.destroy,ti.setQuality=Fa,ti.inBrowser=Ia,ti.installPlugin=La,ti.freeze=ke.freeze,ti.unfreeze=ke.unfreeze,ti.setVolume=ke.setVolume,ti.mute=ke.mute,ti.unmute=ke.unmute,ti.getRegisteredAnimations=ke.getRegisteredAnimations,ti.useWebWorker=o,ti.setIDPrefix=os,ti.__getFactory=Va,ti.version="5.12.2";function Xs(){document.readyState==="complete"&&(clearInterval(ni),la());}function bs(l){for(var k=pa.split("&"),C=0;C"u"?"undefined":Vs(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ti);}catch{}var ei=function(){var l={},k={};l.registerModifier=C,l.getModifier=L;function C(O,V){k[O]||(k[O]=V);}function L(O,V,n){return new k[O](V,n)}return l}();function wi(){}wi.prototype.initModifierProperties=function(){},wi.prototype.addShapeToModifier=function(){},wi.prototype.addShape=function(l){if(!this.closed){l.sh.container.addDynamicProperty(l.sh);var k={shape:l.sh,data:l,localShapeCollection:Ge.newShapeCollection()};this.shapes.push(k),this.addShapeToModifier(k),this._isAnimated&&l.setAsAnimated();}},wi.prototype.init=function(l,k){this.shapes=[],this.elem=l,this.initDynamicPropertyContainer(l),this.initModifierProperties(l,k),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},wi.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},v([Ye],wi);function Gi(){}v([wi],Gi),Gi.prototype.initModifierProperties=function(l,k){this.s=pe.getProp(l,k.s,0,.01,this),this.e=pe.getProp(l,k.e,0,.01,this),this.o=pe.getProp(l,k.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=k.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},Gi.prototype.addShapeToModifier=function(l){l.pathsData=[];},Gi.prototype.calculateShapeEdges=function(l,k,C,L,O){var V=[];k<=1?V.push({s:l,e:k}):l>=1?V.push({s:l-1,e:k-1}):(V.push({s:l,e:1}),V.push({s:0,e:k-1}));var n=[],f,b=V.length,T;for(f=0;fL+C)){var I,F;T.s*O<=L?I=0:I=(T.s*O-L)/C,T.e*O>=L+C?F=1:F=(T.e*O-L)/C,n.push([I,F]);}return n.length||n.push([0,0]),n},Gi.prototype.releasePathsData=function(l){var k,C=l.length;for(k=0;k1?k=1+L:this.s.v<0?k=0+L:k=this.s.v+L,this.e.v>1?C=1+L:this.e.v<0?C=0+L:C=this.e.v+L,k>C){var O=k;k=C,C=O;}k=Math.round(k*1e4)*1e-4,C=Math.round(C*1e4)*1e-4,this.sValue=k,this.eValue=C;}else k=this.sValue,C=this.eValue;var V,n,f=this.shapes.length,b,T,I,F,G,K=0;if(C===k)for(n=0;n=0;n-=1)if(it=this.shapes[n],it.shape._mdf){for(lt=it.localShapeCollection,lt.releaseShapes(),this.m===2&&f>1?(W=this.calculateShapeEdges(k,C,it.totalShapeLength,j,K),j+=it.totalShapeLength):W=[[tt,H]],T=W.length,b=0;b=1?X.push({s:it.totalShapeLength*(tt-1),e:it.totalShapeLength*(H-1)}):(X.push({s:it.totalShapeLength*tt,e:it.totalShapeLength}),X.push({s:0,e:it.totalShapeLength*(H-1)}));var R=this.addShapes(it,X[0]);if(X[0].s!==X[0].e){if(X.length>1){var rt=it.shape.paths.shapes[it.shape.paths._length-1];if(rt.c){var at=R.pop();this.addPaths(R,lt),R=this.addShapes(it,X[1],at);}else this.addPaths(R,lt),R=this.addShapes(it,X[1]);}this.addPaths(R,lt);}}it.shape.paths=lt;}}},Gi.prototype.addPaths=function(l,k){var C,L=l.length;for(C=0;Ck.e){C.c=!1;break}else k.s<=T&&k.e>=T+I.addedLength?(this.addSegment(O[V].v[f-1],O[V].o[f-1],O[V].i[f],O[V].v[f],C,F,lt),lt=!1):(K=Ki.getNewSegment(O[V].v[f-1],O[V].v[f],O[V].o[f-1],O[V].i[f],(k.s-T)/I.addedLength,(k.e-T)/I.addedLength,G[f-1]),this.addSegmentFromArray(K,C,F,lt),lt=!1,C.c=!1),T+=I.addedLength,F+=1;if(O[V].c&&G.length){if(I=G[f-1],T<=k.e){var tt=G[f-1].addedLength;k.s<=T&&k.e>=T+tt?(this.addSegment(O[V].v[f-1],O[V].o[f-1],O[V].i[0],O[V].v[0],C,F,lt),lt=!1):(K=Ki.getNewSegment(O[V].v[f-1],O[V].v[0],O[V].o[f-1],O[V].i[0],(k.s-T)/tt,(k.e-T)/tt,G[f-1]),this.addSegmentFromArray(K,C,F,lt),lt=!1,C.c=!1);}else C.c=!1;T+=I.addedLength,F+=1;}if(C._length&&(C.setXYAt(C.v[it][0],C.v[it][1],"i",it),C.setXYAt(C.v[C._length-1][0],C.v[C._length-1][1],"o",C._length-1)),T>k.e)break;V=this.p.keyframes[this.p.keyframes.length-1].t?(I=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/T,0),F=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/T,0)):(I=this.p.pv,F=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/T,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){I=[],F=[];var G=this.px,K=this.py;G._caching.lastFrame+G.offsetTime<=G.keyframes[0].t?(I[0]=G.getValueAtTime((G.keyframes[0].t+.01)/T,0),I[1]=K.getValueAtTime((K.keyframes[0].t+.01)/T,0),F[0]=G.getValueAtTime(G.keyframes[0].t/T,0),F[1]=K.getValueAtTime(K.keyframes[0].t/T,0)):G._caching.lastFrame+G.offsetTime>=G.keyframes[G.keyframes.length-1].t?(I[0]=G.getValueAtTime(G.keyframes[G.keyframes.length-1].t/T,0),I[1]=K.getValueAtTime(K.keyframes[K.keyframes.length-1].t/T,0),F[0]=G.getValueAtTime((G.keyframes[G.keyframes.length-1].t-.01)/T,0),F[1]=K.getValueAtTime((K.keyframes[K.keyframes.length-1].t-.01)/T,0)):(I=[G.pv,K.pv],F[0]=G.getValueAtTime((G._caching.lastFrame+G.offsetTime-.01)/T,G.offsetTime),F[1]=K.getValueAtTime((K._caching.lastFrame+K.offsetTime-.01)/T,K.offsetTime));}else F=l,I=F;this.v.rotate(-Math.atan2(I[1]-F[1],I[0]-F[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 L(){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 V(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0;}function n(b,T,I){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=T,this.v=new ue,this.pre=new ue,this.appliedTransformations=0,this.initDynamicPropertyContainer(I||b),T.p&&T.p.s?(this.px=pe.getProp(b,T.p.x,0,0,this),this.py=pe.getProp(b,T.p.y,0,0,this),T.p.z&&(this.pz=pe.getProp(b,T.p.z,0,0,this))):this.p=pe.getProp(b,T.p||{k:[0,0,0]},1,0,this),T.rx){if(this.rx=pe.getProp(b,T.rx,0,xt,this),this.ry=pe.getProp(b,T.ry,0,xt,this),this.rz=pe.getProp(b,T.rz,0,xt,this),T.or.k[0].ti){var F,G=T.or.k.length;for(F=0;F0;)C-=1,this._elements.unshift(k[C]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ji.prototype.resetElements=function(l){var k,C=l.length;for(k=0;k0?Math.floor(G):Math.ceil(G),it=this.pMatrix.props,lt=this.rMatrix.props,tt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var H=0;if(G>0){for(;HX;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),H-=1;K&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-K,!0),H-=K);}L=this.data.m===1?0:this._currentCopies-1,O=this.data.m===1?1:-1,V=this._currentCopies;for(var j,W;V;){if(k=this.elemsData[L].it,C=k[k.length-1].transform.mProps.v.props,W=C.length,k[k.length-1].transform.mProps._mdf=!0,k[k.length-1].transform.op._mdf=!0,k[k.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(L/(this._currentCopies-1)),H!==0){for((L!==0&&O===1||L!==this._currentCopies-1&&O===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),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(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],tt[8],tt[9],tt[10],tt[11],tt[12],tt[13],tt[14],tt[15]),this.matrix.transform(it[0],it[1],it[2],it[3],it[4],it[5],it[6],it[7],it[8],it[9],it[10],it[11],it[12],it[13],it[14],it[15]),j=0;j0&&L<1?[k]:[]:[k-L,k+L].filter(function(O){return O>0&&O<1})},ri.prototype.split=function(l){if(l<=0)return [Rs(this.points[0]),this];if(l>=1)return [this,Rs(this.points[this.points.length-1])];var k=wr(this.points[0],this.points[1],l),C=wr(this.points[1],this.points[2],l),L=wr(this.points[2],this.points[3],l),O=wr(k,C,l),V=wr(C,L,l),n=wr(O,V,l);return [new ri(this.points[0],k,O,n,!0),new ri(n,V,L,this.points[3],!0)]};function ts(l,k){var C=l.points[0][k],L=l.points[l.points.length-1][k];if(C>L){var O=L;L=C,C=O;}for(var V=Zs(3*l.a[k],2*l.b[k],l.c[k]),n=0;n0&&V[n]<1){var f=l.point(V[n])[k];fL&&(L=f);}return {min:C,max:L}}ri.prototype.bounds=function(){return {x:ts(this,0),y:ts(this,1)}},ri.prototype.boundingBox=function(){var l=this.bounds();return {left:l.x.min,right:l.x.max,top:l.y.min,bottom:l.y.max,width:l.x.max-l.x.min,height:l.y.max-l.y.min,cx:(l.x.max+l.x.min)/2,cy:(l.y.max+l.y.min)/2}};function ls(l,k,C){var L=l.boundingBox();return {cx:L.cx,cy:L.cy,width:L.width,height:L.height,bez:l,t:(k+C)/2,t1:k,t2:C}}function Er(l){var k=l.bez.split(.5);return [ls(k[0],l.t1,l.t),ls(k[1],l.t,l.t2)]}function xs(l,k){return Math.abs(l.cx-k.cx)*2=V||l.width<=L&&l.height<=L&&k.width<=L&&k.height<=L){O.push([l.t,k.t]);return}var n=Er(l),f=Er(k);sr(n[0],f[0],C+1,L,O,V),sr(n[0],f[1],C+1,L,O,V),sr(n[1],f[0],C+1,L,O,V),sr(n[1],f[1],C+1,L,O,V);}}ri.prototype.intersections=function(l,k,C){k===void 0&&(k=2),C===void 0&&(C=7);var L=[];return sr(ls(this,0,1),ls(l,0,1),0,k,L,C),L},ri.shapeSegment=function(l,k){var C=(k+1)%l.length();return new ri(l.v[k],l.o[k],l.i[C],l.v[C],!0)},ri.shapeSegmentInverted=function(l,k){var C=(k+1)%l.length();return new ri(l.v[C],l.i[C],l.o[k],l.v[k],!0)};function tr(l,k){return [l[1]*k[2]-l[2]*k[1],l[2]*k[0]-l[0]*k[2],l[0]*k[1]-l[1]*k[0]]}function Hr(l,k,C,L){var O=[l[0],l[1],1],V=[k[0],k[1],1],n=[C[0],C[1],1],f=[L[0],L[1],1],b=tr(tr(O,V),tr(n,f));return zi(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function qi(l,k,C){return [l[0]+Math.cos(k)*C,l[1]-Math.sin(k)*C]}function ar(l,k){return Math.hypot(l[0]-k[0],l[1]-k[1])}function Wr(l,k){return hs(l[0],k[0])&&hs(l[1],k[1])}function _s(){}v([wi],_s),_s.prototype.initModifierProperties=function(l,k){this.getValue=this.processKeys,this.amplitude=pe.getProp(l,k.s,0,null,this),this.frequency=pe.getProp(l,k.r,0,null,this),this.pointsType=pe.getProp(l,k.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function ca(l,k,C,L,O,V,n){var f=C-Math.PI/2,b=C+Math.PI/2,T=k[0]+Math.cos(C)*L*O,I=k[1]-Math.sin(C)*L*O;l.setTripleAt(T,I,T+Math.cos(f)*V,I-Math.sin(f)*V,T+Math.cos(b)*n,I-Math.sin(b)*n,l.length());}function Ps(l,k){var C=[k[0]-l[0],k[1]-l[1]],L=-Math.PI*.5,O=[Math.cos(L)*C[0]-Math.sin(L)*C[1],Math.sin(L)*C[0]+Math.cos(L)*C[1]];return O}function Ra(l,k){var C=k===0?l.length()-1:k-1,L=(k+1)%l.length(),O=l.v[C],V=l.v[L],n=Ps(O,V);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function ps(l,k,C,L,O,V,n){var f=Ra(k,C),b=k.v[C%k._length],T=k.v[C===0?k._length-1:C-1],I=k.v[(C+1)%k._length],F=V===2?Math.sqrt(Math.pow(b[0]-T[0],2)+Math.pow(b[1]-T[1],2)):0,G=V===2?Math.sqrt(Math.pow(b[0]-I[0],2)+Math.pow(b[1]-I[1],2)):0;ca(l,k.v[C%k._length],f,n,L,G/((O+1)*2),F/((O+1)*2));}function yr(l,k,C,L,O,V){for(var n=0;n1&&k.length>1&&(O=Os(l[0],k[k.length-1]),O)?[[l[0].split(O[0])[0]],[k[k.length-1].split(O[1])[1]]]:[C,L]}function Cr(l){for(var k,C=1;C1&&(k=Bs(l[l.length-1],l[0]),l[l.length-1]=k[0],l[0]=k[1]),l}function cs(l,k){var C=l.inflectionPoints(),L,O,V,n;if(C.length===0)return [Ar(l,k)];if(C.length===1||hs(C[1],1))return V=l.split(C[0]),L=V[0],O=V[1],[Ar(L,k),Ar(O,k)];V=l.split(C[0]),L=V[0];var f=(C[1]-C[0])/(1-C[0]);return V=V[1].split(f),n=V[0],O=V[1],[Ar(L,k),Ar(n,k),Ar(O,k)]}function Li(){}v([wi],Li),Li.prototype.initModifierProperties=function(l,k){this.getValue=this.processKeys,this.amount=pe.getProp(l,k.a,0,null,this),this.miterLimit=pe.getProp(l,k.ml,0,null,this),this.lineJoin=k.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},Li.prototype.processPath=function(l,k,C,L){var O=ai.newElement();O.c=l.c;var V=l.length();l.c||(V-=1);var n,f,b,T=[];for(n=0;n=0;n-=1)b=ri.shapeSegmentInverted(l,n),T.push(cs(b,k));T=Cr(T);var I=null,F=null;for(n=0;n0&&(St=!1),St){var Dt=_("style");Dt.setAttribute("f-forigin",ht[Ct].fOrigin),Dt.setAttribute("f-origin",ht[Ct].origin),Dt.setAttribute("f-family",ht[Ct].fFamily),Dt.type="text/css",Dt.innerText="@font-face {font-family: "+ht[Ct].fFamily+"; font-style: normal; src: url('"+ht[Ct].fPath+"');}",Et.appendChild(Dt);}}else if(ht[Ct].fOrigin==="g"||ht[Ct].origin===1){for(At=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ut=0;ut=55296&&ht<=56319){var Ct=_t.charCodeAt(1);Ct>=56320&&Ct<=57343&&(Et=(ht-55296)*1024+Ct-56320+65536);}return Et}function rt(_t,Et){var ht=_t.toString(16)+Et.toString(16);return F.indexOf(ht)!==-1}function at(_t){return _t===b}function Z(_t){return _t===f}function ct(_t){var Et=R(_t);return Et>=T&&Et<=I}function mt(_t){return ct(_t.substr(0,2))&&ct(_t.substr(2,2))}function Pt(_t){return C.indexOf(_t)!==-1}function Rt(_t,Et){var ht=R(_t.substr(Et,2));if(ht!==L)return !1;var Ct=0;for(Et+=2;Ct<5;){if(ht=R(_t.substr(Et,2)),htn)return !1;Ct+=1,Et+=2;}return R(_t.substr(Et,2))===O}function jt(){this.isLoaded=!0;}var Lt=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);};Lt.isModifier=rt,Lt.isZeroWidthJoiner=at,Lt.isFlagEmoji=mt,Lt.isRegionalCode=ct,Lt.isCombinedCharacter=Pt,Lt.isRegionalFlag=Rt,Lt.isVariationSelector=Z,Lt.BLACK_FLAG_CODE_POINT=L;var Kt={addChars:tt,addFonts:lt,getCharData:H,getFontByName:W,measureText:j,checkLoadedFonts:X,setIsLoaded:jt};return Lt.prototype=Kt,Lt}();function nr(l){this.animationData=l;}nr.prototype.getProp=function(l){return this.animationData.slots&&this.animationData.slots[l.sid]?Object.assign(l,this.animationData.slots[l.sid].p):l};function es(l){return new nr(l)}function us(){}us.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(l){this.renderableComponents.indexOf(l)===-1&&this.renderableComponents.push(l);},removeRenderableComponent:function(l){this.renderableComponents.indexOf(l)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(l),1);},prepareRenderableFrame:function(l){this.checkLayerLimits(l);},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(l){this.data.ip-this.data.st<=l&&this.data.op-this.data.st>l?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 l,k=this.renderableComponents.length;for(l=0;l.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},oi.prototype.show=function(){},oi.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},oi.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},oi.prototype.resume=function(){this._canPlay=!0;},oi.prototype.setRate=function(l){this.audio.rate(l);},oi.prototype.volume=function(l){this._volumeMultiplier=l,this._previousVolume=l*this._volume,this.audio.volume(this._previousVolume);},oi.prototype.getBaseElement=function(){return null},oi.prototype.destroy=function(){},oi.prototype.sourceRectAtTime=function(){},oi.prototype.initExpressions=function(){};function Be(){}Be.prototype.checkLayers=function(l){var k,C=this.layers.length,L;for(this.completeLayers=!0,k=C-1;k>=0;k-=1)this.elements[k]||(L=this.layers[k],L.ip-L.st<=l-this.layers[k].st&&L.op-L.st>l-this.layers[k].st&&this.buildItem(k)),this.completeLayers=this.elements[k]?this.completeLayers:!1;this.checkPendingElements();},Be.prototype.createItem=function(l){switch(l.ty){case 2:return this.createImage(l);case 0:return this.createComp(l);case 1:return this.createSolid(l);case 3:return this.createNull(l);case 4:return this.createShape(l);case 5:return this.createText(l);case 6:return this.createAudio(l);case 13:return this.createCamera(l);case 15:return this.createFootage(l);default:return this.createNull(l)}},Be.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Be.prototype.createAudio=function(l){return new oi(l,this.globalData,this)},Be.prototype.createFootage=function(l){return new Ae(l,this.globalData,this)},Be.prototype.buildAllItems=function(){var l,k=this.layers.length;for(l=0;l0&&(this.maskElement.setAttribute("id",G),this.element.maskedElement.setAttribute(H,"url("+c()+"#"+G+")"),L.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Yi.prototype.getMaskProperty=function(l){return this.viewData[l].prop},Yi.prototype.renderFrame=function(l){var k=this.element.finalTransform.mat,C,L=this.masksProperties.length;for(C=0;C1&&(L+=" C"+k.o[O-1][0]+","+k.o[O-1][1]+" "+k.i[0][0]+","+k.i[0][1]+" "+k.v[0][0]+","+k.v[0][1]),C.lastPath!==L){var n="";C.elem&&(k.c&&(n=l.inv?this.solidPath+L:L),C.elem.setAttribute("d",n)),C.lastPath=L;}},Yi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var Mr=function(){var l={};l.createFilter=k,l.createAlphaToLuminanceFilter=C;function k(L,O){var V=Xt("filter");return V.setAttribute("id",L),O!==!0&&(V.setAttribute("filterUnits","objectBoundingBox"),V.setAttribute("x","0%"),V.setAttribute("y","0%"),V.setAttribute("width","100%"),V.setAttribute("height","100%")),V}function C(){var L=Xt("feColorMatrix");return L.setAttribute("type","matrix"),L.setAttribute("color-interpolation-filters","sRGB"),L.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),L}return l}(),da=function(){var l={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))&&(l.maskType=!1),/firefox/i.test(navigator.userAgent)&&(l.svgLumaHidden=!1),l}(),Ss={},Jr="filter_result_";function Ui(l){var k,C="SourceGraphic",L=l.data.ef?l.data.ef.length:0,O=nt(),V=Mr.createFilter(O,!0),n=0;this.filters=[];var f;for(k=0;k=0&&(C=this.shapeModifiers[l].processShapes(this._isFirstFrame),!C);l-=1);}},searchProcessedElement:function(l){for(var k=this.processedElements,C=0,L=k.length;C.01)return !1;C+=1;}return !0},ws.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var l=0,k=this.data.k.k.length;l0;)tt=G.transformers[ct].mProps._mdf||tt,Z-=1,ct-=1;if(tt)for(Z=R-G.styles[j].lvl,ct=G.transformers.length-1;Z>0;)at.multiply(G.transformers[ct].mProps.v),Z-=1,ct-=1;}else at=l;if(rt=G.sh.paths,it=rt._length,tt){for(lt="",X=0;X=1?jt=.99:jt<=-1&&(jt=-.99);var Lt=Pt*jt,Kt=Math.cos(Rt+G.a.v)*Lt+lt[0],_t=Math.sin(Rt+G.a.v)*Lt+lt[1];X.setAttribute("fx",Kt),X.setAttribute("fy",_t),it&&!G.g._collapsable&&(G.of.setAttribute("fx",Kt),G.of.setAttribute("fy",_t));}}}function I(F,G,K){var X=G.style,it=G.d;it&&(it._mdf||K)&&it.dashStr&&(X.pElem.setAttribute("stroke-dasharray",it.dashStr),X.pElem.setAttribute("stroke-dashoffset",it.dashoffset[0])),G.c&&(G.c._mdf||K)&&X.pElem.setAttribute("stroke","rgb("+N(G.c.v[0])+","+N(G.c.v[1])+","+N(G.c.v[2])+")"),(G.o._mdf||K)&&X.pElem.setAttribute("stroke-opacity",G.o.v),(G.w._mdf||K)&&(X.pElem.setAttribute("stroke-width",G.w.v),X.msElem&&X.msElem.setAttribute("stroke-width",G.w.v));}return C}();function Ie(l,k,C){this.shapes=[],this.shapesData=l.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(l,k,C),this.prevViewData=[];}v([De,Ei,er,Ks,Ai,ve,ks],Ie),Ie.prototype.initSecondaryElement=function(){},Ie.prototype.identityMatrix=new ue,Ie.prototype.buildExpressionInterface=function(){},Ie.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},Ie.prototype.filterUniqueShapes=function(){var l,k=this.shapes.length,C,L,O=this.stylesList.length,V,n=[],f=!1;for(L=0;L1&&f&&this.setShapesAsAnimated(n);}},Ie.prototype.setShapesAsAnimated=function(l){var k,C=l.length;for(k=0;k=0;b-=1){if(lt=this.searchProcessedElement(l[b]),lt?k[b]=C[lt-1]:l[b]._render=n,l[b].ty==="fl"||l[b].ty==="st"||l[b].ty==="gf"||l[b].ty==="gs"||l[b].ty==="no")lt?k[b].style.closed=!1:k[b]=this.createStyleElement(l[b],O),l[b]._render&&k[b].style.pElem.parentNode!==L&&L.appendChild(k[b].style.pElem),G.push(k[b].style);else if(l[b].ty==="gr"){if(!lt)k[b]=this.createGroupElement(l[b]);else for(F=k[b].it.length,I=0;I1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ir.prototype.addEffect=function(l){this.effectsSequence.push(l),this.elem.addDynamicProperty(this);},ir.prototype.getValue=function(l){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!l)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var k=this.currentData,C=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var L,O=this.effectsSequence.length,V=l||this.data.d.k[this.keysIndex].s;for(L=0;Lk);)C+=1;return this.keysIndex!==C&&(this.keysIndex=C),this.data.d.k[this.keysIndex].s},ir.prototype.buildFinalText=function(l){for(var k=[],C=0,L=l.length,O,V,n=!1,f=!1,b="";C=55296&&O<=56319?vr.isRegionalFlag(l,C)?b=l.substr(C,14):(V=l.charCodeAt(C+1),V>=56320&&V<=57343&&(vr.isModifier(O,V)?(b=l.substr(C,2),n=!0):vr.isFlagEmoji(l.substr(C,4))?b=l.substr(C,4):b=l.substr(C,2))):O>56319?(V=l.charCodeAt(C+1),vr.isVariationSelector(O)&&(n=!0)):vr.isZeroWidthJoiner(O)&&(n=!0,f=!0),n?(k[k.length-1]+=b,n=!1):k.push(b),C+=b.length;return k},ir.prototype.completeTextData=function(l){l.__complete=!0;var k=this.elem.globalData.fontManager,C=this.data,L=[],O,V,n,f=0,b,T=C.m.g,I=0,F=0,G=0,K=[],X=0,it=0,lt,tt,H=k.getFontByName(l.f),j,W=0,R=Tr(H);l.fWeight=R.weight,l.fStyle=R.style,l.finalSize=l.s,l.finalText=this.buildFinalText(l.t),V=l.finalText.length,l.finalLineHeight=l.lh;var rt=l.tr/1e3*l.finalSize,at;if(l.sz)for(var Z=!0,ct=l.sz[0],mt=l.sz[1],Pt,Rt;Z;){Rt=this.buildFinalText(l.t),Pt=0,X=0,V=Rt.length,rt=l.tr/1e3*l.finalSize;var jt=-1;for(O=0;Oct&&Rt[O]!==" "?(jt===-1?V+=1:O=jt,Pt+=l.finalLineHeight||l.finalSize*1.2,Rt.splice(O,jt===O?1:0,"\r"),jt=-1,X=0):(X+=W,X+=rt);Pt+=H.ascent*l.finalSize/100,this.canResize&&l.finalSize>this.minimumFontSize&&mtit?X:it,X=-2*rt,b="",n=!0,G+=1):b=Kt,k.chars?(j=k.getCharData(Kt,H.fStyle,k.getFontByName(l.f).fFamily),W=n?0:j.w*l.finalSize/100):W=k.measureText(b,l.f,l.finalSize),Kt===" "?Lt+=W+rt:(X+=W+rt+Lt,Lt=0),L.push({l:W,an:W,add:I,n,anIndexes:[],val:b,line:G,animatorJustifyOffset:0}),T==2){if(I+=W,b===""||b===" "||O===V-1){for((b===""||b===" ")&&(I-=W);F<=O;)L[F].an=I,L[F].ind=f,L[F].extra=W,F+=1;f+=1,I=0;}}else if(T==3){if(I+=W,b===""||O===V-1){for(b===""&&(I-=W);F<=O;)L[F].an=I,L[F].ind=f,L[F].extra=W,F+=1;I=0,f+=1;}}else L[f].ind=f,L[f].extra=0,f+=1;if(l.l=L,it=X>it?X:it,K.push(X),l.sz)l.boxWidth=l.sz[0],l.justifyOffset=0;else switch(l.boxWidth=it,l.j){case 1:l.justifyOffset=-l.boxWidth;break;case 2:l.justifyOffset=-l.boxWidth/2;break;default:l.justifyOffset=0;}l.lineWidths=K;var _t=C.a,Et,ht;tt=_t.length;var Ct,Ft,wt=[];for(lt=0;lt0?n=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?b=1-this.xe.v/100:T=1+this.xe.v/100;var I=$e.getBezierEasing(n,f,b,T).get,F=0,G=this.finalS,K=this.finalE,X=this.data.sh;if(X===2)K===G?F=V>=K?1:0:F=l(0,k(.5/(K-G)+(V-G)/(K-G),1)),F=I(F);else if(X===3)K===G?F=V>=K?0:1:F=1-l(0,k(.5/(K-G)+(V-G)/(K-G),1)),F=I(F);else if(X===4)K===G?F=0:(F=l(0,k(.5/(K-G)+(V-G)/(K-G),1)),F<.5?F*=2:F=1-2*(F-.5)),F=I(F);else if(X===5){if(K===G)F=0;else {var it=K-G;V=k(l(0,V+.5-G),K-G);var lt=-it/2+V,tt=it/2;F=Math.sqrt(1-lt*lt/(tt*tt));}F=I(F);}else X===6?(K===G?F=0:(V=k(l(0,V+.5-G),K-G),F=(1+Math.cos(Math.PI+Math.PI*2*V/(K-G)))/2),F=I(F)):(V>=C(G)&&(V-G<0?F=l(0,k(k(K,1)-(G-V),1)):F=l(0,k(K-V,1))),F=I(F));if(this.sm.v!==100){var H=this.sm.v*.01;H===0&&(H=1e-8);var j=.5-H*.5;F1&&(F=1));}return F*this.a.v},getValue:function(V){this.iterateDynamicProperties(),this._mdf=V||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,V&&this.data.r===2&&(this.e.v=this._currentTextLength);var n=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/n,b=this.s.v/n+f,T=this.e.v/n+f;if(b>T){var I=b;b=T,T=I;}this.finalS=b,this.finalE=T;}},v([Ye],L);function O(V,n,f){return new L(V,n)}return {getTextSelectorProp:O}}();function xi(l,k,C){var L={propType:!1},O=pe.getProp,V=k.a;this.a={r:V.r?O(l,V.r,0,xt,C):L,rx:V.rx?O(l,V.rx,0,xt,C):L,ry:V.ry?O(l,V.ry,0,xt,C):L,sk:V.sk?O(l,V.sk,0,xt,C):L,sa:V.sa?O(l,V.sa,0,xt,C):L,s:V.s?O(l,V.s,1,.01,C):L,a:V.a?O(l,V.a,1,0,C):L,o:V.o?O(l,V.o,0,.01,C):L,p:V.p?O(l,V.p,1,0,C):L,sw:V.sw?O(l,V.sw,0,0,C):L,sc:V.sc?O(l,V.sc,1,0,C):L,fc:V.fc?O(l,V.fc,1,0,C):L,fh:V.fh?O(l,V.fh,0,0,C):L,fs:V.fs?O(l,V.fs,0,.01,C):L,fb:V.fb?O(l,V.fb,0,.01,C):L,t:V.t?O(l,V.t,0,0,C):L},this.s=br.getTextSelectorProp(l,k.s,C),this.s.t=k.s.t;}function Es(l,k,C){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=l,this._renderType=k,this._elem=C,this._animatorsData=g(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(C);}Es.prototype.searchProperties=function(){var l,k=this._textData.a.length,C,L=pe.getProp;for(l=0;l=X+Ji||!R?(ct=(X+Ji-lt)/it.partialLength,ut=W.point[0]+(it.point[0]-W.point[0])*ct,Dt=W.point[1]+(it.point[1]-W.point[1])*ct,V.translate(-C[0]*G[I].an*.005,-(C[1]*Lt)*.01),tt=!1):R&&(lt+=it.partialLength,H+=1,H>=R.length&&(H=0,j+=1,rt[j]?R=rt[j].points:Pt.v.c?(H=0,j=0,R=rt[j].points):(lt-=it.partialLength,R=null)),R&&(W=it,it=R[H],at=it.partialLength));At=G[I].an/2-G[I].add,V.translate(-At,0,0);}else At=G[I].an/2-G[I].add,V.translate(-At,0,0),V.translate(-C[0]*G[I].an*.005,-C[1]*Lt*.01,0);for(ht=0;htl?this.textSpans[l].span:Xt(f?"g":"text"),j<=l){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[l].span=b,f){var R=Xt("g");b.appendChild(R),this.textSpans[l].childSpan=R;}this.textSpans[l].span=b,this.layerElement.appendChild(b);}b.style.display="inherit";}if(T.reset(),F&&(n[l].n&&(G=-it,K+=C.yOffset,K+=X?1:0,X=!1),this.applyTextPropertiesToMatrix(C,T,n[l].line,G,K),G+=n[l].l||0,G+=it),f){W=this.globalData.fontManager.getCharData(C.finalText[l],L.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily);var rt;if(W.t===1)rt=new P(W.data,this.globalData,this);else {var at=ea;W.data&&W.data.shapes&&(at=this.buildShapeData(W.data,C.finalSize)),rt=new Ie(at,this.globalData,this);}if(this.textSpans[l].glyph){var Z=this.textSpans[l].glyph;this.textSpans[l].childSpan.removeChild(Z.layerElement),Z.destroy();}this.textSpans[l].glyph=rt,rt._debug=!0,rt.prepareFrame(0),rt.renderFrame(),this.textSpans[l].childSpan.appendChild(rt.layerElement),W.t===1&&this.textSpans[l].childSpan.setAttribute("transform","scale("+C.finalSize/100+","+C.finalSize/100+")");}else F&&b.setAttribute("transform","translate("+T.props[12]+","+T.props[13]+")"),b.textContent=n[l].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}F&&b&&b.setAttribute("d",I);}for(;l=0;k-=1)(this.completeLayers||this.elements[k])&&this.elements[k].prepareFrame(l-this.layers[k].st);if(this.globalData._mdf)for(k=0;k=0;C-=1)(this.completeLayers||this.elements[C])&&(this.elements[C].prepareFrame(this.renderedFrame-this.layers[C].st),this.elements[C]._mdf&&(this._mdf=!0));}},or.prototype.renderInnerContent=function(){var l,k=this.layers.length;for(l=0;l0&&b<1&&O[G].push(this.calculateF(b,l,k,C,L,G))):(T=n*n-4*f*V,T>=0&&(I=(-n+M(T))/(2*V),I>0&&I<1&&O[G].push(this.calculateF(I,l,k,C,L,G)),F=(-n-M(T))/(2*V),F>0&&F<1&&O[G].push(this.calculateF(F,l,k,C,L,G)))));this.shapeBoundingBox.left=Y.apply(null,O[0]),this.shapeBoundingBox.top=Y.apply(null,O[1]),this.shapeBoundingBox.right=U.apply(null,O[0]),this.shapeBoundingBox.bottom=U.apply(null,O[1]);},gt.prototype.calculateF=function(l,k,C,L,O,V){return w(1-l,3)*k[V]+3*w(1-l,2)*l*C[V]+3*(1-l)*w(l,2)*L[V]+w(l,3)*O[V]},gt.prototype.calculateBoundingBox=function(l,k){var C,L=l.length;for(C=0;CC&&(C=O);}C*=l.mult;}else C=l.v*l.mult;k.x-=C,k.xMax+=C,k.y-=C,k.yMax+=C;},gt.prototype.currentBoxContains=function(l){return this.currentBBox.x<=l.x&&this.currentBBox.y<=l.y&&this.currentBBox.width+this.currentBBox.x>=l.x+l.width&&this.currentBBox.height+this.currentBBox.y>=l.y+l.height},gt.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var l=this.tempBoundingBox,k=999999;if(l.x=k,l.xMax=-k,l.y=k,l.yMax=-k,this.calculateBoundingBox(this.itemsData,l),l.width=l.xMax=0;k-=1){var L=this.hierarchy[k].finalTransform.mProp;this.mat.translate(-L.p.v[0],-L.p.v[1],L.p.v[2]),this.mat.rotateX(-L.or.v[0]).rotateY(-L.or.v[1]).rotateZ(L.or.v[2]),this.mat.rotateX(-L.rx.v).rotateY(-L.ry.v).rotateZ(L.rz.v),this.mat.scale(1/L.s.v[0],1/L.s.v[1],1/L.s.v[2]),this.mat.translate(L.a.v[0],L.a.v[1],L.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 V=Math.sqrt(Math.pow(O[0],2)+Math.pow(O[1],2)+Math.pow(O[2],2)),n=[O[0]/V,O[1]/V,O[2]/V],f=Math.sqrt(n[2]*n[2]+n[0]*n[0]),b=Math.atan2(n[1],f),T=Math.atan2(n[0],-n[2]);this.mat.rotateY(T).rotateX(-b);}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 I=!this._prevMat.equals(this.mat);if((I||this.pe._mdf)&&this.comp.threeDElements){C=this.comp.threeDElements.length;var F,G,K;for(k=0;k=l)return this.threeDElements[k].perspectiveElem;k+=1;}return null},Vt.prototype.createThreeDContainer=function(l,k){var C=_("div"),L,O;bt(C);var V=_("div");if(bt(V),k==="3d"){L=C.style,L.width=this.globalData.compSize.w+"px",L.height=this.globalData.compSize.h+"px";var n="50% 50%";L.webkitTransformOrigin=n,L.mozTransformOrigin=n,L.transformOrigin=n,O=V.style;var f="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";O.transform=f,O.webkitTransform=f;}C.appendChild(V);var b={container:V,perspectiveElem:C,startPos:l,endPos:l,type:k};return this.threeDElements.push(b),b},Vt.prototype.build3dContainers=function(){var l,k=this.layers.length,C,L="";for(l=0;l=0;l-=1)this.resizerElem.appendChild(this.threeDElements[l].perspectiveElem);},Vt.prototype.addTo3dContainer=function(l,k){for(var C=0,L=this.threeDElements.length;CC?(O=l/this.globalData.compSize.w,V=l/this.globalData.compSize.w,n=0,f=(k-this.globalData.compSize.h*(l/this.globalData.compSize.w))/2):(O=k/this.globalData.compSize.h,V=k/this.globalData.compSize.h,n=(l-this.globalData.compSize.w*(k/this.globalData.compSize.h))/2,f=0);var b=this.resizerElem.style;b.webkitTransform="matrix3d("+O+",0,0,0,0,"+V+",0,0,0,0,1,0,"+n+","+f+",0,1)",b.transform=b.webkitTransform;},Vt.prototype.renderFrame=D.prototype.renderFrame,Vt.prototype.hide=function(){this.resizerElem.style.display="none";},Vt.prototype.show=function(){this.resizerElem.style.display="block";},Vt.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else {var l=this.globalData.compSize.w,k=this.globalData.compSize.h,C,L=this.threeDElements.length;for(C=0;CIg});var Fg,Ig,uc=Ir(()=>{Fs();Fg=ce((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e());}(exports,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?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(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=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,r,s={onmessage:function(){},postMessage:function(u){i({data:u});}},a={postMessage:function(u){s.onmessage({data:u});}};function o(u){if(window.Worker&&window.Blob&&getWebWorker()){var S=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),d=URL.createObjectURL(S);return new Worker(d)}return i=u,s}function p(){r||(r=o(function(u){function S(){function g(ot,Tt){var z,$,E=ot.length,q,nt,Q,Ut;for($=0;$=0;Tt-=1)if(ot[Tt].ty==="sh")if(ot[Tt].ks.k.i)w(ot[Tt].ks.k);else for(E=ot[Tt].ks.k.length,$=0;$z[0]?!0:z[0]>ot[0]?!1:ot[1]>z[1]?!0:z[1]>ot[1]?!1:ot[2]>z[2]?!0:z[2]>ot[2]?!1:null}var N=function(){var ot=[4,4,14];function Tt($){var E=$.t.d;$.t.d={k:[{s:E,t:0}]};}function z($){var E,q=$.length;for(E=0;E=0;E-=1)if($[E].ty==="sh")if($[E].ks.k.i)$[E].ks.k.c=$[E].closed;else for(Q=$[E].ks.k.length,nt=0;nt500)&&(this._imageLoaded(),clearInterval(x)),m+=1;}.bind(this),50);}function a(y){var m=r(y,this.assetsPath,this.path),x=createNS("image");isSafari?this.testImageLoaded(x):x.addEventListener("load",this._imageLoaded,!1),x.addEventListener("error",function(){w.img=t,this._imageLoaded();}.bind(this),!1),x.setAttributeNS("http://www.w3.org/1999/xlink","href",m),this._elementHelper.append?this._elementHelper.append(x):this._elementHelper.appendChild(x);var w={img:x,assetData:y};return w}function o(y){var m=r(y,this.assetsPath,this.path),x=createTag("img");x.crossOrigin="anonymous",x.addEventListener("load",this._imageLoaded,!1),x.addEventListener("error",function(){w.img=t,this._imageLoaded();}.bind(this),!1),x.src=m;var w={img:x,assetData:y};return w}function p(y){var m={assetData:y},x=r(y,this.assetsPath,this.path);return dataManager.loadData(x,function(w){m.img=w,this._footageLoaded();}.bind(this),function(){m.img={},this._footageLoaded();}.bind(this)),m}function h(y,m){this.imagesLoadedCb=m;var x,w=y.length;for(x=0;xthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,o=s.length;for(a=0;athis.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.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]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.firstFramee&&(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,r=t.length;for(i=0;i=0;$-=1)e[$].animation.destroy(z);}function Y(z,$,E){var q=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),nt,Q=q.length;for(nt=0;nt0?w=Y:x=Y;while(Math.abs(U)>a&&++dt=s?A(m,xt,x,w):vt===0?xt:g(m,N,N+h,x,w)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),o={newElement:p,release:h};function p(){var c;return r?(r-=1,c=a[r]):c=e(),c}function h(c){r===s&&(a=pooling.double(a),s*=2),i&&i(c),a[r]=c,r+=1;}return o}}(),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 r,s=i.lengths.length;for(r=0;r-.001&&m<.001}function i(u,S,d,g,A,y,m,x,w){if(d===0&&y===0&&w===0)return e(u,S,g,A,m,x);var M=t.sqrt(t.pow(g-u,2)+t.pow(A-S,2)+t.pow(y-d,2)),N=t.sqrt(t.pow(m-u,2)+t.pow(x-S,2)+t.pow(w-d,2)),U=t.sqrt(t.pow(m-g,2)+t.pow(x-A,2)+t.pow(w-y,2)),Y;return M>N?M>U?Y=M-N-U:Y=U-N-M:U>N?Y=U-N-M:Y=N-M-U,Y>-1e-4&&Y<1e-4}var r=function(){return function(u,S,d,g){var A=getDefaultCurveSegments(),y,m,x,w,M,N=0,U,Y=[],dt=[],xt=bezierLengthPool.newElement();for(x=d.length,y=0;ym?-1:1,M=!0;M;)if(g[y]<=m&&g[y+1]>m?(x=(m-g[y])/(g[y+1]-g[y]),M=!1):y+=w,y<0||y>=A-1){if(y===A-1)return d[y];M=!1;}return d[y]+(d[y+1]-d[y])*x}function c(u,S,d,g,A,y){var m=h(A,y),x=1-m,w=t.round((x*x*x*u[0]+(m*x*x+x*m*x+x*x*m)*d[0]+(m*m*x+x*m*m+m*x*m)*g[0]+m*m*m*S[0])*1e3)/1e3,M=t.round((x*x*x*u[1]+(m*x*x+x*m*x+x*x*m)*d[1]+(m*m*x+x*m*m+m*x*m)*g[1]+m*m*m*S[1])*1e3)/1e3;return [w,M]}var _=createTypedArray("float32",8);function v(u,S,d,g,A,y,m){A<0?A=0:A>1&&(A=1);var x=h(A,m);y=y>1?1:y;var w=h(y,m),M,N=u.length,U=1-x,Y=1-w,dt=U*U*U,xt=x*U*U*3,vt=x*x*U*3,bt=x*x*x,It=U*U*Y,ot=x*U*Y+U*x*Y+U*U*w,Tt=x*x*Y+U*x*w+x*U*w,z=x*x*w,$=U*Y*Y,E=x*Y*Y+U*w*Y+U*Y*w,q=x*w*Y+U*w*w+x*Y*w,nt=x*w*w,Q=Y*Y*Y,Ut=w*Y*Y+Y*w*Y+Y*Y*w,zt=w*w*Y+Y*w*w+w*Y*w,qt=w*w*w;for(M=0;M=c.t-i){h.h&&(h=c),s=0;break}if(c.t-i>t){s=a;break}a=y||t=y?w.points.length-1:0;for(u=w.points[M].point.length,v=0;v=Y&&N=y)r[0]=x[0],r[1]=x[1],r[2]=x[2];else if(t<=m)r[0]=h.s[0],r[1]=h.s[1],r[2]=h.s[2];else {var ot=createQuaternion(h.s),Tt=createQuaternion(x),z=(t-m)/(y-m);quaternionToEuler(r,slerp(ot,Tt,z));}else for(a=0;a=y?S=1:t1e-6?(u=Math.acos(S),d=Math.sin(u),g=Math.sin((1-i)*u)/d,A=Math.sin(i*u)/d):(g=1-i,A=i),r[0]=g*s+A*h,r[1]=g*a+A*c,r[2]=g*o+A*_,r[3]=g*p+A*v,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],o=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),h=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=o/degToRads,t[1]=p/degToRads,t[2]=h/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),o=Math.cos(r/2),p=Math.sin(e/2),h=Math.sin(i/2),c=Math.sin(r/2),_=s*a*o-p*h*c,v=p*h*o+s*a*c,u=p*a*o+s*h*c,S=s*h*o-p*a*c;return [v,u,S,_]}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=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}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,r=this.v.length;i1e-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=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,o,p){this.setXYAt(t,e,"v",o,p),this.setXYAt(i,r,"o",o,p),this.setXYAt(s,a,"i",o,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,o=this._length,p;for(p=s;p=ot[ot.length-1].t-this.offsetTime)M=ot[ot.length-1].s?ot[ot.length-1].s[0]:ot[ot.length-2].e[0],U=!0;else {for(var Tt=w,z=ot.length-1,$=!0,E,q,nt;$&&(E=ot[Tt],q=ot[Tt+1],!(q.t-this.offsetTime>y));)Tt=q.t-this.offsetTime)bt=1;else if(yx&&y>x)||(this._caching.lastIndex=w0||E>-1e-6&&E<0?r(E*q)/q:E}function $(){var E=this.props,q=z(E[0]),nt=z(E[1]),Q=z(E[4]),Ut=z(E[5]),zt=z(E[12]),qt=z(E[13]);return "matrix("+q+","+nt+","+Q+","+Ut+","+zt+","+qt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=p,this.rotateZ=h,this.skew=_,this.skewFromAxis=v,this.shear=c,this.scale=u,this.setTransform=S,this.translate=d,this.transform=g,this.multiply=A,this.applyToPoint=M,this.applyToX=N,this.applyToY=U,this.applyToZ=Y,this.applyToPointArray=It,this.applyToTriplePoints=bt,this.applyToPointStringified=ot,this.toCSS=Tt,this.to2dCSS=$,this.clone=x,this.cloneFromProps=w,this.equals=m,this.inversePoints=vt,this.inversePoint=xt,this.getInverseMatrix=dt,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=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.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,o){return new e[s](a,o)}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,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o=[],p,h=a.length,c;for(p=0;pr+i)){var _,v;c.s*s<=r?_=0:_=(c.s*s-r)/i,c.e*s>=r+i?v=1:v=(c.e*s-r)/i,o.push([_,v]);}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}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 a,o,p=this.shapes.length,h,c,_,v,u,S=0;if(i===e)for(o=0;o=0;o-=1)if(g=this.shapes[o],g.shape._mdf){for(A=g.localShapeCollection,A.releaseShapes(),this.m===2&&p>1?(w=this.calculateShapeEdges(e,i,g.totalShapeLength,x,S),x+=g.totalShapeLength):w=[[y,m]],c=w.length,h=0;h=1?d.push({s:g.totalShapeLength*(y-1),e:g.totalShapeLength*(m-1)}):(d.push({s:g.totalShapeLength*y,e:g.totalShapeLength}),d.push({s:0,e:g.totalShapeLength*(m-1)}));var M=this.addShapes(g,d[0]);if(d[0].s!==d[0].e){if(d.length>1){var N=g.shape.paths.shapes[g.shape.paths._length-1];if(N.c){var U=M.pop();this.addPaths(M,A),M=this.addShapes(g,d[1],U);}else this.addPaths(M,A),M=this.addShapes(g,d[1]);}this.addPaths(M,A);}}g.shape.paths=A;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=c&&e.e>=c+_.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,v,A),A=!1):(S=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-c)/_.addedLength,(e.e-c)/_.addedLength,u[p-1]),this.addSegmentFromArray(S,i,v,A),A=!1,i.c=!1),c+=_.addedLength,v+=1;if(s[a].c&&u.length){if(_=u[p-1],c<=e.e){var y=u[p-1].addedLength;e.s<=c&&e.e>=c+y?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,v,A),A=!1):(S=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-c)/y,(e.e-c)/y,u[p-1]),this.addSegmentFromArray(S,i,v,A),A=!1,i.c=!1);}else i.c=!1;c+=_.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),c>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(_=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(_=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){_=[],v=[];var u=this.px,S=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(_[0]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),_[1]=S.getValueAtTime((S.keyframes[0].t+.01)/c,0),v[0]=u.getValueAtTime(u.keyframes[0].t/c,0),v[1]=S.getValueAtTime(S.keyframes[0].t/c,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(_[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),_[1]=S.getValueAtTime(S.keyframes[S.keyframes.length-1].t/c,0),v[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0),v[1]=S.getValueAtTime((S.keyframes[S.keyframes.length-1].t-.01)/c,0)):(_=[u.pv,S.pv],v[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime),v[1]=S.getValueAtTime((S._caching.lastFrame+S.offsetTime-.01)/c,S.offsetTime));}else v=t,_=v;this.v.rotate(-Math.atan2(_[1]-v[1],_[0]-v[0]));}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);}this.frameId=this.elem.globalData.frameId;}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4);}function s(){}function a(h){this._addDynamicProperty(h),this.elem.addDynamicProperty(h),this._isDirty=!0;}function o(h,c,_){if(this.elem=h,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(_||h),c.p&&c.p.s?(this.px=PropertyFactory.getProp(h,c.p.x,0,0,this),this.py=PropertyFactory.getProp(h,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(h,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(h,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(h,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(h,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(h,c.rz,0,degToRads,this),c.or.k[0].ti){var v,u=c.or.k.length;for(v=0;v0;)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;e0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,A=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(u>0){for(;md;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-S,!0),m-=S);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var x,w;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,w=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)*(r/(this._currentCopies-1)),m!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),x=0;x0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<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),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),o=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,o,!0),new PolynomialBezier(o,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o0&&a[o]<1){var p=t.point(a[o])[e];pr&&(r=p);}return {min:i,max:r}}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 r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.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=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var o=splitData(t),p=splitData(e);intersectsImpl(o[0],p[0],i+1,r,s,a),intersectsImpl(o[0],p[1],i+1,r,s,a),intersectsImpl(o[1],p[0],i+1,r,s,a),intersectsImpl(o[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},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,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],o=[i[0],i[1],1],p=[r[0],r[1],1],h=crossProduct(crossProduct(s,a),crossProduct(o,p));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[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,r,s,a,o){var p=i-Math.PI/2,h=i+Math.PI/2,c=e[0]+Math.cos(i)*r*s,_=e[1]-Math.sin(i)*r*s;t.setTripleAt(c,_,c+Math.cos(p)*a,_-Math.sin(p)*a,c+Math.cos(h)*o,_-Math.sin(h)*o,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(t,e,i,r,s,a,o){var p=getProjectingAngle(e,i),h=e.v[i%e._length],c=e.v[i===0?e._length-1:i-1],_=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)):0,u=a===2?Math.sqrt(Math.pow(h[0]-_[0],2)+Math.pow(h[1]-_[1],2)):0;setPoint(t,e.v[i%e._length],p,o,r,u/((s+1)*2),v/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var o=0;o1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(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(),r,s,a,o;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),o=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(o,e),offsetSegment(s,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,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var o,p,h,c=[];for(o=0;o=0;o-=1)h=PolynomialBezier.shapeSegmentInverted(t,o),c.push(offsetSegmentSplit(h,e));c=pruneIntersections(c);var _=null,v=null;for(o=0;o0&&(Ut=!1),Ut){var Gt=createTag("style");Gt.setAttribute("f-forigin",E[q].fOrigin),Gt.setAttribute("f-origin",E[q].origin),Gt.setAttribute("f-family",E[q].fFamily),Gt.type="text/css",Gt.innerText="@font-face {font-family: "+E[q].fFamily+"; font-style: normal; src: url('"+E[q].fPath+"');}",$.appendChild(Gt);}}else if(E[q].fOrigin==="g"||E[q].origin===1){for(zt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),qt=0;qt=55296&&E<=56319){var q=z.charCodeAt(1);q>=56320&&q<=57343&&($=(E-55296)*1024+q-56320+65536);}return $}function N(z,$){var E=z.toString(16)+$.toString(16);return v.indexOf(E)!==-1}function U(z){return z===h}function Y(z){return z===p}function dt(z){var $=M(z);return $>=c&&$<=_}function xt(z){return dt(z.substr(0,2))&&dt(z.substr(2,2))}function vt(z){return i.indexOf(z)!==-1}function bt(z,$){var E=M(z.substr($,2));if(E!==r)return !1;var q=0;for($+=2;q<5;){if(E=M(z.substr($,2)),Eo)return !1;q+=1,$+=2;}return M(z.substr($,2))===s}function It(){this.isLoaded=!0;}var ot=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);};ot.isModifier=N,ot.isZeroWidthJoiner=U,ot.isFlagEmoji=xt,ot.isRegionalCode=dt,ot.isCombinedCharacter=vt,ot.isRegionalFlag=bt,ot.isVariationSelector=Y,ot.BLACK_FLAG_CODE_POINT=r;var Tt={addChars:y,addFonts:A,getCharData:m,getFontByName:w,measureText:x,checkLoadedFonts:d,setIsLoaded:It};return ot.prototype=Tt,ot}();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(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1);},prepareRenderableFrame:function(t){this.checkLayerLimits(t);},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show());},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.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,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.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;t0&&(this.maskElement.setAttribute("id",u),this.element.maskedElement.setAttribute(m,"url("+getLocationHref()+"#"+u+")"),r.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,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",o)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return 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",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)y=u.transformers[dt].mProps._mdf||y,Y-=1,dt-=1;if(y)for(Y=M-u.styles[x].lvl,dt=u.transformers.length-1;Y>0;)U.multiply(u.transformers[dt].mProps.v),Y-=1,dt-=1;}else U=t;if(N=u.sh.paths,g=N._length,y){for(A="",d=0;d=1?It=.99:It<=-1&&(It=-.99);var ot=vt*It,Tt=Math.cos(bt+u.a.v)*ot+A[0],z=Math.sin(bt+u.a.v)*ot+A[1];d.setAttribute("fx",Tt),d.setAttribute("fy",z),g&&!u.g._collapsable&&(u.of.setAttribute("fx",Tt),u.of.setAttribute("fy",z));}}}function _(v,u,S){var d=u.style,g=u.d;g&&(g._mdf||S)&&g.dashStr&&(d.pElem.setAttribute("stroke-dasharray",g.dashStr),d.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),u.c&&(u.c._mdf||S)&&d.pElem.setAttribute("stroke","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||S)&&d.pElem.setAttribute("stroke-opacity",u.o.v),(u.w._mdf||S)&&(d.pElem.setAttribute("stroke-width",u.w.v),d.msElem&&d.msElem.setAttribute("stroke-width",u.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,r,s=this.stylesList.length,a,o=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(o);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;h-=1){if(A=this.searchProcessedElement(t[h]),A?e[h]=i[A-1]:t[h]._render=o,t[h].ty==="fl"||t[h].ty==="st"||t[h].ty==="gf"||t[h].ty==="gs"||t[h].ty==="no")A?e[h].style.closed=!1:e[h]=this.createStyleElement(t[h],s),t[h]._render&&e[h].style.pElem.parentNode!==r&&r.appendChild(e[h].style.pElem),u.push(e[h].style);else if(t[h].ty==="gr"){if(!A)e[h]=this.createGroupElement(t[h]);else for(v=e[h].it.length,_=0;_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 r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)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,r=t.length,s,a,o=!1,p=!1,h="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?h=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(h=t.substr(i,2),o=!0):FontManager.isFlagEmoji(t.substr(i,4))?h=t.substr(i,4):h=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,p=!0),o?(e[e.length-1]+=h,o=!1):e.push(h),i+=h.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,o,p=0,h,c=i.m.g,_=0,v=0,u=0,S=[],d=0,g=0,A,y,m=e.getFontByName(t.f),x,w=0,M=getFontProperties(m);t.fWeight=M.weight,t.fStyle=M.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var N=t.tr/1e3*t.finalSize,U;if(t.sz)for(var Y=!0,dt=t.sz[0],xt=t.sz[1],vt,bt;Y;){bt=this.buildFinalText(t.t),vt=0,d=0,a=bt.length,N=t.tr/1e3*t.finalSize;var It=-1;for(s=0;sdt&&bt[s]!==" "?(It===-1?a+=1:s=It,vt+=t.finalLineHeight||t.finalSize*1.2,bt.splice(s,It===s?1:0,"\r"),It=-1,d=0):(d+=w,d+=N);vt+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&xtg?d:g,d=-2*N,h="",o=!0,u+=1):h=Tt,e.chars?(x=e.getCharData(Tt,m.fStyle,e.getFontByName(t.f).fFamily),w=o?0:x.w*t.finalSize/100):w=e.measureText(h,t.f,t.finalSize),Tt===" "?ot+=w+N:(d+=w+N+ot,ot=0),r.push({l:w,an:w,add:_,n:o,anIndexes:[],val:h,line:u,animatorJustifyOffset:0}),c==2){if(_+=w,h===""||h===" "||s===a-1){for((h===""||h===" ")&&(_-=w);v<=s;)r[v].an=_,r[v].ind=p,r[v].extra=w,v+=1;p+=1,_=0;}}else if(c==3){if(_+=w,h===""||s===a-1){for(h===""&&(_-=w);v<=s;)r[v].an=_,r[v].ind=p,r[v].extra=w,v+=1;_=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,g=d>g?d:g,S.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=S;var z=i.a,$,E;y=z.length;var q,nt,Q=[];for(A=0;A0?o=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?h=1-this.xe.v/100:c=1+this.xe.v/100;var _=BezierFactory.getBezierEasing(o,p,h,c).get,v=0,u=this.finalS,S=this.finalE,d=this.data.sh;if(d===2)S===u?v=a>=S?1:0:v=t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v=_(v);else if(d===3)S===u?v=a>=S?0:1:v=1-t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v=_(v);else if(d===4)S===u?v=0:(v=t(0,e(.5/(S-u)+(a-u)/(S-u),1)),v<.5?v*=2:v=1-2*(v-.5)),v=_(v);else if(d===5){if(S===u)v=0;else {var g=S-u;a=e(t(0,a+.5-u),S-u);var A=-g/2+a,y=g/2;v=Math.sqrt(1-A*A/(y*y));}v=_(v);}else d===6?(S===u?v=0:(a=e(t(0,a+.5-u),S-u),v=(1+Math.cos(Math.PI+Math.PI*2*a/(S-u)))/2),v=_(v)):(a>=i(u)&&(a-u<0?v=t(0,e(e(S,1)-(u-a),1)):v=t(0,e(S-a,1))),v=_(v));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var x=.5-m*.5;v1&&(v=1));}return v*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/o,h=this.s.v/o+p,c=this.e.v/o+p;if(h>c){var _=h;h=c,c=_;}this.finalS=h,this.finalE=c;}},extendPrototype([DynamicPropertyContainer],r);function s(a,o,p){return new r(a,o)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},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,r=PropertyFactory.getProp;for(t=0;t=d+ke||!M?(dt=(d+ke-A)/g.partialLength,qt=w.point[0]+(g.point[0]-w.point[0])*dt,Gt=w.point[1]+(g.point[1]-w.point[1])*dt,a.translate(-i[0]*u[_].an*.005,-(i[1]*ot)*.01),y=!1):M&&(A+=g.partialLength,m+=1,m>=M.length&&(m=0,x+=1,N[x]?M=N[x].points:vt.v.c?(m=0,x=0,M=N[x].points):(A-=g.partialLength,M=null)),M&&(w=g,g=M[m],U=g.partialLength));zt=u[_].an/2-u[_].add,a.translate(-zt,0,0);}else zt=u[_].an/2-u[_].add,a.translate(-zt,0,0),a.translate(-i[0]*u[_].an*.005,-i[1]*ot*.01,0);for(E=0;Et?this.textSpans[t].span:createNS(p?"g":"text"),x<=t){if(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=h,p){var M=createNS("g");h.appendChild(M),this.textSpans[t].childSpan=M;}this.textSpans[t].span=h,this.layerElement.appendChild(h);}h.style.display="inherit";}if(c.reset(),v&&(o[t].n&&(u=-g,S+=i.yOffset,S+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,c,o[t].line,u,S),u+=o[t].l||0,u+=g),p){w=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var N;if(w.t===1)N=new SVGCompElement(w.data,this.globalData,this);else {var U=emptyShapeData;w.data&&w.data.shapes&&(U=this.buildShapeData(w.data,i.finalSize)),N=new SVGShapeElement(U,this.globalData,this);}if(this.textSpans[t].glyph){var Y=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(Y.layerElement),Y.destroy();}this.textSpans[t].glyph=N,N._debug=!0,N.prepareFrame(0),N.renderFrame(),this.textSpans[t].childSpan.appendChild(N.layerElement),w.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else v&&h.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),h.textContent=o[t].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&h&&h.setAttribute("d",_);}for(;t=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=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;t0&&h<1&&s[u].push(this.calculateF(h,t,e,i,r,u))):(c=o*o-4*p*a,c>=0&&(_=(-o+bmSqrt(c))/(2*a),_>0&&_<1&&s[u].push(this.calculateF(_,t,e,i,r,u)),v=(-o-bmSqrt(c))/(2*a),v>0&&v<1&&s[u].push(this.calculateF(v,t,e,i,r,u)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1]);},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;ii&&(i=s);}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=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2]);}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],p=Math.sqrt(o[2]*o[2]+o[0]*o[0]),h=Math.atan2(o[1],p),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-h);}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 _=!this._prevMat.equals(this.mat);if((_||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var v,u,S;for(e=0;e=t)return this.threeDElements[e].perspectiveElem;e+=1;}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i=createTag("div"),r,s;styleDiv(i);var a=createTag("div");if(styleDiv(a),e==="3d"){r=i.style,r.width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o,s=a.style;var p="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=p,s.webkitTransform=p;}i.appendChild(a);var h={container:a,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,i,r="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem);},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;ii?(s=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,o=0,p=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(s=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,o=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,p=0);var h=this.resizerElem.style;h.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+p+",0,1)",h.transform=h.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,r=this.threeDElements.length;for(i=0;i=c;)xt/=2,vt/=2,bt>>>=1;return (xt+bt)/vt};return dt.int32=function(){return Y.g(4)|0},dt.quick=function(){return Y.g(4)/4294967296},dt.double=dt,A(m(Y.S),t),(w.pass||M||function(xt,vt,bt,It){return It&&(It.S&&d(It,Y),xt.state=function(){return d(Y,{})}),bt?(e[o]=xt,vt):xt})(dt,U,"global"in w?w.global:this==e,w.state)}e["seed"+o]=u;function S(x){var w,M=x.length,N=this,U=0,Y=N.i=N.j=0,dt=N.S=[];for(M||(x=[M++]);Ui){var r=i;i=e,e=r;}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,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?c/(2-s-a):c/(s+a),s){case e:o=(i-r)/c+(i1&&(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],r=t[2],s,a,o;if(i===0)s=r,o=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,h=2*r-p;s=hue2rgb(h,p,e+1/3),a=hue2rgb(h,p,e),o=hue2rgb(h,p,e-1/3);}return [s,a,o,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*o;var p,h=r.length,c=createTypedArray("float32",h);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(s)){var p,h=s.length,c=createTypedArray("float32",h);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;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 s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iA.length-1)&&(S=A.length-1),x=A[A.length-1-S].t,m=y-x);var w,M,N;if(u==="pingpong"){var U=Math.floor((g-x)/m);if(U%2!==0)return this.getValueAtTime((m-(g-x)%m+x)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var Y=this.getValueAtTime(x/this.comp.globalData.frameRate,0),dt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),xt=this.getValueAtTime(((g-x)%m+x)/this.comp.globalData.frameRate,0),vt=Math.floor((g-x)/m);if(this.pv.length){for(N=new Array(Y.length),M=N.length,w=0;w=y)return this.pv;var m,x;d?(S?m=Math.abs(this.elem.comp.globalData.frameRate*S):m=Math.max(0,this.elem.data.op-y),x=y+m):((!S||S>A.length-1)&&(S=A.length-1),x=A[S].t,m=x-y);var w,M,N;if(u==="pingpong"){var U=Math.floor((y-g)/m);if(U%2===0)return this.getValueAtTime(((y-g)%m+y)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var Y=this.getValueAtTime(y/this.comp.globalData.frameRate,0),dt=this.getValueAtTime(x/this.comp.globalData.frameRate,0),xt=this.getValueAtTime((m-(y-g)%m+y)/this.comp.globalData.frameRate,0),vt=Math.floor((y-g)/m)+1;if(this.pv.length){for(N=new Array(Y.length),M=N.length,w=0;w1?(A-g)/(S-1):1,m=0,x=0,w;this.pv.length?w=createTypedArray("float32",this.pv.length):w=0;for(var M;my){var N=m,U=d.c&&m===x-1?0:m+1,Y=(y-w)/A[m].addedLength;M=bez.getPointInSegment(d.v[N],d.v[U],d.o[N],d.i[U],Y,A[m]);break}else w+=A[m].addedLength;m+=1;}return M||(M=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),M},vectorOnPath:function(u,S,d){u==1?u=this.v.c:u==0&&(u=.999);var g=this.pointOnPath(u,S),A=this.pointOnPath(u+.001,S),y=A[0]-g[0],m=A[1]-g[1],x=Math.sqrt(Math.pow(y,2)+Math.pow(m,2));if(x===0)return [0,0];var w=d==="tangent"?[y/x,m/x]:[-m/x,y/x];return w},tangentOnPath:function(u,S){return this.vectorOnPath(u,S,"tangent")},normalOnPath:function(u,S){return this.vectorOnPath(u,S,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([_],h),extendPrototype([_],c),c.prototype.getValueAtTime=p,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,S,d,g,A){var y=v(u,S,d,g,A);return y.propertyIndex=S.ix,y.lock=!1,d===3?expressionHelpers.searchExpressions(u,S.pt,y):d===4&&expressionHelpers.searchExpressions(u,S.ks,y),y.k&&u.addDynamicProperty(y),y};}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 r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}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 r=createNS("feMerge");r.setAttribute("result",e);var s,a;for(a=0;a=c?v=d<0?r:s:v=r+S*Math.pow((p-t)/d,1/i),_[u]=v,u+=1,a+=256/(o-1);return _.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,r,s){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",r+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",r+"_drop_shadow_1"),h.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=h,t.appendChild(h);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,t.appendChild(c);var _=createNS("feComposite");_.setAttribute("in",r+"_drop_shadow_3"),_.setAttribute("in2",r+"_drop_shadow_2"),_.setAttribute("operator","in"),_.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(_);var v=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(v);}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,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a);}}};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{fo();Wo();Ao();Mo();en();Lg={name:"@dotlottie/common",version:"0.5.1",type:"module",description:"",author:"Afsal , Sam Osborne ",license:"MIT",private:!0,engines:{node:">18.0.0"},module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:[],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint .","type-check":"tsc --noEmit"},dependencies:{"@dotlottie/dotlottie-js":"0.5.2","@lottiefiles/relottie":"1.0.0","@lottiefiles/relottie-style":"0.4.1","@preact/signals-core":"^1.2.3","lottie-web":"^5.12.2",xstate:"^4.38.1"},devDependencies:{"@lottiefiles/lottie-types":"^1.2.0",tsup:"^6.1.3",typescript:"^4.7.4"},publishConfig:{access:"restricted"}},Us=(t=>(t.Complete="complete",t.DataFail="data_fail",t.DataReady="data_ready",t.Error="error",t.Frame="frame",t.Freeze="freeze",t.LoopComplete="loopComplete",t.Pause="pause",t.Play="play",t.Ready="ready",t.Stop="stop",t.VisibilityChange="visibilityChange",t))(Us||{}),wa=(t=>(t.Completed="completed",t.Error="error",t.Fetching="fetching",t.Frozen="frozen",t.Initial="initial",t.Loading="loading",t.Paused="paused",t.Playing="playing",t.Ready="ready",t.Stopped="stopped",t))(wa||{}),exports.PlayMode=(t=>(t.Bounce="bounce",t.Normal="normal",t))(exports.PlayMode||{}),Gr={autoplay:!1,direction:1,hover:!1,intermission:0,loop:!1,playMode:"normal",speed:1,defaultTheme:""},Jo={activeStateId:"",autoplay:!1,currentState:"initial",frame:0,seeker:0,direction:1,hover:!1,loop:!1,playMode:"normal",speed:1,background:"transparent",intermission:0,currentAnimationId:void 0,visibilityPercentage:0},Xo=class{_lottie;_src;_animationConfig;_prevPlaybackOptions={};_playbackOptions;_hover=!1;_loop=!1;_counter=0;_intermission=0;_counterInterval=null;_container=null;_name;_mode="normal";_background="transparent";_animation;_defaultTheme;_activeAnimationId;_currentAnimationId;_testId;_listeners=new Map;_currentState="initial";_stateBeforeFreeze="initial";state=new Af(Jo);_light=!1;_dotLottieLoader=new ep;_activeStateId;_inInteractiveMode=!1;_scrollTicking=!1;_scrollCallback=void 0;_onShowIntersectionObserver=void 0;_visibilityPercentage=0;_stateMachineManager;constructor(t,e,i){this._src=t,i?.testId&&(this._testId=i.testId),this._defaultTheme=i?.defaultTheme||"",this._playbackOptions=this._validatePlaybackOptions(i||{}),typeof i?.activeAnimationId=="string"&&(this._activeAnimationId=i.activeAnimationId),this._container=e||null,typeof i?.background=="string"&&this.setBackground(i.background),typeof i?.activeStateId<"u"&&(this._activeStateId=i.activeStateId),this._animationConfig={loop:!1,autoplay:!1,renderer:"svg",rendererSettings:{clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0},...i||{}},i?.light&&(this._light=i.light),this._listenToHover(),this._listenToVisibilityChange();}_listenToHover(){let t=()=>{this._hover&&this.currentState!=="playing"&&this.play();},e=()=>{this._hover&&this.currentState==="playing"&&this.stop();};this._container?.removeEventListener("mouseenter",t),this._container?.removeEventListener("mouseleave",e),this._container?.addEventListener("mouseleave",e),this._container?.addEventListener("mouseenter",t);}_onVisibilityChange(){!this._lottie||typeof document>"u"||(document.hidden&&this.currentState==="playing"?this.freeze():this.currentState==="frozen"&&this.unfreeze());}_listenToVisibilityChange(){typeof document<"u"&&typeof document.hidden<"u"&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange());}_getOption(t){if(typeof this._playbackOptions[t]<"u")return this._playbackOptions[t];let e=this._dotLottieLoader.manifest?.animations.find(i=>i.id===this._currentAnimationId);return e&&typeof e[t]<"u"?e[t]:Gr[t]}_getPlaybackOptions(){let t={};for(let e in Gr)typeof Gr[e]<"u"&&(t[e]=this._getOption(e));return t}_setPlaybackOptions(t){Object.keys(t).forEach(e=>{let i=t[e];if(!(typeof i>"u"))switch(e){case"loop":this.setLoop(i);break;case"hover":this.setHover(i);break;case"speed":this.setSpeed(i);break;case"autoplay":this.setAutoplay(i);break;case"playMode":this.setMode(i);break;case"direction":this.setDirection(i);break;case"defaultTheme":this._updateDefaultTheme(i);break;case"intermission":this.setIntermission(i);break}});}_getOptionsFromAnimation(t){let{id:e,...i}=t;return {...Gr,...i}}_updateTestData(){!this._testId||!this._lottie||(window.dotLottiePlayer||(window.dotLottiePlayer={[this._testId]:{}}),window.dotLottiePlayer[this._testId]={direction:this._lottie.playDirection,currentState:this._currentState,loop:this.loop,mode:this._mode,speed:this._lottie.playSpeed});}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval);}setCurrentState(t){this._currentState=t,this._notify(),this._updateTestData();}static isPathJSON(t){return t.split(".").pop()?.toLowerCase()==="json"}get src(){return this._src}updateSrc(t){this._src!==t&&(this._src=t,this._activeAnimationId=void 0,this._currentAnimationId=void 0,this.load());}get intermission(){return this._intermission}get hover(){return this._hover}setHover(t){typeof t=="boolean"&&(this._hover=t,this._playbackOptions.hover=t,this._notify());}setIntermission(t){this._intermission=t,this._playbackOptions.intermission=t,this._notify();}get mode(){return this._mode}get animations(){return this._dotLottieLoader.animationsMap}get themes(){return this._dotLottieLoader.themeMap}setMode(t){typeof t=="string"&&(this._mode=t,this._playbackOptions.playMode=t,this._notify(),this._updateTestData());}get container(){if(this._container)return this._container}goToAndPlay(t,e,i){if(!this._lottie||["loading"].includes(this._currentState)){Ti("goToAndPlay() Can't use whilst loading.");return}this._lottie.goToAndPlay(t,e,i),this.setCurrentState("playing");}goToAndStop(t,e,i){if(!this._lottie||["loading"].includes(this._currentState)){Ti("goToAndStop() Can't use whilst loading.");return}this._lottie.goToAndStop(t,e,i),this.setCurrentState("stopped");}seek(t){if(!this._lottie||["loading"].includes(this._currentState)){Ti("seek() Can't use whilst loading.");return}let e=t;typeof e=="number"&&(e=Math.round(e));let i=/^(\d+)(%?)$/u.exec(e.toString());if(!i)return;let r=i[2]==="%"?this.totalFrames*Number(i[1])/100:i[1];r!==void 0&&(this._lottie.goToAndPlay(r,!0),this.currentState==="playing"?this.play():this.currentState==="frozen"?this.freeze():this.pause());}_areNumbersInRange(t,e){return t>=0&&t<=1&&e>=0&&e<=1}_updatePosition(t,e,i){let[r,s]=t??[0,this.totalFrames-1],[a,o]=e??[0,1];if(!this._areNumbersInRange(a,o)){qs("threshold values must be between 0 and 1");return}if(this.container){let{height:p,top:h}=this.container.getBoundingClientRect(),c=window.innerHeight-h,_=window.innerHeight+p,v=c/_,u=r+Math.round((v-a)/(o-a)*(s-r));i&&i(v),this.goToAndStop(u,!0),(u>=s||v>=o)&&this._handleAnimationComplete();}this._scrollTicking=!1;}_requestTick(t,e,i){this._scrollTicking||(requestAnimationFrame(()=>this._updatePosition(t,e,i)),this._scrollTicking=!0);}playOnScroll(t){this.stop(),this._scrollCallback&&this.stopPlayOnScroll(),this._scrollCallback=()=>this._requestTick(t?.segments,t?.threshold,t?.positionCallback),window.addEventListener("scroll",this._scrollCallback);}stopPlayOnScroll(){this._scrollCallback&&(window.removeEventListener("scroll",this._scrollCallback),this._scrollCallback=void 0);}stopPlayOnShow(){this._onShowIntersectionObserver&&(this._onShowIntersectionObserver.disconnect(),this._onShowIntersectionObserver=void 0);}addIntersectionObserver(t){if(!this.container)throw Ze("Can't play on show, player container element not available.");let e={root:null,rootMargin:"0px",threshold:t?.threshold?t.threshold:[0,1]},i=r=>{r.forEach(s=>{this._visibilityPercentage=s.intersectionRatio*100,s.isIntersecting?(t?.callbackOnIntersect&&t.callbackOnIntersect(this._visibilityPercentage),this._container?.dispatchEvent(new Event("visibilityChange"))):t?.callbackOnIntersect&&(t.callbackOnIntersect(0),this._container?.dispatchEvent(new Event("visibilityChange")));});};this._onShowIntersectionObserver=new IntersectionObserver(i,e),this._onShowIntersectionObserver.observe(this.container);}playOnShow(t){if(this.stop(),!this.container)throw Ze("Can't play on show, player container element not available.");this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:t?.threshold??[],callbackOnIntersect:e=>{e===0?this.pause():this.play();}});}_validatePlaybackOptions(t){if(!t)return {};let e={};for(let[i,r]of Object.entries(t))switch(i){case"autoplay":typeof r=="boolean"&&(e.autoplay=r);break;case"direction":typeof r=="number"&&[1,-1].includes(r)&&(e.direction=r);break;case"loop":(typeof r=="boolean"||typeof r=="number")&&(e.loop=r);break;case"playMode":typeof r=="string"&&["normal","bounce"].includes(r)&&(e.playMode=r);break;case"speed":typeof r=="number"&&(e.speed=r);break;case"themeColor":typeof r=="string"&&(e.themeColor=r);break;case"hover":typeof r=="boolean"&&(e.hover=r);break;case"intermission":typeof r=="number"&&(e.intermission=r);break;case"defaultTheme":typeof r=="string"&&(e.defaultTheme=r);break}return this._requireValidPlaybackOptions(e),e}_requireAnimationsInTheManifest(){if(!this._dotLottieLoader.manifest?.animations.length)throw Ze("No animations found in manifest.")}_requireAnimationsToBeLoaded(){if(this._dotLottieLoader.animationsMap.size===0)throw Ze("No animations have been loaded.")}async play(t,e){if(["initial","loading"].includes(this._currentState)){Ti("Player unable to play whilst loading.");return}if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),this._lottie&&!t){this._lottie.playDirection===-1&&this._lottie.currentFrame===0?this._lottie.goToAndPlay(this._lottie.totalFrames,!0):this._lottie.play(),this.setCurrentState("playing");return}if(typeof t=="number"){let i=this._dotLottieLoader.manifest?.animations[t];if(!i)throw Ze("animation not found.");typeof e=="function"?await this.render({id:i.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id});}if(typeof t=="string"){let i=this._dotLottieLoader.manifest?.animations.find(r=>r.id===t);if(!i)throw Ze("animation not found.");typeof e=="function"?await this.render({id:i.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id});}}playSegments(t,e){if(!this._lottie||["loading"].includes(this._currentState)){Ti("playSegments() Can't use whilst loading.");return}this._lottie.playSegments(t,e),this.setCurrentState("playing");}resetSegments(t){if(!this._lottie||["loading"].includes(this._currentState)){Ti("resetSegments() Can't use whilst loading.");return}this._lottie.resetSegments(t);}togglePlay(){this.currentState==="playing"?this.pause():this.play();}_getAnimationByIdOrIndex(t){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),typeof t=="number"){let e=this._dotLottieLoader.manifest?.animations[t];if(!e)throw Ze("animation not found.");return e}if(typeof t=="string"){let e=this._dotLottieLoader.manifest?.animations.find(i=>i.id===t);if(!e)throw Ze("animation not found.");return e}throw Ze("first param must be a number or string")}get activeAnimationId(){return this._getActiveAnimationId()}get currentAnimationId(){return this._currentAnimationId}get activeStateId(){return this._activeStateId}async _startInteractivity(t){if(!this._inInteractiveMode){qs("Can't start interactivity. Not in interactive mode. Call enterInteractiveMode(stateId: string) to start.");return}if(this._dotLottieLoader.stateMachinesMap.size===0&&await this._dotLottieLoader.getStateMachines(),this._dotLottieLoader.stateMachinesMap.size===0)throw Ze("No interactivity states are available.");if(t==="undefined")throw Ze("stateId is not specified.");this._stateMachineManager||(this._stateMachineManager=await ec(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this)),this._stateMachineManager.start(t);}enterInteractiveMode(t){if(t)this._inInteractiveMode||(this._prevPlaybackOptions={...this._playbackOptions}),this._inInteractiveMode&&this._stateMachineManager?.stop(),this._activeStateId=t,this._inInteractiveMode=!0,this._startInteractivity(t);else throw Ze("stateId must be a non-empty string.")}exitInteractiveMode(){this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId="",this._stateMachineManager?.stop(),this._playbackOptions={},this._setPlaybackOptions(this._prevPlaybackOptions),this._prevPlaybackOptions={},this.reset());}reset(){let t=this._getActiveAnimationId(),e=this._dotLottieLoader.manifest?.animations.find(i=>i.id===t);if(this._inInteractiveMode&&this.exitInteractiveMode(),!e)throw Ze("animation not found.");this.play(t);}previous(t){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw Ze("manifest not found.");if(this._inInteractiveMode){Ti("previous() is not supported in interactive mode.");return}let e=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(e===-1)throw Ze("animation not found.");let i=this._dotLottieLoader.manifest.animations[(e-1+this._dotLottieLoader.manifest.animations.length)%this._dotLottieLoader.manifest.animations.length];if(!i||!i.id)throw Ze("animation not found.");typeof t=="function"?this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):this.render({id:i.id});}next(t){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw Ze("manifest not found.");if(this._inInteractiveMode){Ti("next() is not supported in interactive mode.");return}let e=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(e===-1)throw Ze("animation not found.");let i=this._dotLottieLoader.manifest.animations[(e+1)%this._dotLottieLoader.manifest.animations.length];if(!i||!i.id)throw Ze("animation not found.");typeof t=="function"?this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):this.render({id:i.id});}getManifest(){return this._dotLottieLoader.manifest}resize(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("resize() Can't use whilst loading.");return}this._lottie.resize();}stop(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("stop() Can't use whilst loading.");return}this.clearCountTimer(),this._counter=0,this.setDirection(this._getOption("direction")),this._lottie.stop(),this.setCurrentState("stopped");}pause(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("pause() Can't use whilst loading.");return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState("paused");}freeze(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("freeze() Can't use whilst loading.");return}this.currentState!=="frozen"&&(this._stateBeforeFreeze=this.currentState),this._lottie.pause(),this.setCurrentState("frozen");}unfreeze(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("unfreeze() Can't use whilst loading.");return}this._stateBeforeFreeze==="playing"?this.play():this.pause();}destroy(){this._container?.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this.clearCountTimer(),typeof document<"u"&&document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this._counter=0,this._lottie?.destroy();}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return `${Lg.dependencies["lottie-web"]}`}addEventListener(t,e){this._listeners.has(t)||this._listeners.set(t,new Set),this._listeners.get(t)?.add(e);try{t==="complete"?this._container?.addEventListener(t,e):this._lottie?.addEventListener(t,e);}catch(i){qs(`addEventListener ${i}`);}}getState(){return {autoplay:this._lottie?.autoplay??!1,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:this._lottie?.playDirection??1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:this._lottie?.playSpeed??1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:this._activeStateId??""}}_notify(){this.state.setState(this.getState());}get totalFrames(){return this._lottie?.totalFrames||0}get direction(){return this._lottie?this._lottie.playDirection:1}setDirection(t){this._requireValidDirection(t),this._lottie?.setDirection(t),this._playbackOptions.direction=t,this._notify(),this._updateTestData();}get speed(){return this._lottie?.playSpeed||1}setSpeed(t){this._requireValidSpeed(t),this._lottie?.setSpeed(t),this._playbackOptions.speed=t,this._notify(),this._updateTestData();}get autoplay(){return this._lottie?.autoplay??!1}setAutoplay(t){if(this._requireValidAutoplay(t),!this._lottie||["loading"].includes(this._currentState)){Ti("setAutoplay() Can't use whilst loading.");return}this._lottie.autoplay=t,this._playbackOptions.autoplay=t,this._notify(),this._updateTestData();}toggleAutoplay(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("toggleAutoplay() Can't use whilst loading.");return}this.setAutoplay(!this._lottie.autoplay);}get defaultTheme(){return this._defaultTheme}setDefaultTheme(t){this._updateDefaultTheme(t),this._animation&&this.render();}_updateDefaultTheme(t){this._defaultTheme=t,this._playbackOptions.defaultTheme=t,this._notify();}get loop(){return this._loop}setLoop(t){this._requireValidLoop(t),this.clearCountTimer(),this._loop=t,this._lottie?.setLoop(typeof t=="number"?!0:t),this._playbackOptions.loop=t,this._notify(),this._updateTestData();}toggleLoop(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("toggleLoop() Can't use whilst loading.");return}this.setLoop(!this._loop);}get background(){return this._background}setBackground(t){this._requireValidBackground(t),this._container&&(this._background=t,this._container.style.backgroundColor=t);}get _frame(){return this._lottie?this.currentState==="completed"?this.direction===-1?0:this._lottie.totalFrames:this._lottie.currentFrame:0}get _seeker(){return this._lottie?this._frame/this._lottie.totalFrames*100:0}async revertToManifestValues(t){let e;!Array.isArray(t)||t.length===0?e=["autoplay","defaultTheme","direction","hover","intermission","loop","playMode","speed","activeAnimationId"]:e=t;let i=!1;if(e.includes("activeAnimationId")){let r=this._dotLottieLoader.manifest?.activeAnimationId,s=this._getAnimationByIdOrIndex(r||0);this._activeAnimationId=r,await this._setCurrentAnimation(s.id),i=!0;}e.forEach(r=>{switch(r){case"autoplay":delete this._playbackOptions.autoplay,this.setAutoplay(this._getOption("autoplay"));break;case"defaultTheme":delete this._playbackOptions.defaultTheme,this.setDefaultTheme(this._getOption("defaultTheme"));break;case"direction":delete this._playbackOptions.direction,this.setDirection(this._getOption("direction"));break;case"hover":delete this._playbackOptions.hover,this.setHover(this._getOption("hover"));break;case"intermission":delete this._playbackOptions.intermission,this.setIntermission(this._getOption("intermission"));break;case"loop":delete this._playbackOptions.loop,this.setLoop(this._getOption("loop"));break;case"playMode":delete this._playbackOptions.playMode,this.setMode(this._getOption("playMode")),this.setDirection(this._getOption("direction"));break;case"speed":delete this._playbackOptions.speed,this.setSpeed(this._getOption("speed"));break}}),i&&this.render();}removeEventListener(t,e){try{t==="complete"?this._container?.removeEventListener(t,e):this._lottie?.removeEventListener(t,e),this._listeners.get(t)?.delete(e);}catch(i){qs("removeEventListener",i);}}_handleAnimationComplete(){typeof this._loop=="number"&&this.stop();let t=this.direction===-1?0:this.totalFrames;this.goToAndStop(t,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState("completed"),this._container?.dispatchEvent(new Event("complete"));}addEventListeners(){if(!this._lottie||["loading"].includes(this._currentState)){Ti("addEventListeners() Can't use whilst loading.");return}this._lottie.addEventListener("enterFrame",()=>{if(!this._lottie){Ti("enterFrame event : Lottie is undefined.");return}Math.floor(this._lottie.currentFrame)===0&&this.direction===-1&&(this._container?.dispatchEvent(new Event("complete")),this.loop||this.setCurrentState("completed")),this._notify();}),this._lottie.addEventListener("loopComplete",()=>{if(!this._lottie){Ti("loopComplete event : Lottie is undefined.");return}this._container?.dispatchEvent(new Event("loopComplete")),this.intermission>0&&this.pause();let t=this._lottie.playDirection;if(typeof this._loop=="number"&&this._loop>0&&(this._counter+=this._mode==="bounce"?.5:1,this._counter>=this._loop)){this._handleAnimationComplete();return}this._mode==="bounce"&&typeof t=="number"&&(t=Number(t)*-1);let e=t===-1?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(e,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this.setDirection(t),this.goToAndPlay(e,!0));},this._intermission)):(this.setDirection(t),this.goToAndPlay(t===-1?this.totalFrames-1:0,!0));}),this._lottie.addEventListener("complete",()=>{if(this._lottie&&this._loop===!1&&this._mode==="bounce"){if(this._counter+=.5,this._counter>=1){this._handleAnimationComplete();return}this._counterInterval=window.setTimeout(()=>{if(!this._lottie)return;let t=this._lottie.playDirection;this._mode==="bounce"&&typeof t=="number"&&(t=Number(t)*-1);let e=t===-1?this.totalFrames-1:0;this.setDirection(t),this.goToAndPlay(e,!0);},this._intermission);}else this._handleAnimationComplete();});for(let[t,e]of this._listeners)if(t==="complete")for(let i of e)this._container?.addEventListener(t,i);else for(let i of e)this._lottie.addEventListener(t,i);}async _setCurrentAnimation(t){this._currentState="loading";let e=await this._dotLottieLoader.getAnimation(t);this._currentAnimationId=t,this._animation=e,this._currentState="ready";}async render(t){if(t?.id)await this._setCurrentAnimation(t.id);else if(!this._animation)throw Ze("no animation selected");this.destroy();let e=Gr.loop??!1,i=Gr.autoplay??!1,r=Gr.playMode??"normal",s=Gr.intermission??0,a=Gr.hover??!1,o=Gr.direction??1,p=Gr.speed??1,h=Gr.defaultTheme??"";e=t?.loop??this._getOption("loop"),i=t?.autoplay??this._getOption("autoplay"),r=t?.playMode??this._getOption("playMode"),s=t?.intermission??this._getOption("intermission"),a=t?.hover??this._getOption("hover"),o=t?.direction??this._getOption("direction"),p=t?.speed??this._getOption("speed"),h=t?.defaultTheme??this._getOption("defaultTheme"),this._defaultTheme=h;let c={...this._animationConfig,autoplay:a?!1:i,loop:typeof e=="number"?!0:e};this._mode=r,this._intermission=s,this._hover=a,this._loop=e;let _=await this._dotLottieLoader.getTheme(h);_&&this._animation?this._animation=await _f(this._animation,_):this._animation=await this._dotLottieLoader.getAnimation(this._currentAnimationId??"");let v=await this._getLottiePlayerInstance();if(this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this._lottie=v.loadAnimation({...c,container:this._container,animationData:this._animation}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this.setDirection(o),this.setSpeed(p),i&&!a&&this.play(),this._updateTestData();}async _getLottiePlayerInstance(){let t=this._animationConfig.renderer??"svg",e;switch(t){case"svg":{this._light?e=await Promise.resolve().then(()=>(rc(),ic)):e=await Promise.resolve().then(()=>(ac(),sc));break}case"canvas":{this._light?e=await Promise.resolve().then(()=>(oc(),nc)):e=await Promise.resolve().then(()=>(lc(),hc));break}case"html":{this._light?e=await Promise.resolve().then(()=>(fc(),pc)):e=await Promise.resolve().then(()=>(uc(),cc));break}default:throw new Error(`Invalid renderer: ${t}`)}return e.default}_getActiveAnimationId(){let t=this._dotLottieLoader.manifest;return this._activeAnimationId??t?.activeAnimationId??t?.animations[0]?.id??void 0}async load(t){if(this._currentState==="loading"){Ti("Loading in progress..");return}try{if(this.setCurrentState("loading"),typeof this._src=="string")if(ih(this._src)){let i=JSON.parse(this._src);this._dotLottieLoader.loadFromLottieJSON(i);}else {let i=new URL(this._src,window.location.href);await this._dotLottieLoader.loadFromUrl(i.toString());}else if(typeof this._src=="object"&&qa(this._src))this._dotLottieLoader.loadFromLottieJSON(this._src);else throw Ze("Invalid src provided");if(!this._dotLottieLoader.manifest)throw Ze("No manifest found");let e=this._getActiveAnimationId();if(!e)throw Ze("No active animation found");await this._setCurrentAnimation(e),await this.render(t);}catch(e){this.setCurrentState("error"),e instanceof Error&&qs(`Error loading animation: ${e.message}`);}}setErrorState(t){this.setCurrentState("error"),qs(t);}_requireValidDirection(t){if(t!==-1&&t!==1)throw Ze("Direction can only be -1 (backwards) or 1 (forwards)")}_requireValidIntermission(t){if(t<0||!Number.isInteger(t))throw Ze("intermission must be a positive number")}_requireValidLoop(t){if(typeof t=="number"&&(!Number.isInteger(t)||t<0))throw Ze("loop must be a positive number or boolean")}_requireValidSpeed(t){if(typeof t!="number")throw Ze("speed must be a number")}_requireValidBackground(t){if(typeof t!="string")throw Ze("background must be a string")}_requireValidAutoplay(t){if(typeof t!="boolean")throw Ze("autoplay must be a boolean")}_requireValidPlaybackOptions(t){t.direction&&this._requireValidDirection(t.direction),t.intermission&&this._requireValidIntermission(t.intermission),t.loop&&this._requireValidLoop(t.loop),t.speed&&this._requireValidSpeed(t.speed);}};});cl();fo();Wo();Ao();Mo();en();Fs();var Yo=window,Zo=Yo.ShadowRoot&&(Yo.ShadyCSS===void 0||Yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ul=Symbol(),dc=new WeakMap,Zn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ul)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i;}get styleSheet(){let e=this.o,i=this.t;if(Zo&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=dc.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&dc.set(i,e));}return e}toString(){return this.cssText}},mc=t=>new Zn(typeof t=="string"?t:t+"",void 0,ul),dl=(t,...e)=>{let i=t.length===1?t[0]:e.reduce((r,s,a)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[a+1],t[0]);return new Zn(i,t,ul)},ml=(t,e)=>{Zo?t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{let r=document.createElement("style"),s=Yo.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,t.appendChild(r);});},Ko=Zo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return mc(i)})(t):t;var gl,Qo=window,gc=Qo.trustedTypes,Vg=gc?gc.emptyScript:"",yc=Qo.reactiveElementPolyfillSupport,vl={toAttribute(t,e){switch(e){case Boolean:t=t?Vg:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch{i=null;}}return i}},vc=(t,e)=>e!==t&&(e==e||t==t),yl={attribute:!0,type:String,converter:vl,reflect:!1,hasChanged:vc},bl="finalized",oa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu();}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e);}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((i,r)=>{let s=this._$Ep(r,i);s!==void 0&&(this._$Ev.set(s,r),e.push(s));}),e}static createProperty(e,i=yl){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){let r=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,r,i);s!==void 0&&Object.defineProperty(this.prototype,e,s);}}static getPropertyDescriptor(e,i,r){return {get(){return this[i]},set(s){let a=this[e];this[i]=s,this.requestUpdate(e,a,r);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||yl}static finalize(){if(this.hasOwnProperty(bl))return !1;this[bl]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,r=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let s of r)this.createProperty(s,i[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let s of r)i.unshift(Ko(s));}else e!==void 0&&i.push(Ko(e));return i}static _$Ep(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this));}addController(e){var i,r;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e));}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);});}createRenderRoot(){var e;let i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return ml(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return (r=i.hostConnected)===null||r===void 0?void 0:r.call(i)});}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return (r=i.hostDisconnected)===null||r===void 0?void 0:r.call(i)});}attributeChangedCallback(e,i,r){this._$AK(e,r);}_$EO(e,i,r=yl){var s;let a=this.constructor._$Ep(e,r);if(a!==void 0&&r.reflect===!0){let o=(((s=r.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?r.converter:vl).toAttribute(i,r.type);this._$El=e,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null;}}_$AK(e,i){var r;let s=this.constructor,a=s._$Ev.get(e);if(a!==void 0&&this._$El!==a){let o=s.getPropertyOptions(a),p=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?o.converter:vl;this._$El=a,this[a]=p.fromAttribute(i,o.type),this._$El=null;}}requestUpdate(e,i,r){let s=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||vc)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(i){Promise.reject(i);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,a)=>this[a]=s),this._$Ei=void 0);let i=!1,r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var a;return (a=s.hostUpdate)===null||a===void 0?void 0:a.call(s)}),this.update(r)):this._$Ek();}catch(s){throw i=!1,this._$Ek(),s}i&&this._$AE(r);}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(r=>{var s;return (s=r.hostUpdated)===null||s===void 0?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return !0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,r)=>this._$EO(r,this[r],i)),this._$EC=void 0),this._$Ek();}updated(e){}firstUpdated(e){}};oa[bl]=!0,oa.elementProperties=new Map,oa.elementStyles=[],oa.shadowRootOptions={mode:"open"},yc?.({ReactiveElement:oa}),((gl=Qo.reactiveElementVersions)!==null&&gl!==void 0?gl:Qo.reactiveElementVersions=[]).push("1.6.3");var xl,th=window,vn=th.trustedTypes,bc=vn?vn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Pl="$lit$",Ea=`lit$${(Math.random()+"").slice(9)}$`,Ec="?"+Ea,Rg=`<${Ec}>`,Xa=document,Qn=()=>Xa.createComment(""),to=t=>t===null||typeof t!="object"&&typeof t!="function",Ac=Array.isArray,Og=t=>Ac(t)||typeof t?.[Symbol.iterator]=="function",_l=`[ \f\r]`,Kn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xc=/-->/g,_c=/>/g,Ua=RegExp(`>|${_l}(?:([^\\s"'>=/]+)(${_l}*=${_l}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pc=/'/g,Sc=/"/g,Cc=/^(?:script|style|textarea|title)$/i,Tc=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),yi=Tc(1),Ya=Symbol.for("lit-noChange"),ur=Symbol.for("lit-nothing"),kc=new WeakMap,Ja=Xa.createTreeWalker(Xa,129,null,!1);function Mc(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return bc!==void 0?bc.createHTML(e):e}var Bg=(t,e)=>{let i=t.length-1,r=[],s,a=e===2?"":"",o=Kn;for(let p=0;p"?(o=s??Kn,v=-1):_[1]===void 0?v=-2:(v=o.lastIndex-_[2].length,c=_[1],o=_[3]===void 0?Ua:_[3]==='"'?Sc:Pc):o===Sc||o===Pc?o=Ua:o===xc||o===_c?o=Kn:(o=Ua,s=void 0);let S=o===Ua&&t[p+1].startsWith("/>")?" ":"";a+=o===Kn?h+Rg:v>=0?(r.push(c),h.slice(0,v)+Pl+h.slice(v)+Ea+S):h+Ea+(v===-2?(r.push(void 0),p):S);}return [Mc(t,a+(t[i]||"")+(e===2?"":"")),r]},Za=class{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let a=0,o=0,p=e.length-1,h=this.parts,[c,_]=Bg(e,i);if(this.el=Za.createElement(c,r),Ja.currentNode=this.el.content,i===2){let v=this.el.content,u=v.firstChild;u.remove(),v.append(...u.childNodes);}for(;(s=Ja.nextNode())!==null&&h.length0){s.textContent=vn?vn.emptyScript:"";for(let S=0;S2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ur;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,r,s){let a=this.strings,o=!1;if(a===void 0)e=bn(this,e,i,0),o=!to(e)||e!==this._$AH&&e!==Ya,o&&(this._$AH=e);else {let p=e,h,c;for(e=a[0],h=0;h{var r,s;let a=(r=i?.renderBefore)!==null&&r!==void 0?r:e,o=a._$litPart$;if(o===void 0){let p=(s=i?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=o=new Ka(e.insertBefore(Qn(),p),p,void 0,i??{});}return o._$AI(t),o};var Cl,Tl;var Aa=class extends oa{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,i;let r=super.createRenderRoot();return (e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=r.firstChild),r}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Dc(i,this.renderRoot,this.renderOptions);}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0);}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1);}render(){return Ya}};Aa.finalized=!0,Aa._$litElement$=!0,(Cl=globalThis.litElementHydrateSupport)===null||Cl===void 0||Cl.call(globalThis,{LitElement:Aa});var Fc=globalThis.litElementPolyfillSupport;Fc?.({LitElement:Aa});((Tl=globalThis.litElementVersions)!==null&&Tl!==void 0?Tl:globalThis.litElementVersions=[]).push("3.3.3");var Ng=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this));},finisher(i){i.createProperty(e.key,t);}},Gg=(t,e,i)=>{e.constructor.createProperty(i,t);};function dr(t){return (e,i)=>i!==void 0?Gg(t,e,i):Ng(t,e)}function Ic(t){return dr({...t,state:!0})}var Qa=({finisher:t,descriptor:e})=>(i,r)=>{var s;if(r===void 0){let a=(s=i.originalKey)!==null&&s!==void 0?s:i.key,o=e!=null?{kind:"method",placement:"prototype",key:a,descriptor:e(i.key)}:{...i,key:a};return t!=null&&(o.finisher=function(p){t(p,a);}),o}{let a=i.constructor;e!==void 0&&Object.defineProperty(i,r,e(r)),t?.(a,r);}};function Lc(t,e){return Qa({descriptor:i=>{let r={get(){var s,a;return (a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(e){let s=typeof i=="symbol"?Symbol():"__"+i;r.get=function(){var a,o;return this[s]===void 0&&(this[s]=(o=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(t))!==null&&o!==void 0?o:null),this[s]};}return r}})}var Ml;((Ml=window.HTMLSlotElement)===null||Ml===void 0?void 0:Ml.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);var Vc={name:"@dotlottie/player-component",version:"2.5.1",description:"dotLottie animation player web component.",repository:"https://github.com/dotlottie/player-component.git",homepage:"https://dotlottie.com/players",bugs:"https://github.com/dotlottie/player-component/issues",author:"Jawish Hameed ",license:"MIT",main:"dist/dotlottie-player.js",module:"dist/dotlottie-player.mjs",types:"dist/dotlottie-player.d.ts",files:["dist"],keywords:["dotlottie","animation","web component","component","lit-element","player"],scripts:{build:"tsup","cypress:open":"cypress open --component",dev:"tsup --watch",lint:"eslint .","lint:fix":"eslint --fix",test:"cypress run --component","type-check":"tsc --noEmit"},dependencies:{lit:"^2.7.5"},devDependencies:{"@dotlottie/common":"workspace:^","@vitejs/plugin-legacy":"^4.1.0","axe-core":"^4.7.2",cypress:"^12.11.0","cypress-axe":"^1.4.0","cypress-ct-lit":"^0.3.2","lottie-web":"^5.12.2",terser:"^5.19.0",tsup:"^6.1.3",typescript:"^4.7.4",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"]};var Rc=dl` @font-face { font-family: 'Karla'; font-weight: regular; src: url('./fonts/Karla-regular.woff') format('woff'); } * { box-sizing: border-box; } :host { --lottie-player-toolbar-height: 35px; --lottie-player-toolbar-background-color: transparent; --lottie-player-toolbar-hover-background-color: #f3f6f8; --lottie-player-toolbar-icon-color: #20272c; --lottie-player-toolbar-icon-hover-color: #f3f6f8; --lottie-player-toolbar-icon-active-color: #00ddb3; --lottie-player-seeker-track-color: #00ddb3; --lottie-player-seeker-accent-color: #00c1a2; --lottie-player-seeker-thumb-color: #00c1a2; --lottie-player-options-separator: #d9e0e6; display: block; width: 100%; height: 100%; font-family: 'Karla', sans-serif; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .active { color: var(--lottie-player-toolbar-icon-active-color) !important; } .main { position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; } .animation { position: relative; width: 100%; height: 100%; display: flex; } .animation.controls { height: calc(100% - var(--lottie-player-toolbar-height)); } .toolbar { display: flex; align-items: center; justify-items: center; background-color: var(--lottie-player-toolbar-background-color); margin: 0 8px; height: var(--lottie-player-toolbar-height); } .btn-spacing-left { margin-right: 4px; margin-left: 8px; } .btn-spacing-center { margin-right: 4px; margin-left: 4px; } .btn-spacing-right { margin-right: 8px; margin-left: 4px; } .toolbar button { color: #20272c; cursor: pointer; fill: var(--lottie-player-toolbar-icon-color); display: flex; background: none; border: 0px; border-radius: 4px; padding: 4px; outline: none; width: 24px; height: 24px; align-items: center; } .toolbar button:hover { background-color: var(--lottie-player-toolbar-icon-hover-color); border-style: solid; border-radius: 2px; } .toolbar button.active { fill: var(--lottie-player-toolbar-icon-active-color); } .toolbar button.active:hover { fill: var(--lottie-player-toolbar-icon-hover-color); border-radius: 4px; } .toolbar button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .toolbar button svg { width: 16px; height: 16px; } .toolbar button.disabled svg { display: none; } .popover { position: absolute; bottom: 40px; left: calc(100% - 239px); width: 224px; min-height: 84px; max-height: 300px; background-color: #ffffff; box-shadow: 0px 8px 48px 0px rgba(243, 246, 248, 0.15), 0px 8px 16px 0px rgba(61, 72, 83, 0.16), 0px 0px 1px 0px rgba(61, 72, 83, 0.36); border-radius: 8px; padding: 8px; z-index: 100; overflow-y: scroll; scrollbar-width: none; } .popover:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .popover::-webkit-scrollbar { width: 0px; } .popover-button { background: none; border: none; font-family: inherit; width: 100%; flex-direction: row; cursor: pointer; height: 32px; color: #20272c; justify-content: space-between; display: flex; padding: 4px 8px; align-items: flex-start; gap: 8px; align-self: stretch; border-radius: 4px; } .popover-button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .popover-button:hover { background-color: var(--lottie-player-toolbar-hover-background-color); } .popover-button-text { display: flex; color: #20272c; flex-direction: column; align-self: stretch; justify-content: center; font-family: inherit; font-size: 14px; font-style: normal; font-weight: 400; line-height: 150%; letter-spacing: -0.28px; } .reset-btn { font-size: 12px; cursor: pointer; font-family: inherit; background: none; border: none; font-weight: 400; line-height: 18px; letter-spacing: 0em; text-align: left; color: #63727e; padding: 0; width: 31px; height: 18px; } .reset-btn:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .reset-btn:hover { color: #20272c; } .option-title-button { display: flex; flex-direction: row; width: 100%; height: 32px; align-items: center; gap: 4px; align-self: stretch; cursor: pointer; color: var(--lottie-player-toolbar-icon-color); border: none; background: none; padding: 4px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 150%; letter-spacing: -0.32px; } .option-title-button.themes { width: auto; padding: 0; } .option-title-button:hover { background-color: var(--lottie-player-toolbar-icon-hover-color); } .option-title-themes-row { display: flex; align-items: center; gap: 8px; flex: 1 0 0; } .option-title-themes-row:hover { background-color: var(--lottie-player-toolbar-icon-hover-color); } .option-title-button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .option-title-text { font-size: 16px; font-style: normal; font-weight: 700; line-height: 150%; letter-spacing: -0.32px; } .option-title-separator { margin: 8px -8px; border-bottom: 1px solid var(--lottie-player-options-separator); } .option-title-chevron { display: flex; padding: 4px; border-radius: 8px; justify-content: center; align-items: center; gap: 8px; } .option-row { display: flex; flex-direction: column; } .option-row > ul { padding: 0; margin: 0; } .option-button { width: 100%; background: none; border: none; font-family: inherit; display: flex; padding: 4px 8px; color: #20272c; overflow: hidden; align-items: center; gap: 8px; align-self: stretch; cursor: pointer; height: 32px; font-family: inherit; font-size: 14px; border-radius: 4px; } .option-button:hover { background-color: var(--lottie-player-toolbar-hover-background-color); } .option-button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .option-tick { display: flex; width: 24px; height: 24px; align-items: flex-start; gap: 8px; } .seeker { height: 4px; width: 95%; outline: none; -webkit-appearance: none; -moz-apperance: none; border-radius: 9999px; cursor: pointer; background-image: linear-gradient( to right, rgb(0, 221, 179) calc(var(--seeker) * 1%), rgb(217, 224, 230) calc(var(--seeker) * 1%) ); } .seeker.to-left { background-image: linear-gradient( to right, rgb(217, 224, 230) calc(var(--seeker) * 1%), rgb(0, 221, 179) calc(var(--seeker) * 1%) ); } .seeker::-webkit-slider-runnable-track:focus-visible { color: #f07167; accent-color: #00ddb3; } .seeker::-webkit-slider-runnable-track { width: 100%; height: 5px; cursor: pointer; } .seeker::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--lottie-player-seeker-thumb-color); cursor: pointer; margin-top: -5px; } .seeker:focus-visible::-webkit-slider-thumb { background: var(--lottie-player-seeker-thumb-color); outline: 2px solid var(--lottie-player-seeker-track-color); border: 1.5px solid #ffffff; } .seeker::-webkit-slider-thumb:hover { background: #019d91; } .seeker::-moz-range-thumb { appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--lottie-player-seeker-thumb-color); cursor: pointer; margin-top: -5px; border-color: transparent; } .seeker:focus-visible::-moz-range-thumb { background: var(--lottie-player-seeker-thumb-color); outline: 2px solid var(--lottie-player-seeker-track-color); border: 1.5px solid #ffffff; } .error { display: flex; justify-content: center; margin: auto; height: 100%; align-items: center; } `;var Oc="dotlottie-player";var Zi=class extends Aa{defaultTheme="";container;playMode=exports.PlayMode.Normal;autoplay=!1;background="transparent";controls=!1;direction=1;hover=!1;loop;renderer="svg";speed=1;src;intermission=0;activeAnimationId=null;light=!1;activeStateId;_seeker=0;_dotLottieCommonPlayer;_io;_loop;_renderer="svg";_unsubscribeListeners;_hasMultipleAnimations=!1;_popoverIsOpen=!1;_animationsTabIsOpen=!1;_styleTabIsOpen=!1;_themesForCurrentAnimation=[];_parseLoop(e){let i=parseInt(e,10);return Number.isInteger(i)&&i>0?(this._loop=i,i):typeof e=="string"&&["true","false"].includes(e)?(this._loop=e==="true",this._loop):(Ti("loop must be a positive integer or a boolean"),!1)}_handleSeekChange(e){let i=e.currentTarget;try{let r=parseInt(i.value,10);if(!this._dotLottieCommonPlayer)return;let s=r/100*this._dotLottieCommonPlayer.totalFrames;this.seek(s);}catch{throw Ze("Error while seeking animation")}}_initListeners(){let e=this._dotLottieCommonPlayer;if(e===void 0){Ti("player not initialized - cannot add event listeners","dotlottie-player-component");return}this._unsubscribeListeners=e.state.subscribe((i,r)=>{this._seeker=i.seeker,this.requestUpdate(),r.currentState!==i.currentState&&this.dispatchEvent(new CustomEvent(i.currentState)),this.dispatchEvent(new CustomEvent(Us.Frame,{detail:{frame:i.frame,seeker:i.seeker}})),this.dispatchEvent(new CustomEvent(Us.VisibilityChange,{detail:{visibilityPercentage:i.visibilityPercentage}}));}),e.addEventListener("complete",()=>{this.dispatchEvent(new CustomEvent(Us.Complete));}),e.addEventListener("loopComplete",()=>{this.dispatchEvent(new CustomEvent(Us.LoopComplete));}),e.addEventListener("DOMLoaded",()=>{let i=this.getManifest();i&&i.themes&&(this._themesForCurrentAnimation=i.themes.filter(r=>r.animations.includes(this.getCurrentAnimationId()||""))),this.dispatchEvent(new CustomEvent(Us.Ready));}),e.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(Us.DataReady));}),e.addEventListener("data_failed",()=>{this.dispatchEvent(new CustomEvent(Us.DataFail));}),window&&window.addEventListener("click",i=>this._clickOutListener(i));}async load(e,i,r){if(!this.shadowRoot)return;this._dotLottieCommonPlayer=new Xo(e,this.container,{rendererSettings:i??{scaleMode:"noScale",clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0},hover:this.hasAttribute("hover")?this.hover:void 0,renderer:this.hasAttribute("renderer")?this._renderer:void 0,loop:this.hasAttribute("loop")?this._loop:void 0,direction:this.hasAttribute("direction")?this.direction===1?1:-1:void 0,speed:this.hasAttribute("speed")?this.speed:void 0,intermission:this.hasAttribute("intermission")?Number(this.intermission):void 0,playMode:this.hasAttribute("playMode")?this.playMode:void 0,autoplay:this.hasAttribute("autoplay")?this.autoplay:void 0,activeAnimationId:this.hasAttribute("activeAnimationId")?this.activeAnimationId:void 0,defaultTheme:this.hasAttribute("defaultTheme")?this.defaultTheme:void 0,light:this.light,activeStateId:this.hasAttribute("activeStateId")?this.activeStateId:void 0}),await this._dotLottieCommonPlayer.load(r),this._hasMultipleAnimations=this.animationCount()>1;let s=this.getManifest();s&&s.themes&&(this._themesForCurrentAnimation=s.themes.filter(a=>a.animations.includes(this.getCurrentAnimationId()||""))),this._initListeners();}getCurrentAnimationId(){return this._dotLottieCommonPlayer?.currentAnimationId}animationCount(){return this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.getManifest()?.animations.length||0}animations(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getManifest()?.animations.map(i=>i.id)||[]:[]}currentAnimation(){return !this._dotLottieCommonPlayer||!this._dotLottieCommonPlayer.currentAnimationId?"":this._dotLottieCommonPlayer.currentAnimationId}getState(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getState():Jo}getManifest(){return this._dotLottieCommonPlayer?.getManifest()}getLottie(){return this._dotLottieCommonPlayer?.getAnimationInstance()}getVersions(){return {lottieWebVersion:Xo.getLottieWebVersion(),dotLottiePlayerVersion:`${Vc.version}`}}previous(e){this._dotLottieCommonPlayer?.previous(e);}next(e){this._dotLottieCommonPlayer?.next(e);}reset(){this._dotLottieCommonPlayer?.reset();}play(e,i){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.play(e,i);}pause(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.pause();}stop(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stop();}playOnShow(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.playOnShow(e);}stopPlayOnShow(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stopPlayOnShow();}playOnScroll(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.playOnScroll(e);}stopPlayOnScroll(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stopPlayOnScroll();}seek(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.seek(e);}snapshot(e=!0){if(!this.shadowRoot)return "";let i=this.shadowRoot.querySelector(".animation svg"),r=new XMLSerializer().serializeToString(i);if(e){let s=document.createElement("a");s.href=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`,s.download=`download_${this._seeker}.svg`,document.body.appendChild(s),s.click(),document.body.removeChild(s);}return r}setTheme(e){this._dotLottieCommonPlayer?.setDefaultTheme(e);}themes(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getManifest()?.themes?.map(i=>i.id)||[]:[]}getDefaultTheme(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.defaultTheme:""}_freeze(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.freeze();}setSpeed(e=1){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setSpeed(e);}setDirection(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setDirection(e);}setLooping(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setLoop(e);}isLooping(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.loop:!1}togglePlay(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.togglePlay();}toggleLooping(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.toggleLoop();}setPlayMode(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setMode(e);}enterInteractiveMode(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.enterInteractiveMode(e);}exitInteractiveMode(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.exitInteractiveMode();}revertToManifestValues(e){this._dotLottieCommonPlayer?.revertToManifestValues(e);}static get styles(){return Rc}async firstUpdated(){this.container=this.shadowRoot?.querySelector("#animation"),"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0]!==void 0&&e[0].isIntersecting?this._dotLottieCommonPlayer?.currentState===wa.Frozen&&this.play():this._dotLottieCommonPlayer?.currentState===wa.Playing&&this._freeze();}),this._io.observe(this.container)),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.renderer==="svg"?this._renderer="svg":this.renderer==="canvas"?this._renderer="canvas":this.renderer==="html"&&(this._renderer="html"),this.src&&await this.load(this.src);}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._dotLottieCommonPlayer?.destroy(),this._unsubscribeListeners?.(),window&&window.removeEventListener("click",e=>this._clickOutListener(e));}_clickOutListener(e){!e.composedPath().some(r=>r instanceof HTMLElement?r.classList.contains("popover")||r.id==="lottie-animation-options":!1)&&this._popoverIsOpen&&(this._popoverIsOpen=!1,this.requestUpdate());}renderControls(){let e=this._dotLottieCommonPlayer?.currentState===wa.Playing,i=this._dotLottieCommonPlayer?.currentState===wa.Paused;return yi`
${this._hasMultipleAnimations?yi` `:yi``} ${this._hasMultipleAnimations?yi` `:yi``} this._handleSeekChange(r)} @mousedown=${()=>{this._freeze();}} @mouseup=${()=>{this._dotLottieCommonPlayer?.unfreeze();}} aria-valuemin="1" aria-valuemax="100" role="slider" aria-valuenow=${this._seeker} aria-label="lottie-seek-input" style=${`--seeker: ${this._seeker}`} /> ${this._hasMultipleAnimations?yi` `:yi``}
${this._popoverIsOpen?yi`
${!this._animationsTabIsOpen&&!this._styleTabIsOpen?yi` `:yi``} ${this.themes().length>0&&!this._styleTabIsOpen&&!this._animationsTabIsOpen?yi` `:""} ${this._animationsTabIsOpen?yi`
    ${this.animations().map(r=>yi`
  • `)}
`:yi``} ${this._styleTabIsOpen?yi`
`}
    ${this._themesForCurrentAnimation.map(r=>yi`
  • `)}
`:yi``}
`:yi``} `}render(){let e=this.controls?"main controls":"main",i=this.controls?"animation controls":"animation";return yi` `}};pr([dr({type:String})],Zi.prototype,"defaultTheme",2),pr([Lc("#animation")],Zi.prototype,"container",2),pr([dr()],Zi.prototype,"playMode",2),pr([dr({type:Boolean})],Zi.prototype,"autoplay",2),pr([dr({type:String})],Zi.prototype,"background",2),pr([dr({type:Boolean})],Zi.prototype,"controls",2),pr([dr({type:Number})],Zi.prototype,"direction",2),pr([dr({type:Boolean})],Zi.prototype,"hover",2),pr([dr({type:String})],Zi.prototype,"loop",2),pr([dr({type:String})],Zi.prototype,"renderer",2),pr([dr({type:Number})],Zi.prototype,"speed",2),pr([dr({type:String})],Zi.prototype,"src",2),pr([dr()],Zi.prototype,"intermission",2),pr([dr({type:String})],Zi.prototype,"activeAnimationId",2),pr([dr({type:Boolean})],Zi.prototype,"light",2),pr([dr({type:String})],Zi.prototype,"activeStateId",2),pr([Ic()],Zi.prototype,"_seeker",2);customElements.get(Oc)||customElements.define(Oc,Zi);/*! Bundled license information: is-buffer/index.js: (*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT *) */ /*! Bundled license information: xstate/es/_virtual/_tslib.js: (*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** *) */ /*! Bundled license information: lottie-web/build/player/lottie_light.js: (*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. *) */ /*! Bundled license information: lottie-web/build/player/lottie_svg.js: (*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. *) */ /*! Bundled license information: lottie-web/build/player/lottie_light_canvas.js: (*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. *) */ /*! Bundled license information: lottie-web/build/player/lottie_canvas.js: (*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. *) */ /*! Bundled license information: lottie-web/build/player/lottie_light_html.js: (*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. *) */ /*! Bundled license information: lottie-web/build/player/lottie_html.js: (*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. *) */ /*! Bundled license information: @lit/reactive-element/css-tag.js: (** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/reactive-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/lit-html.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-element/lit-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/is-server.js: (** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/custom-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/property.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/state.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/base.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/event-options.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/query.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/query-all.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/query-async.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/query-assigned-elements.js: (** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/decorators/query-assigned-nodes.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) */ exports.DotLottiePlayer = Zi; })); //# sourceMappingURL=out.js.map //# sourceMappingURL=dotlottie-player.js.map